/* General Styles */
.gallery {
  background: #FFFAFF;
  padding: 120px 20px 20px;
  text-align: center;
}

.gallery-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.gallery-heading {
  font-size: 2.5em;
  margin: 0;
  color: #000;
}

.gallery-line {
  width: 120px;
  height: 4px;
  background-color: #000;
  margin: 10px auto;
}

.gallery-description {
  color: #151414;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.thumb-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.thumb-wrapper img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 8px;
  transition: transform 0.3s, filter 0.3s;
}

.thumb-wrapper img:hover {
  transform: scale(1.1);
  filter: grayscale(50%);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  padding-top: 60px;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  border-radius: 4px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  cursor: pointer;
}

/* Responsive Styles */
@media only screen and (max-width: 800px) {
  .gallery-description {
      font-size: 14px;
      padding: 10px;
  }

  .thumb-wrapper img {
      width: 100px;
      height: 120px;
  }

  .close {
      top: 20px;
      right: 20px;
      font-size: 30px;
  }

  .modal-content {
      width: 90%;
  }
}

@media only screen and (max-width: 600px) {
  .gallery-description {
      font-size: 12px;
  }

  .thumb-wrapper img {
      width: 80px;
      height: 100px;
  }

  .close {
      font-size: 25px;
  }
}
