/* Featured YouTube Video Page Builder block.
 * Isolated from the main theme bundle and safe for multiple instances.
 */
.featured-youtube-video {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flow-root;
  isolation: isolate;
  overflow: visible;
  position: relative;
  z-index: var(--fyv-z-index, 100);
}

.featured-youtube-video__section-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.featured-youtube-video__container {
  margin-bottom: var(--fyv-margin-bottom-mobile, 0px);
  margin-top: var(--fyv-margin-top-mobile, -65px);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.featured-youtube-video__inner {
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  position: relative;
  width: 100%;
  z-index: 1;
}

.featured-youtube-video__inner--narrow {
  max-width: 870px;
}

.featured-youtube-video__inner--wide {
  max-width: 1100px;
}

.featured-youtube-video__inner--full {
  max-width: 100%;
}

.featured-youtube-video__link {
  color: #fff;
  display: block;
  text-decoration: none;
}

.featured-youtube-video__link:focus-visible {
  outline: 3px solid #dcbea0;
  outline-offset: 5px;
}

.featured-youtube-video__card {
  aspect-ratio: var(--fyv-aspect-ratio, 16 / 9);
  background: #1c1c1c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  min-height: 310px;
  backface-visibility: hidden;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: box-shadow 0.35s ease;
}

.featured-youtube-video__picture,
.featured-youtube-video__picture::before,
.featured-youtube-video__card-overlay {
  inset: 0;
  position: absolute;
}

.featured-youtube-video__picture {
  display: block;
  margin: 0;
}

.featured-youtube-video__image {
  display: block;
  height: 100%;
  backface-visibility: hidden;
  object-fit: cover;
  transform: translateZ(0) scale(1.005);
  transform-origin: center;
  transition: transform 0.55s ease;
  width: 100%;
}

.featured-youtube-video__card-overlay {
  background: linear-gradient(0deg, var(--fyv-card-overlay, rgba(28, 28, 28, 0.42)) 10%, rgba(28, 28, 28, 0.08) 62%, rgba(28, 28, 28, 0.03) 100%);
  transition: background 0.35s ease, opacity 0.35s ease;
  z-index: 1;
}

.featured-youtube-video__content {
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  left: 0;
  padding: 0 20px 25px;
  position: absolute;
  right: 0;
  z-index: 3;
}

.featured-youtube-video__heading {
  align-items: center;
  column-gap: 10px;
  display: flex;
  position: relative;
}

.featured-youtube-video__heading::before {
  background: linear-gradient(90deg, rgba(28, 28, 28, 0.88) 0%, rgba(28, 28, 28, 0) 100%);
  content: "";
  height: calc(100% + 14px);
  left: -20px;
  position: absolute;
  width: min(100%, 760px);
  z-index: -1;
}

.featured-youtube-video__icon {
  flex: 0 0 36px;
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.featured-youtube-video__title {
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.featured-youtube-video__description {
  max-width: 760px;
}

.featured-youtube-video__description p {
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.featured-youtube-video__action {
  align-self: flex-start;
  pointer-events: none;
}

.featured-youtube-video__play {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  display: flex;
  height: 68px;
  justify-content: center;
  left: 50%;
  opacity: 0.94;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 68px;
  z-index: 4;
}

.featured-youtube-video__play::before {
  border-bottom: 11px solid transparent;
  border-left: 19px solid #1c1c1c;
  border-top: 11px solid transparent;
  content: "";
  margin-left: 5px;
}

.featured-youtube-video__link:hover .featured-youtube-video__card,
.featured-youtube-video__link:focus-visible .featured-youtube-video__card {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.featured-youtube-video__link:hover .featured-youtube-video__image,
.featured-youtube-video__link:focus-visible .featured-youtube-video__image {
  transform: translateZ(0) scale(1.04);
}

.featured-youtube-video__link:hover .featured-youtube-video__card-overlay,
.featured-youtube-video__link:focus-visible .featured-youtube-video__card-overlay {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.08) 0%, var(--fyv-card-hover-overlay, rgba(28, 28, 28, 0.68)) 100%);
}

.featured-youtube-video__link:hover .featured-youtube-video__play,
.featured-youtube-video__link:focus-visible .featured-youtube-video__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.featured-youtube-video-modal .mfp-content {
  max-width: 1100px;
  width: calc(100% - 32px);
}

.featured-youtube-video-modal .mfp-iframe-scaler {
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  height: 0;
  overflow: visible;
  padding-top: 56.25%;
  position: relative;
}

.featured-youtube-video-modal .mfp-iframe {
  background: #000;
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.featured-youtube-video-modal .mfp-close {
  color: #fff;
  font-size: 38px;
  opacity: 1;
  right: 0;
  top: -46px;
}

.mfp-bg.featured-youtube-video-modal {
  opacity: 0;
  transition: opacity 0.24s ease;
}

.mfp-bg.featured-youtube-video-modal.mfp-ready {
  opacity: 0.9;
}

.mfp-bg.featured-youtube-video-modal.mfp-removing {
  opacity: 0;
}

.mfp-wrap.featured-youtube-video-modal .mfp-content {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mfp-wrap.featured-youtube-video-modal.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mfp-wrap.featured-youtube-video-modal.mfp-removing .mfp-content {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
}

@media (min-width: 768px) {
  .featured-youtube-video__container {
    margin-bottom: var(--fyv-margin-bottom-tablet, 0px);
    margin-top: var(--fyv-margin-top-tablet, -135px);
  }

  .featured-youtube-video__content {
    gap: 20px;
    padding: 0 36px 32px;
  }

  .featured-youtube-video__heading {
    column-gap: 16px;
  }

  .featured-youtube-video__heading::before {
    left: -36px;
  }

  .featured-youtube-video__play {
    height: 84px;
    width: 84px;
  }

  .featured-youtube-video__play::before {
    border-bottom-width: 14px;
    border-left-width: 24px;
    border-top-width: 14px;
    margin-left: 7px;
  }
}

@media (min-width: 1200px) {
  .featured-youtube-video__container {
    margin-bottom: var(--fyv-margin-bottom-desktop, 0px);
    margin-top: var(--fyv-margin-top-desktop, -135px);
  }
}

@media (max-width: 767px) {
  .featured-youtube-video__container.container {
    margin-top: calc(var(--fyv-margin-top-mobile, -65px) + 30px);
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
  }

  .featured-youtube-video__inner,
  .featured-youtube-video__inner--narrow,
  .featured-youtube-video__inner--wide,
  .featured-youtube-video__inner--full,
  .featured-youtube-video__link {
    max-width: 100%;
    width: 100%;
  }

  .featured-youtube-video__card {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    max-width: 100%;
    width: 100%;
  }

  .featured-youtube-video__description p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-youtube-video__card,
  .featured-youtube-video__image,
  .featured-youtube-video__card-overlay,
  .featured-youtube-video__play,
  .mfp-wrap.featured-youtube-video-modal .mfp-content {
    transition: none;
  }
}
