/* ── Vertical Scroll Mode ────────────────────────────────────────────────── */
.vertical-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 2500; /* Over everything */
  background: var(--bg); /* Use solid bg to hide main content, but body::before still shows if we want */
}

/* Ensure the wine background is still visible behind the vertical container */
.vertical-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../wine.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.vertical-container::-webkit-scrollbar {
  display: none;
}

.vertical-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.vertical-card-wrapper {
  flex: 0 0 100vh;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 40px 20px;
}

/* Reuse Gallery Card styles but override scale/opacity for vertical context */
.vertical-card-wrapper .gallery-card {
  transform: scale(0.9);
  opacity: 0.4;
  filter: blur(4px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
              opacity 0.5s ease, 
              filter 0.5s ease;
  width: clamp(280px, 85vw, 420px);
  height: 75vh;
  max-height: 650px;
  margin: 0 auto;
}

.vertical-card-wrapper.active .gallery-card {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}

/* Vertical Side Dots */
.vertical-indicators {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3000;
  pointer-events: none;
}

.vi-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.vi-dot.active {
  height: 24px;
  border-radius: 4px;
  background: var(--accent);
}

/* ── Immersive Header & Toggle ─────────────────────────────────────────── */
.immersive-header {
  position: fixed;
  top: 24px;
  left: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.immersive-header > * { pointer-events: auto; }

.vertical-close {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.vertical-close:hover {
  background: rgba(78, 205, 196, 0.15);
  border-color: var(--accent);
}

.mode-sub-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px;
}

.sub-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 18px;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-mode-btn.active {
  background: var(--accent);
  color: #111;
}

/* Animations */
@keyframes cardSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.vertical-card-wrapper.active .gallery-card {
  animation: cardSlideUp 0.5s ease-out;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .vertical-indicators {
    right: 30px;
  }
}
