       
/* 📸 Gallery Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
  }
  
  .gallery__images-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .gallery__images-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .gallery__images-small {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  /* 🧩 Image Hover Effect */
  .gallery__images-link:hover .gallery__images-small {
    transform: scale(1.05);
  }
  
  /* 🔥 Overlay Effect */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background-color 0.5s ease;
  }
  
  .gallery__images-link:hover .overlay {
    background-color: rgba(0, 0, 0, 0);
  }
  
  /* 📋 Popup Text on Hover */
  .popup-text-v1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
  }
  
  .gallery__images-link:hover .popup-text-v1 {
    opacity: 1;
  }
  
  /* 📱 Responsive Gallery Adjustments */
  @media (max-width: 992px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 576px) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }
    

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background-color 0.5s;
}

.overlay:hover {
    background-color: transparent;
}

.gallery__images-small {
    transform: scale(1);
    transition: transform 0.4s;
}

.overlay:hover + .gallery__images-small {
    transform: scale(1.2);
}

/* Lightbox */
.gallery__lightbox {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.gallery__lightbox-content {
    width: 80%;
    height: 250px;
    position: relative;
}

.close,
.back,
.next {
    position: absolute;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.close {
    top: -20px;
    right: 0;
    background-color: #bd1e1e;
    color: #fff;
    width: 30px;
    height: 30px;
}

.back,
.next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #bdbec9a3;
    color: #000;
}

.back {
    left: 0;
}

.next {
    right: 0;
}

.gallery__lightbox-image {
    box-shadow: 1px 1px 5px 1px #320917, -1px -1px 5px 1px #320917;
    border-radius: 4px;
}

.gallery__lightbox:target {
    opacity: 1;
    pointer-events: auto;
}


/* Gallery Popup Styling */
.popup-container {
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-text {
    position: absolute;
    bottom: -200px; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 80px;
    text-align: left;
    font-size: 1.3rem;
    transition: bottom 0.3s ease; /* Smooth transition */
}

.popup-container:hover .popup-text {
    bottom: 0; /* Slide up on hover */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .popup-text {
        padding: 60px; /* Reduce padding on large tablets */
        font-size: 1.2rem; /* Slightly smaller font */
    }
}

@media (max-width: 992px) {
    .popup-text {
        padding: 40px; /* Further reduce padding on tablets */
        font-size: 1.1rem; /* Adjust font size */
    }
}

@media (max-width: 768px) {
    .popup-text {
        padding: 30px; /* Compact padding for mobile screens */
        font-size: 1rem; /* Smaller font size for mobile */
    }
}

@media (max-width: 576px) {
    .popup-text {
        padding: 20px; /* Minimal padding for smaller mobile screens */
        font-size: 0.9rem; /* Smaller font size */
    }
}



/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; /* Prevent scrollbar during lightbox */
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 75%;
    max-height: 75%;
}

.lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000; /* Ensure the buttons appear above other elements */
}

.lightbox-prev {
    left: 20px; /* Ensure visibility by setting proper padding */
}

.lightbox-next {
    right: 20px; /* Ensure visibility by setting proper padding */
}

/* Footer for lightbox */
.lightbox-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    padding: 10px;
    color: white;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

#lightbox-counter {
    font-size: 14px;
    color: #ccc;
}

/* Adjusted close button (X) */
.close-lightbox {
    position: absolute;
    top: 10px; /* Keep it at the top */
    right: 50px; /* Align with zoom buttons */
    background: none;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the image */
}

/* Zoom buttons and percentage placement */
.lightbox-header {
    display: flex;
    flex-direction: column; /* Stack buttons and percentage vertically */
    align-items: center;
    position: absolute;
    top: 50px; /* Space below the close button */
    right: 20px; /* Matches alignment with the close button */
    gap: 5px; /* Small gap between elements */
    z-index: 1000; /* Keep it above the image but below the close button */
}

/* Ensure buttons are accessible even with large images */
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 0; /* Place the image below all buttons */
}

/* Zoom buttons styling */
.zoom-in,
.zoom-out {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    border: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.zoom-in:hover,
.zoom-out:hover {
    background-color: rgba(255, 255, 255, 1);
}

#zoom-percentage {
    color: white;
    font-size: 14px;
    font-weight: bold;
}




.gallery-filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  position: relative;
  padding: 10px 20px;
  margin-bottom: 30px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.gallery-filter-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.gallery-filter-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.filter-btn {
  background: #5693a5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.filter-btn.active {
  background: #356474;
}

.filter-btn:hover {
  background-color: #2a5c6c; /* darker on hover */
  transform: translateY(-2px); /* subtle lift */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-arrows {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.arrow {
  background-color: #356474;
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}


.gallery-filter-container-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gallery-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 90%;
  scroll-behavior: smooth;
}

.gallery-filter-scroll::-webkit-scrollbar {
  display: none;
}

.gallery__images-item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.gallery__images-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
