/**
 * Poster Wrapper
 */

.poster-wrapper {
  position: relative;
  z-index: 1;
  padding: 3.75rem 1rem;
}
.poster-wrapper::before {
  content: "";
  background-color: var(--color-primary-dark);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 555px;
  z-index: -1;
}
.poster-wrapper__text {
  color: var(--color-white);
  margin: 0 0 1.5rem;
}
.poster-wrapper__text h2 {
  margin: 0 0 0.75rem 0;
  line-height: normal;
}
.poster-wrapper__text p {
  margin: 0.75rem auto;
  max-width: 430px;
}
.poster-wrapper__items {
  display: grid;
  gap: 2rem;
  justify-content: center;
}
@media all and (min-width: 600px) {
  .poster-wrapper__text {
    margin: 0 0 3rem;
  }
  .poster-wrapper__items {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, calc(50% - 1rem));
    grid-template-areas: "a b" "c c";
    justify-content: center;
  }
  .poster-wrapper__items .poster:nth-child(1) {
    grid-area: a;
  }
  .poster-wrapper__items .poster:nth-child(2) {
    grid-area: b;
  }
  .poster-wrapper__items .poster:nth-child(3) {
    grid-area: c;
  }
}
@media all and (min-width: 1300px) {
  .poster-wrapper {
    padding: 4rem 1rem 10rem;
  }
  .poster-wrapper__text {
    margin: 0 0 4rem;
  }
  .poster-wrapper__items {
    grid-template-columns: repeat(3, calc(33.333% - 1.3333rem));
    grid-template-areas: "a b c";
  }
  .poster-wrapper__items .poster:nth-child(1) {
    transform: translateY(1rem);
  }
  .poster-wrapper__items .poster:nth-child(2) {
    transform: translateY(5rem);
  }
}

/**
 * Poster
 */

.poster {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 5px;
  transition: 0.1s;
  max-width: 327px;
  margin: 0 auto;
}
.poster::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 73.59%);
}
.poster__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 1.5rem 2.9rem;
}
.poster__title {
  color: var(--color-white);
  font-size: var(--title-m);
  font-weight: 700;
  line-height: normal;
}
.poster__subtitle {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
}
.poster:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 73.59%);
}
@media all and (min-width: 768px) {
  .poster {
     max-width: 420px;
  }
}
@media all and (min-width: 1000px) {
  .poster__content {
    padding: 0 2.9rem 4.5rem;
  }
}
