/* ===== Basic Section Styles ===== */

.gallery-section {
  padding: 80px 15px;
  overflow: hidden;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ===== Header ===== */
.gallery-header {
  margin-bottom: 50px;
}

.gallery-subtitle {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item {
  display: none;  /* hidden initially */
}

.gallery-item.visible {
  display: block;
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  padding: 10px 25px;
  border: none;
  background: black;
  color: white;
  cursor: pointer;
  border-radius: 6px;
}
/* ===== Popup Modal ===== */
.gallery-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
}

.gallery-popup img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

/* ===== Close Button ===== */
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #f00;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 28px;
  }

  .gallery-subtitle {
    font-size: 14px;
  }

  .gallery-popup img {
    max-width: 95%;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .close-btn {
    font-size: 30px;
    top: 20px;
    right: 25px;
  }

  .gallery-title {
    font-size: 24px;
  }
}
