.mlo-carousel-outer-1a67626e {
    position: relative;
    width: 100%;
    overflow: visible;
}

.mlo-swiper-1a67626e {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.mlo-gallery-grid-1a67626e {
    display: grid;
    width: 100%;
}

.mlo-gallery-item-1a67626e {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mlo-gallery-item-1a67626e img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Aspect ratio rules */
.mlo-ratio-1-1 .mlo-gallery-item-1a67626e img {
    aspect-ratio: 1/1;
}
.mlo-ratio-4-3 .mlo-gallery-item-1a67626e img {
    aspect-ratio: 4/3;
}
.mlo-ratio-16-9 .mlo-gallery-item-1a67626e img {
    aspect-ratio: 16/9;
}
.mlo-ratio-auto .mlo-gallery-item-1a67626e img {
    aspect-ratio: auto;
    object-fit: contain;
}

/* Hover effect */
.mlo-gallery-item-1a67626e.has-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Gallery hover download button overlay */
.mlo-gallery-download-btn-1a67626e {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.mlo-gallery-download-btn-1a67626e svg {
    width: 16px;
    height: 16px;
}

.mlo-gallery-item-1a67626e:hover .mlo-gallery-download-btn-1a67626e {
    opacity: 1;
}

.mlo-gallery-download-btn-1a67626e:hover {
    background: #38761d;
    transform: scale(1.1);
}

/* Empty State / Editor styling */
.mlo-gallery-placeholder-1a67626e {
    padding: 30px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Slide buttons styling (Fallback defaults) */
.mlo-swiper-button-prev-1a67626e,
.mlo-swiper-button-next-1a67626e {
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
}
.mlo-swiper-button-prev-1a67626e::after,
.mlo-swiper-button-next-1a67626e::after {
    font-size: 16px;
    font-weight: bold;
}
.mlo-swiper-button-prev-1a67626e:hover,
.mlo-swiper-button-next-1a67626e:hover {
    background: #000;
    color: #fff;
}

/* --- LIGHTBOX OVERLAY --- */
.mlo-lightbox-overlay-1a67626e {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

body.admin-bar .mlo-lightbox-overlay-1a67626e {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .mlo-lightbox-overlay-1a67626e {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.mlo-lightbox-overlay-1a67626e.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Close & Download Buttons in Header */
.mlo-lightbox-header-actions-1a67626e {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100001;
}

.mlo-lightbox-close-1a67626e,
.mlo-lightbox-download-1a67626e {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlo-lightbox-close-1a67626e {
    font-size: 38px;
}

.mlo-lightbox-download-1a67626e svg {
    width: 28px;
    height: 28px;
}

.mlo-lightbox-close-1a67626e:hover,
.mlo-lightbox-download-1a67626e:hover {
    transform: scale(1.15);
}

.mlo-lightbox-download-1a67626e:hover {
    color: #4f9621;
}

/* Main Display Image Frame */
.mlo-lightbox-content-1a67626e {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 70%;
    position: relative;
    margin-top: 20px;
}

.mlo-lightbox-img-1a67626e {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.mlo-lightbox-img-1a67626e.loaded {
    opacity: 1;
}

/* Thumbnail bottom bar */
.mlo-lightbox-thumbnails-1a67626e {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
    padding: 10px 0;
    max-height: 90px;
    box-sizing: border-box;
}

.mlo-lightbox-thumb-1a67626e {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.mlo-lightbox-thumb-1a67626e:hover {
    opacity: 0.8;
}
.mlo-lightbox-thumb-1a67626e.is-active {
    opacity: 1;
    border-color: #38761d;
}
