/* carousel.css - place in child-theme/assets/css/ */
.carousel-section {
  padding: 40px 20px;
  background: #ffffff;
  box-sizing: border-box;
}

.carousel-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.section-subtitle { margin: 0 0 18px; color:#365a78; font-weight:500; }

.section-title {
  font-size: 42px;
  font-weight: 400;
  font-family: 'gorditabold', sans-serif;
  color: #033A5C;
  margin: 0 0 6px;
}


@font-face {
  font-family: 'gorditabold';
  src: url('../fonts/gorditabold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 16px; /* we will read this gap in JS */
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

.carousel-slide {
  flex: 0 0 calc((100% - 32px) / 3); /* 3 per view (desktop) - CSS fallback */
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 20px;
}

/* Buttons */
.carousel-btn {
    background: #ffffff;
    color: #fff;
    border: none;
    padding: 0px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.carousel-btn:focus { outline: 2px solid #ffd700; }

/* Mobile: show 1 per view */
@media (max-width: 768px) {
  .carousel-slide { flex: 0 0 100%; }
  .carousel { gap: 8px; }
}

/* Small noscript style */
.carousel-noscript img { max-width: 150px; margin: 6px; display:inline-block; }