/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: rgb(29, 29, 29);
  color: #eaeaea;
  font-family: 'Times New Roman', Times, serif;
}
.gallery-hero {
  text-align: center;
  padding: 60px 20px 20px;
}
/* ===== GRID ===== */
.gallery-grid {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 16px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* ===== CARD ===== */
.gallery-card {
  background: #1b1f22;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
}

/* ===== IMAGE ===== */
.image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

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

/* ===== SKELETON LOADER ===== */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1b1f22 25%,
    #2a2f33 37%,
    #1b1f22 63%
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== INFO ===== */
.card-info {
  padding: 18px;
}

.card-info h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card-info span {
  font-size: 13px;
  color: #9fa6ad;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 14px;
}

/* ===== TABLET ===== */
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 900px) {
  .gallery-hero h1 {
    font-size: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}