/* Full-screen photo viewer for photo stories (hero/lightbox.js), 2026-11-15. */
.vw-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  background: rgba(20, 18, 16, 0.94);
}
.vw-lb[hidden] { display: none; }
html.vw-lb-open, html.vw-lb-open body { overflow: hidden; }

.vw-lb__figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 56px 0 44px;
  box-sizing: border-box;
}

.vw-lb__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 300ms ease;
}
.vw-lb__img.is-ready { opacity: 1; }

.vw-lb__count {
  margin-top: 14px;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(243, 238, 220, 0.75);
}

.vw-lb button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #F3EEDC;
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  transition: opacity 200ms ease;
}
.vw-lb button:hover { opacity: 0.6; }
.vw-lb button:focus-visible { outline: 2px solid #F3EEDC; outline-offset: 4px; }

.vw-lb__nav { width: 64px; height: 96px; font-size: 64px; }
.vw-lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.vw-lb__next { grid-column: 3; grid-row: 1; justify-self: center; }

.vw-lb__close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 40px;
}

@media (max-width: 780px) {
  .vw-lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .vw-lb__figure { padding: 56px 8px 40px; }
  /* On phones the arrows sit low on the sides; a swipe also works. */
  .vw-lb__nav {
    position: absolute;
    bottom: 6px;
    width: 56px;
    height: 56px;
    font-size: 48px;
  }
  .vw-lb__prev { left: 8px; }
  .vw-lb__next { right: 8px; }
}
.vw-lb:focus { outline: none; }
