/* ===== Gallery Section ===== */
.himmi-photo-gallery {
  padding: 60px 0;
  background-color: #f9f9f9;
}

/* ===== Photo Box ===== */
.himmi-photo-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.himmi-photo-box img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.himmi-photo-box:hover img {
  transform: scale(1.08);
}

/* ===== Overlay Effect ===== */
.himmi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.himmi-photo-box:hover .himmi-overlay {
  opacity: 1;
}

/* ===== Glass Icon ===== */
.himmi-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.himmi-photo-box:hover .himmi-icon {
  opacity: 1;
}

/* ===== Title on Hover ===== */
.himmi-photo-title {
  position: absolute;
  bottom: -45px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.65);
  padding: 10px 0;
  transition: all 0.4s ease;
}

.himmi-photo-box:hover .himmi-photo-title {
  bottom: 0;
}

/* ===== Modal Image View ===== */
.modal-content {
  background-color: transparent;
  border: none;
}

.modal-body img {
  width: 100%;
  border-radius: 10px;
  max-height: 50vh;
  object-fit: contain;
  margin-top: 90px;
}
.modal-caption {
  text-align: center;
  color: #fff;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
}

.modal-dialog {
  max-width: 90%;
}

/* ===== Modal Navigation ===== */
.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal-navigation:hover {
  opacity: 1;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* ===== Center Modal Image on Mobile ===== */
@media (max-width: 767px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    margin: 0 auto;
    border-radius: 0;
  }

  .modal-body {

    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .modal-body img {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }
.himmi-photo-box img {
 
  height: 200px;
 
}

.custom-close {
    top: 33px !important;
      right: 20px !important;
      font-size: 22px !important;

}

}


/* ===== Custom Close Icon ===== */
.custom-close {
  position: absolute;
   top: 50px;
  right: 100px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 50%;
}

.custom-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.1);
}

/* Navigation icons styling (for consistency) */
.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: 0.3s ease;
}

.modal-navigation:hover {
  opacity: 1;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}