/************************************************************/
/*********             WPBAKERY FIXES                 *******/
/************************************************************/
.container.single-page-container {
  padding: 0px !important;
  max-width: 100% !important;
}

.nv-single-page-wrap.col {
  margin: auto;
  padding: 0px !important;
}

.page-content-wrapper {
  padding: 0px !important;
  margin: auto !important;
}

.row {
  margin: auto !important;
}

.vc_section {
  margin: auto !important;
}

.vc_row {
  margin: 0px !important;
}

.vc_row.wpb_row.vc_row-fluid {
  margin: auto !important;
}

.vc_column-inner {
  padding: 0px !important;
}

.vc_grid-owl-next.vc_arrow-icon-arrow_02_right.vc_grid-nav-next-outside {
  margin-top: -30px !important;
  font-size: 50px !important;
  right: -60px !important;
  color: var(--salsa-watermelon) !important;
  opacity: 1 !important;
}

.vc_grid-owl-prev.vc_arrow-icon-arrow_02_left.vc_grid-nav-prev-outside {
  margin-top: -30px !important;
  font-size: 50px !important;
  left: -60px !important;
  color: var(--salsa-watermelon) !important;
  opacity: 1 !important;
}

.wpb_raw_code.wpb_content_element.wpb_raw_html {
  margin: 0px auto !important;
}

.wpb_images_carousel.wpb_content_element.vc_clearfix {
  margin: auto !important;
}

.wpb_text_column.wpb_content_element {
  margin: auto !important;
}

.wpb_button,
.wpb_content_element,
ul.wpb_thumbnails-fluid > li {
  margin-top: 20px;
  margin-bottom: 20px;
}

.wpb_text_column.wpb_content_element {
  margin: 0;
}

/************************************************************/
/*********             Template Styles                *******/
/************************************************************/
/* Fade in effects  */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section blocks */
section {
  padding: 35px;
  max-width: calc(1240px + 80px);
  margin: auto;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  section {
    padding: 30px;
  }
}

@media only screen and (max-width: 580px) {
  section {
    padding: 20px;
  }
}

/* Used for Video Highlights and Gallery headings */
.section-title {
  display: inline-block;
  text-align: center;
  margin: 0 auto 35px;
  border-bottom: solid;
  border-width: 5px;
}
@media only screen and (max-width: 580px) {
  .section-title {
    text-align: center;
    margin-bottom: 20px;
  }
}

section.description-section p {
  text-align: center;
  margin: auto !important;
}

/* Used for any custom heading tags (h1, h3) in the WordPress Builder */
.wp-section-title .wpb_wrapper h1 {
  font-size: 3.2rem;
  text-align: center;
  margin: 0 !important;
  padding: 0 10px;
}

@media only screen and (max-width: 768px) {
  .wp-section-title .wpb_wrapper h1 {
    text-align: center;
    margin: 35px 0 !important;
  }
}

.wp-section-title .wpb_wrapper h3 {
  text-align: center;
  margin-bottom: 40px !important;
}

@media only screen and (max-width: 580px) {
  .wp-section-title .wpb_wrapper h3 {
    text-align: center;
    margin-bottom: 20px !important;
  }
}

/* Used to style any custom WordPress Row to match section elements*/
.section-block {
  padding: 35px;
  margin: 0 auto;
  max-width: calc(1240px + 80px);
}

@media only screen and (max-width: 768px) {
  .section-block {
    padding: 30px;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 580px) {
  .section-block {
    padding: 20px;
    margin: 0 auto;
  }
}

/* Utility: Custom padding and margin classes; used to add more customizations for section blocks and headings on WP Builder*/
.pt-0 {
  padding-top: 0 !important;
}

.pt-5 {
  padding-top: 40px !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.mt-5 {
  margin-top: 40px !important;
}

/************************************************************/
/*********               Header                       *******/
/************************************************************/
#header-section {
  padding: 0;
  margin: auto;
  max-width: 100% !important;
}

@media only screen and (max-width: 768px) {
  #header-section {
    padding: 0px;
  }
}

/* Note: Update the header-banner padding in the WordPress CSS since EVERY banner are DIFFERENT sizes */
#header-banner {
  width: 100%;
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position-y: center !important;
  background-position-x: center !important;
  box-shadow: 0px 0px 10px -5px grey;
}

/************************************************************/
/*********         Page Intro Section                 *******/
/************************************************************/
#page-intro {
  background: var(--salsa-gradient-1);
  box-shadow: inset 0px 0px 30px -8px black;
  color: white;
  max-width: 100%;
  margin: auto;
  text-align: center;
}
.page-intro-container {
  margin: 0 auto;
  max-width: 1240px;
}
.breadcrumb {
  display: none;
  font-size: var(--bodyfontsize);
  font-weight: 300;
  max-width: 1240px;
  text-transform: uppercase;
  text-align: left;
}
.breadcrumb a {
  font-family: Lemonmilk !important;
  color: #ffffff;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--salsa-summer-blue);
}
.breadcrumb .last-crumb {
  color: var(--salsa-summer-blue);
  font-family: Lemonmilk !important;
}
.title-container {
  display: flex;
  justify-content: center;
}
.page-title {
  margin: 35px 0;
  text-align: center;
  text-transform: uppercase;
}

.page-description {
  max-width: 1240px;
  margin: auto;
  padding-bottom: 20px;
  text-align: center;
}

/* Tablet */
@media only screen and (max-width: 768px) {
  .page-title {
    margin: 60px 0 35px;
  }
}

/* Mobile */
@media only screen and (max-width: 580px) {
  .breadcrumb {
    font-size: 1.2rem;
    text-align: center;
  }
  .page-title {
    margin: 45px 0 35px;
  }
}

/************************************************************/
/*********             Video Playlist                 *******/
/************************************************************/
#videoHighlightsTitle {
  border-color: #e01e45;
}

#video-background {
  background: black;
  border: solid;
  border-color: #e01e45;
  border-width: 3px;
}

#salsa-video-player {
  max-width: 1000px;
  margin: auto;
}

#video-container {
  position: relative;
  max-width: 1240px;
  margin: auto;
}

#video-container {
  position: relative;
  max-width: 1240px;
  margin: auto;
}

.scroll-button {
  cursor: pointer;
  height: 140px;
  width: 40px;
  position: absolute;
  z-index: 2;
  background: #1fe1ba;
  filter: invert(1);
  background-size: 45%;
  background-repeat: no-repeat;
  background-position: center;
}

#scroll-left {
  left: 0px;
  background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
}

#scroll-right {
  right: 0px;
  background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-right.svg);
}

#salsa-video-playlist-wrapper {
  width: calc(100% - 100px);
  max-width: calc(1240px - 80px);
  margin: 20px auto 0;
  overflow: hidden;
  overflow-y: clip;
  scroll-behavior: smooth;
}

#salsa-video-playlist {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

#salsa-video-playlist .playlist-link {
  cursor: pointer;
  width: 33%;
  min-width: 250px;
  text-decoration: none;
  text-align: center;
}
#salsa-video-playlist .playlist-link:hover {
  color: #e01e45;
}

.playlist-link img {
  max-height: 180px;
  box-shadow: 0px 0px 10px -4px grey;
  border-color: white !important;
  border-width: 3px !important;
  border: solid;
}

.playlist-link img:hover {
  border-color: #e01e45 !important;
}

.playlist-link p {
  margin: auto;
  max-width: 360px;
}

@media only screen and (max-width: 768px) {
  #scroll-left {
    display: none;
  }

  #scroll-right {
    display: none;
  }

  #salsa-video-playlist-wrapper {
    width: 100%;
    margin-bottom: 0px;
  }

  #salsa-video-playlist {
    display: flex;
    flex-direction: column;
  }

  .playlist-link {
    display: flex;
    flex-direction: row;
    align-items: top;
    width: 100% !important;
    margin-right: 0px !important;
  }

  #salsa-video-playlist img {
    height: 100%;
    max-width: 180px;
  }

  #salsa-video-playlist p {
    margin: auto 0;
    padding-left: 10px;
    text-align: left;
  }
}

@media only screen and (max-width: 580px) {
  #salsa-video-playlist img {
    height: 100%;
    max-width: 150px;
  }
}

/************************************************************/
/*********             Ad Leaderboard                  *******/
/************************************************************/
.ad-leaderboard-container {
  text-align: center;
  margin: 40px auto;
}
.desktop-leaderboard {
}
.mobile-leaderboard {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-leaderboard {
    display: none;
  }
  .mobile-leaderboard {
    display: block;
  }
}

@media screen and (max-width: 580px) {
  .credit-headline {
    font-size: 15px;
  }
}

/************************************************************/
/*********             Image Gallery                  *******/
/************************************************************/
#galleryTitle {
  border-color: #fbbe11;
}

/* Credit */
.credit-headline {
  text-align: left;
  font-weight: 700;
  margin: 0;
}

/************************************************************/
/*********              Carousel                      *******/
/************************************************************/
.carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  /* background-color: mediumorchid; */
}

.carousel__track__container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 250ms ease-in;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 5px;
}

/* Tablet (show 4 images per row) */
@media (max-width: 768px) {
  .carousel-slide {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel__button {
    display: none;
  }

  .zoom {
    transition: none;
  }

  .zoom:hover {
    transform: none;
  }
}

/* Mobile (show 3 images per row) */
@media (max-width: 580px) {
  .carousel-slide {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel__button {
    display: none;
  }

  .zoom {
    transition: none;
  }

  .zoom:hover {
    transform: none;
  }
}

/* ensure square-containers remain squares inside slides */
.carousel-slide .square-container {
  width: 100%;
  height: 0;
  padding-top: 100%;
  /* creates a square based on width */
  position: relative;
}

.carousel-slide .square-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__nav {
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 0;
  margin: auto;
  max-width: 100%;
}

.carousel-indicator {
  background-color: #d2d2d2;
  box-shadow: 3px 5px 6px -3px black;
  height: 10px;
  width: 28px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.carousel-indicator:hover {
  background-color: #fbbe11;
}

.active {
  background-color: #fbbe11;
}

.carousel__button {
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}

.carousel__button:hover {
  background: transparent;
}

.carousel__button--left {
  left: -3.5%;
  z-index: 10;
}

.carousel__button--right {
  right: -3.5%;
  z-index: 10;
}

.carousel__button .carousel__button__icon {
  font-size: 40px;
  color: #fbbe11;
}

/************************************************************/
/*********              Lightbox                      *******/
/************************************************************/
.square-container {
  flex: 0 0 calc((100% - (5 * 10px)) / 6);
  width: 150px;
  height: 150px;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  position: relative;
  box-shadow: 0px 0px 14px -3px grey;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  border: solid;
  border-color: white;
  border-width: 3px;
}

.gallery-image:hover {
  border-color: #fbbe11;
}

.zoom {
  transition: transform 0.2s;
  /* Animation */
}

.zoom:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
  display: flex;
  opacity: 1;
}

.lightbox {
  text-align: center;
  height: auto;
  width: auto;
  position: relative;
}

/* lightbox image */
.lb-content-container {
  position: relative;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  border: 4px solid #fff;
  border-radius: 3px;
  transition: opacity 0.3s ease-in-out;
}

/* lightbox data */
.lb-data-container {
  margin: 0 auto;
  padding-top: 5px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-data {
  color: #ccc;
  text-align: center;
}

.lb-data .lb-details {
  text-align: left;
  line-height: 1.1em;
  width: 90%;
  margin: 0 auto;
}

.lb-details .lb-caption {
  font-size: 13px;
  font-weight: 700;
  line-height: 1em;
}

.lb-details .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999;
}

/* Nav */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Arrows */
.lightbox-nav.prev {
  left: 7.5%;
}

.lightbox-nav.next {
  right: 7.5%;
}

/* Left & Right navigation for the images */
.lightbox-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.left-zone {
  left: 5%;
  right: 50%;
  /* REMOVE LATER - PURPOSE: Debug */
  /* background-color: #E01E45; */
  opacity: 0.3;
  /******* END OF DEBUG ***********/
}

.right-zone {
  right: 5%;
  left: 50%;
  /* REMOVE LATER - PURPOSE: Debug */
  /* background-color: limegreen; */
  opacity: 0.3;
  /******* END OF DEBUG ***********/
}

@media screen and (max-width: 580px) {
  .square-container {
    width: 100px;
    height: 100px;
  }

  .lightbox-nav {
    font-size: 2rem;
  }
}

/************************************************************/
/*********             Media Coverage                 *******/
/************************************************************/
#mediaCoverageTitle {
  border-color: #3787fc;
}
#media-coverage {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background-color: #cbcbcb;
}

.media-outlet {
  padding: 20px;
  width: 25%;
  text-align: center;
}

img.media-logo {
  max-height: 100px;
  max-width: 150px;
  width: 100%;
  object-fit: contain;
}

#mediaGallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 15px;
  column-gap: 5px;
}

#mediaGallery p {
  margin: 0;
}

.coverage-link {
  color: black;
  background-color: #f5f5f5;
  border-color: white !important;
  border: solid;
  border-width: 3px !important;
  box-shadow: 0px 0px 10px -4px grey;
  font-family: "Sofiapro" !important;
  font-weight: 600;
  font-size: var(--bodyfontsize);
  padding: 1px;
  width: calc(25% - 4px);
}

.coverage-link:hover {
  color: #3787fc;
  border-color: #3787fc !important;
}

.coverage-link p img {
  width: 20px !important;
  min-width: 10px !important;
  height: 16px !important;
}

.media-thumb {
  box-shadow: 10px 10px 5px lightblue inset;
}

.media-headline {
  padding: 0 10px;
}

@media only screen and (max-width: 768px) {
  #media-coverage {
    padding: 0;
  }

  .media-outlet {
    width: calc(100% / 3);
    padding: 20px;
    max-width: 100% !important;
    text-align: center;
  }

  #mediaGallery {
    padding: 0;
  }

  .coverage-link {
    width: calc(50% - 5px);
  }
}

@media only screen and (max-width: 580px) {
  .media-outlet {
    width: calc(100% / 3);
    padding: 10px 15px;
  }
}

/***************************************************************/
/*****                Up Coming Events                      ****/
/***************************************************************/
#upComingEventsTitle {
  border-color: #fbbe11;
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.event-card {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 calc(33.33% - 0.8rem);
  border-radius: 12px;
  overflow: hidden;
}
.event-card:hover {
  opacity: 1;
}
.event-filter {
  width: 100%;
  height: 100%;
}
.event-filter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card:hover .event-filter img {
  transform: scale(1.05);
  transition: transform 0.3s ease; /* Smooth animation */
}
.event-name {
  font-size: 1.3rem;
  margin: auto;
  color: var(--salsa-white);
}
p.event-date {
  margin: auto;
  font-size: 1rem;
  color: var(--salsa-sky-blue);
}
.event-filter::after {
  position: absolute;
  bottom: 0;
  display: block;
  content: "";
  width: 100%;
  height: 70%;
  background: linear-gradient(0deg, #000000, transparent);
}
.info {
  position: absolute;
  bottom: 0;
  padding: 0 1.2rem 1rem;
  width: 100%;
}
.event-tag {
  font-size: 1rem;
  margin: 0 auto 10px;
}
.festival {
  color: var(--salsa-yellow);
}
p.tag {
  position: absolute;
  top: 20px;
  padding: 10px;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  color: var(--salsa-sky-blue);
  background: var(--salsa-white);
  box-shadow: 4px 3px 20px -5px black;
}

.past-event::before {
  content: "PAST EVENT";
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--salsa-white);
  font-weight: bold;
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0 0 8px 0;
  z-index: 10;
  text-transform: uppercase;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

.past-event img {
  filter: grayscale(70%) brightness(0.6);
}

.highlight-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--salsa-watermelon);
  color: var(--salsa-white);
  font-weight: bold;
  font-size: 1rem;
  line-height: normal;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, color 0.3s ease;
}

.highlight-button:hover {
  background: var(--salsa-watermelon);
  color: var(--salsa-white);
}

@media (max-width: 1300px) {
  .section.event-section {
    padding: 0 2rem;
  }
  .event-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
@media (max-width: 768px) {
  .event-card {
    flex: 0 0 100%;
  }
}
@media (max-width: 580px) {
  .section.event-section {
    padding: 0rem 20px;
  }
  .event-name {
    font-size: 1.2rem;
  }
}

/***************************************************************/
/*****                VIP Launch Party Banner               ****/
/***************************************************************/
#vipLaunchPartyTitle {
  border-color: #3787fc;
}
.vip-lp-banner-desktop {
  margin: 0 auto;
}
.vip-lp-banner-mobile {
  display: none;
  margin: auto;
}

@media only screen and (max-width: 768px) {
  .vip-lp-banner-desktop {
    display: none;
  }
  .vip-lp-banner-mobile {
    display: block;
  }
}

/***************************************************************/
/*****                  Social Media Feed                   ****/
/***************************************************************/
#socialMediaTitle {
  border-color: #e01e45;
}

/***************************************************************/
/*****                  Drivers                             ****/
/***************************************************************/
.driver-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.driver-btn {
  align-items: center; /* Vertical alignment */
  border-radius: 6px;
  border-style: solid;
  border-width: 1px;
  display: inline-flex;
  cursor: pointer;
  font-size: 16px;
  font-family: Lemonmilk;
  font-weight: 700;
  justify-content: center; /* Horizontal alignment */
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.driver-btn--blue {
  background: var(--salsa-summer-blue);
  border-color: white;
  color: white;
}

.driver-btn--blue:hover {
  background: white;
  border-color: var(--salsa-summer-blue);
  color: var(--salsa-summer-blue);
  opacity: 1 !important;
}

.driver-btn--white {
  background: white;
  border-color: var(--salsa-summer-blue);
  color: var(--salsa-summer-blue);
}

.driver-btn--white:hover {
  background: var(--salsa-summer-blue);
  border-color: white;
  color: white;
  opacity: 1 !important;
}
