/* ================= GALLERY BANNER ================= */

.galeri-banner-section {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(41, 110, 86, 0.95),
    rgba(22, 60, 48, 0.95)
  );
}

.galeri-banner-section::before,
.galeri-banner-section::after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;
  opacity: 0.06;
  animation: galeriRotate 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.galeri-banner-section::before {
  top: -200px;
  left: -200px;
}

.galeri-banner-section::after {
  bottom: -200px;
  right: -200px;
  animation-direction: reverse;
}

@keyframes galeriRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.galeri-banner-section::after {
  mix-blend-mode: screen;
}

.galeri-banner-content {
  position: relative;
  z-index: 5;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.galeri-banner-title {
  font-size: clamp(32px, 5vw, 58px);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.galeri-banner-subtext {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 40px;
  opacity: 0.95;
}

.galeri-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffffff, #f2f2f2);
  color: #1f4d3b;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.galeri-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }

  .galeri-banner-section {
    height: 60vh;
    padding: 20px;
  }

  .galeri-banner-section::before,
  .galeri-banner-section::after {
    width: 300px;
    height: 300px;
    opacity: 0.04;
  }

  .galeri-banner-section::before {
    top: -120px;
    left: -120px;
  }

  .galeri-banner-section::after {
    bottom: -120px;
    right: -120px;
  }

  .galeri-banner-title {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 60px;
  }

  .galeri-banner-subtext {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }
}

/* ================= CONTAINER ================= */

.desktop_7 {
  padding: 60px 0;
}

.responsive-container-block.Container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= FILTER BUTTON ================= */

.optionsContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.optionsContainer .list {
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 20px;
  background: #e7e7e7;
  font-size: 14px;
  transition: 0.3s ease;
}

.optionsContainer .list.active,
.optionsContainer .list:hover {
  background: #296e56;
  color: #fff;
}

/* ================= GALLERY GRID ================= */

.imageContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: transparent;
}

.squareImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.project:hover .squareImg {
  transform: scale(1.05);
}

/* ================= VIEW BUTTON ================= */

.btn-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: 0.3s ease;
}

.project:hover .btn-box {
  opacity: 1;
}

.btn {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #296e56, #3c8c6d);
  color: #fff;
  transition: 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #1e513f, #296e56);
}

/* ================= OVERLAY ================= */

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.overlay-inner {
  position: relative;
  background: #fff;
  padding: 15px;
  border-radius: 20px;
  animation: zoomIn 0.35s ease forwards;
}

.overlay-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  padding: 7px 16px;
  background: #296e56;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* ================= FADE ANIMATION ================= */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .galeri-banner-section {
    height: 55vh;
  }

  .galeri-banner-section::before,
  .galeri-banner-section::after {
    width: 280px;
    height: 280px;
    opacity: 0.04;
  }

  .imageContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  @media (max-width: 768px) {
    .squareImg {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
    }
  }

  .btn-box {
    opacity: 1;
  }

  .btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 3000;
  }

  .overlay-inner {
    background: #fff;
    width: 95vw;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 15px;
  }

  .close {
    align-self: flex-end;
    margin-bottom: 10px;
    background: #1e513f;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
  }

  .hdImgs {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .againImg {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .imageContainer {
    grid-template-columns: 1fr;
  }

  .squareImg {
    aspect-ratio: 3 / 4;
  }
}

.optionsContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 5px 0 20px 0;
}

/* Filter pill style */
.filter-pill {
  display: inline-block;
  background: rgba(160, 160, 160, 0.22);
  color: #296e56;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

/* Hover effect */
.filter-pill:hover {
  background: rgba(41, 110, 86, 0.22);
  transform: translateY(-1px);
}

/* Active state */
.filter-pill.active {
  background: #296e56;
  color: #fff;
}

.project.show {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
