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

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

.gallery-header1{
 margin-top: 90px;
}

.gallery-header1 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);
}
/* Desktop responsiveness */
@media (min-width: 1024px) {

  .gallery-main {
    max-width: 850px;   
    margin: 50px auto 30px;
  }

  .gallery-main img {
    height: 380px;     
  }

}
/* Mobile responsiveness */
@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); 
  }

  .thumbnail img {
    height: 100px; 
  }
}

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

  .thumbnail img {
    height: 90px;
  }
  .gallery-main {
    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;
  }
}


.container {
  max-width: 100%;
  margin: 20px auto;
  padding: 0 20px;
}
.container h1{
  padding-bottom: 20px;
}
h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #0b3a66;

}

.works-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.work-item {
  background: white;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  overflow: hidden;
}

.before-image,
.after-image {
  height: 100%;
  object-fit: cover;
  transition: width 0.3s ease-out;
}

.before-image {
  width: 50%;
  position: relative;
}

.after-image {
  width: 50%;
  position: relative;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #fff;
  border-left: 2px solid #333;
  border-right: 2px solid #333;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.slider-handle::before {
  content: "←→";
  font-weight: bold;
  color: #333;
  font-size: 1.2rem;
}

.label {
  position: absolute;
  bottom: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 4px;
  font-weight: bold;
}

.before-label {
  left: 10px;
}

.after-label {
  right: 10px;
}

.work-title {
  text-align: center;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #f8f9fa;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .slider-container {
    height: 250px;
  }

  h1 {
    font-size: 2rem;
  }
}