/* ── GALLERY PAGE LIGHTBOX & CARD HOVER ── */

/* Overlay backdrop */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#lightbox-overlay.open {
  display: flex;
}

/* Modal panel */
.lightbox-modal {
  position: relative;
  background: #1B2B4B;
  border: 1px solid rgba(212, 98, 42, 0.35);
  border-radius: 12px;
  width: min(960px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 98, 42, 0.4);
  color: #fff;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-close:hover { background: #D4622A; }

/* Slider side */
.lightbox-visual {
  position: relative;
  overflow: hidden;
  background: #0d1929;
  min-height: 340px;
}
.lightbox-before,
.lightbox-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-before { background: linear-gradient(145deg, #0d1117 0%, #1a1a2e 100%); }
.lightbox-after  { background: linear-gradient(145deg, #1B2B4B 0%, #243858 100%); }
.lightbox-before svg,
.lightbox-after svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Slider divider */
.lightbox-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #D4622A;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}
#lb-divider svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Info side */
.lightbox-info {
  padding: 28px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox-info .gallery-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4622A;
  background: rgba(212, 98, 42, 0.12);
  border: 1px solid rgba(212, 98, 42, 0.3);
  border-radius: 4px;
  padding: 3px 9px;
  display: inline-block;
  width: fit-content;
}
#lb-title {
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}
.lightbox-location {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
.lightbox-scope-wrap h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4622A;
  margin: 0 0 6px;
}
.lightbox-scope-wrap p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 0;
}
.lightbox-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lightbox-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
.lightbox-detail-card .detail-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.before-detail .detail-label { color: #888; }
.after-detail  .detail-label { color: #D4622A; }
.lightbox-detail-card .detail-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  margin: 0;
}
.lightbox-cta { margin-top: auto; }
.lightbox-cta .btn-primary {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Gallery card hover overlay */
.gallery-card {
  cursor: pointer;
}
.gallery-card .gallery-img-area {
  position: relative;
  overflow: hidden;
}
.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 98, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.gallery-card:hover .gallery-hover-overlay,
.gallery-card:focus-visible .gallery-hover-overlay {
  opacity: 1;
}
.gallery-hover-overlay span {
  color: #fff;
  font-family: var(--font-head, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-modal {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 92vh;
  }
  .lightbox-visual {
    min-height: 220px;
  }
  .lightbox-info {
    padding: 20px 18px 20px;
  }
  .lightbox-details-grid {
    grid-template-columns: 1fr;
  }
}
