.gallery-slider, .gallery-grid {
    margin-top: 20px;
}

.gallery-grid-widget,
.gallery-slider-two-widget,
.gallery-slider-single-widget {
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    display: inline-block;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.slider-prev:hover,
.slider-next:hover {
    opacity: 0.8;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

#popup-close {
    border: none;
    border-radius: 50%;
}

.gallery-slider-single-widget,
.gallery-slider-two-widget {
    position: relative;
}

.gallery-slider-single-widget .gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0 !important;
    position: relative;
}

.gallery-slider-single-widget .gallery-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gallery-slider-two-widget .gallery-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gallery-slider-single-widget .gallery-item:hover::after {
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background-image: url(/wp-content/plugins/custom-gallery-widgets-youtube/image/loop.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 45px;
    height: 45px;
    z-index: 2;
}

.gallery-slider-two-widget .gallery-item:hover::after {
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background-image: url(/wp-content/plugins/custom-gallery-widgets-youtube/image/loop.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 45px;
    height: 45px;
    z-index: 2;
}

.gallery-slider-single-widget .gallery-item img {
    height: 100% !important;
}

.slider-prev,
.slider-next {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0px 4px 8px 0px #0000001A;
    width: 35px;
    height: 35px;
    padding: 0;
}

.slider-prev:hover,
.slider-prev:active,
.slider-prev:focus,
.slider-next:hover,
.slider-next:active,
.slider-next:focus {
    background: #fff;
}

.gallery-slider-two-widget .gallery-item img {
    height: 100% !important;
}

.video-gallery-slider-single-widget .gallery-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-gallery-slider-two-widget .gallery-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-gallery-slider-two-widget .gallery-item {
    height: 100%;
    padding: 0 !important;
}

.video-gallery-slider-two-widget .gallery-item iframe {
    width: 100%;
    height: 100%;
}

.video-gallery-slider-single-widget .gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0 !important;
    position: relative;
}

.fslightbox-fade-in-strong iframe {
    width: 1000px;
    height: 700px;
}

.pagination-dot.active {
    background: #424242 !important;
}

.popup-slider .popup-prev,
.popup-slider .popup-next {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF !important;
    border-radius: 50%;
    box-shadow: 0px 4px 8px 0px #0000001A;
    width: 55px;
    height: 55px;
    padding: 0;
}

.popup-slider .popup-prev:hover,
.popup-slider .popup-next:hover {
    opacity: 0.8;
}

.popup-gallery-item iframe {
    height: 500px !important;
}

.gallery-items {
    gap: 10px;
    padding: 0 !important;
}

.gallery-item {
    padding: 0 !important;
}

.video-gallery-grid-widget .gallery-item, .video-gallery-slider-single-widget .gallery-item, .video-gallery-slider-two-widget .gallery-item {
    position: relative;
}

.video-gallery-grid-widget .gallery-item::after, .video-gallery-slider-single-widget .gallery-item::after, .video-gallery-slider-two-widget .gallery-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url(/wp-content/plugins/custom-gallery-widgets-youtube/image/play.png) center no-repeat;
    background-size: contain;
    width: 39px;
    height: 27px;
}

@media (max-width: 1000px) {
    .fslightbox-fade-in-strong iframe {
        width: 800px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .popup-slider {
        width: 95% !important;
    }

    .popup-slider .popup-prev,
    .popup-slider .popup-next {
        width: 35px;
        height: 35px;
    }

    #popup-close {
        padding: 5px !important;
    }
}