.reusable-video .video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.video-wrapper__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    113deg,
    rgba(204, 0, 0, 0.7) 0%,
    rgba(15, 15, 16, 0.85) 100%
  );

  pointer-events: none;
}
.video-wrapper::before {
  background: linear-gradient(
    180deg,
    rgba(15, 15, 16, 0) 0%,
    rgba(15, 15, 16, 0.65) 100%
  );
  z-index: 1;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Play button — centered over the preview image */
.video-wrapper__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.3s;
}

.video-wrapper__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Video duration — top right corner */
.video-wrapper__duration {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.08px;
}

/* Bottom bar — text left, buttons right */
.video-wrapper__bottom {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
}

.video-wrapper__text {
  max-width: 560px;
  color: #fff;
}

.video-wrapper__text .h2__size {
  color: #fff;
  margin-bottom: 12px;
}

.video-wrapper__text .paragraph__16 {
  color: #fff;
}

.video-wrapper__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  /* Mobile: a tall card (Figma 650:944 ≈ 358×493) so the centered play button
     and the stacked title/buttons don't collide (the 21/9 ratio was ~154px). */
  .reusable-video .video-wrapper {
    aspect-ratio: auto;
    min-height: 493px;
  }
  /* Play button top-left (Figma 650:944), above the stacked title/buttons. */
  .video-wrapper__play {
    top: 24px;
    left: 24px;
    transform: none;
  }
  .video-wrapper__play:hover {
    transform: scale(1.06);
  }

  .video-wrapper__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .video-wrapper__buttons {
    width: 100%;
  }
  .video-wrapper__buttons a {
    width: 100%;
  }

  .video-wrapper__duration {
    top: 16px;
    right: 16px;
  }
}
.video-wrapper__text p {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.08px;
  line-height: 22.5px;
}

/* ===== Sidebar layout (video sits in the narrower col-lg-8) =====
   Smaller play button + tighter title/description per Figma. */
.reusable-default-content--has-sidebar .reusable-video .video-wrapper__play svg {
  width: 53px;
  height: 53px;
}
.reusable-default-content--has-sidebar .video-wrapper__text .h2__size {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.36px;
}
.reusable-default-content--has-sidebar .video-wrapper__text .paragraph__16,
.reusable-default-content--has-sidebar .video-wrapper__text .paragraph__16 p,
.reusable-default-content--has-sidebar .video-wrapper__text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.051px;
}
.video-wrapper__buttons a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

/* ===== Video modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-modal[hidden] {
  display: none;
}

.video-modal.is-open {
  opacity: 1;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 16, 0.85);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
}

.video-modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.video-modal__media video,
.video-modal__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .video-modal__close {
    top: -44px;
  }
}
