* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f8f9fb;
  color: #222;
}

/* =========================
   Enhanced Header
========================= */

.gallery-header {
  text-align: center;
  padding: 5rem 1rem 3rem;
  background: linear-gradient(to bottom, #ffffff, #f6f7fb);
}

.gallery-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 20px;
  background-color: #fff;
}

.gallery-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111;
}

.gallery-header h1 span {
  color: #2b6cb0;
  font-weight: 800;
}

.gallery-divider {
  width: 70px;
  height: 3px;
  margin: 1.2rem auto 1.4rem;
  background: linear-gradient(to right, #2b6cb0, #5a9bd4);
  border-radius: 3px;
}

.gallery-header p {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
   Gallery Layout
========================= */

.gallery {
  position: relative;
  margin-top: 1rem;
}

.gallery-track {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 1rem 4rem;
  will-change: transform;
}

.card {
  height: 380px;
  overflow: hidden;
  border-radius: 6px;
  background: #ddd;
}

.card-image-wrapper {
  height: 135%;
  will-change: transform;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Footer
========================= */

.gallery-footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  font-size: 0.9rem;
  color: #777;
}

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

@media (max-width: 900px) {
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .gallery-track {
    grid-template-columns: 1fr;
  }

  .gallery-header h1 {
    font-size: 2rem;
  }
}
