.max-width {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%); /* For modern browsers */
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* Prevents text wrapping */
}

video {
  background: url(../img/default-poster.jpg) center center;
  background-size: cover;
}

hr {
  background-color: var(--txt-muted);
  border: none;
  height: 27px;
  transform: skew(-10deg);
}

header {
  background-color: var(--txt-white-bright);
  height: calc(var(--height) * 2.3);
  padding-block: calc(var(--height) * 1) calc(var(--height) * 0.3);
  position: fixed;
  transition:
    background 0.3s,
    height 0.3s,
    padding 0.3s;
  width: 100%;
  z-index: 100;
}

.scrolled {
  --height: 44px;
}

header .logo {
  height: 100%;
}

header .max-width {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  padding-inline: 50px;
}

.button {
  background-color: var(--bg-darker);
  color: var(--txt-white);
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.25rem;
  text-decoration: none;
  padding: 0 2rem;
  margin: 0 1rem;
}

.button:hover {
  color: var(--accent-red);
}

.slanted {
  transform: skew(calc(var(--slant-angle) * -1));
}

.slanted span {
  display: inline-block;
  transform: skew(var(--slant-angle));
}

.site-footer {
  background-color: var(--bg-darker);
}

.columns {
  display: flex;
  gap: 40px;
}

.slide-switch {
  background-color: var(--bg-darker);
  color: var(--txt-grey);
  position: relative;
  width: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 2rem;
  line-height: 2rem;
  height: 2.5rem;
  transform: skew(-10deg);
  user-select: none;
  -webkit-user-select: none;
}
.slide-switch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background-color: var(--accent-red);
  transition: left 0.3s;
}
.slide-switch span:last-child {
  color: var(--txt-white-bright);
}
.slide-switch span {
  transform: skew(10deg);
  transition: color 0.3s;
}
.slide-switch-enabled span:first-child {
  color: var(--txt-white-bright);
}
.slide-switch-enabled span:last-child {
  color: var(--txt-grey);
}
.slide-switch-enabled::before {
  left: 0;
}
.slide-switch:hover span {
  color: var(--txt-white-bright);
}

#hero-container {
  background-color: var(--bg-darker);
  box-sizing: content-box;
  height: 800px;
  padding-top: calc(var(--height) * 2.3);
  transition: padding 0.3s;
  position: relative;
}

#hero-container .max-width {
  height: 100%;
  position: relative;
}

#hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

#seasons-section {
  background: url(../img/bg-GP.jpg) top center;
  background-size: cover;
  padding-block: 60px;
  position: relative;
}

#seasons-section .text-container {
  display: flex;
  gap: 50px;
  margin-bottom: 72px;
}

#seasons-section .text-container h2 {
  color: var(--txt-white-bright);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  margin-left: 50px;
  max-width: calc(10 / 24 * 100%); /* 10 columns of 24 column system */
}

#seasons-section .text-container p {
  color: var(--txt-white);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.4;
}

#seasons-section hr {
  --hr-left: calc(((100vw - var(--max-width)) / 2 + 50px) * -1);
  --hr-width: calc(100% * 9/24 + (((100vw - var(--max-width)) / 2 + 50px)));
  background-color: var(--accent-red);
  margin-bottom: 18px;
  position: relative;
  left: var(--hr-left);
  width: var(--hr-width);
}
#seasons-section hr:nth-of-type(2) {
  --hr-left: 58px;
  --hr-width: calc(100% * 21.3/24);
}
#seasons-section hr:nth-of-type(3) {
  --hr-left: 58px;
  --hr-width: calc(100% * 14.5/24);
  margin-bottom: 72px;
}

/* CAROUSEL STYLES BEGIN */
#seasons-carousel {
  --current-card: 1;
}
.seasons-carousel-cards-container {
  aspect-ratio: 1.7777;
  border: 12px solid var(--accent-red);
  width: 100%;
  position: relative;
}
#seasons-carousel-cards-strip {
  display: flex;
  position: relative;
  height: 100%;
  overflow: hidden;
}
#seasons-carousel-card-titles-strip {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: calc(32px + 1.875rem); /* 16px padding + title height */
}
.seasons-carousel-card {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  left: calc(-100% * (var(--current-card) - 1));
  transition: left 0.3s ease-in-out;
  object-fit: cover;
}
.seasons-carousel-card-title {
  color: var(--txt-white-bright);
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  margin: 16px 50px;
  position: relative;
  top: calc(-100% * (var(--current-card) - 1));
  transition: top 0.3s ease-in-out;
}
.seasons-carousel-controls-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.seasons-carousel-control-box {
  display: flex;
  margin-right: 10px;
  gap: 20px;
}
.seasons-carousel-control-box .carousel-button {
  background-color: var(--accent-red);
  background-color: var(--bg-darker);
  border: 4px solid var(--accent-red);
  color: var(--txt-grey);
  padding-inline: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 2rem;
  line-height: 2rem;
  height: 2.5rem;
  transform: skew(-10deg);
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.seasons-carousel-control-box .carousel-button:hover {
  background-color: var(--accent-red);
  color: var(--txt-white-bright);
}
#seasons-carousel-pages {
  display: flex;
  position: absolute;
  bottom: 30px;
  right: 30px;
  gap: 10px;
}
#seasons-carousel-pages .seasons-carousel-page {
  background-color: var(--txt-white);
  color: var(--bg-black);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: calc(1.25rem + 16px);
  width: calc(1.25rem + 32px);
  transform: skew(-20deg);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
#seasons-carousel-pages .seasons-carousel-page:hover {
  color: var(--accent-red);
}
#seasons-carousel-pages .seasons-carousel-page span {
  transform: skew(20deg);
}
#seasons-carousel-pages .seasons-carousel-page.active {
  background-color: var(--accent-red);
  color: var(--txt-white-bright);
}
/* CAROUSEL STYLES END */

#instagram-section {
  padding: 72px 0 100px;
  position: relative;
}
#instagram-section::before {
  content: '';
  background:
    url(../img/bg-Insta-gradient.png) no-repeat left top,
    url(../img/bg-white-noise.jpg);
  background-size: cover, auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(
    100% + 100px + 360px
  ); /* section height + section padding + next section mask cutout */
  z-index: -1;
}

#instagram-section .max-width {
  padding-inline: 50px;
}

#instagram-section h2 {
  font-family: var(--font-heading);
  font-size: 2.125rem;
  margin-bottom: 50px;
}

#instagram-section h2 span {
  display: block;
  font-family: var(--font-body);
  font-size: 1.875rem;
  font-weight: 400;
}

#youtube-section {
  background:
    url(../img/bg-YT-bars.png) bottom right,
    url(../img/bg-YT-mask.svg) top center;
  background-size: cover;
  padding-top: 30px;
  padding-bottom: 100px;
}

#youtube-section .max-width .text-container {
  margin: 50px;
  position: relative;
}

#youtube-section h2 {
  color: var(--txt-white-bright);
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 50px;
}

#youtube-section hr {
  left: calc(((100vw - var(--max-width)) / 2 + 50px) * -1);
  position: absolute;
  top: calc(4rem + 30px);
  width: calc(((100vw - var(--max-width)) / 2 + 50px) + 450px);
}

#youtube-section p {
  color: var(--txt-white);
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 400;
  margin-block: 1rem;
}

#yt-video-player {
  position: relative;
}

#youtube-section-video {
  border: 12px solid var(--bg-darker);
  width: 100%;
}

#hero-play-pause,
#yt-play-pause {
  position: absolute;
  right: 30px;
  bottom: 30px;
}
#yt-mute-button {
  position: absolute;
  left: 30px;
  bottom: 30px;
}

.site-footer-container {
  padding: 80px 50px;
}
.site-footer-logo {
  height: 30px;
  margin-bottom: 60px;
}

.site-footer-columns {
  display: flex;
  gap: 8px;
}

.footer-info,
.footer-socials {
  flex: 1;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p,
.footer-info p a,
.footer-socials p,
.footer-socials p a {
  color: var(--txt-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-info p a:hover,
.footer-socials p a:hover {
  color: var(--accent-red);
}

.footer-socials p a {
  font-size: 1rem;
}

.footer-socials-icon {
  display: inline-block;
  filter: brightness(0) invert(1);
  height: 1.875rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer-socials p a:hover .footer-socials-icon {
  filter: none;
}

  #instagram-section .swiper-pagination-bullet {
    background-color: var(--bg-darker) !important;
  }

  #instagram-section .swiper-pagination-bullet-active {
    background-color: var(--accent-red) !important;
  }

@media screen and (max-width: 576px) {
  :root {
    --max-width: 100vw;
  }

  .columns {
    flex-direction: column;
  }

  #hero-container {
    height: 50vh;
  }

  #instagram-section .columns {
    gap: 10px;
  }

  #instagram-section .columns .column .button {
    margin-bottom: 20px;
  }

  #seasons-section .max-width .text-container {
    flex-direction: column;
    padding-inline: 20px;
  }
  #seasons-section .max-width .text-container h2 {
    margin-left: 0;
    max-width: revert;
  }
  #seasons-section .seasons-carousel-controls-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  #seasons-carousel-pages .seasons-carousel-page {
    height: calc(1.25rem + 8px);
    width: calc(1.25rem + 16px);
  }

  #seasons-section
    .seasons-carousel-controls-container
    .seasons-carousel-control-box {
    /* flex-direction: column; */
    flex-wrap: wrap;
  }

  #seasons-section,
  #youtube-section {
    overflow-x: hidden;
  }

  #youtube-section .max-width .text-container hr {
    display: none;
  }
}
