/* -----BASIC SETUP---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f0f2f5;
}

/* ------WORK SECTION-------------- */
.work-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* -----SECTION HEADER---------- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 42px;
  font-weight: bold;
  color: #2c5a3e;
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 3px solid #c9a87b;
  padding-bottom: 8px;
}

.section-description {
  max-width: 750px;
  margin: 20px auto 0;
  color: #555;
  line-height: 1.7;
  background: white;
  padding: 18px 28px;
  border-radius: 40px;
  font-style: italic;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* ---------GALLERY GRID-----------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Gallery Card */
.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery-card:hover {
  transform: translateY(-8px);
}

.card-link {
  text-decoration: none;
  display: block;
}

.image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.08);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
  color: white;
  padding: 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s;
}

.gallery-card:hover .image-caption {
  transform: translateY(0);
}

.image-caption h2 {
  font-size: 18px;
  margin: 0;
}

.image-caption h2 span {
  color: #f7d44a;
  border-bottom: 2px solid #ffc857;
}

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

/* ----------RESPONSIVE -------- */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .work-section {
    padding: 60px 15px;
  }
  .section-title {
    font-size: 34px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gallery-image {
    height: 230px;
  }
}

@media (max-width: 576px) {
  .work-section {
    padding: 40px 12px;
  }
  .section-title {
    font-size: 28px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-image {
    height: 250px;
  }
  .close-btn {
    top: -40px;
    right: -10px;
    width: 35px;
    height: 35px;
    line-height: 33px;
    font-size: 26px;
  }
}
