/* One full-width photographic passage, native scrolling even without JavaScript. */
/* Solutions owns the upper separation; the strip owns the passage into Showroom. */
.home-gallery { padding-block: 0 var(--cr-space-section); }
.home-gallery__viewport { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-behavior: auto; overflow-anchor: none;  padding-inline-start: var(--cr-gutter); }
.home-gallery__viewport::-webkit-scrollbar { display: none; }
.home-gallery__viewport:focus-visible { outline-offset: -4px; }
.home-gallery__track { display: flex; width: max-content; }
.home-gallery__set { display: flex; align-items: center; flex-shrink: 0; gap: var(--cr-space-5); margin: 0; padding: 0 var(--cr-space-5) 0 0; list-style: none; }
.home-gallery__photo { height: clamp(13rem, 24vw, 22rem); aspect-ratio: var(--cr-gallery-ratio, 1.333); flex: 0 0 auto; margin: 0; }
.home-gallery__photo:nth-child(3n+2) { aspect-ratio: 1; }
.home-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
@media (prefers-reduced-motion: reduce) {
    .home-gallery__viewport { scroll-behavior: auto; }
    .home-gallery__set[aria-hidden="true"] { display: none; }
}

.home-gallery__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.home-gallery__open:focus-visible { outline-offset: -4px; }
.gallery-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: var(--cr-gutter); background: transparent; color: var(--cr-color-paper); overflow: hidden; }
.gallery-lightbox[open] { display: grid; place-items: center; }
.gallery-lightbox::backdrop { background: rgb(0 0 0 / 88%); }
.gallery-lightbox > img { display: block; width: auto; height: auto; max-width: calc(100% - 8rem); max-height: calc(100dvh - 2 * var(--cr-gutter)); object-fit: contain; }
.gallery-lightbox button { position: absolute; display: grid; place-items: center; width: var(--cr-touch-target); height: var(--cr-touch-target); padding: 0; border: 0; background: transparent; color: inherit; font-size: 2rem; line-height: 1; cursor: pointer; --cr-color-focus: var(--cr-color-paper); }
.gallery-lightbox__close { top: var(--cr-gutter); right: var(--cr-gutter); }
.gallery-lightbox__prev { left: var(--cr-gutter); top: calc(50% - 1.5rem); }
.gallery-lightbox__next { right: var(--cr-gutter); top: calc(50% - 1.5rem); }
@media (max-width: 51.99rem) {
    .gallery-lightbox > img { max-width: 100%; max-height: calc(100dvh - 8rem); }
    .gallery-lightbox__prev, .gallery-lightbox__next { top: auto; bottom: var(--cr-space-5); }
}
