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

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 100px;
}

.gallery-subtitle {
  display: inline-block;
  font-family: Poppins;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-1);
  margin-bottom: 12px;
}

.gallery-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-family: Poppins;
  font-weight: 800;
  margin-bottom: 15px;
}

.gallery-header h2 span {
  color: var(--green-1);
}

.gallery-header p {
  color: #6b7280;
  font-size: 16px;
}

/* =====================================
   GALLERY GRID
===================================== */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

/* =====================================
   IMAGE CARD
===================================== */

.gallery-card {
  position: relative;

  height: 280px;

  overflow: hidden;

  border-radius: 18px;

  background: #e5e7eb;

  cursor: pointer;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

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

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

  object-fit: cover;

  display: block;

  transition: transform 0.6s ease;
}

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

/* =====================================
   OVERLAY
===================================== */

.gallery-overlay {
  position: absolute;

  inset: 0;

  display: flex;

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

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

  opacity: 0;

  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* =====================================
   ZOOM ICON
===================================== */

.zoom-icon {
  width: 52px;
  height: 52px;

  display: flex;

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

  border-radius: 50%;

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

  color: #111827;

  font-size: 22px;

  transform: scale(0.7);

  transition: transform 0.35s ease;
}

.gallery-card:hover .zoom-icon {
  transform: scale(1);
}

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

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

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

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

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;

  visibility: visible;
}

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

.lightbox-content {
  position: relative;

  width: min(90vw, 1100px);

  height: min(85vh, 750px);

  display: flex;

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

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  border-radius: 10px;

  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);

  user-select: none;
}

/* =====================================
   CLOSE BUTTON
===================================== */

.lightbox-close {
  position: absolute;

  top: 25px;
  right: 30px;

  z-index: 10;

  width: 48px;
  height: 48px;

  border: none;

  border-radius: 50%;

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

  color: white;

  font-size: 32px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);

  transform: rotate(90deg);
}

/* =====================================
   PREVIOUS / NEXT
===================================== */

.lightbox-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 10;

  width: 52px;
  height: 52px;

  border: none;

  border-radius: 50%;

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

  color: white;

  font-size: 24px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

/* =====================================
   COUNTER
===================================== */

.image-counter {
  position: absolute;

  bottom: -40px;

  left: 50%;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.8);

  font-size: 14px;

  letter-spacing: 1px;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-card {
    height: 240px;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
  .gallery-section {
    padding: 70px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
  }

  .gallery-card {
    height: 200px;

    border-radius: 14px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }
}
