/* =========================================================
   FRANEX FASHION ACADEMY
   RESPONSIVE HERO SLIDESHOW
   ========================================================= */


/* =========================================================
   SLIDESHOW WRAPPER
   ========================================================= */

.franex-slideshow {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  isolation: isolate;
}


/* =========================================================
   RESPONSIVE FRAME
   ========================================================= */

.franex-slideshow-frame {
  position: relative;
  width: 100%;

  /*
   * Responsive aspect ratio.
   * The frame never becomes a full-screen block.
   */
  aspect-ratio: 16 / 10;

  min-height: 280px;
  max-height: 620px;

  overflow: hidden;

  border: 1px solid rgba(190, 151, 64, 0.55);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #181818,
      #0d0d0d
    );

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04);

}


/* =========================================================
   INNER FRAME
   ========================================================= */

.franex-slideshow-frame::before {
  content: "";

  position: absolute;

  inset: 8px;

  z-index: 3;

  pointer-events: none;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 13px;
}


/* =========================================================
   SLIDE
   ========================================================= */

.franex-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;

  visibility: hidden;

  transform: scale(1.015);

  transition:
    opacity 0.8s ease,
    transform 1.2s ease,
    visibility 0.8s ease;

  z-index: 1;
}


.franex-slide.is-active {
  opacity: 1;

  visibility: visible;

  transform: scale(1);

  z-index: 2;
}


/* =========================================================
   SLIDE IMAGE
   ========================================================= */

.franex-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  user-select: none;

  -webkit-user-drag: none;

  background:
    #171717;
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.franex-slide::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03) 0%,
      rgba(0, 0, 0, 0.04) 50%,
      rgba(0, 0, 0, 0.20) 100%
    );
}


/* =========================================================
   FRAME CORNERS
   ========================================================= */

.franex-slideshow-corner {
  position: absolute;

  width: 26px;
  height: 26px;

  z-index: 5;

  pointer-events: none;

  border-color: #c7a34f;
  border-style: solid;
}


.franex-slideshow-corner.top-left {
  top: 15px;
  left: 15px;

  border-width: 2px 0 0 2px;

  border-top-left-radius: 6px;
}


.franex-slideshow-corner.top-right {
  top: 15px;
  right: 15px;

  border-width: 2px 2px 0 0;

  border-top-right-radius: 6px;
}


.franex-slideshow-corner.bottom-left {
  bottom: 15px;
  left: 15px;

  border-width: 0 0 2px 2px;

  border-bottom-left-radius: 6px;
}


.franex-slideshow-corner.bottom-right {
  right: 15px;
  bottom: 15px;

  border-width: 0 2px 2px 0;

  border-bottom-right-radius: 6px;
}


/* =========================================================
   SLIDE COUNTER
   ========================================================= */

.franex-slide-counter {
  position: absolute;

  top: 22px;
  right: 22px;

  z-index: 10;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 58px;
  min-height: 30px;

  padding: 6px 11px;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 999px;

  background:
    rgba(0, 0, 0, 0.58);

  color: #fff;

  font-family:
    "Montserrat",
    sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.14em;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   SLIDE STATUS
   ========================================================= */

.franex-slideshow-status {
  position: absolute;

  left: 22px;
  bottom: 22px;

  z-index: 10;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 7px 11px;

  border-radius: 999px;

  background:
    rgba(0, 0, 0, 0.55);

  color: rgba(255, 255, 255, 0.88);

  font-family:
    "Montserrat",
    sans-serif;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.13em;

  text-transform: uppercase;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}


.franex-slideshow-status-dot {
  width: 6px;
  height: 6px;

  flex: 0 0 6px;

  border-radius: 50%;

  background: #c7a34f;

  box-shadow:
    0 0 0 4px rgba(199, 163, 79, 0.12);
}


/* =========================================================
   PROGRESS LINE
   ========================================================= */

.franex-slideshow-progress {
  position: absolute;

  right: 22px;
  bottom: 23px;

  z-index: 10;

  width: 100px;
  height: 2px;

  overflow: hidden;

  background:
    rgba(255, 255, 255, 0.20);

  border-radius: 999px;
}


.franex-slideshow-progress-bar {
  display: block;

  width: 0;
  height: 100%;

  background: #c7a34f;

  border-radius: inherit;
}


/*
 * JS adds this class for each new slide.
 */
.franex-slide.is-active
  ~ .franex-slideshow-progress
  .franex-slideshow-progress-bar {
  animation:
    franexSlideProgress 5s linear forwards;
}


@keyframes franexSlideProgress {

  from {
    width: 0;
  }

  to {
    width: 100%;
  }

}


/* =========================================================
   NAVIGATION DOTS
   ========================================================= */

.franex-slideshow-dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 16px;
}


.franex-slideshow-dot {
  width: 6px;
  height: 6px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(17, 17, 17, 0.22);

  cursor: pointer;

  transition:
    width 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}


.franex-slideshow-dot:hover {
  transform: scale(1.25);
}


.franex-slideshow-dot.is-active {
  width: 24px;

  border-radius: 999px;

  background: #c7a34f;
}


/* =========================================================
   PREVIOUS / NEXT CONTROLS
   ========================================================= */

.franex-slideshow-controls {
  position: absolute;

  left: 0;
  right: 0;

  top: 50%;

  z-index: 12;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding-inline: 16px;

  transform: translateY(-50%);

  pointer-events: none;
}


.franex-slideshow-control {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.46);

  color: #fff;

  font-size: 18px;

  line-height: 1;

  cursor: pointer;

  pointer-events: auto;

  opacity: 0.82;

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}


.franex-slideshow-control:hover {
  opacity: 1;

  transform: scale(1.06);

  background:
    rgba(0, 0, 0, 0.68);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .franex-slideshow {
    max-width: 680px;
  }


  .franex-slideshow-frame {
    aspect-ratio: 16 / 10;

    min-height: 240px;

    max-height: 500px;

    border-radius: 16px;
  }


  .franex-slideshow-frame::before {
    inset: 7px;

    border-radius: 12px;
  }


  .franex-slide-counter {
    top: 18px;
    right: 18px;
  }


  .franex-slideshow-status {
    left: 18px;
    bottom: 18px;
  }


  .franex-slideshow-progress {
    right: 18px;
    bottom: 19px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .franex-slideshow {
    width: 100%;

    max-width: 100%;

    padding-inline: 0;
  }


  .franex-slideshow-frame {
    /*
     * Much smaller and safer mobile frame.
     */
    aspect-ratio: 4 / 3;

    min-height: 0;

    max-height: none;

    border-radius: 13px;

    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.15);
  }


  .franex-slideshow-frame::before {
    inset: 5px;

    border-radius: 9px;
  }


  .franex-slide img {
    object-position: center;
  }


  .franex-slide-counter {
    top: 13px;
    right: 13px;

    min-width: 48px;
    min-height: 26px;

    padding: 5px 8px;

    font-size: 8px;
  }


  .franex-slideshow-status {
    left: 13px;
    bottom: 13px;

    padding: 6px 8px;

    font-size: 7px;
  }


  .franex-slideshow-progress {
    right: 13px;
    bottom: 14px;

    width: 65px;
  }


  .franex-slideshow-corner {
    width: 18px;
    height: 18px;
  }


  .franex-slideshow-corner.top-left {
    top: 10px;
    left: 10px;
  }


  .franex-slideshow-corner.top-right {
    top: 10px;
    right: 10px;
  }


  .franex-slideshow-corner.bottom-left {
    bottom: 10px;
    left: 10px;
  }


  .franex-slideshow-corner.bottom-right {
    right: 10px;
    bottom: 10px;
  }


  .franex-slideshow-controls {
    padding-inline: 10px;
  }


  .franex-slideshow-control {
    width: 32px;
    height: 32px;

    font-size: 15px;
  }


  .franex-slideshow-dots {
    margin-top: 12px;

    gap: 5px;
  }


  .franex-slideshow-dot {
    width: 5px;
    height: 5px;
  }


  .franex-slideshow-dot.is-active {
    width: 18px;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .franex-slideshow-frame {
    aspect-ratio: 4 / 3;

    border-radius: 11px;
  }


  .franex-slideshow-control {
    width: 29px;
    height: 29px;

    font-size: 13px;
  }


  .franex-slideshow-status {
    display: none;
  }


  .franex-slideshow-progress {
    left: 13px;
    right: auto;

    width: 70px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .franex-slide {
    transition: opacity 0.2s ease;

    transform: none;
  }


  .franex-slide.is-active {
    transform: none;
  }


  .franex-slideshow-dot,
  .franex-slideshow-control {
    transition: none;
  }


  .franex-slide.is-active
    ~ .franex-slideshow-progress
    .franex-slideshow-progress-bar {
    animation: none;
  }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

  .franex-slideshow-controls,
  .franex-slideshow-dots,
  .franex-slideshow-status,
  .franex-slideshow-progress,
  .franex-slide-counter {
    display: none !important;
  }


  .franex-slideshow-frame {
    max-height: none;

    box-shadow: none;
  }

}