/* KMP Gallery Styles - For galleries index with mobile carousel
 * Requires: kmp-base.css
 * Usage: <link rel="stylesheet" href="/css/kmp-gallery.css">
 */

/* ========================================
   Gallery Page Header Override
   ======================================== */
.site-header--centered .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ========================================
   Section Headers
   ======================================== */
.section {
  margin-bottom: 30px;
}

.section-header {
  padding: 0 20px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ========================================
   Carousel (mobile)
   ======================================== */
.carousel-container {
  position: relative;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px;
  gap: 12px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* Carousel card overrides */
.carousel .card {
  flex: 0 0 75%;
  max-width: 280px;
  scroll-snap-align: start;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.carousel .card:last-child {
  margin-right: 20px;
}

.carousel .card img {
  aspect-ratio: 3/4;
  background: #eee;
}

.carousel .card .info {
  padding: 12px 14px;
}

.carousel .card .label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.carousel .card .name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Carousel Dots
   ======================================== */
.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.2s;
  cursor: pointer;
}

.dot.active {
  background: #333;
}

/* ========================================
   CTA Button
   ======================================== */
.cta {
  text-align: center;
  padding: 20px;
}

.cta a {
  display: inline-block;
  padding: 18px 32px;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  font-weight: 500;
}

.cta a:hover {
  background: #f8f8f8;
}

/* ========================================
   No Results Message
   ======================================== */
.no-results {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* ========================================
   Desktop: Grid replaces Carousel
   ======================================== */
@media (min-width: 768px) {
  .carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
    overflow-x: visible;
  }

  .carousel .card {
    flex: none;
    max-width: none;
  }

  .carousel .card:last-child {
    margin-right: 0;
  }

  .dots {
    display: none;
  }
}
