/*MODAL STUFF*/

.gallery-item {
    position: relative;
    margin-bottom: 20px;
  }
  /* Styling for the thumbnail images */
.gallery-item img {
    width: 100%; /* Ensure thumbnails fit inside their container */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
    object-fit: cover;
    display: block; /* Ensure the image is displayed as a block element */
  }
  .gallery-item:hover .gallery-item-middle {
    opacity: 1;
  }

/* Dark overlay on hover, only over the image */
.gallery-item .gallery-item-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1; /* Ensure overlay is above the image, but below the text */
    transition: opacity 0.3s ease; /* Smooth transition for overlay */
  }

  .gallery-item-middle {
    position: absolute;
    color: white;
    opacity: 0;
    font-size: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 30px;
    padding: .500rem .90rem;
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
  } 
  .model-content{
    border:none;
    border-radius: 10px;
  }

  .modal-body {
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    padding:0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  
  button.close{
    z-index:2;
    position: absolute;
    top: 15px;
    right: 25px;
  }
  .modal-body img {
    max-width: 100%; /* Ensure the image scales down inside the modal */
    max-height: 70vh; /* Limit height for larger images */
    object-fit: contain; /* Ensure the aspect ratio is preserved */
  }
  .modal-buttons {
    z-index:2;
    position: absolute;
    justify-content:space-between;
    padding: 25px;
    transform: translateX(-50%);
    left: 50%;
    width: 100%;

  }
  .modal-buttons button {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  div.fade-overlay{
    display: block;
    position: absolute; /* Position the overlay on top of the container */
    bottom:0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #000, transparent); /* Black to transparent gradient */
    z-index:1; /* Ensures the gradient overlay stays on top */
  }
  
  /* Modal Image */
  #modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
  }
  
  /* Country text at top left */
  .country-text {
    z-index:2;
    position: absolute;
    top: 2rem;
    font-size: 24px;
    background-color: #fff;
    color: #032F98;
    padding: 3px 15px;
    font-family: "brandon-grotesque", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
  }
  
  div.citiesWrapper{
    z-index:2;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    position: absolute;
    bottom: 0;
  }
  
  div.bookNowTxt{
    position: relative;
    color: #fff;
    font-size: 18px;
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Darker and more blurred shadow */
  }

  /* Popular cities at the bottom */
  .cities-text {
    display: flex;
    gap: 7px;
    justify-content: center;
  }


  a.cities{
    font-size: 18px;
    background-color: #032F98 ;
    box-shadow: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 30px;
    padding: .200rem .60rem;
    cursor: pointer;
    
  }
  a.cities:hover{
    background-color: #fff;
    color: #032F98;
    white-space: nowrap; /* Prevent text from wrapping */
  }