.key-head {
    color: #23559b;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}
.gallery-title {
    font-size: 18px;
    font-weight: 600;
    color: #23559B;
    text-align: left;
    line-height: 24px;
    margin-bottom: 30px;
}
.gallery-container-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.gallery-container-details img {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 12px;
}
/* Modal background */
.image-modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}

/* Image inside modal */
.image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  animation: zoomIn 0.3s ease;
}

/* Caption text */
#caption {
  text-align: center;
  color: #ccc;
  padding: 10px;
  font-size: 16px;
}

/* Close button */
.image-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.image-modal .close:hover {
  color: #bbb;
}

/* Animation */
@keyframes zoomIn {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}

/* Thumbnail hover */
.preview-thumb {
  cursor: pointer;
  transition: transform 0.2s;
}
.preview-thumb:hover {
  transform: scale(1.05);
}

@media(max-width:991px){
    .gallery-container-details {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-container-details img{
        height: auto;
    }
}
@media(max-width:767px){
    .gallery-container-details {
        grid-template-columns: repeat(1, 1fr);
    }
}