.ag-2a4540a6-container {
    display: block;
    width: 100%;
}

.ag-2a4540a6-container.ag-layout-grid {
    display: grid;
}

.ag-2a4540a6-container.ag-layout-masonry {
    /* column-count and column-gap applied via Elementor */
}

.ag-2a4540a6-item {
    cursor: pointer;
    break-inside: avoid;
    /* margin-bottom applied via Elementor for masonry gap */
}

.ag-2a4540a6-container.ag-layout-grid .ag-2a4540a6-item {
    margin-bottom: 0 !important;
}

.ag-2a4540a6-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-2a4540a6-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ag-2a4540a6-item:hover img {
    transform: scale(1.05);
}

.ag-2a4540a6-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

/* Lightbox Styles */
.ag-2a4540a6-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.admin-bar .ag-2a4540a6-lightbox {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

.ag-2a4540a6-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.ag-2a4540a6-lightbox-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.ag-2a4540a6-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.ag-2a4540a6-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.ag-2a4540a6-swiper {
    width: 100%;
    height: 100%;
}

.ag-2a4540a6-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-2a4540a6-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ag-2a4540a6-swiper .swiper-slide iframe,
.ag-2a4540a6-swiper .swiper-slide video {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ag-2a4540a6-nav {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
