html, body { height: 100%; }
body { margin: 0; }

/* Section title (same style as section-8-grid Logo Design) */
.content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  min-height: 100vh;
}
.section-title {
  flex-shrink: 0;
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #b0b0b0;
  text-transform: uppercase;
}
.content .stage {
  flex: 1;
  min-height: 0;
  height: auto;
  width: 100%;
}

:root {
  --perspective: 1800px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  perspective: var(--perspective);
  overscroll-behavior: none;
  user-select: none;
}

#bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(24px) saturate(1.05);
  pointer-events: none;
}

.stage.carousel-mode { touch-action: none; cursor: grab; }
.stage.carousel-mode.dragging { cursor: grabbing; }

.cards {
  position: absolute;
  inset: 0;
  z-index: 10;
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  height: min(45vh, 380px);
  width: auto;
  aspect-ratio: 5/2;
  max-width: min(90vw, 1200px);
  border-radius: 15px;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter;
  transform-origin: 90% center;
  contain: layout paint;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  cursor: pointer;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  transition: opacity 0.3s, visibility 0.3s;
}
.loader--hide { opacity: 0; visibility: hidden; }
.loader__content { display: grid; gap: 12px; justify-items: center; color: #fff; }
.loader__ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid #333;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox for full image view */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
