/* =====================================================
   VINCITORE DESIGN -- VIDEO PROJECT PAGE STYLES
   ===================================================== */

/* ── HERO SECTION: TEXT LEFT + VIDEO RIGHT ─────────── */
.vp-hero-section {
  padding: 5rem 0 4rem;
  background: var(--white);
  border-top: 1px solid var(--light-grey);
}

.vp-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* TEXT COLUMN */
.vp-text-col {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.vp-text-block { display: flex; flex-direction: column; gap: .85rem; }

.vp-section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--light-grey);
  margin-bottom: .25rem;
}

.vp-lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
}

.vp-text-block p {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.8;
}


/* ── FEATURED VIDEO THUMBNAIL ──────────────────────── */
.vp-featured-video {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

/* Shared thumbnail wrapper styles */
.video-thumb-wrap {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  display: block;
  aspect-ratio: 16 / 9;
}

/* Thumbnail image */
.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease), filter .3s;
}
.video-thumb-wrap:hover .video-thumb-img {
  transform: scale(1.03);
  filter: brightness(.85);
}

/* Fallback placeholder */
.video-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1917;
  color: rgba(255,255,255,.25);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

/* Play button */
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  pointer-events: none;
}
.video-thumb-wrap:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
/* Smaller play button for grid cards */
.play-btn--sm {
  width: 44px; height: 44px;
}

/* Video label bar at bottom of featured thumbnail */
.video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.vl-eyebrow {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.vl-title {
  font-size: .9rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}


/* ── VIDEO GRID SECTION ────────────────────────────── */
.vp-grid-section {
  padding: 4rem 0 6rem;
  background: var(--off-white);
  border-top: 1px solid var(--light-grey);
}

.vp-grid-heading {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* 4 columns, 2 rows for up to 8 videos */
.vp-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vp-vid-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.vp-vid-card .video-thumb-wrap {
  border-radius: var(--radius);
}

/* Wistia popover cards — wrap the <a> in a relative container
   so we can overlay a CSS play button on top of the image     */
.vp-vid-card a {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;             /* removes gap below inline img */
  cursor: pointer;
}

/* The image itself */
.vp-vid-card a img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .3s;
}
.vp-vid-card a:hover img {
  transform: scale(1.04);
  filter: brightness(.75);
}

/* Dark overlay on hover */
.vp-vid-card a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .3s;
  z-index: 1;
  border-radius: var(--radius-lg);
}
.vp-vid-card a:hover::before { opacity: 1; }

/* Play button circle — always visible, scales on hover */
.vp-vid-card a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1917'%3E%3Cpolygon points='7,4 21,12 7,20'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(0,0,0,.28);
  z-index: 2;
  transition: transform .25s var(--ease), background-color .2s;
}
.vp-vid-card a:hover::after {
  transform: translate(-50%, -50%) scale(1.12);
  background-color: var(--white);
}

.vp-vid-title {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  padding: 0 .1rem;
}


/* ── VIDEO LIGHTBOX ────────────────────────────────── */
.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,9,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.video-lightbox:not([hidden]) {
  opacity: 1;
}
/* Keep hidden state working */
.video-lightbox[hidden] {
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  transition: color .2s, transform .2s;
  z-index: 10;
}
.lightbox-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.lightbox-inner {
  width: 100%;
  max-width: 1100px;
}

.lightbox-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;   /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}
.lightbox-iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}


/* ── HERO QUOTE / IMAGE BLOCK ──────────────────────────
   Sits below the hero video+text section.
   On desktop: full width below both columns.
   On mobile:  appears after the text (below overview text).

   TO USE:
   Option A — Quote only:     add class  vp-below--quote
   Option B — Image only:     add class  vp-below--image
   Option C — Quote + Image:  use both inner elements

   See project_video.html for the HTML to paste in.
   ──────────────────────────────────────────────────── */
.vp-below-hero {
  padding: 3rem 0 0;
}

/* Option A: full-width quote */
.vp-below-quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  max-width: 760px;
}
.vp-below-quote p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: .85rem;
}
.vp-below-quote cite {
  font-size: .7rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Option B: full-width image below hero
   Recommended image size: 1400 x 700px, landscape */
.vp-below-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-grey);
  max-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-below-image img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  display: block;
}
.vp-below-image-fallback {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--text-muted);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

/* Option C: side-by-side quote + image */
.vp-below-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}


/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .vp-video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .vp-hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .vp-text-col {
    /* Text appears AFTER the video on mobile */
    order: 2;
  }
  .vp-featured-video {
    position: static;
    order: 1;                    /* video thumbnail appears first */
  }
  .vp-video-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-inner { max-width: 100%; }

  /* Below-hero block: stack on mobile */
  .vp-below-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* On mobile the quote/image appears after the text */
  .vp-below-hero { order: 3; }
}

@media (max-width: 480px) {
  .vp-video-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .play-btn--sm { width: 36px; height: 36px; }
  .video-lightbox { padding: 1rem; }
}