body, figure {
  margin: 0;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html, body {
  overflow: hidden;
}

body {
  color: black;
  font-family: "Pretendard Variable", Pretendard, "Pretendard JP", Arial, sans-serif;
  background-color: #fafafa;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.slideshow-container {
  position: relative;
  max-width: 90%;
  margin: 5.3vh auto;
  height: 85vh;
  height: 85dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: 100%;
  height: 85vh;
  height: 85dvh;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.slide.active {
  display: flex;
}

.slide figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide figure img {
  max-width: var(--w, 100%);
  max-height: 85vh;
  max-height: 85dvh;
}

.slide figcaption {
  font-weight: 400;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  line-height: 1.8;
  margin-top: 2rem;
  width: 100%;
  min-height: 1.2em;
}

.slide figcaption:empty {
  visibility: hidden;
}

.slide.no-captions figcaption {
  min-height: 0;
  margin-top: 0;
  visibility: visible;
}

.slide.no-captions figcaption:empty {
  display: none;
}

figcaption span {
  font-weight: 500;
}

.slide-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 100;
}

.slide-nav.prev {
  left: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='15,17 7,12 15,7'%3E%3C/polyline%3E%3C/svg%3E"), auto;
}

.slide-nav.next {
  right: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='9,17 17,12 9,7'%3E%3C/polyline%3E%3C/svg%3E"), auto;
}

/*--------------- Media Queries ---------------*/

@media screen and (max-width: 780px) {
  .slideshow-container {
    max-width: 95%;
    margin: 0 auto;
    height: calc(100dvh - 30px);
  }

  .slide-nav {
    bottom: 40px;
  }

  .slide {
    flex-direction: column;
  }

  .slide figure {
    padding-bottom: 1.5em;
  }

  .slide figure img {
    max-height: 85dvh;
    max-width: var(--w, 90vw);
  }

  .slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 3vh;
  }

  .slide figcaption:empty {
    display: none;
  }
}

@media screen and (max-width: 780px) and (orientation: landscape) {
  .slideshow-container {
    max-width: 90%;
    margin: 9vh auto;
    height: 88vh;
    height: 88dvh;
  }

  .slide {
    flex-direction: row;
    gap: 20px;
  }

  .slide figure {
    padding-bottom: 0;
  }

  .slide figure img {
    max-height: 70vh;
    max-height: 70dvh;
    max-width: var(--w, none);
  }

  .slide.s1 figure {
    max-width: 65%;
  }

  .slide figcaption {
    position: static;
    font-size: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 781px) {
  .slide.s1 figure {
    max-width: 80%;
  }

  .slide.s2h figure {
    max-width: 45%;
    min-width: 200px;
  }

  .slide.s2v {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .slide.s2v figure {
    max-width: 35%;
    min-width: 200px;
  }

  .slide.s2v figure figcaption:empty {
    display: none;
  }
}

@media screen and (min-width: 1367px) {
  .slideshow-container {
    margin: 7vh auto;
  }
}

@media screen and (min-width: 3000px) {
  .slideshow-container {
    margin: 8vh auto;
  }

  .slide {
    gap: 70px;
  }

  .slide figcaption {
    font-size: 1rem;
    margin-top: 3rem;
  }
}