.gallery-section {
  padding: 80px 20px;
  background: #f8fafc;
  text-align: center;
}

.gallery-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 50px;
  font-family: inherit;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.4s ease;
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

#gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

#gallery-lightbox-img {
  max-width: 94%;
  max-height: 94vh;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  animation: galleryZoom 0.5s ease;
}

@keyframes galleryZoom {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#gallery-close-btn {
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  background: rgba(255,255,255,0.25) !important;
  color: white !important;
  border: none !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  font-size: 2rem !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  z-index: 10000 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#gallery-close-btn:hover {
  background: rgba(255,255,255,0.45) !important;
  transform: scale(1.15) !important;
}

@media (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gallery-title { font-size: 2rem; margin-bottom: 35px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-section { padding: 60px 15px; }
  #gallery-close-btn { top: 15px; right: 15px; width: 48px; height: 48px; font-size: 1.6rem; }
}