
#sfc-gallery{scroll-margin-top:110px}
#sfc-gallery .galleryfilters{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:18px}
#sfc-gallery .galleryfilters label{min-width:0}
#sfc-gallery .galleryfilters [data-gallery-count]{grid-column:1/-1;margin:0;padding:0}
#sfc-gallery .gallery-selection{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:24px;border-bottom:1px solid #dce3ec}
#sfc-gallery .gallery-selection[hidden]{display:none}
#sfc-gallery .gallery-selection h2{font-size:clamp(28px,3vw,38px);line-height:1.2;letter-spacing:-1px;margin:0 0 12px}
#sfc-gallery .gallery-selection p{margin:0;color:var(--muted)}
#sfc-gallery .gallery-selection .textlink{min-height:44px;display:inline-flex;align-items:center;gap:12px;flex-shrink:0}
#sfc-gallery .galleryfull .partner-album-photo{height:auto;display:flex;flex-direction:column;background:var(--paper);text-align:left}
#sfc-gallery .partner-album-photo img{height:240px;width:100%;object-fit:contain}
#sfc-gallery .partner-album-photo span{position:static;display:block;background:none;color:var(--navy);max-width:none;margin:0;padding:14px 16px;font-size:13px;line-height:1.5}
@media(max-width:700px){#sfc-gallery{scroll-margin-top:90px}#sfc-gallery .galleryfilters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#sfc-gallery .galleryfilters label:first-child{grid-column:1/-1}#sfc-gallery .galleryfilters select{font-size:16px}#sfc-gallery .gallery-selection{display:block}#sfc-gallery .gallery-selection .textlink{margin-top:12px}#sfc-gallery .galleryfull[data-album]:not([data-album=""]){grid-template-columns:minmax(0,1fr)}#sfc-gallery .partner-album-photo img{height:250px}}

#sfc-gallery [data-gallery-photo][hidden]{display:none!important}

/* Gallery captions: scoped to the full gallery. Homepage V2.1/V2.2 is untouched. */
#sfc-gallery .galleryfull .photobutton > span:not(.sfc-ai-label) {
  position: absolute;
  display: block;
  inset: auto auto 12px 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 9px;
  background: rgba(11, 23, 43, .85);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  pointer-events: none;
}
/* Keep each album image's current dimensions and contain-fit, remove only the text row. */
#sfc-gallery .galleryfull .partner-album-photo {
  display: block;
  height: 240px;
}
#sfc-gallery .galleryfull .partner-album-photo img {
  object-position: center bottom;
}
@media (max-width: 700px) {
  #sfc-gallery .galleryfull .partner-album-photo { height: 250px; }
}
@media (max-width: 600px) {
  #sfc-gallery .galleryfull .photobutton > span:not(.sfc-ai-label) {
    inset: auto auto 8px 8px;
    max-width: calc(100% - 16px);
    padding: 5px 7px;
    font-size: 11px;
  }
}
