/* ═══════════════════════════════════════════════════════
   Article Gallery Carousel Component
   ═══════════════════════════════════════════════════════ */

/* ─── Swiper Overrides ──────────────────────────────── */
.article-gallery-swiper {
  overflow: hidden;
  padding-bottom: 8px;
}

.article-gallery-swiper .swiper-wrapper {
  height: auto !important;
}

.article-gallery-swiper .swiper-slide {
  height: auto;
  padding-bottom: 6px; /* Space for card shadow */
}

/* Article card should fill its slide */
.article-gallery-swiper .swiper-slide .article-card {
  max-width: 100%;
  width: 100%;
}

/* Override WooCommerce img height: auto reset */
.article-gallery-swiper .swiper-slide .article-card img {
  height: 100%;
}

/* Subtitle pill positioning is shared via .ms-subtitle-pill (components/subtitle-pill.css). */

/* ─── Illustration (Background Morton Girl) ─────────── */
.article-gallery-illustration-wrapper {
  transition: opacity 0.4s ease;
}

.article-gallery-illustration-img {
  transition: opacity 0.3s ease;
  height: auto;
  width: auto;
  opacity: 0.2;
}

/* On mobile, hide illustration to prevent clipping issues */
@media (max-width: 1023px) {
  .article-gallery-illustration-wrapper {
    display: none;
  }
}

/* On desktop (lg+), position illustration at right edge of 1440px container */
@media (min-width: 1024px) {
  .article-gallery-illustration-wrapper {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
  }

  .article-gallery-illustration-img {
    height: 1938px;
    width: auto;
    max-height: none;
    opacity: 0.2;
    transform: translate(calc(18% + 150px), calc(12% + 210px));
  }
}

/* ─── Carousel Arrow Buttons ────────────────────────── */
.article-gallery .carousel-arrow-btn {
  width: 40px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-morton-blue);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
}

.article-gallery .carousel-arrow-btn.swiper-button-disabled {
  color: #9ca3af;
  cursor: default;
  opacity: 0.5;
}

.article-gallery .carousel-arrow-prev {
  transform: scaleX(-1);
}

.article-gallery .carousel-arrow-svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 640px) {
  .article-gallery .carousel-arrow-btn {
    width: 50px;
    height: 52px;
  }
}

@media (min-width: 1024px) {
  .article-gallery .carousel-arrow-btn {
    width: 56px;
    height: 58px;
  }
}
