@use 'utils/base' as *;

/* 동영상 목록 */
.media-primary {
  max-width: rem(1260);
}
.media-primary-content {
  margin-bottom: rem(36);
  padding-bottom: rem(36);
  border-bottom: 1px solid #b9b6b4;
}
.media-primary-video {
  margin-bottom: rem(24);
  aspect-ratio: 16 / 9;
}
.media-primary-title {
  width: calc(100% - rem(80));
}
.media-primary-btns {
  @include flex-center;
  width: rem(25);
  height: rem(40);
  &.media-primary-prev {
    transform: rotate(180deg);
  }
}
@media screen and (max-width: $breakpoint-lg) {
  .media-primary-content {
  }
}

.media-intro {
  margin-bottom: rem(60);
}
.media-items {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, rem(280)), 1fr));
  gap: rem(20);
  margin-bottom: rem(42);
}
.media-item-figure {
  position: relative;
  margin-bottom: rem(10);
  aspect-ratio: 1280 / 720;
}
.media-item-content {
  padding-bottom: rem(10);
}
.media-item-title {
  margin-bottom: rem(5);
}
@media screen and (max-width: $breakpoint-md) {
  .media-intro {
    margin-bottom: rem(40);
  }
  .media-item-figure {
    &::after {
      background-size: 10vw;
    }
  }
}
