/* =========================================================
   VIDEO / GALLERY SECTION
   ========================================================= */

.video-section {
  padding: 90px 0;
  background: var(--color-background, #f7f5f0);
}


/* ---------------------------------------------------------
   VIDEO SECTION HEADER
   --------------------------------------------------------- */

.video-section .section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


.video-section .section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.video-section h2 {
  margin: 0;
  max-width: 850px;
}


.video-section .section-intro {
  max-width: 700px;
  margin: 18px 0 36px;
}


/* ---------------------------------------------------------
   VIDEO CONTAINER
   --------------------------------------------------------- */

.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 1180px;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #111;

  border-radius: 18px;

  isolation: isolate;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.16);
}


/* ---------------------------------------------------------
   YOUTUBE THUMBNAIL
   --------------------------------------------------------- */

.youtube-thumbnail {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  z-index: 1;
}


/* ---------------------------------------------------------
   DARK OVERLAY
   --------------------------------------------------------- */

.youtube-video::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.20)
    );

  pointer-events: none;

  z-index: 2;
}


/* ---------------------------------------------------------
   PLAY BUTTON
   --------------------------------------------------------- */

.video-play {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 82px;
  height: 82px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);

  color: #111;

  cursor: pointer;

  z-index: 5;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.video-play span {
  display: block;

  margin-left: 4px;

  font-size: 1.8rem;

  line-height: 1;
}


.video-play:hover {
  transform:
    translate(-50%, -50%)
    scale(1.08);

  background: #ffffff;

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34);
}


.video-play:active {
  transform:
    translate(-50%, -50%)
    scale(0.96);
}


.video-play:focus-visible {
  outline: 3px solid currentColor;

  outline-offset: 5px;
}


/* ---------------------------------------------------------
   YOUTUBE IFRAME
   --------------------------------------------------------- */

.youtube-player {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  border: 0;

  background: #000;
}


/* ---------------------------------------------------------
   INVALID VIDEO MESSAGE
   --------------------------------------------------------- */

.youtube-video > p {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0;

  padding: 20px;

  color: #ffffff;

  text-align: center;

  background: #111;

  z-index: 10;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .video-section {
    padding: 75px 0;
  }


  .video-placeholder {
    border-radius: 15px;
  }


  .video-play {
    width: 74px;
    height: 74px;
  }


  .video-play span {
    font-size: 1.65rem;
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .video-section {
    padding: 60px 0;
  }


  .video-section .section-inner {
    width: min(
      100% - 28px,
      1180px
    );
  }


  .video-section .section-intro {
    margin-bottom: 25px;
  }


  .video-placeholder {
    aspect-ratio: 16 / 9;

    border-radius: 12px;

    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.14);
  }


  .video-play {
    width: 64px;
    height: 64px;
  }


  .video-play span {
    font-size: 1.45rem;
  }

}


/* ---------------------------------------------------------
   VERY SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 380px) {

  .video-play {
    width: 58px;
    height: 58px;
  }


  .video-play span {
    font-size: 1.3rem;
  }

}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .video-play {
    transition: none;
  }

}