/**
 * Past Seasons Section - EXACT copy from gooey-hover-codrops-master
 */

/* Root Variables */
.section-past-seasons {
  --textColor: #fff;
  --bgColor: #010101;
}

.section-past-seasons {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #010101 !important;
  overflow: hidden;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

.section-past-seasons .message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .section-past-seasons .message {
    display: block;
  }
}

/* Canvas */
.section-past-seasons #past-seasons-scene {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Page Title */
.section-past-seasons .page-title {
  position: absolute;
  top: 9rem;
  left: 5vw;
  z-index: 1;
  white-space: nowrap;
  font-size: clamp(4rem, calc(4vw + 5rem), 12rem);
  line-height: .975;
  color: var(--textColor);
  opacity: .1;
  margin: 0;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  will-change: transform;
}

.section-past-seasons .title__offset {
  display: block;
  font-style: normal;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 600;
}

/* Content / Scrollarea */
.section-past-seasons .scrollarea-ctn {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100vh;
}

.section-past-seasons .scrollarea {
  height: 100%;
  overflow: hidden;
}

/* Progress Bar */
.section-past-seasons .slideshow__progress-ctn {
  overflow: hidden;
  position: absolute;
  bottom: 5%;
  left: calc(50% - 6.5rem);
  width: 13rem;
  height: .4rem;
  background-color: rgba(255, 255, 255, .2);
  border-radius: .4rem;
  will-change: transform;
  z-index: 10;
}

.section-past-seasons .slideshow__progress {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: .4rem;
  transform: translateX(-100%);
  will-change: transform;
}

/* Slideshow List */
.section-past-seasons .slideshow-list {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 9rem 10vw 5rem 5vw;
}

.section-past-seasons .slideshow-list__el {
  flex: 0 0 auto;
  width: 100%;
  min-width: 25rem;
  max-width: 40vmin;
  margin-left: 15vw;
}

.section-past-seasons .slideshow-list__el:last-child {
  padding-right: 10vw;
  box-sizing: content-box;
}

/* Alternate vertical positions */
.section-past-seasons .slideshow-list__el:nth-child(odd) {
  transform: translateY(8vh);
}

.section-past-seasons .slideshow-list__el:nth-child(even) {
  transform: translateY(-8vh);
}

/* All text white */
.section-past-seasons .slideshow-list__el .tile__content { color: #fff; }

/* Tile */
.section-past-seasons .tile {
  position: relative;
}

.section-past-seasons .tile__fig {
  position: relative;
  width: 100%;
  margin: 0;
}

.section-past-seasons .tile__fig::before {
  content: '';
  display: block;
  padding-top: 136.36%;
}

.section-past-seasons .tile__img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .3s;
}

.section-past-seasons .tile__img.is-loaded {
  opacity: 0;
}

.section-past-seasons .tile__content {
  position: absolute;
  bottom: 3.6rem;
  left: 0;
  width: 100%;
  font-size: 1.4rem;
  transition: color .3s;
}

.section-past-seasons .tile:hover .tile__content {
  color: #fff;
}

.section-past-seasons .tile__title {
  margin: 0;
  margin-left: -10%;
  white-space: nowrap;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  line-height: 1.2;
}

.section-past-seasons .tile__title .title__offset {
  display: block;
  font-style: normal;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 600;
}

.section-past-seasons .tile__cta {
  display: block;
  margin-top: 2rem;
  margin-left: 6.4%;
  line-height: 1.5;
}

.section-past-seasons .btn-inline {
  display: inline-block;
  line-height: 1.5;
  border-bottom: .1rem solid;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.section-past-seasons .btn-inline:hover {
  opacity: 0.7;
}

/* Line Container for animations */
.section-past-seasons .line-ctn {
  display: block;
  overflow: hidden;
}

/* Detail View */
.section-past-seasons .detail-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.section-past-seasons .detail-view.is-visible {
  opacity: 1;
  visibility: visible;
}

.section-past-seasons .detail-view.is-interactive {
  pointer-events: auto;
}

.section-past-seasons .detail-view__inner {
  position: absolute;
  top: 50%;
  right: 5vw;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  color: #fff;
}

.section-past-seasons .close-detail {
  position: absolute;
  top: -60px;
  left: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition: transform 0.5s, opacity 0.5s;
}

.section-past-seasons .detail-view.is-visible .close-detail {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.section-past-seasons .close-detail__round {
  width: 50px;
  height: 50px;
}

.section-past-seasons .close-detail__path {
  fill: rgba(255,255,255,0.3);
}

.section-past-seasons .close-detail__back {
  font-family: var(--font-primary);
}

.section-past-seasons .detail-view__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  margin: 0 0 2rem;
  line-height: 1.1;
}

.section-past-seasons .detail-view__desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.section-past-seasons .detail-view__link {
  display: inline-block;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s, opacity 0.3s;
}

.section-past-seasons .detail-view__link:hover {
  border-color: #fff;
  opacity: 0.8;
}

/* Typography Classes */
.section-past-seasons .title {
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  font-style: normal;
}

.section-past-seasons .title--medium {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.section-past-seasons .title--large {
  font-size: clamp(2rem, 5vw, 4rem);
}

.section-past-seasons .title__offset--medium {
  font-size: inherit;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
  .section-past-seasons .slideshow-list__el {
    margin-left: 20vw;
  }

  .section-past-seasons .tile__title {
    margin-left: -45%;
  }

  .section-past-seasons .tile__cta {
    margin-left: -11%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .section-past-seasons .slideshow-list__el {
    max-width: 35vmin;
  }
}

@media (max-width: 900px) {
  .section-past-seasons .page-title {
    font-size: clamp(3rem, calc(3vw + 4rem), 8rem);
    top: 7rem;
  }

  .section-past-seasons .slideshow-list__el {
    max-width: 45vmin;
  }

  .section-past-seasons .detail-view__inner {
    width: 50%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-past-seasons .page-title {
    font-size: calc(2vw + 4rem);
    top: 5rem;
  }

  .section-past-seasons .slideshow-list {
    padding: 6rem 2rem 3rem;
  }

  .section-past-seasons .slideshow-list__el {
    min-width: 18rem;
    max-width: 70vw;
    margin-left: 8vw;
  }

  .section-past-seasons .slideshow-list__el:nth-child(odd),
  .section-past-seasons .slideshow-list__el:nth-child(even) {
    transform: none;
  }

  .section-past-seasons .tile__title {
    margin-left: -5%;
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .section-past-seasons .tile__cta {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  .section-past-seasons .slideshow__progress-ctn {
    bottom: 3%;
    width: 10rem;
    left: calc(50% - 5rem);
  }

  .section-past-seasons .detail-view__inner {
    width: 90%;
    right: 5%;
    max-width: none;
    padding: 0 1rem;
  }

  .section-past-seasons .detail-view__title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .section-past-seasons .detail-view__desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-past-seasons .close-detail {
    top: -50px;
    font-size: 0.8rem;
  }

  .section-past-seasons .close-detail__round {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .section-past-seasons .page-title {
    font-size: calc(1vw + 3rem);
    top: 4rem;
    left: 3vw;
  }

  .section-past-seasons .slideshow-list {
    padding: 5rem 1rem 2.5rem;
  }

  .section-past-seasons .slideshow-list__el {
    min-width: 16rem;
    max-width: 80vw;
    margin-left: 5vw;
  }

  .section-past-seasons .tile__content {
    bottom: 2.5rem;
    font-size: 1.2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-past-seasons .page-title,
  .section-past-seasons .slideshow__progress,
  .section-past-seasons .tile__img,
  .section-past-seasons .detail-view,
  .section-past-seasons .close-detail {
    transition: none !important;
    animation: none !important;
  }
}
