.video-modal-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.video-modal-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-modal-section__video,
.video-modal-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-section__shade {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.5);
}

.video-modal-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1290px, calc(100% - var(--space-3xl)));
  min-height: 600px;
  margin: 0 auto;
  padding: 96px 0;
  align-items: center;
  justify-content: center;
}

.video-modal-section__panel {
  display: flex;
  width: 100%;
  padding: 96px 64px;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  background-color: rgba(22, 22, 22, 0.8);
  text-align: center;
}

.video-modal-section__title {
  width: 100%;
  margin: 0;
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: 0;
}

.video-modal-section__preview {
  width: min(715px, 100%);
  color: var(--color-bg-medium);
  font-family: var(--font-body);
  font-size: var(--fs-card-text);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  letter-spacing: 0;
}

.video-modal-section__preview p,
.video-modal-section__modal-copy p {
  margin: 0;
}

.video-modal-section__preview p + p,
.video-modal-section__modal-copy p + p {
  margin-top: var(--space-md);
}

.video-modal-section__button {
  margin-top: var(--space-xs);
  border: 0;
  cursor: pointer;
}

.video-modal-section__modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
}

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

.video-modal-section__modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.82);
}

.video-modal-section__modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - var(--space-3xl)));
  overflow: auto;
  padding: var(--space-3xl);
  background-color: var(--color-bg-card);
  color: var(--color-bg-medium);
}

.video-modal-section__modal-title {
  margin: 0 0 var(--space-xl);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: var(--fs-display-medium);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: 0;
}

.video-modal-section__modal-copy {
  color: var(--color-bg-medium);
  font-family: var(--font-body);
  font-size: var(--fs-section-text);
  line-height: 1.7;
}

.video-modal-section__modal-copy h3,
.video-modal-section__modal-copy h4,
.video-modal-section__modal-copy h5,
.video-modal-section__modal-copy h6 {
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: 0;
}

.video-modal-section__modal-copy h3 {
  font-size: var(--fs-h4);
}

.video-modal-section__modal-copy h4 {
  font-size: var(--fs-card-title);
}

.video-modal-section__modal-copy ul,
.video-modal-section__modal-copy ol,
.video-modal-section__modal-copy blockquote,
.video-modal-section__modal-raw,
.video-modal-section__modal-group,
.video-modal-section__modal-image,
.video-modal-section__modal-divider {
  margin-top: var(--space-lg);
}

.video-modal-section__modal-image {
  display: block;
  width: 100%;
  height: auto;
}

.video-modal-section__modal-divider {
  border: 0;
  border-top: 1px solid rgba(245, 242, 234, 0.16);
}

.video-modal-section__modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
}

.video-modal-section__modal-close::before,
.video-modal-section__modal-close::after {
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 2px;
  content: "";
  background-color: currentColor;
}

.video-modal-section__modal-close::before {
  transform: rotate(45deg);
}

.video-modal-section__modal-close::after {
  transform: rotate(-45deg);
}

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

@media (max-width: 768px) {
  .video-modal-section__inner {
    width: calc(100% - var(--space-xl));
    padding: var(--space-4xl) 0;
  }

  .video-modal-section__panel {
    padding: var(--space-3xl) var(--space-xl);
  }

  .video-modal-section__title {
    font-size: var(--fs-h4);
  }

  .video-modal-section__modal-panel {
    padding: var(--space-2xl) var(--space-xl);
  }
}
