h2 {
  text-align: center;
  color: #0000008a;
  margin-top: 20px;
}

.gallery {
  column-count: 4;
  column-gap: 12px;
  max-width: 1200px;
  margin: 20px auto;
}

@media (max-width: 1000px) { .gallery { column-count: 3; } }
@media (max-width: 700px) { .gallery { column-count: 2; } }
@media (max-width: 480px) { .gallery { column-count: 1; } }

.gallery img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  display: block;
  break-inside: avoid;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(231, 182, 201, 0.4);
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  z-index: 1001;
}

#lightbox img.show { transform: scale(1); }

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 1020;
}

#lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 15px;
  transition: all 0.2s ease;
  z-index: 1015;
  background: none !important;
  border: none !important;
}

#lightbox .nav:hover {
  color: #f7cfe3;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
  #lightbox .nav {
    top: auto;
    bottom: 30px;
    transform: none !important;
    color: #ccc;
    font-size: 4rem;
    padding: 20px;
  }

  #lightbox .nav:active {
    color: #e7b6c9 !important;
    transform: scale(0.95) !important; 
  }

  #lightbox .nav:hover {
    color: #ccc; 
    transform: none;
  }

  .prev { left: 15% !important; }
  .next { right: 15% !important; }

  #lightbox img {
    max-height: 75%;
    max-width: 95%;
  }
}