/* Wrapper geral */
.wcpme-gallery-wrapper {
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Slider principal */
.wcpme-main-slider {
    margin-bottom: 10px;
}

.wcpme-main-slider .swiper-slide {
    text-align: center;
}

.wcpme-main-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 580px;
}

.wcpme-main-video-slide {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    max-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpme-main-video-slide video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wcpme-play-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,.7);
}

/* Thumbs */
.wcpme-thumbs-slider {
    margin-top: 8px;
}

.wcpme-thumb-item {
    border: 1px solid #ddd;
    padding: 4px;
    cursor: pointer;
    background: #fff;
    max-height: 90px;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.wcpme-thumb-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    height: 85px !important;
    border-radius: 5px !important;
}

@media (max-width: 768px) {
    .wcpme-thumb-item img {
        max-height: 120px !important;
        height: 120px !important;
    }
    .wcpme-thumb-item {
        max-height: 140px !important;
    }
}

.wcpme-thumb-video {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.wcpme-play-icon-small {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #fff;
}

/* Lightbox */
#wcpme-lightbox-overlay {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(0,0,0,.8);
    transition: opacity .25s ease, visibility .25s ease;
}

#wcpme-lightbox-overlay.wcpme-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.wcpme-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    border-radius: 12px;
    max-height: 90%;
    background: #ffffff;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .wcpme-lightbox-content {
        max-width: 95%;
        max-height: 95%;
        width: 95%;
        height: auto;
    }
}

.wcpme-lightbox-inner img,
.wcpme-lightbox-inner video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.wcpme-lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    border: none;
    background: #fff;
    color: #000;
    font-size: 27px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumb para shortcode de loop */
.wcpme-loop-thumb {
    position: relative;
    overflow: hidden;
    object-fit: cover;
    max-width: 300px;
    display: flex;
    max-height: 300px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.wcpme-loop-thumb-video video {
    width: 100%;
    height: auto;
    display: block;
}

.wcpme-loop-thumb img {
    width: 100% !important;
    object-fit: cover;
}

/* Controles do Swiper (pode ajustar ao tema) */
.wcpme-main-slider .swiper-button-prev,
.wcpme-main-slider .swiper-button-next {
    color: #fff;
}

.wcpme-main-slider .swiper-pagination-bullet-active {
    background: #fff;
}
