/**
 * @file
 * Reusable mobile presentation for spotlight carousels.
 */

@media screen and (max-width: 750px) {
  .spotlight-carousel {
    margin: 0 !important;
  }

  .spotlight-carousel .owl-item .col {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .spotlights .spotlight-carousel article.featured,
  .category-spotlights .spotlight-carousel article,
  .category-articles .spotlight-carousel article {
    aspect-ratio: 456 / 469;
    border-radius: 20px;
    margin: 0;
    overflow: hidden;
    position: relative;
  }

  .spotlights .spotlight-carousel article.featured a {
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(26, 52, 97, 0) 0%, rgba(26, 52, 97, 0.7) 100%);
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding: 30px;
  }

  .spotlights .spotlight-carousel article.featured h3 {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 28px;
    padding-right: 15px;
  }

  .spotlights .spotlight-carousel article.featured h3::after {
    background-color: #FFD439;
    background-image: url('../../air_liquide_mde/img/icons/arrow-right.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
    border-radius: 50%;
    flex: 0 0 40px;
    height: 40px;
    width: 40px;
  }

  .category-spotlights .spotlight-carousel article > a,
  .category-articles .spotlight-carousel article > a {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    isolation: isolate;
    justify-content: flex-end;
    padding: 30px;
    position: relative;
    text-decoration: none;
  }

  .category-spotlights .spotlight-carousel article > a::after,
  .category-articles .spotlight-carousel article > a::after {
    background-color: #FFD439;
    background-image: url('../../air_liquide_mde/img/icons/arrow-right.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
    border-radius: 50%;
    bottom: 30px;
    content: '';
    height: 40px;
    position: absolute;
    right: 30px;
    width: 40px;
    z-index: 2;
  }

  .category-spotlights .spotlight-carousel .image-container,
  .category-articles .spotlight-carousel .image-container {
    border-radius: 0;
    inset: 0;
    position: absolute;
    z-index: -1;
  }

  .category-spotlights .spotlight-carousel .image-container::before,
  .category-articles .spotlight-carousel .image-container::before {
    background: linear-gradient(180deg, rgba(26, 52, 97, 0) 0%, rgba(26, 52, 97, 0.7) 100%);
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
  }

  .category-spotlights .spotlight-carousel .image-container::after,
  .category-articles .spotlight-carousel .image-container::after {
    display: none;
  }

  .category-spotlights .spotlight-carousel .image-container img,
  .category-articles .spotlight-carousel .image-container img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .category-spotlights .spotlight-carousel article h3,
  .category-articles .spotlight-carousel article h3 {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 28px;
    margin: 0 55px 0 0;
    position: relative;
  }

  .category-spotlights .spotlight-carousel article h3::after,
  .category-articles .spotlight-carousel article h3::after {
    content: none;
  }

  .category-articles .spotlight-carousel .spotlight-card-details {
    display: none;
  }

  .spotlight-carousel .owl-dots {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 30px;
  }

  .spotlight-carousel.owl-carousel .owl-dots .owl-dot {
    background: #FFFFFF !important;
    border: 3px solid #1A3461 !important;
    border-radius: 50%;
    box-sizing: border-box;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px;
  }

  .spotlight-carousel .owl-dot span {
    display: none;
  }

  .spotlight-carousel.owl-carousel .owl-dots .owl-dot.active {
    background: #1A3461 !important;
  }

  .spotlight-carousel.owl-carousel .owl-dots .owl-dot:focus-visible {
    outline: 3px solid #FFD439;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-carousel .image-container img,
  .spotlight-carousel article.featured .article-image {
    transition: none;
  }
}