/* ============================================
   BEATS BY BRAY — VR Gallery (3D Depth Grid)
   ============================================ */

.vr-gallery-section {
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.vr-gallery-header {
  text-align: center;
  padding: 0 2rem 2.5rem;
}

/* Viewport — perspective here creates the depth effect */
.vr-gallery-wrap {
  width: 100%;
  height: 680px;
  position: relative;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.vr-gallery-wrap:active { cursor: grabbing; }

/* Scene container — this rotates with mouse */
.vr-gallery-scene {
  transform-style: preserve-3d;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
}

/* Individual cards */
.vr-card {
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
}

.vr-card:hover {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

/* Card label on hover */
.vr-card::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}

.vr-card:hover::after { opacity: 1; }

/* Card inner */
.vr-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.vr-card:hover .vr-card-inner img { transform: scale(1.04); }

/* Placeholder */
.vr-card-inner.ph {
  background: #1e1e2a;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(232,232,240,0.35);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  border: 1px dashed rgba(255,255,255,0.1);
}

.vr-card-inner.ph span { font-size: 1.8rem; opacity: 0.25; }
.vr-card-inner.ph p   { margin: 0; }

/* ---- LIGHTBOX ---- */
.vr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vr-lightbox.open {
  pointer-events: all;
  opacity: 1;
}

.vr-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.vr-lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.vr-lightbox.open .vr-lightbox-content { transform: scale(1); }

.vr-lightbox-img {
  max-width: 80vw;
  max-height: 75vh;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.vr-lightbox-img img {
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.vr-lightbox-img .lb-ph {
  width: 560px;
  max-width: 80vw;
  height: 380px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(232,232,240,0.25);
  font-family: 'Outfit', sans-serif;
  gap: 1rem;
}

.vr-lightbox-img .lb-ph span { font-size: 3rem; opacity: 0.2; }

.vr-lightbox-label {
  color: #fff;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.4rem;
}

.vr-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  padding: 0;
}

.vr-lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}

/* ---- GALLERY PAGE SPECIFIC ---- */
.gallery-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(232,232,240,0.5);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
  font-family: 'Outfit', sans-serif;
}

.gallery-hero-back:hover { color: #fff; }

.vr-gallery-hint {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(232,232,240,0.35);
  margin-top: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

@media (max-width: 700px) {
  .vr-gallery-wrap { height: 420px; perspective: 600px; }
}
