/* Ghan House — single-room gallery lightbox */

.ghlb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  font-family: var(--sans, "DM Sans", system-ui, sans-serif);
}
.ghlb.is-open { display: block; }

.ghlb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 38, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: ghlbFade .25s ease;
}

.ghlb__stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 80px clamp(60px, 8vw, 120px);
  pointer-events: none;
}

.ghlb__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: ghlbPop .35s cubic-bezier(.2, .7, .3, 1);
}

.ghlb__cap {
  margin-top: 18px;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 240, 232, .8);
  text-align: center;
  max-width: 50ch;
  line-height: 1.5;
}

/* Buttons — all use the same base */
.ghlb__close,
.ghlb__prev,
.ghlb__next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(245, 240, 232, .08);
  border: 1px solid rgba(245, 240, 232, .25);
  color: rgba(245, 240, 232, .9);
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.ghlb__close:hover,
.ghlb__prev:hover,
.ghlb__next:hover {
  background: rgba(245, 240, 232, .18);
  border-color: rgba(245, 240, 232, .55);
  color: #fff;
}
.ghlb__close:focus-visible,
.ghlb__prev:focus-visible,
.ghlb__next:focus-visible {
  outline: 2px solid rgba(245, 240, 232, .6);
  outline-offset: 2px;
}
.ghlb__close svg,
.ghlb__prev svg,
.ghlb__next svg { width: 22px; height: 22px; }

.ghlb__close { top: 24px; right: 24px; }
.ghlb__prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
.ghlb__next  { top: 50%; right: 24px; transform: translateY(-50%); }
.ghlb__prev:hover { transform: translateY(-50%) translateX(-2px); }
.ghlb__next:hover { transform: translateY(-50%) translateX(2px); }

.ghlb__prev[disabled],
.ghlb__next[disabled] { opacity: 0; pointer-events: none; }

/* Animations */
@keyframes ghlbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ghlbPop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
  .ghlb__stage { padding: 70px 16px 70px; }
  .ghlb__close { top: 14px; right: 14px; }
  .ghlb__prev  { left: 8px; }
  .ghlb__next  { right: 8px; }
  .ghlb__close,
  .ghlb__prev,
  .ghlb__next { width: 40px; height: 40px; }
}
