
/* Full-image project lightbox */
.lightbox-enabled {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(20, 17, 15, 0.93);
  color: #faf5ed;
}

.image-lightbox.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.image-lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 18px;
}

.image-lightbox__counter {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.image-lightbox__close,
.image-lightbox__arrow {
  appearance: none;
  border: 0;
  background: rgba(250, 245, 237, 0.10);
  color: #faf5ed;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible,
.image-lightbox__arrow:hover,
.image-lightbox__arrow:focus-visible {
  background: rgba(250, 245, 237, 0.22);
}

.image-lightbox__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.image-lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 0 74px;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
}

.image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1800px);
  max-height: calc(100vh - 126px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

.image-lightbox__image.is-zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.image-lightbox__arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.image-lightbox__arrow--prev { left: 16px; }
.image-lightbox__arrow--next { right: 16px; }
.image-lightbox__arrow:hover { transform: translateY(-50%) scale(1.04); }

.image-lightbox__caption {
  min-height: 48px;
  margin: 0;
  padding: 10px 72px 14px;
  text-align: center;
  font-size: 13px;
  opacity: 0.82;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .image-lightbox__stage { padding: 0 44px; }
  .image-lightbox__arrow {
    width: 38px;
    height: 54px;
    font-size: 30px;
  }
  .image-lightbox__arrow--prev { left: 6px; }
  .image-lightbox__arrow--next { right: 6px; }
  .image-lightbox__caption { padding-inline: 46px; }
}
