.youtube-embed-block {
  padding: 72px var(--container-padding);
}

.youtube-embed-block__inner {
  width: min(100%, var(--container-max));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.youtube-embed-block__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0;
}

.youtube-embed-block__description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.youtube-embed-block__description h2,
.youtube-embed-block__description h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0;
}

.youtube-embed-block__description h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.youtube-embed-block__description h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.youtube-embed-block__description p {
  margin: 0;
}

.youtube-embed-block__description ul,
.youtube-embed-block__description ol {
  margin: 0;
  padding-left: 1.25rem;
}

.youtube-embed-block__description li + li {
  margin-top: 0.5rem;
}

.youtube-embed-block__description a {
  color: var(--color-brand-green);
  text-decoration: underline;
}

.youtube-embed-block__description a:hover {
  color: var(--color-brand-green-dark);
}

.youtube-embed-block__video {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-bottom: min(56.25%, 405px);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}

.youtube-embed-block__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-embed-block:has(+ .youtube-embed-block),
.youtube-embed-block + .youtube-embed-block {
  float: left;
  width: calc(var(--container-max) / 2);
  max-width: 50%;
  box-sizing: border-box;
  padding: 36px 16px;
}

.youtube-embed-block:has(+ .youtube-embed-block) {
  margin-left: max(0px, calc((100% - var(--container-max)) / 2));
}

.youtube-embed-block:has(+ .youtube-embed-block) .youtube-embed-block__inner,
.youtube-embed-block + .youtube-embed-block .youtube-embed-block__inner {
  width: 100%;
}

.youtube-embed-block:has(+ .youtube-embed-block) .youtube-embed-block__video,
.youtube-embed-block + .youtube-embed-block .youtube-embed-block__video {
  max-width: 100%;
  padding-bottom: 56.25%;
}

.youtube-embed-block + .youtube-embed-block + *:not(.youtube-embed-block) {
  clear: both;
}

@media (max-width: 599px) {
  .youtube-embed-block {
    padding: 56px var(--container-padding);
  }

  .youtube-embed-block__inner {
    gap: 20px;
  }

  .youtube-embed-block__description {
    font-size: 1rem;
  }

  .youtube-embed-block:has(+ .youtube-embed-block),
  .youtube-embed-block + .youtube-embed-block {
    float: none;
    width: 100%;
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
