.gallery-container {
  /* display: flex;
    flex-wrap: wrap;
    justify-content: center; */
  padding: 40px;
}

/* .......................................  */

/* Grid Layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
}

/* Gallery Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Gallery Images */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Add Different Sizes */
.gallery-item:nth-child(4n) {
  grid-column: span 1;
  grid-row: span 2;
}

/* Add Animation */
.animate .gallery-item {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effect Overlay (Optional) */
.gallery-item:hover::after {
  content: "View Image";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* .............................................   */

/* .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  } */

/* .gallery-item {
    margin: 5px;
    transition: transform 0.3s ease;
  } */

/* .gallery-image {
    max-width: 100%;
    height: 200px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
  } */

/* .gallery-image:hover {
    transform: scale(1.05);
  } */

.modal {
  display: none;
  position: fixed !important;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 90%;
  height: auto;
  transition: transform 0.5s ease-in-out;
  transform: scale(0.9);
  animation: zoomIn 0.5s ease-in-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

.modal-image {
  width: 100%;
  width: fit-content;
  height: 90vh;
  margin: auto;
  display: block;
  opacity: 0;
  animation: imageFadeIn 0.5s ease-in-out forwards;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.closed {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.closed:hover,
.closed:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #ffffff;
  background: grey;
  font-weight: bold;
  font-size: 20px;
  transition: background-color 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ...................  */

/* For smooth scrolling experience */
html {
  scroll-behavior: smooth;
}

/* .............................. */
/* .................... mobile ......  */

/* General styling for mobile */
@media screen and (max-width: 768px) {
  .sixth-main-cont {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
  }
  .sixth-main-cont h4 {
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
  }
  .sixth-main-cont p {
    text-align: justify;
    line-height: 22px;
    font-size: 14px;
  }
  .sec-cont-main-div {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
  }
  .ratebot-content {
    margin-top: 40px;
    color: #000;
  }
  /* roooom   ... .  */
  .content-sec-main-div-room,
  .content-sec-main-div-gallery {
    padding: 100px 60px;
    background-size: cover;
    background-position: center;
    margin-top: 60px;
  }
  .content-sec-main-div-room p,
  .content-sec-main-div-gallery p {
    font-size: 22px;
    font-weight: 100;
    padding: 20px;
    background: #ffffff4d;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
  }
  .room-sec-main-div {
    padding: 10px;
  }
  .room-sec-main-div h1 {
    font-size: 20px;
  }
  .room-sec-main-div img {
    height: 250px;
  }
  .gallery-container {
    padding: 10px;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  /* .gallery-image {
      max-width: 100%;
      height: 200px;
      cursor: pointer;
      border-radius: 5px;
      transition: transform 0.3s ease, opacity 0.3s ease;
      width: 100%;
    } */
  .modal-content {
    position: relative;
    margin: auto;
    max-width: 95%;
    height: auto;
    transition: transform 0.5s ease-in-out;
    transform: scale(0.9);
    animation: zoomIn 0.5s ease-in-out forwards;
  }
  .modal-image {
    width: 100%;
    height: 250px;
    margin: auto;
    display: block;
    opacity: 0;
    animation: imageFadeIn 0.5s ease-in-out forwards;
    border-radius: 4px;
  }
  .prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 8px;
  background: transparent;
  
}
  .closed {
    position: absolute;
    top: 90px;
    right: 10px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    /* background: #ffffff33; */
  }
  .modal {
    padding-top: 130px;
  }
  /* .................................  */
  .gallery-item {
    padding: 10px;
    border-radius: 6px;
  }
}
