/*
  Motion Case Study Pages
  ----------------------
  Styles specific to animation project detail pages
  (hero video, motion grid, captions, spacing)
*/

/* ===== HERO BANNER VIDEO (PRIMARY) ===== */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 58vh;           /* ensures video is visible */
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.50)
  );
  z-index: 1;                 /* sits above video, below text */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* background‑style behavior */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

/* ===== HERO VIDEO ===== */

.motion-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.motion-hero video {
  width: 100%;
  height: auto;
  display: block;
}


/* ===== INTRO TEXT ===== */

.case-intro {
  max-width: 900px;
  margin: 0 auto;
}

.case-intro h1 {
  line-height: 1.3;
}


/* ===== MOTION GALLERY GRID ===== */

.motion-grid {
  justify-content: center;
}

.motion-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000; /* prevents white gaps if aspect ratios vary */
}

.motion-caption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.4rem;
}


/* ===== HOVER FEEDBACK (subtle) ===== */

.motion-grid video {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.motion-grid video:hover {
  transform: scale(0.99);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}