.il-widget-container-f5e4fbc8 {
    display: inline-block;
    max-width: 100%;
}

.il-trigger-img {
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.il-trigger-img:hover {
    transform: scale(1.02);
}

/* Lightbox Modal Structure */
.il-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.admin-bar .il-lightbox-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .il-lightbox-overlay {
        top: 46px;
    }
}

.il-lightbox-overlay.active {
    opacity: 1;
}

.il-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.il-lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.il-lightbox-overlay.active .il-lightbox-content img {
    transform: scale(1);
}

.il-lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    transition: all 0.2s ease;
    z-index: 1000000;
}

/* Hide scrollbar when lightbox is open */
body.il-lightbox-open {
    overflow: hidden !important;
}
