

  /* ===== EMBLA BASE STYLES ===== */

  .embla {

    position: relative;

  }



  .embla__viewport {

    overflow: hidden;

  }



  .embla__container {

    display: flex;

  }



  .embla__slide {

    flex: 0 0 auto;

    min-width: 0;

  }



  /* ===== EMBLA HOMEPAGE BANNERS ===== */

  .homepage-banners {

    --navigation-space: 40px;

    --embla-autoplay-progress: 0;

    --embla-autoplay-playing: 0;

    width: min(100vw, 400px);

    user-select: none;

    left: 50%;

    transform: translateX(-50%);

  }



  @media (min-width: 768px) {

    .homepage-banners {

      --navigation-space: 40px;

      width: min(100vw, 1152px);

    }

  }



  /* === SLIDES === */

  .homepage-banners .embla__slide {

    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows: auto;

    flex: 0 0 100%;

    height: 100%;

    transition:

      opacity 0.2s ease-in-out,

      filter 0.1s ease-in-out;

  }



  .homepage-banners .embla__slide:not([class*="is-snapped"]) {

    opacity: 0.5;

    filter: blur(3px);

  }



  .homepage-banners .embla__slide img {

    max-width: 100%;

    max-height: 100%;

    display: block;

  }



  .homepage-banners .banner-hero,

  .homepage-banners .banner-subcat {

    padding: 4px;

  }



  /* === EMBLA NAV === */

  .embla__nav {

    position: absolute;

    top: calc(min(100vw, 400px) + var(--navigation-space) / 2 - 10px);

    display: flex;

    width: fit-content;

    justify-content: center;

    align-items: center;

    gap: 12px;

    left: 50%;

    transform: translate(-50%, -50%);

  }



  @media (min-width: 768px) {

    .embla__nav {

      position: relative;

      margin-top: 5px;

      top: unset;

      transform: translateX(-50%);

    }



    .fully-banner {

      margin-top: 12px;

    }

  }



  /* Position autoplay absolutely so prev/dots/next stay centered */

  .homepage-banners .embla__autoplay {

    position: absolute;

    transform: translateX(calc(100% + 12px));

    right: 0;

  }



  /* === EMBLA DOTS === */

  .homepage-banners .embla__dots {

    display: flex;

    gap: 8px;

    justify-content: center;

  }



  .homepage-banners .embla__dot {

    width: 16px;

    height: 16px;

    background: white;

    border: 2px solid rgba(66, 74, 89, 0.5);

    border-radius: 999px;

    cursor: pointer;

    padding: 0;

    transition:

      background 0.3s ease,

      width 0.5s ease;

  }



  .homepage-banners .embla__dot.is-selected {

    background: #424a59;

    width: 48px;

  }



  .homepage-banners .banner-hero:nth-child(1) {

    padding-bottom: var(--navigation-space);

  }



  /* === EMBLA BUTTONS === */

  .homepage-banners .embla__button--inline {

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

  }



  .homepage-banners .embla__button--inline {

    width: calc(min(30px, var(--navigation-space) - 5px));

    height: calc(min(30px, var(--navigation-space) - 5px));

    background-color: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 9999px;

    transition: opacity 0.6s ease;

  }



  /* === DESKTOP MEDIA QUERY === */

  @media (min-width: 768px) {

    /* ===== EMBLA HOMEPAGE BANNERS ===== */

    .homepage-banners {

      --navigation-space: 40px;

    }



    /* === SLIDES === */

    .homepage-banners .embla__slide {

      flex: 0 0 100%;

      grid-template-columns: repeat(4, 1fr);

      grid-template-rows: repeat(2, 1fr);

    }



    .homepage-banners .banner-fullwidth {

      aspect-ratio: 2 / 1;

      grid-row: span 2;

      grid-column: span 4;

    }



    .homepage-banners .banner-hero {

      aspect-ratio: 1 / 1;

      grid-row: span 2;

      grid-column: span 2;

    }



    .homepage-banners .banner-subcat {

      aspect-ratio: 2 / 1;

      grid-column: span 2;

      padding: 4px 8px;

    }



    /* === EMBLA DOTS === */

    .homepage-banners {

      /* padding-bottom: var(--navigation-space); */

    }



    .homepage-banners .banner-hero:nth-child(1) {

      padding-bottom: 0;

    }



    /* === EMBLA BUTTONS === */

    .homepage-banners .embla__button--inline {

      margin: 0 5px;

    }

  }



  /* === EMBLA AUTOPLAY INDICATOR === */

  .homepage-banners .embla__autoplay {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    border: none;

    padding: 0;

    cursor: pointer;

    transition: opacity 0.2s ease;

  }



  .homepage-banners .embla__autoplay:hover {

    opacity: 0.7;

  }



  .homepage-banners .embla__autoplay-circle {

    position: absolute;

    width: 100%;

    height: 100%;

    transform: rotate(-90deg);

  }



  .homepage-banners .embla__autoplay-track {

    fill: white;

    stroke: #e5e7eb;

    stroke-width: 2;

  }



  .homepage-banners .embla__autoplay-progress {

    fill: none;

    stroke: #424a59;

    stroke-width: 3;

    stroke-linecap: round;

    stroke-dasharray: 100.53;

    stroke-dashoffset: calc(

      100.53 - (100.53 * var(--embla-autoplay-progress, 0) / 100)

    );

    transition: stroke-dashoffset 0.1s linear;

  }



  .homepage-banners .embla__autoplay-icon {

    position: relative;

    width: 12px;

    height: 12px;

    color: #424a59;

  }



  .homepage-banners .embla__autoplay-play,

  .homepage-banners .embla__autoplay-pause {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    transition: opacity 0.2s ease;

  }



  .homepage-banners .embla__autoplay-play {

    opacity: calc(1 - var(--embla-autoplay-playing, 0));

  }



  .homepage-banners .embla__autoplay-pause {

    opacity: var(--embla-autoplay-playing, 0);

  }

