/* =========================================================
   798601 EXPLORE SLIDESHOW
   Compact carousel
   4 cards on desktop / 2 cards on mobile
   Image + Video + Sound button
   ========================================================= */

.explore-slideshow {
  width: 100%;
  margin: 10px 0 16px;
  padding: 0;
  box-sizing: border-box;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.explore-slideshow__viewport {
  position: relative;

  width: 100%;
  max-width: 1080px;

  margin: 0 auto;

  overflow: hidden;

  box-sizing: border-box;

  touch-action: pan-y;
  user-select: none;
}


/* =========================================================
   TRACK
   ========================================================= */

.explore-slideshow__track {
  display: flex;
  align-items: stretch;

  width: max-content;
  height: auto;

  margin: 0;

  padding-left: 8px;
  padding-right: 8px;

  gap: 12px;

  box-sizing: border-box;

  transition:
    transform 0.48s cubic-bezier(0.22, 0.61, 0.36, 1);

  will-change: transform;
}


/* =========================================================
   INDIVIDUAL SLIDE
   ========================================================= */

.explore-slideshow__slide {
  position: relative;

  /*
   * Default sizing.
   * Desktop and mobile override this below.
   */
  flex: 0 0 calc((min(1080px, 100vw) - 28px) / 2);

  width: calc((min(1080px, 100vw) - 28px) / 2);

  max-width: none;

  height: 300px;

  aspect-ratio: auto;

  min-width: 0;

  overflow: hidden;

  margin: 0;
  padding: 0;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 5px 16px rgba(20, 40, 70, 0.09);

  box-sizing: border-box;
}


/* =========================================================
   MEDIA WRAPPER
   ========================================================= */

.explore-slideshow__media {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #ffffff;
}


/* =========================================================
   LINK
   ========================================================= */

.explore-slideshow__link {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  line-height: 0;
}


/* =========================================================
   IMAGE
   ========================================================= */

.explore-slideshow__image {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  margin: 0;
  padding: 0;

  /*
   * Keep contain so advertisements and graphics
   * are not cropped.
   */
  object-fit: contain;
  object-position: center;

  background: #ffffff;

  user-select: none;

  -webkit-user-drag: none;
}


/* =========================================================
   VIDEO
   ========================================================= */

.explore-slideshow__video {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  margin: 0;
  padding: 0;

  /*
   * Keep videos fully visible.
   */
  object-fit: contain;
  object-position: center;

  background: #000000;

  user-select: none;

  -webkit-user-drag: none;
}


/* =========================================================
   SOUND BUTTON
   ========================================================= */

.explore-slideshow__sound-button {
  position: absolute;

  right: 10px;
  top: 10px;

  z-index: 20;

  width: 38px;
  height: 38px;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.58);

  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.20);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}


.explore-slideshow__sound-button:hover {
  transform: scale(1.06);

  background: rgba(0, 0, 0, 0.72);
}


.explore-slideshow__sound-button:active {
  transform: scale(0.95);
}


.explore-slideshow__sound-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}


.explore-slideshow__sound-icon {
  display: block;

  font-size: 16px;

  line-height: 1;
}


/* =========================================================
   CAPTION
   ========================================================= */

.explore-slideshow__caption {
  position: absolute;

  left: 9px;
  right: 9px;
  bottom: 9px;

  z-index: 10;

  padding: 6px 8px;

  border-radius: 8px;

  background: rgba(0, 0, 0, 0.58);

  color: #ffffff;

  font-size: 12px;

  font-weight: 700;

  line-height: 1.25;

  text-align: center;

  pointer-events: none;

  box-sizing: border-box;
}


/* =========================================================
   DOTS
   ========================================================= */

.explore-slideshow__dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  margin-top: 7px;
}


.explore-slideshow__dot {
  width: 6px;
  height: 6px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(23, 32, 51, 0.28);

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  box-sizing: border-box;
}


.explore-slideshow__dot.is-active {
  width: 8px;
  height: 8px;

  background: #43B97A;
}


/* =========================================================
   DESKTOP
   4-CARD COMPACT LAYOUT
   ========================================================= */

@media (min-width: 768px) {

  .explore-slideshow {
    margin-top: 10px;
    margin-bottom: 16px;
  }


  .explore-slideshow__track {
    padding-left: 8px;
    padding-right: 8px;

    gap: 10px;
  }


  .explore-slideshow__slide {
    /*
     * FOUR CARDS VISIBLE ON DESKTOP
     *
     * 1080px maximum width
     * minus 16px side padding
     * minus 30px for three gaps
     */
    flex-basis: calc((min(1080px, 100vw) - 46px) / 4);

    width: calc((min(1080px, 100vw) - 46px) / 4);

    max-width: none;

    /*
     * Compact desktop height.
     */
    height: 250px;

    border-radius: 14px;
  }


  .explore-slideshow__sound-button {
    right: 8px;
    top: 8px;

    width: 34px;
    height: 34px;
  }


  .explore-slideshow__sound-icon {
    font-size: 14px;
  }


  .explore-slideshow__caption {
    left: 7px;
    right: 7px;
    bottom: 7px;

    padding: 5px 7px;

    font-size: 11px;

    border-radius: 7px;
  }

}


/* =========================================================
   MOBILE
   TWO CARDS
   ========================================================= */

@media (max-width: 767px) {

  .explore-slideshow {
    margin: 8px 0 12px;
  }


  .explore-slideshow__viewport {
    width: 100%;
  }


  .explore-slideshow__track {
    padding-left: 6px;
    padding-right: 6px;

    gap: 8px;
  }


  .explore-slideshow__slide {
    /*
     * TWO CARDS visible on mobile.
     */
    flex-basis: calc((100vw - 20px) / 2);

    width: calc((100vw - 20px) / 2);

    max-width: none;

    height: 240px;

    border-radius: 13px;
  }


  .explore-slideshow__sound-button {
    right: 7px;
    top: 7px;

    width: 32px;
    height: 32px;
  }


  .explore-slideshow__sound-icon {
    font-size: 14px;
  }


  .explore-slideshow__caption {
    left: 6px;
    right: 6px;
    bottom: 7px;

    padding: 5px 6px;

    font-size: 11px;

    border-radius: 7px;
  }


  .explore-slideshow__dots {
    margin-top: 6px;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .explore-slideshow {
    margin-top: 6px;
    margin-bottom: 10px;
  }


  .explore-slideshow__track {
    padding-left: 5px;
    padding-right: 5px;

    gap: 7px;
  }


  .explore-slideshow__slide {
    /*
     * Still TWO CARDS on small phones.
     */
    flex-basis: calc((100vw - 17px) / 2);

    width: calc((100vw - 17px) / 2);

    height: 215px;

    border-radius: 12px;
  }


  .explore-slideshow__sound-button {
    right: 6px;
    top: 6px;

    width: 30px;
    height: 30px;
  }


  .explore-slideshow__sound-icon {
    font-size: 13px;
  }


  .explore-slideshow__caption {
    left: 5px;
    right: 5px;
    bottom: 6px;

    padding: 4px 5px;

    font-size: 10px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .explore-slideshow__track {
    transition: none;
  }

}