.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.gallery-grid__item { display: block; position: relative; padding: 5px; border: 1px solid var(--color-gold); background: var(--color-ivory); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); min-width: 0; aspect-ratio: 4 / 3; }
.gallery-grid__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 4px; transition: transform var(--dur-slow) var(--ease-elegant); box-shadow: none; }
.gallery-grid__item:hover img, .gallery-grid__item:focus-visible img { transform: scale(1.04); }
.gallery-grid__item:focus-visible { outline-color: var(--color-gold-deep); outline-offset: 4px; }
body.is-lightbox-open { overflow: hidden; }
.lightbox { padding: 70px 64px 28px; border: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(35,8,17,.98); color: var(--color-ivory); }
.lightbox[open] { display: grid; grid-template-columns: 1fr; align-items: center; }
.lightbox::backdrop { background: rgba(35,8,17,.95); }
.lightbox__figure { margin: 0; min-width: 0; text-align: center; }
.lightbox__images { display: grid; place-items: center; height: calc(100vh - 200px); height: calc(100dvh - 200px); touch-action: pan-y; user-select: none; }
.lightbox__images img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin-top: 16px; font-family: var(--font-heading); font-size: var(--fs-md); }
.lightbox__counter { margin: 8px 0 0; color: var(--color-gold-light); font-size: var(--fs-sm); font-variant-numeric: lining-nums tabular-nums; }
.lightbox button { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--color-gold-light); border-radius: 50%; background: transparent; color: var(--color-gold-light); font-size: 2rem; line-height: 1; }
.lightbox__close { right: 16px; top: 16px; }
.lightbox__prev { left: 12px; top: 48%; }
.lightbox__next { right: 12px; top: 48%; }
.lightbox :focus-visible { outline-color: var(--color-gold-light); }
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-height: 450px) { .lightbox { padding-top: 44px; } .lightbox__images { height: calc(100dvh - 125px); } }
@media (prefers-reduced-motion: reduce) { .gallery-grid__img { transition: none; } .gallery-grid__item:hover img, .gallery-grid__item:focus-visible img { transform: none; } }
