
/* homepage slider */
.lfla-slider-single-item .elementor-swiper-button {
    display:none !important;
}


/* offpage carousel slider */

@media (min-width: 1500px) {
    .lfla-offpage-carousel .swiper {
        overflow: visible !important;
        margin-left: 0px !important;
    }

    .lfla-offpage-carousel .elementor-swiper-button-prev {
        margin-left: -100px !important;
    }
}


/* General Gallery Wrapper */
.lfla-gallery-wrapper {
    text-align: center;
    margin: 20px auto;
}

/* Toggle Buttons */
.lfla-gallery-toggle {
    margin-bottom: 20px;
}

.lfla-gallery-toggle button {
    margin: 10px;
    padding: 8px 12px;
    border: none;
    background-color: #2C73D2;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.lfla-gallery-toggle button.active,
.lfla-gallery-toggle button:hover {
    background-color: #1B4F9B;
}

/* Gallery Container */
#lfla-gallery {
    display: grid;
    gap: 15px;
    margin: 0 auto;
}

/* Gallery Item */
.lfla-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
    transition: transform .3s ease-in-out; /* Smooth transition */
}

.lfla-gallery-item:hover {
    transform: translateY(-5px);
}

/* Background Image */
.lfla-gallery-image {
    width: 100%;
    height: 0;
    padding-top: 66.66%; /* Maintain 3:2 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Photo Title Beneath Image */
.lfla-photo-title {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 0 10px 0px 0px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: none;
}

/* Grid View Layout */
.lfla-grid-view {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Mosaic View Layout */
/* Mosaic View - Using Flexbox for Natural Flow */
.lfla-mosaic-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.lfla-mosaic-view .lfla-gallery-item {
    flex: 1 1 calc(33.33% - 10px); /* Three items per row */
    max-width: calc(33.33% - 10px); /* Limit max width */
    margin-bottom: 10px;
}

.lfla-gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

/* Zoom effect on hover */
.lfla-gallery-item:hover .lfla-gallery-image {
    
}

.lfla-photo-title {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .lfla-mosaic-view .lfla-gallery-item {
        flex: 1 1 calc(50% - 10px); /* Two items per row on smaller screens */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .lfla-mosaic-view .lfla-gallery-item {
        flex: 1 1 100%; /* One item per row on mobile */
        max-width: 100%;
    }
}

/* Responsive Layout Fixes */
@media (max-width: 768px) {
    .lfla-gallery-toggle button {
        font-size: 12px;
        padding: 6px 10px;
    }

    #lfla-gallery {
        gap: 10px;
    }

    .lfla-photo-title {
        font-size: 12px;
    }
}


.lfla-photo-title {
    text-align: left; /* Align title to the left */
    font-size: 14px;
    color: #333;
    margin: 8px 10px;
    white-space: nowrap; /* Prevents wrapping to multiple lines */
    overflow: hidden; /* Hides overflow text */
    text-overflow: ellipsis; /* Adds ellipsis to truncated text */
    width: 100%; /* Ensures the title spans the full width */
}



/* Adjust the Lightbox Image Height */
/* Remove white border and align edges */
.lb-outerContainer, .lb-container, .lb-image {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none; /* Remove white borders */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center-align vertically and horizontally */
.lb-outerContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    display: flex;
    flex-direction: column; /* Stack image and description */
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Image settings */
.lb-image {
    max-width: 100%; /* Scale proportionally */
    max-height: 85vh; /* Limit image height */
    object-fit: contain; /* Prevent cropping */
    display: block;
    border: none !important;
}

.lb-dataContainer h4 {
    font-size: 1.2em;
}

#program_special_header, .program_special_header {
    height: 250px;
}

#program_special_header > div, .program_special_header > div {
    overflow: hidden !important;
}

#program_special_header img, .program_special_header img {
    width: 100%; /* Make the image responsive */
    height: 100%; /* Ensure it fills the container */
    object-fit: cover; /* Keep the image scaling like a background */
    object-position: 50% 50%; /* Default to center; adjust X and Y focal points as needed */
    transform: scale(1); /* Default scale (no zoom) */
    transition: transform 0.3s ease-in-out; /* Smooth scaling */
}
#program_special_header:before, .program_special_header:before {
    background-image: linear-gradient(-90deg, #00000000 0%, #000000 100%);
}


