/* SWIPER */

section {
  grid-column: 2 / span 11;
  grid-row: 2 / span 4;
  display: flex;
  justify-content: center;
}

.swiper {
  position: relative;
  overflow: hidden;
  list-style: none;
  height: auto;
  box-sizing: border-box;
}

.swiper-slide {
  display: none;
  display: flex;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
}

.swiper-slide picture {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide picture img,
.swiper-slide picture video {
  /* display: block; */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.swiper-left .swiper-slide picture img,
.swiper-left .swiper-slide picture video {
  object-position: right;
}

.swiper-right .swiper-slide picture img,
.swiper-right .swiper-slide picture video {
  object-position: left;
}

#swiper-1 .swiper-slide {
  justify-content: flex-end;
}
#swiper-2 .swiper-slide {
  justify-content: flex-start;
}

.swiper-slide a {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.swiper-button-next,
.swiper-button-prev {
  height: calc(100% - calc(var(--gutter-width-y) * 2));
  margin: var(--gutter-width-y) 0;
  box-sizing: border-box;
  width: 10vw;
  top: 0;
  right: 0;
  color: var(--color-text);
}

#prev,
#next {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  justify-content: center;
}

.swiper-button-prev {
  left: 0;
  justify-content: right;
}

.swiper-button-next {
  justify-content: left;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  content: " ";
}

.swiper-left,
.swiper-right {
  width: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
}

#container-title-tag {
  padding-top: 1rem;
  width: 100%;
  grid-column: 2 / span 11;
  grid-row: 6;
}

#swiper-tags,
#swiper-titles {
  height: 0.9rem;
  width: 100%;
}

.swiper-wrapper {
  transform: translateX(0) !important;
}

@media screen and (max-width: 750px) {
  section {
    grid-column: 3 / span 14;
    grid-row: 3 / span 8;
  }

  #container-title-tag {
    grid-column: 3 / span 14;
    grid-row: 11;
  }

  .swiper-button-next,
  .swiper-button-prev {
    height: calc(100% - 10px);
  }

  #prev,
  #next {
    cursor: pointer;
  }

  .swiper {
    width: 100%;
  }

  .swiper-slide picture img,
  .swiper-slide picture video {
    display: block;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    object-fit: cover;
    width: auto;
    height: 90%;
  }

  #swiper-2 {
    visibility: hidden;
    width: 0;
  }

  #swiper-1 .swiper-slide,
  #swiper-2 .swiper-slide {
    justify-content: center;
  }

  #container-title-tag {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
