:root {
  --roller: #0b3a66;
  --blinds: #5ec5e6;
  --bg: #f9f9f9;
  --text: #333;
  --white: #fff;
  --muted: #6b7280;
  --transition: all 0.3s ease;
}

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

/* Header Section */
/* .gallery-main-header{
      margin-top: 80px;
       background: var(--primary);
      color: var(--white);
      padding: 60px 20px 120px;
      text-align: center;
      position: relative;
    } */

.gallery-header {
  color: #0b3a66;
  margin-top: 90px;
  text-align: center;
  position: relative;
}

.gallery-header h5 {
  color: #0b3a66;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 24px;
}

.gallery-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0b3a66;
}

/* Main Image Card */
.gallery-main {
  max-width: 1000px;
  margin: 60px auto 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-main img {
  height: 420px;
  object-fit: cover;
}


.slide-out {
  transform: translateX(-40px);
  opacity: 0;
}

.slide-in {
  transform: translateX(0);
  opacity: 1;
}

/* Thumbnails */
.thumbnails {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

.thumbnail {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.thumbnail:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .gallery-header h1 {
    font-size: 30px;
  }
}

/* ===== MOBILE FIX: THUMBNAILS SIDE BY SIDE ===== */
@media (max-width: 768px) {
  .thumbnails {
    grid-template-columns: repeat(3, 1fr); /* side by side */
  }

  .thumbnail img {
    height: 100px; /* thoda compact */
  }
}

@media (max-width: 480px) {
  .thumbnails {
    grid-template-columns: repeat(3, 1fr); /* still side by side */
  }

  .thumbnail img {
    height: 90px;
  }
  .gallery-main {
    padding: 0 12px;   /* tighter padding on small screens */
    margin: 40px auto 30px;
  }
}

@media (max-width: 768px) {
  .gallery-main {
    max-width: 90%;
  }

  .gallery-main img {
    height: 300px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .gallery-main img {
    height: 240px;
  }
}

