/* RBR_UNDERWATER_UI_V242_20261025
   Typography layer only. V2.4.1 square/landscape geometry is preserved.
   Names are multilingual, supplied by published Critter Library records.
*/
body.rbr-underwater-editorial-v22 main .rbr-v24-photo .rbr-v242-species-label {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: 96%;
  overflow: hidden;
  gap: 1px;
  padding: clamp(7px, .65vw, 11px) clamp(7px, .75vw, 12px);
  font: 500 11px/1.24 system-ui, 'Noto Sans TC', sans-serif;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo .rbr-v242-species-label > * {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.85);
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo .rbr-v242-species-label .rbr-v242-main {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo .rbr-v242-species-label .rbr-v242-secondary {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo .rbr-v242-species-label .rbr-v242-scientific {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 10px;
  font-weight: 400;
  opacity: .96;
  line-height: 1.22;
}
/* Increase dark gradient only below names; keep original photographic colours. */
body.rbr-underwater-editorial-v22 main .rbr-v24-photo:has(.rbr-v242-species-label)::before {
  inset: 32% 0 0;
}
@media (max-width:650px) {
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-species-label {
    gap: 0;
    padding: 3px 4px;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-main {
    font-size: 9px;
    line-height: 1.14;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-secondary {
    font-size: 8px;
    line-height: 1.12;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-scientific {
    font-size: 8px;
    line-height: 1.12;
  }
}
@media (max-width:359px) {
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-species-label {
    padding: 2px 3px;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-secondary,
  body.rbr-underwater-editorial-v22 main .rbr-v24-band .rbr-v24-photo .rbr-v242-scientific {
    font-size: 7px;
  }
}
