.legacy-gallery { overflow: hidden; }
.legacy-gallery > div:first-child,
.legacy-gallery .gallery-grid {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-cell { appearance: none; width: 100%; }
.gallery-cell img { object-position: center center; }

.winter-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(8, 12, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.winter-lightbox.is-open { opacity: 1; visibility: visible; }
.winter-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}
.winter-lightbox__close,
.winter-lightbox__previous,
.winter-lightbox__next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
  font: 700 28px/1 Arial, sans-serif;
}
.winter-lightbox__close { top: 18px; right: 18px; width: 48px; height: 48px; }
.winter-lightbox__previous,
.winter-lightbox__next { top: 50%; width: 50px; height: 50px; transform: translateY(-50%); }
.winter-lightbox__previous { left: 18px; }
.winter-lightbox__next { right: 18px; }
.winter-lightbox button:hover,
.winter-lightbox button:focus-visible {
  background: #fff;
  color: #171c18;
  outline: 3px solid #bfe3ee;
  outline-offset: 3px;
}
body.has-open-lightbox { overflow: hidden; }

@media (max-width: 700px) {
  .winter-lightbox { padding: 70px 12px 76px; }
  .winter-lightbox__image { max-height: calc(100vh - 146px); }
  .winter-lightbox__previous,
  .winter-lightbox__next { top: auto; bottom: 14px; transform: none; }
  .winter-lightbox__previous { left: calc(50% - 62px); }
  .winter-lightbox__next { right: calc(50% - 62px); }
}
@media (prefers-reduced-motion: reduce) { .winter-lightbox { transition: none; } }
