
/* Gallery */
.gallery-container {
  width: 100%;
  max-width: 1400px;  /* makes it BIG*/
  /* margin: auto; */
  padding: 40px 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* bigger cards */
  gap: 25px;
}

.gallery img {
  width: 100%;
  height: 260px;   /* increased height */
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;   /* shorthand for top, left, right, bottom = 0 */
  background: rgba(0,0,0,0.95);
}

.modal-img {
  width: 100%;
  height: 100vh;   /* full screen height */
  object-fit: contain;  /* keeps image ratio */
  display: block;
  margin: auto;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.5); }
  to { transform: scale(1); }
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.caption {
  text-align: center;
  color: #ccc;
  padding: 10px;
  font-size: 18px;
}

/* Responsive */
@media(max-width: 600px) {
  .modal-img {
    max-width: 95%;
  }
}