/**
 * YouTube section
 */

.home-yt {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background-color: #ffffff;
  color: #172248;
}

.home-yt .row.align-items-center {
  position: relative;
  z-index: 1;
}
.home-yt .row.align-items-center::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -3rem;
  width: 14rem;
  height: 14rem;
  background-image: url(../../images/shape-grey.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  pointer-events: none;
}

@media (max-width: 47.9988rem) {
  .home-yt .row.align-items-center::after {
    width: 10rem;
    height: 10rem;
  }
}
/*
 * VIDEO
 */

.home-yt__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #2c5aa9;
}

/*
 * PLAY TRIGGER
 */

.home-yt__trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: auto;
}

/*
 * CIRCULAR PLAY BUTTON
 */

.home-yt__play {
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.125rem solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

/*
 * PLAY ICON
 */

.home-yt__play-icon {
  width: 3rem;
  height: 3.5rem;
  display: block;
  margin-left: 0.5rem;
  fill: #ffffff;
}

/*
 * HOVER
 */

.home-yt__trigger:hover .home-yt__play {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: scale(1.04);
}

/*
 * KEYBOARD FOCUS
 */

.home-yt__trigger:focus-visible {
  outline: 0.1875rem solid #172248;
  outline-offset: 0.25rem;
}

/*
 * CONTENT
 */

.home-yt__content {
  padding: 0 0 0 4rem;
}

/*
 * EYEBROW / UPPER TITLE
 */

.home-yt__eyebrow {
  margin: 0 0 0.75rem;
  color: #2c5aa9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/*
 * TITLE
 */

.home-yt__title {
  max-width: 40rem;
  margin: 0;
  color: #172248;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}

/*
 * DESCRIPTION
 */

.home-yt__description {
  margin-top: 1.5rem;
  color: #172248;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/*
 * Links inside WYSIWYG
 */

.home-yt__description a {
  color: #172248;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

.home-yt__description a:hover {
  color: #2c5aa9;
}

/*
 * IFRAME
 *
 * Dodawany po kliknięciu przez JS.
 */

.home-yt__video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/*
 * TABLET / MOBILE
 */

@media (max-width: 61.99875rem) {
  .home-yt__content {
    padding: 2.5rem 0 0;
  }
}

/*
 * MOBILE
 */

@media (max-width: 35.99875rem) {
  .home-yt {
    padding: 4rem 0;
  }

  .home-yt__play {
    width: 8rem;
    height: 8rem;
  }

  .home-yt__play-icon {
    width: 2rem;
    height: 2.5rem;
    margin-left: 0.375rem;
  }
}
/*
 * REDUCED MOTION
 */

@media (prefers-reduced-motion: reduce) {
  .home-yt__play {
    transition: none;
  }
}
