/* Gallery Container */
/* Full View Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 50%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  animation: zoom 0.3s ease;
  width: 100%;
  height: auto;
}

@keyframes zoom {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ffbb00;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-item p {
  margin: 0;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #dd0000;
  text-align: center;
  background: #ffffff;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .modal-content {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .modal-content {
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .gallery-item img {
    height: 150px;
  }

  .gallery-item p {
    font-size: 12px;
    padding: 8px;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }

  .gallery-item img {
    height: 120px;
  }

  .gallery-item p {
    font-size: 11px;
    padding: 6px;
  }
}
