/* gallery-video.css */
.elementor-lightbox {
    display: none !important;
}

.masonry-gallery-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.masonry-gallery-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.masonry-gallery-container:after {
    content: "";
    display: block;
    clear: both;
}

.masonry-item {
    float: left;
    width: calc(24% - 15px);
    padding: 3px;
    margin: 1px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.masonry-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    vertical-align: bottom;
    border-radius: 15px;
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.03);
}

.masonry-item.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.masonry-item.video-item .play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.masonry-item.video-item:hover .play-icon {
    opacity: 0;
}

.masonry-gallery-loader {
    text-align: center;
    padding: 15px;
    width: 100%;
    color: #fff;
    clear: both;
}

.masonry-gallery-loader span {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .masonry-item {
        width: calc(33.333% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .masonry-item {
        width: calc(50% - 10px);
    }
}

/* SimpleLightbox Styles */
.sl-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-close {
    color: #fff;
}

.sl-wrapper .sl-counter {
    color: #fff;
}

.sl-wrapper .sl-video {
    width: 100%;
    height: 100%;
}

.sl-wrapper .sl-video iframe,
.sl-wrapper .sl-video video {
    width: 90%;
    height: 90%;
    position: absolute;
    top: 5%;
    left: 5%;
}