/* RBR_UNDERWATER_UI_V24_20261025. Scoped, additive, no changes to CMS data. */
/* 1. The gallery's original controls and "Full Gallery" link on ONE row. */
body.rbr-underwater-editorial-v22 main #selected-works .photo-collection-more.rbr-v24-gallery-footer{
  box-sizing:border-box;display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:clamp(14px,2vw,32px)!important;
  flex-wrap:wrap!important;margin-top:clamp(20px,2.8vw,32px)!important;
  padding:0!important;min-width:0;width:100%!important;
}
body.rbr-underwater-editorial-v22 main #selected-works .rbr-v24-gallery-footer>.rbr-v38-controls{
  box-sizing:border-box;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;gap:clamp(7px,1vw,13px)!important;
  margin:0!important;padding:0!important;width:auto!important;max-width:none!important;
  flex:0 1 auto;min-width:0;
}
body.rbr-underwater-editorial-v22 main #selected-works .rbr-v24-gallery-footer>.text-link{
  margin:0 0 0 auto!important;white-space:normal;text-align:right;flex:0 0 auto;
}
body.rbr-underwater-editorial-v22 main #selected-works.rbr-v24-gallery-ready{
  padding-bottom:clamp(25px,3vw,43px)!important;
}
/* 2. Keep the photographer's guiding philosophy, but reduce vertical footprint. */
body.rbr-underwater-editorial-v22 main .rbr-v22-method{
  column-gap:clamp(25px,4.5vw,70px)!important;
  row-gap:clamp(5px,.9vw,13px)!important;
  padding:clamp(31px,3.5vw,54px) 0!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-method>.display-title{
  font-size:clamp(30px,3vw,43px)!important;line-height:1.27!important;
  max-width:620px!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-method>.body-copy{
  max-width:570px!important;font-size:clamp(13px,1vw,15px)!important;
  line-height:1.78!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-method-owner{
  margin:clamp(9px,1vw,15px) 0 0!important;
  padding-top:clamp(11px,1vw,16px)!important;
  gap:8px clamp(14px,2vw,26px)!important;font-size:12px!important;
}
/* 3. Two alternating editorial photo bands (3 + 3). V2.3 remains as fallback. */
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active{
  display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;
  align-items:center!important;gap:clamp(28px,4.1vw,62px)!important;
  padding:clamp(32px,4.3vw,65px) clamp(24px,4vw,68px)!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active .section-heading{
  min-width:0;align-self:center;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active .section-heading>div{
  min-width:0;max-width:520px;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active .display-title{
  font-size:clamp(30px,3vw,45px)!important;line-height:1.22!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active .body-copy{
  font-size:clamp(13px,1vw,15px)!important;line-height:1.85!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active #rbr-v23-critter-visual{
  display:none!important;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-critter-carousel{
  box-sizing:border-box;width:100%;min-width:0;align-self:center;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-stage{
  position:relative;isolation:isolate;width:100%;min-width:0;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic{
  display:grid;grid-template-columns:1fr;gap:clamp(8px,.8vw,11px);
  min-width:0;width:100%;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-band{
  display:grid;grid-template-rows:repeat(2,minmax(0,1fr));
  gap:clamp(8px,.8vw,11px);min-width:0;height:clamp(220px,20vw,295px);
}
body.rbr-underwater-editorial-v22 main .rbr-v24-band-top{
  grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
}
body.rbr-underwater-editorial-v22 main .rbr-v24-band-bottom{
  grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
}
body.rbr-underwater-editorial-v22 main .rbr-v24-band-top .rbr-v24-photo:first-child{
  grid-column:1;grid-row:1 / span 2;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-band-bottom .rbr-v24-photo:nth-child(3){
  grid-column:2;grid-row:1 / span 2;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo{
  position:relative;display:block;min-width:0;min-height:0;overflow:hidden;
  text-decoration:none;background:#102a26;color:#fff;isolation:isolate;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
  transition:transform 450ms ease;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo::before{
  content:"";position:absolute;inset:42% 0 0;z-index:1;pointer-events:none;
  background:linear-gradient(transparent,rgba(5,19,18,.72));
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo:hover img{transform:scale(1.04)}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo:focus-visible,
body.rbr-underwater-editorial-v22 main .rbr-v24-carousel-actions button:focus-visible{
  outline:3px solid #26715d;outline-offset:3px;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-caption{
  position:absolute;inset:auto 0 0;z-index:2;color:#fff;
  display:flex;flex-direction:column;gap:3px;padding:clamp(9px,1.1vw,15px);
  font:500 11px/1.4 system-ui,'Noto Sans TC',sans-serif;
  text-shadow:0 1px 4px rgba(0,0,0,.68);
}
body.rbr-underwater-editorial-v22 main .rbr-v24-caption strong{
  font-weight:600;overflow-wrap:anywhere;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-caption small{
  font-size:10px;font-weight:400;opacity:.9;overflow-wrap:anywhere;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic.rbr-v24-incoming{
  position:absolute;inset:0;z-index:3;opacity:0;pointer-events:none;
  transition:opacity 460ms ease-in-out;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic.rbr-v24-incoming.rbr-v24-visible{
  opacity:1;pointer-events:auto;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic.rbr-v24-outgoing{
  pointer-events:none;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-carousel-actions{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:11px;
  color:#526e65;font:500 10px/1.5 system-ui,sans-serif;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo-note{margin-right:auto;letter-spacing:.06em;}
body.rbr-underwater-editorial-v22 main .rbr-v24-photo-cycle{color:#6d827a;}
body.rbr-underwater-editorial-v22 main .rbr-v24-carousel-actions button{
  font:500 10px/1.5 system-ui,sans-serif;color:#234b41;
  min-height:31px;padding:4px 9px;border:1px solid #c4d3c6;
  background:transparent;cursor:pointer;
}
body.rbr-underwater-editorial-v22 main .rbr-v24-carousel-actions button:hover{background:rgba(255,255,255,.45)}
@media(max-width:950px){
  body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active{
    grid-template-columns:1fr!important;gap:clamp(22px,4vw,36px)!important;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active .section-heading>div{
    max-width:780px!important;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v24-band{height:clamp(220px,34vw,350px)}
}
@media(max-width:650px){
  body.rbr-underwater-editorial-v22 main #selected-works .photo-collection-more.rbr-v24-gallery-footer{
    gap:16px!important;align-items:flex-start!important;
  }
  body.rbr-underwater-editorial-v22 main #selected-works .rbr-v24-gallery-footer>.rbr-v38-controls{
    order:1;flex:1 1 100%;justify-content:flex-start!important;
  }
  body.rbr-underwater-editorial-v22 main #selected-works .rbr-v24-gallery-footer>.text-link{
    order:2;margin-left:0!important;text-align:left;flex:1 1 auto;
  }
  body.rbr-underwater-editorial-v22 main .rbr-v22-method{padding:32px 0!important;gap:12px!important}
  body.rbr-underwater-editorial-v22 main .rbr-v22-method>.display-title{font-size:clamp(28px,7vw,39px)!important}
  body.rbr-underwater-editorial-v22 main .rbr-v22-critters.rbr-v24-active{padding:32px 20px!important}
  body.rbr-underwater-editorial-v22 main .rbr-v24-band{height:clamp(174px,50vw,265px);gap:6px}
  body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic{gap:6px}
  body.rbr-underwater-editorial-v22 main .rbr-v24-caption{padding:10px 7px;font-size:10px}
  body.rbr-underwater-editorial-v22 main .rbr-v24-caption small{font-size:9px}
  body.rbr-underwater-editorial-v22 main .rbr-v24-carousel-actions{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  body.rbr-underwater-editorial-v22 main .rbr-v24-photo img,
  body.rbr-underwater-editorial-v22 main .rbr-v24-mosaic.rbr-v24-incoming{transition:none!important;}
}
