/* scc-style.css - Carousel layout & sizing */
.scc-carousel-wrapper { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; }

.scc-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* Each slide centers its content */
.scc-swiper .swiper-slide {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
}

/* Fixed height image container so all panels match */
.scc-image-wrap {
  width: 100%;
  height: 260px;              /* change this to what fits your design */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  border-radius: 8px;
}

/* Ensure images fill container and are cropped predictably */
.scc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crop to fill area, preserves center */
  display: block;
}

/* Title centered beneath image */
.scc-title {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  padding: 0.25rem 0.5rem;
}

/* Navigation overlay - centered vertically and spaced horizontally */
.scc-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* allow only buttons to handle clicks */
  z-index: 20;
}

/* The actual nav buttons */
.scc-nav button {
  pointer-events: auto;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.scc-prev {
    border-radius: 0 10px 10px 0;
}

.scc-next {
    border-radius: 10px 0 0 10px;
}

/* Pagination centered under carousel */
.scc-carousel-wrapper .swiper-pagination {
  position: inherit;
  text-align: center;
  margin-top: 0.75rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .scc-image-wrap { height: 160px; }
  .scc-nav button { width: 34px; height: 34px; }
  .scc-title { font-size: 0.95rem; }
}
