/* Gallery cards */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.gallery-card img {
  width: 100%;
  transition: 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* Caption overlay */
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px;
  text-align: center;
  font-size: 14px;
}

/* Lightbox */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

.overlay img {
  max-width: 90%;
  max-height: 85vh;
  transition: transform 0.3s;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Close */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
}

.close a {
  color: #fff;
  text-decoration: none;
}

/* Navigation */
.nav {
  position: absolute;
  top: 50%;
  font-size: 35px;
  color: white;
  padding: 10px;
}

.left { left: 20px; }
.right { right: 20px; }