/* ========================= */
/* GALLERY SECTION */
/* ========================= */

.gallery-section {
  max-width: 1400px;
  margin: 15px auto 40px auto;
  padding: 0 20px;

background: #f7faf8;
  border-radius: 30px;
  padding: 10px 30px;
}


.gallery-title {
  font-size: 28px;
  color: #2f5d50; /* changed */
  margin-bottom: 32px;
  text-align: left;
  font-weight: 600;
}

/* ========================= */
/* ROW-BASED LAYOUT */
/* ========================= */

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ========================= */
/* GROUP CARD */
/* ========================= */

.gallery-card {
  width: 100%;
  background: #f6f4ef; /* changed */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(47, 93, 80, 0.12); /* changed */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 0;
  border: 1px solid rgba(47, 93, 80, 0.08);

}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(47, 93, 80, 0.18); /* changed */
}

/* ========================= */
/* CAPTION */
/* ========================= */

.gallery-card figcaption {
  padding: 12px 20px 8px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #2f5d50;
  background: linear-gradient(to right, #eaf3ef, #f6f4ef);
  border-bottom: 1px solid #d8e6df;
  letter-spacing: 0.5px;
}

/* ========================= */
/* IMAGES ROW */
/* ========================= */


.gallery-card .group-images::-webkit-scrollbar {
  height: 6px;
}

.gallery-card .group-images::-webkit-scrollbar-thumb {
  background: rgba(47, 93, 80, 0.25); /* changed */
  border-radius: 10px;
}

/* ========================= */
/* IMAGE STYLE */
/* ========================= */


.gallery-card img:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(47, 93, 80, 0.18);
  border-color: #2f5d50;
}


/* ========================= */
/* LIGHTBOX */
/* ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 64, 54, 0.9); /* changed */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  z-index: 9999;
  padding: 20px;
}

.lightbox img {
  max-width: 95%;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(47, 93, 80, 0.6); /* changed */
}

.lightbox p {
  position: absolute;
  bottom: 25px;

  background: rgba(0, 0, 0, 0.5);
  color: #fff;

  padding: 10px 20px;
  border-radius: 10px;

  font-size: 20px;
  text-align: center;

  backdrop-filter: blur(6px);

  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 32px;
  color: #f6f4ef; /* changed */
  cursor: pointer;
}
/* ARROWS */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  background: rgba(255,255,255,0.15);
  color: #f6f4ef;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* LEFT */
.lightbox-prev {
  left: 20px;
}

/* RIGHT */
.lightbox-next {
  right: 20px;
}

/* HOVER */
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
}
.lightbox p {
  position: absolute;
  bottom: 20px;
}
/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
  .gallery-card img {
    height: 200px;
  }

  .gallery-card .images-row {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .gallery-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .gallery-card img {
    height: 165px;
  }
}

/* =========================
   FULL WIDTH GALLERY CAROUSEL
========================= */

/* =========================
   FULL WIDTH GALLERY CAROUSEL
========================= */

.top-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* CONTAINER */

.carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* SLIDES */

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* IMAGE */

.carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* OVERLAY */

.carousel-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 20px;
}

/* TITLE */

.carousel-overlay h2 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 12px;
}

/* SUBTEXT */

.carousel-overlay p {
  color: #fff;
  font-size: 18px;
  max-width: 700px;
  line-height: 1.6;
}

/* DOTS */

.carousel-dots {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.carousel-dot {
  width: 10px;
  height: 10px;

  margin: 0 5px;

  border-radius: 50%;

  display: inline-block;

  background: rgba(255,255,255,0.5);

  cursor: pointer;

  transition: 0.3s;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

/* MOBILE */

@media (max-width: 768px) {

  .carousel-container {
    height: 150px;
  }

  .carousel-slide img {
    height: 150px;
  }

  .carousel-overlay h2 {
    font-size: 24px;
  }

  .carousel-overlay p {
    font-size: 14px;
    padding: 0 10px;
  }

}
/* =========================
   COMPACT PHONE GALLERY
========================= */

.gallery-card .group-images {
  column-count: 5;      /* more columns = smaller thumbnails */
  column-gap: 8px;

  padding: 12px;
}

/* IMAGE STYLE */

.gallery-card img {
  width: 100%;
  height: auto;

  display: block;

  margin-bottom: 8px;

  border-radius: 10px;

  background: #fff;
  padding: 2px;

  border: 1px solid #e3ebe7;

  box-shadow: 0 2px 8px rgba(47, 93, 80, 0.08);

  break-inside: avoid;

  transition: all 0.25s ease;

  cursor: pointer;
}

/* HOVER */

.gallery-card img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(47, 93, 80, 0.16);
}

/* TABLET */

@media (max-width: 992px) {

  .gallery-card .group-images {
    column-count: 4;
  }

}

/* MOBILE */

@media (max-width: 768px) {

  .gallery-card .group-images {
    column-count: 3;
    column-gap: 6px;
    padding: 8px;
  }

}

/* SMALL MOBILE */

@media (max-width: 480px) {

  .gallery-card .group-images {
    column-count: 2;
  }

}