/* ════════════════════════════
   GALLERY PAGE — gallery.css
════════════════════════════ */

/* Full-width breakout */
.gallery-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 70px 0 80px;
  background: #f9fafb;
  box-sizing: border-box;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  width: 100%;
}

/* Header */
.gallery-header {
  text-align: center;
  margin-bottom: 16px;
}

.gallery-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.gallery-header p {
  color: #666;
  font-size: 1rem;
}

/* Filter buttons */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

/* ── Carousel wrapper ── */
.gs-wrap {
  position: relative;       /* arrows anchor to this */
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  cursor: grab;
  background: #111;
  /* no height here — height comes from the image */
}

.gs-wrap:active {
  cursor: grabbing;
}

/* ── Track ── */
.gs-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Individual slide ── */
.gs-slide {
  position: relative;   /* CRITICAL — badge + caption anchor here */
  min-width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Image ── */
.gs-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ── Caption overlay ── */
.gs-caption {
  position: absolute;   /* CRITICAL — sits on top of image */
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.80));
  padding: 60px 32px 28px;
  color: #fff;
  z-index: 3;
}

.gs-caption h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.gs-caption p {
  font-size: 0.88rem;
  opacity: 0.82;
  margin: 0;
}

/* ── Featured badge ── */
.gs-badge {
  position: absolute;   /* CRITICAL — sits on top of image */
  top: 18px;
  left: 18px;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 4;
}

/* ── Arrow buttons ── */
.gs-btn {
  position: absolute;   /* CRITICAL — anchors inside .gs-wrap */
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;          /* above image and caption */
  transition: background 0.2s, transform 0.2s;
}

.gs-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.gs-btn svg {
  width: 22px;
  height: 22px;
  stroke: #1a1a1a;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gs-prev { left: 18px; }
.gs-next { right: 18px; }

/* ── Dots ── */
.gs-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 20px;
}

.gs-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.gs-dot.active {
  background: #2e7d32;
  width: 26px;
  border-radius: 4px;
}

/* ── Counter ── */
.gs-counter {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: #999;
}

/* ── Thumbnails ── */
.gs-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gs-thumbs::-webkit-scrollbar {
  display: none;
}

.gs-thumb {
  min-width: 100px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s;
  scroll-snap-align: start;
  flex-shrink: 0;
  border: 2.5px solid transparent;
  box-sizing: border-box;
}

.gs-thumb.active {
  opacity: 1;
  border-color: #2e7d32;
}

.gs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ── CTA block ── */
.gallery-cta {
  text-align: center;
  margin-top: 60px;
  padding: 50px 30px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8f0e0;
}

.gallery-cta h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.gallery-cta p {
  color: #666;
  margin-bottom: 26px;
  font-size: 1rem;
}

.gallery-cta .cta-button {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s;
}

.gallery-cta .cta-button:hover {
  background: #6fb035;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gs-slide img { height: 400px; }
}

@media (max-width: 600px) {
  .gs-slide img   { height: 280px; }
  .gallery-container { padding: 0 16px; }
  .gs-btn         { width: 38px; height: 38px; }
  .gs-btn svg     { width: 16px; height: 16px; }
  .gs-thumb       { min-width: 72px; height: 54px; }
  .gallery-header h2 { font-size: 1.8rem; }
}
