/* ─── Lightbox Overlay ───────────────────────────────────── */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 248, 246, 0.97);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Inner container ────────────────────────────────────── */
.lightbox__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: calc(100vw - 200px);
}

/* ─── Navigation Strips ──────────────────────────────────── */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: var(--t-lg);
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  transition: color var(--ease);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--text);
}

.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }

/* ─── Image Panel ────────────────────────────────────────── */
.lightbox__image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 60vw;
  max-height: 80vh;
  min-width: 200px;
  min-height: 200px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
}

/* ─── Info Panel ─────────────────────────────────────────── */
.lightbox__info {
  width: 190px;
  flex: 0 0 190px;
  overflow-y: auto;
  align-self: center;
}

.lightbox__title {
  font-size: var(--t-md);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.lightbox__meta {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2px;
}

.lightbox__description {
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.75;
}

.lightbox__catalogue {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--t-sm);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 16px;
  cursor: pointer;
  background: none;
  font-family: inherit;
  text-transform: lowercase;
  transition: border-color var(--ease);
}

.lightbox__catalogue:hover {
  border-color: var(--text);
}

/* ─── Counter ────────────────────────────────────────────── */
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--t-sm);
  color: var(--muted);
  pointer-events: none;
}

/* ─── Close ──────────────────────────────────────────────── */
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: var(--t-md);
  color: var(--muted);
  cursor: pointer;
  z-index: 3;
  transition: color var(--ease);
  font-family: inherit;
  text-transform: lowercase;
}

.lightbox__close:hover {
  color: var(--text);
}

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lightbox {
    flex-direction: column;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .lightbox__inner {
    flex-direction: column;
    max-width: 100%;
    gap: 16px;
    padding: 60px 16px 60px;
    width: 100%;
  }

  .lightbox__image {
    max-width: 100%;
    max-height: 50vh;
    width: 100%;
    min-width: 0;
  }

  .lightbox__info {
    width: 100%;
    flex: none;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
  }
}
