/* Keep captions discoverable on hover and keyboard focus without layout shift. */
.gallery-card .gallery-caption{opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .35s ease}
.gallery-card:hover .gallery-caption,.gallery-card:focus-visible .gallery-caption{opacity:1;transform:translateY(0)}
.lightbox .lightbox-description{max-width:820px;margin:18px auto 22px;font-size:17px;line-height:1.75;color:#f3efe4;font-weight:500}
.lightbox .lightbox-stage img{max-height:55svh}
.lightbox .lightbox-top p{font-size:20px;font-weight:600}
@media(max-width:650px){.lightbox .lightbox-description{font-size:15px;line-height:1.7;margin:15px 6px 20px}.lightbox .lightbox-top p{font-size:17px}.lightbox .lightbox-stage img{max-height:48svh}}
@media(prefers-reduced-motion:reduce){.gallery-card .gallery-caption{transition:none;transform:none}}
/* Alternating wide and compact images, with no empty grid cells. */
@media(min-width:651px){
.gallery-grid:not(.filtered) .gallery-card{grid-column:auto}
.gallery-grid:not(.filtered) .gallery-card:is(:nth-child(1),:nth-child(4),:nth-child(5),:nth-child(7),:nth-child(12)){grid-column:span 2}
.gallery-grid:not(.filtered) .gallery-card .gallery-picture{height:clamp(280px,31vw,410px)}
.gallery-grid:not(.filtered) .gallery-card:is(:nth-child(9),:nth-child(10),:nth-child(11)) .gallery-picture{height:clamp(220px,24vw,310px)}
}
@media(max-width:650px){
.gallery-grid:not(.filtered) .gallery-card{grid-column:auto}
.gallery-grid:not(.filtered) .gallery-card:is(:nth-child(1),:nth-child(6),:nth-child(11)){grid-column:1/-1}
.gallery-grid:not(.filtered) .gallery-card .gallery-picture{height:200px}
.gallery-grid:not(.filtered) .gallery-card:is(:nth-child(1),:nth-child(6),:nth-child(11)) .gallery-picture{height:290px}
}
