body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.72);
  cursor: pointer;
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 250, 220, 0.12);
}

.image-lightbox-caption {
  margin: 0;
  max-width: 42rem;
  text-align: center;
  color: #f5ecd8;
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9001;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #2a2218;
  background: linear-gradient(160deg, #faf6e8 0%, #e8dcc4 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.image-lightbox-close:hover {
  filter: brightness(1.05);
}

.js-lightbox-trigger {
  cursor: zoom-in;
}

.js-lightbox-trigger:focus-visible {
  outline: 2px solid rgba(216, 169, 72, 0.9);
  outline-offset: 3px;
}
