/* General Styles */

.why-container {
  text-align: center;
  padding: 0px 30px;
  padding-top: 5%;
  padding-bottom: 5%;
  background-color: rgba(173, 216, 230, 0.2);
}

.why-title {
  color: #1b2c5f !important;
  /* margin-bottom: 40px; */
  font-weight: bold;
  letter-spacing: 1.5px;
}

/* Card Container */
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
}

.why-card {
  background: white;
  border-radius: 15px;
  border: 3px solid rgba(0, 255, 0, 0.2);

  box-shadow: 0 5px 10px rgba(0, 128, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 20px;
  text-align: center;
  height: 200px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 10px rgba(0, 128, 0, 0.15);
}

.why-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.why-card:hover img {
  transform: scale(1.1) rotate(10deg);
}

/* Icon Style */
.why-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  color: red;
}

/* Text Style */
.why-text {
  font-size: 20px;
  color: #555;
  line-height: 1.5;
}
.why-text:hover {
  /* color: #03afa1; */
}

/* Responsive Design */
@media (min-width: 1024px) {
  .why-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-card {
    height: 200px;
    width: 100%;
    max-width: 800px !important;
  }
}

@media (max-width: 500px) {
  .why-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  .why-title {
    color: #333333;

    font-weight: bold;
    letter-spacing: 1.5px;
  }

  .why-container {
    padding: 20px 30px;
    padding-top: 10%;
    padding-bottom: 10%;
  }
}
@media (min-width: 501px) and (max-width: 767) {
  .why-container {
    padding: 20px 30px !important;
  }
  .why-cards {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
  }

  .why-title {
    color: #1b2c5f;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1.5px;
  }
}



.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Hide the scrollbar but allow scrolling */
.right-images-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 20px;
  flex-shrink: 0;
  max-height: 80vh;
  overflow-y: scroll; /* Enable vertical scrolling */
  padding-right: 10px;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.right-images-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari) */
}

/* Smooth scroll behavior */
.right-images-container {
  scroll-behavior: smooth; /* Smooth scrolling */
}

.full-image {
  max-width: 100%;
  max-height: 80vh; /* Ensures the image fits within the viewport */
  object-fit: contain;
}

/* Ensure the lightbox and image containers are responsive */
.lightbox-images-container {
  display: flex;
  justify-content: center;
  align-items: center; /* Centers the image vertically */
  flex-grow: 1;
  position: relative;
  overflow: hidden; /* Hide anything that goes out of bounds */
  height: 100vh; /* Ensure it takes full viewport height */
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Overlay */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden; /* Hide overflow */
}

/* For small devices */
@media (max-width: 600px) {
  .lightbox-images-container {
    height: 100vh; /* Ensure it takes the full height of the viewport */
  }

  .full-image {
    max-width: 100%; /* Image should take full width */
    max-height: 70vh; /* Limit the height of the image */
  }

  .right-images-container {
    max-height: 70vh; /* Limit height for vertical scrolling */
    overflow-y: auto; /* Enable scroll */
  }

  .right-images-container img {
    width: 60px; /* Resize images for small devices */
    height: auto;
  }
}



.right-images-container img {
  width: 80px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.right-images-container img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.g-arrow {
  position: absolute;
  top: 50%;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}







/* #gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 16px;
}

.gallery-item {
  width: calc(33.33% - 16px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) and (min-width: 500px) {
  #gallery-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
   
  }

  .gallery-item {
    flex: 0 0 100% !important;
    scroll-snap-align: end !important;
  }

  .gallery-item img {
    
    object-fit: cover !important;
  }
}
*/

.lg-next, .lg-prev {
  color: #25d366 !important;
  background-color: rgba(0, 0, 0, 0.5) !important; /* Add background for visibility */
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important; /* Slight shadow for better visibility */
  width: 40px !important; /* Ensure a larger clickable area */
  height: 40px !important; /* Ensure a larger clickable area */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px; /* Adjust size of the arrows */
}

.lg-next::before, .lg-prev::before {
  font-size: 24px !important; /* Increase size of arrow icon */
}

.lg-next:hover, .lg-prev:hover {
  background-color: #25d366 !important; /* Highlight background on hover */
  color: #fff !important; /* White color for text/icons */
}

.lg-backdrop {
  background: rgba(0, 0, 0, 0.8) !important; /* Dark transparent background */
  transition: background 0.3s ease;
}

.lg-backdrop.lg-show {
  background: rgba(0, 0, 0, 0.8) !important; /* Ensure it stays dark when open */
}

.lg-toolbar .lg-download:after {
  display: none !important;
}

.lg-outer .lg-object {
  width: 100% !important;
  max-width: 450px !important;
}
.lg-zoom-in{
  display: none !important;
}
.lg-download {
  display: none !important;
}
.lg-close {
  display: flex !important;
}

@media (min-width: 320px) and (max-width: 500px) {
  .lg-outer .lg-object {
    width: 100% !important;
    max-width: 290px !important;
  }
  .lg-next {
    bottom: 10%;
    top: 70% !important;
    background-color: rgba(0, 0, 0, 0.7) !important; /* Ensure visibility */
    right: 35%;
  }

  .lg-prev {
    bottom: 10%;
    top: 70% !important;
    background-color: rgba(0, 0, 0, 0.7) !important; /* Ensure visibility */
    left: 35%;
  }
}

@media (min-width: 500px) and (max-width: 767px) {
  .lg-outer .lg-object {
    width: 100% !important;
    max-width: 350px !important;
  }
  .lg-next {
    bottom: 1%;
    top: 75% !important;
    background-color: rgba(0, 0, 0, 0.7) !important; /* Ensure visibility */
    right: 35%;
  }

  .lg-prev {
    bottom: 1%;
    top: 75% !important;
    background-color: rgba(0, 0, 0, 0.7) !important; /* Ensure visibility */
    left: 35%;
  }
}
