/* GALLERY SECTION */

.gallery-section {
  background: #f6f3ef;
  padding: 100px 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header h2 {
  font-size: 38px;
  color: #0e3c4c;
  margin-bottom: 10px;
}

.gallery-header p {
  color: #666;
}

/* GRID */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.5s;
}

/* Hover Animation */

.gallery-card:hover img {
  transform: scale(1.1) rotate(2deg);
}

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

/* POPUP */

.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-popup img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

/* BUTTONS */

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff5a2c;
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px;
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}

/* RESPONSIVE */

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

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
