main {
  margin-top: 14.2rem;
}
@media (max-width: 992px) { main { margin-top: 13.3rem; } }
@media (max-width: 768px) { main { margin-top: 12rem; } }
@media (max-width: 480px) { main { margin-top: 10rem; } }

main .title-wrap {
  text-align: center;
  padding-top: clamp(4rem, 5vw, 10rem);
  margin-bottom: clamp(4rem, 5vw, 10rem);
}
main .title-wrap h1 {
  font-size: clamp(3rem, 3.5vw, 5rem);
  font-weight: 700;
}

main .category-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
main .category-wrap a {
  width: clamp(10rem, 10vw, 17rem);
  aspect-ratio: 17 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 1.6vw, 1.8rem);
  font-weight: 600;
  background: #f0f0f0;
  transition: background 0.3s;
}
main .category-wrap a:not(.active):hover {
  background: #dbdbdb; 
}
main .category-wrap a.active {
  background: #000;
  color: #fff;
}

main .gallery-wrap {
  margin: clamp(3rem, 3vw, 5rem) 0 clamp(5rem, 5vw, 10rem);
}
main .gallery-wrap ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem 2rem;
}
main .gallery-wrap ul li {
  min-width: 0;
  display: block;
  border: 1px solid #ddd;
  border-radius: 2rem;
  overflow: hidden;
}
main .gallery-wrap ul li .img-wrap {
  width: 100%;
  aspect-ratio: 385 / 292;
}
main .gallery-wrap ul li .img-wrap .gallery-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main .gallery-wrap ul li p {
  padding: clamp(1.5rem, 1.5vw, 2.8rem) clamp(1.5rem, 1.6vw, 3rem);
  font-size: clamp(1.6rem, 1.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 992px) {
  main .gallery-wrap ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  main .gallery-wrap ul {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  main .gallery-wrap ul {
    grid-template-columns: 1fr;
  }
}

/* Gallery Swiper */
main .gallery-wrap ul li .img-wrap {
  position: relative;
  overflow: hidden;
}
main .gallery-wrap ul li .img-wrap .gallery-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
main .gallery-wrap ul li .img-wrap .swiper-wrapper {
  height: 100%;
}
main .gallery-wrap ul li .img-wrap .swiper-slide {
  height: 100%;
}
main .gallery-wrap ul li .img-wrap .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
main .gallery-wrap ul li .img-wrap .arrow-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  padding: 0 1rem;
  pointer-events: none;
}
main .gallery-wrap ul li .img-wrap .arrow-wrap button {
  pointer-events: all;
  width: 3.2rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
main .gallery-wrap ul li .img-wrap .arrow-wrap button:hover {
  background: #000;
  border-color: transparent;
}
main .gallery-wrap ul li .img-wrap .arrow-wrap button img {
  width: .8rem;
  display: block;
  filter: invert(1);
}
main .gallery-wrap ul li .img-wrap .arrow-wrap button:hover img {
  filter: invert(0);
}

/* archive */
main .sec-festival .inner,
main .sec-preview .inner {
  display: flex;
  align-items: flex-start;
  gap: 10rem;
  margin-bottom: clamp(4rem, 5vw, 10rem);
}
main .sec-festival .title-box,
main .sec-preview .title-box {
  width: 100%;
  max-width: 400px;
}
main .sec-festival .title-box h2,
main .sec-preview .title-box h2 {
  font-size: clamp(2.5rem, 3.1vw, 5rem);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
main .sec-festival .title-box .download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.1vw, 2rem);
  width: 19.8rem;
  aspect-ratio: 198 / 70;
  background: #000;
  color: #fff;
  font-size: clamp(1.6rem, 1.6vw, 1.8rem);
  font-weight: 600;
  margin-top: clamp(3rem, 3vw, 5rem);
  transition: background 0.3s ease;
}
main .sec-festival .title-box .download:hover {
  background: #333;
}
main .sec-festival .title-box .download img {
  width: clamp(1.5rem, 1.5vw, 2rem);
  aspect-ratio: 1 / 1;
}
main .sec-festival .contents-box {
  flex-grow: 1;
}
main .sec-festival .contents-box ul {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
main .sec-festival .contents-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 7rem;
  padding: 3rem 5rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
}
main .sec-festival .contents-box ul li span {
  display: inline-block;
  min-width: 12rem;
  border: 1px solid #000;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  padding: 1.6rem 0;
}
main .sec-festival .contents-box ul li .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-grow: 1;
}
main .sec-festival .contents-box ul li .list p {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1.2rem;
  font-size: 2rem;
  line-height: 2;
}
main .sec-festival .contents-box ul li .list p i {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 100%;
  background: #000;
}


main .sec-slides {
  background: #e6eaf2;
}
main .sec-slides .slides-wrap {
  position: relative;
}
main .sec-slides .slides-wrap .slides {
  padding: clamp(4rem, 5vw, 10rem) 0;
  position: relative;
}
main .sec-slides .slides-wrap .swiper-slide {
  border: 1px solid #ddd;
  border-radius: 2rem;
  overflow: hidden;
}
main .sec-slides .slides-wrap .swiper-slide:hover img {
  transform: scale(1.1);
}
main .sec-slides .slides-wrap .swiper-slide .img-wrap {
  aspect-ratio: 530 / 742;
  overflow: hidden;
}
main .sec-slides .slides-wrap .swiper-slide .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
main .sec-slides .slides-wrap .swiper-slide .text-wrap {
  padding: 3rem;
  background: #fff;
}
main .sec-slides .slides-wrap .swiper-slide .text-wrap .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
main .sec-slides .slides-wrap .swiper-slide .text-wrap .title h2 {
  font-size: clamp(1.9rem, 1.9vw, 2.2rem);
  font-weight: 700;
  word-break: break-all;
  line-height: 1.3;
}
main .sec-slides .slides-wrap .swiper-slide .text-wrap .title .genre {
  display: inline-block;
  font-size: clamp(1.4rem, 1.4vw, 1.6rem);
  font-weight: 700;
  padding-bottom: .8rem;
  border-bottom: 2px solid #000;
}
main .sec-slides .slides-wrap .swiper-slide .text-wrap .info span {
  display: block;
  font-size: 1.6rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
main .sec-slides .slides-wrap .arrow-wrap button {
  width: 5rem;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  background: #059eb4;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
main .sec-slides .slides-wrap .arrow-wrap button  {
  background: #fff;
  border: 1px solid #000;
  transition: all 0.4s;
}
main .sec-slides .slides-wrap .arrow-wrap button:hover {
  background: #000;
}
main .sec-slides .slides-wrap .arrow-wrap button:hover img {
  filter: brightness(1);
}
main .sec-slides .slides-wrap .arrow-wrap button img {
  filter: brightness(0);
}
main .sec-slides .slides-wrap .arrow-wrap button.prev-btn {
  left: -2.5rem;
}
main .sec-slides .slides-wrap .arrow-wrap button.next-btn {
  right: -2.5rem;
}


main .sec-preview {
  padding-top: clamp(4rem, 5vw, 10rem);
}
main .sec-preview .contents-box {
  flex-grow: 1;
}
main .sec-preview .contents-box ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
main .sec-preview .contents-box ul li {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  padding: clamp(3rem, 3vw, 5rem);
}
main .sec-preview .contents-box ul li span {
  display: inline-block;
  font-size: clamp(1.8rem, 1.8vw, 2rem);
  font-weight: 700;
}
main .sec-preview .contents-box ul li p {
  font-size: clamp(1.8rem, 1.8vw, 2rem);
  line-height: 1.4;
}

@media (max-width: 1680px) {
  .sec-slides .inner {
    padding: 0 3rem;
  }
}

@media (max-width: 1440px) {
  main .sec-festival .inner, 
  main .sec-preview .inner {
    gap: 4rem;
  }
  main .sec-festival .title-box, 
  main .sec-preview .title-box {
    max-width: 300px;
  }
  main .sec-festival .contents-box ul li {
    padding: 2rem;
    gap: 4.5rem;
  }
  main .sec-festival .contents-box ul li span {
    font-size: 1.8rem;
    min-width: 10rem;
    padding: 1.2rem 0;
  }
  main .sec-festival .contents-box ul li .list p {
    font-size: 1.7rem;
  }
  main .sec-festival .title-box .download {
    width: 16rem;
  }
}

@media (max-width: 1080px) {
  main .sec-festival .inner, 
  main .sec-preview .inner {
    flex-direction: column;
  }
  main .sec-festival .title-box, 
  main .sec-preview .title-box {
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  main .sec-festival .contents-box,
  main .sec-preview .contents-box {
    width: 100%;
  }
  main .sec-festival .title-box .download {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  main .sec-slides .slides-wrap .arrow-wrap button {
    width: 4rem;
  }
  main .sec-slides .slides-wrap .arrow-wrap button.prev-btn {
    left: -2rem;
  }
  main .sec-slides .slides-wrap .arrow-wrap button.next-btn {
    right: -2rem;
  }
  main .sec-slides .slides-wrap .swiper-slide .text-wrap {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  main .sec-festival .title-box .download {
    width: 14rem;
  }
  main .sec-festival .contents-box ul li {
    flex-direction: column;
    gap: 1.8rem;
  }
  main .sec-festival .contents-box ul li .list {
    width: 100%;
  }
  main .sec-preview .contents-box ul {
    gap: 1.5rem;
  }
  main .sec-preview .contents-box ul li {
    gap: 1.5rem;
  }
}

@media (max-width: 580px) {
  main .sec-festival .inner, 
  main .sec-preview .inner {
    gap: 2.5rem;
  }
  main .sec-festival .title-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  main .sec-festival .title-box h2, 
  main .sec-preview .title-box h2 {
    letter-spacing: -.5px;
    white-space: initial;
  }
  main .sec-festival .title-box h2 br {
    display: none;
  }
  main .sec-festival .contents-box ul {
    gap: 2rem;
  }
  main .sec-festival .contents-box ul li .list {
    grid-template-columns: 1fr;
  }
  main .sec-preview .contents-box ul {
    grid-template-columns: 1fr;
  }
  main .sec-festival .contents-box ul li span {
    min-width: 100%;
  }
  main .sec-festival .contents-box ul li .list p {
    word-break: break-all;
  }
}