/* Virtual Tour Gallery — self-contained, no external font dependencies */

.vt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.vt-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
  background: #6c4f85;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.vt-item:hover img {
  transform: scale(1.07);
}

.vt-item .vt-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(108, 79, 133, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-item:hover .vt-hover-overlay {
  opacity: 1;
}

.vt-hover-overlay i {
  color: #fff;
  font-size: 32px;
}

/* Placeholder for missing images */
.vt-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 12px;
}

.vt-placeholder i {
  font-size: 38px;
  display: block;
  margin-bottom: 8px;
}

.vt-placeholder span {
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */

#vt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#vt-lightbox.active {
  display: flex;
}

#vt-lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#vt-lb-caption {
  color: rgba(255,255,255,0.75);
  font-family: 'Lora', serif;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

#vt-lb-missing {
  color: rgba(255,255,255,0.6);
  font-size: 1.1em;
  font-family: 'Nunito', sans-serif;
  text-align: center;
}

#vt-lb-missing i {
  display: block;
  font-size: 52px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.25);
}

#vt-lb-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  font-family: sans-serif;
  font-weight: 300;
  transition: opacity 0.2s;
}
#vt-lb-close:hover { opacity: 1; }

#vt-lb-prev,
#vt-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  padding: 12px 18px;
  border-radius: 4px;
  user-select: none;
  transition: background 0.2s;
  line-height: 1;
}
#vt-lb-prev:hover,
#vt-lb-next:hover { background: rgba(255,255,255,0.25); }
#vt-lb-prev { left: 12px; }
#vt-lb-next { right: 12px; }

#vt-lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
}

@media (max-width: 480px) {
  .vt-gallery { grid-template-columns: repeat(2, 1fr); }
  #vt-lb-prev { left: 4px; padding: 8px 12px; font-size: 26px; }
  #vt-lb-next { right: 4px; padding: 8px 12px; font-size: 26px; }
}
