/* ==========================================================================
   banner-slider.css — Homepage banner slider
   Loaded by index.php through $extra_css. Slide content is set in index.php.
   Hex colours only, no CSS variables, one selector per rule.
   Heights: image slides keep the artwork's ratio (desktop 5:2, mobile 4:5).
   Change those two ratios below if your banner images are cut differently.
   ========================================================================== */

.bs {
  position: relative;
  width: 100%;
  background: #f3e9f6;
}

.bs-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.bs-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.bs-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  aspect-ratio: 5 / 2;
  position: relative;
}

.bs-fulllink {
  display: block;
  width: 100%;
  height: 100%;
}

.bs-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bs-textslide {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 32px 0;
}

.bs-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.bs-has-img .bs-inner {
  grid-template-columns: 1.1fr 0.9fr;
}

.bs-center .bs-inner {
  text-align: center;
}

.bs-copy {
  min-width: 0;
}

.bs-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.bs-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 14px;
}

.bs-title em {
  font-style: normal;
  opacity: 0.75;
}

.bs-text {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 18px;
}

.bs-center .bs-text {
  margin-left: auto;
  margin-right: auto;
}

.bs-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 22px;
}

.bs-center .bs-badges {
  justify-content: center;
}

.bs-badge {
  font-size: 0.95rem;
  font-weight: 500;
}

.bs-badge::before {
  content: "\2713";
  margin-right: 8px;
  font-weight: 700;
}

.bs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bs-center .bs-actions {
  justify-content: center;
}

.bs-btn {
  display: inline-block;
  padding: 13px 30px;
  border: 2px solid #4a154b;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bs-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.bs-btn-ghost {
  background: transparent;
}

.bs-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.bs-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.bs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffffcc;
  color: #4a154b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bs-arrow:hover {
  background: #ffffff;
}

.bs-prev {
  left: 14px;
}

.bs-next {
  right: 14px;
}

.bs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4a154b66;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.bs-dot.is-active {
  width: 26px;
  background: #4a154b;
}

@media (max-width: 1023px) {
  .bs-inner {
    padding: 0 48px;
    gap: 24px;
  }

  .bs-title {
    font-size: 2.4rem;
  }

  .bs-text {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .bs-slide {
    aspect-ratio: 4 / 5;
  }

  .bs-textslide {
    padding: 40px 0 48px;
  }

  .bs-inner {
    padding: 0 24px;
    gap: 16px;
  }

  .bs-has-img .bs-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bs-title {
    font-size: 2rem;
  }

  .bs-text {
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
  }

  .bs-has-img .bs-badges {
    justify-content: center;
  }

  .bs-has-img .bs-actions {
    justify-content: center;
  }

  .bs-media img {
    max-height: 220px;
  }

  .bs-btn {
    padding: 11px 24px;
    font-size: 0.8rem;
  }

  .bs-arrow {
    display: none;
  }

  .bs-dots {
    bottom: 10px;
  }
}

@media (max-width: 380px) {
  .bs-title {
    font-size: 1.7rem;
  }

  .bs-media img {
    max-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-track {
    transition: none;
  }
}