
/* =========================
   Global Styles for Gallery
========================= */

body {
  background-color: #000;
  color: #fff;
  padding-bottom: 30px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* =========================
   LIGHTBOX (dialog)
========================= */

/* Base dialog */
dialog {
  border: none;
  padding: 0;
  background: transparent;
}

/* Backdrop overlay */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.25s ease;
}

/* Centered image */
dialog img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);

  max-width: 90vw;
  max-height: 90vh;

  border-radius: 10px;
  object-fit: contain;

  animation: popIn 1.5s ease-out;
  will-change: transform, opacity;
}

/* =========================
   Animations
========================= */

@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* =========================
   Footer
========================= */

.site-footer {
  background-color: #000;
  color: white;
  padding: 20px;
  text-align: center;
}

/* =========================
   Responsive
========================= */

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

dialog img {
    animation: none; /* Disable the animation */
    transform: translate(-50%, -50%) scale(1); /* Keep the image at normal scale */
  }

  dialog img {
    animation: fadeIn 1.5s ease; /* Add fade-in effect */
    transform: translate(-50%, -50%) scale(1); /* Keep the image at normal scale */
  }

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================
   Headings
========================= */

h1 {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: #c8a96a;
}

h2 {
  color: #c8a96a;
  font-size: 24pt;
}