/* Disable smooth scrolling to target for compatibility reason. */
@media screen and (max-width: 1024px) {
  html {
    scroll-behavior: unset;
  }
}

aside {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.t-tour__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .t-tour__nav {
    flex-direction: row;
    width: 100%;
    overflow: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .t-tour__nav li {
    flex: 1 0 auto;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.5);
  }

  .t-tour__nav li.v--active .t-tour__nav-title {
    margin-top: 0 !important;
  }
}

.t-tour__nav li {
  border-radius: 8px;
  border: 1px solid var(--color-black-100);
  overflow: hidden;
  transition: background-color 0.2s ease-in-out, margin-top 0.2s ease-in-out;
}

.t-tour__nav li:hover {
  background: var(--color-black-50);
}

.t-tour__nav li:not(.v--active) {
  background-color: var(--color-white) !important;
  border: 1px solid var(--color-black-100) !important;
}

.t-tour__nav li.v--active .t-tour__nav-index {
  color: var(--color-black) !important;
}

.t-tour__nav li.v--active.v--dark .t-tour__nav-index {
  color: var(--color-white) !important;
}

.t-tour__nav li.v--active .t-tour__nav-title {
  margin-top: 40px;
}

.t-tour__nav li.v--active.v--dark .t-tour__nav-title {
  color: var(--color-white) !important;
}

.t-tour__nav li a {
  display: flex;
  flex-direction: column;
  padding: 15px;
  color: initial;
  text-decoration: none !important;
}

@media screen and (max-height: 1000px) {
  .t-tour__nav li a {
    flex-direction: row;
  }

  .t-tour__nav li .t-tour__nav-title {
    margin: 0 !important;
    margin-left: 10px !important;
  }
}

.t-tour__nav li .t-tour__nav-index {
  display: block;
  color: #cbc3c7;
}

.t-tour__nav li .t-tour__nav-title {
  display: block;
  transition: all 0.2s ease-in-out;
}

.t-tour__section {
  padding-bottom: 6rem;
}

.t-tour__section:last-of-type {
  padding-bottom: 0 !important;
}

.t-tour__section-hero {
  scroll-margin-top: 120px;
}

@media screen and (max-width: 767px) {
  .t-tour__section-hero {
    scroll-margin-top: 80px;
    overflow: hidden;
  }

  .t-tour__section-hero .t-tour__section-hero-image {
    position: relative;
  }

  .t-tour__section-hero .t-tour__section-hero-image-overflow {
    display: block;
    overflow: auto;
  }

  .t-tour__section-hero .t-tour__section-hero-image-overflow img {
    width: auto;
    height: 380px;
    margin: 0 20px 20px 48px;
  }
}

.t-tour__section-hero:first-child {
  margin-top: 0 !important;
}

.t-tour__box {
  border: 1px solid var(--color-black-75);
  background-color: var(--color-black-50);
}

.t-tour__box.v--dark {
  background-color: var(--color-black-800);
  color: #fcfcfc;
}

.t-tour__box p:last-of-type {
  margin-bottom: 0 !important;
}

.t-tour__box .swiper-slide {
  display: block;
}

@media screen and (min-width: 1200px) {
  .t-tour__box .swiper-slide {
    width: 256px !important;
  }
}

.t-tour__box .swiper-next i,
.t-tour__box .swiper-prev i {
  background: black !important;
  color: white !important;
}

@media screen and (min-width: 1024px) {
  .t-tour__box .swiper-prev::before {
    content: "";
    position: absolute;
    display: block;
    width: 150px;
    height: 110%;
    background: linear-gradient(90deg, #f6f6f7 0%, #f6f6f7 50%, transparent 100%);
    z-index: -1;
  }

  .t-tour__box.v--dark .swiper-prev::before {
    background: linear-gradient(90deg, #29292f 0%, #29292f 50%, transparent 100%);
  }

  .t-tour__box .swiper-next::after {
    content: "";
    position: absolute;
    display: block;
    width: 150px;
    height: 110%;
    background: linear-gradient(90deg, transparent 0%, #f6f6f7 50%, #f6f6f7 100%);
    z-index: -1;
  }

  .t-tour__box.v--dark .swiper-next::after {
    background: linear-gradient(90deg, transparent 0%, #29292f 50%, #29292f 100%);
  }
}

.t-tour__image--ai::before {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #b99aff 100%);
  left: 0;
  right: 0;
  bottom: 0;
  height: 80%;
  z-index: -1;
}

@media screen and (min-width: 768px) {
  .t-tour__image--ai::before {
    background: url("top-flare.webp");
    bottom: calc(100% - 15px);
    height: 100px;
  }
}
