/* Lightbox container to fill the screen and match page background color */
.lb-outerContainer, .lb-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--page-background-color); /* Use a CSS variable for the page background color */
}

/* Image to fit within the lightbox container, maintaining aspect ratio */
.lb-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio */
    display: block;
    margin: auto;
}

/* Set the background color for the lightbox overlay */
.lb-overlay {
    background-color: var(--page-background-color); /* Use a CSS variable for the page background color */
    opacity: 1; /* Ensure the overlay is fully opaque */
}

/* Optionally hide the default Lightbox close button if desired */
.lb-close {
    display: none;
}
.gallery-lightbox-item {
    height: auto !important;
  
  }
  
  .gallery-lightbox-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
  } 



/* Play/Pause and Close button styling */
.lightbox-play-pause, .lightbox-close {
    width: 42px;
    position: absolute;
    top: 10px; /* Position at the top */
    right: 10px; /* Position at the right */
    z-index: 1050; /* Bring the button to the front */
    background-color: #fff;
    color: #126724;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 10px;
}

.lightbox-play-pause {
    right: 55px; /* Adjust position to be next to the close button */
}

.lightbox-play-pause.lightbox-play::after {
    content: '\f04b'; /* FontAwesome play icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.lightbox-play-pause.lightbox-pause::after {
    content: '\f04c'; /* FontAwesome pause icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.lightbox-close {
    right: 10px; /* Position at the right */
}

.lightbox-close i {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Make all carousel images have the same height */
.custom-gallery-item img {
    height: 300px; /* Set a fixed height for all images */
    object-fit: cover; /* Ensure the image covers the specified height while maintaining aspect ratio */
    width: auto;
    display: block;
    margin: auto;
}

/* Custom arrows styling */
.custom-prev, .custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #126724;
    font-size: 30px;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.custom-prev {
    left: 10px;
}

.custom-next {
    right: 10px;
}

.custom-prev:hover, .custom-next:hover {
    background-color: #126724;
    color: #fff;
}

/* Center images in the carousel */
.custom-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.lb-close {
    display: none;
}

/* Ensure the lightbox overlay stops slideshow */
.lb-overlay {
    cursor: pointer;
}
