/* --- Existing Styles (Preserved) --- */
.evcp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.evcp-popup.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.evcp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.evcp-popup-inner {
    position: relative;
    background: #fff;
    z-index: 2;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: auto;
}

.evcp-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.evcp-close:hover {
    opacity: 0.7;
}

.evcp-video-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.evcp-video-container iframe,
.evcp-video-container video {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.evcp-trigger-img-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
    vertical-align: middle;
}

.evcp-trigger-img-wrap img.evcp-trigger-img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease !important;
    transform-origin: center center;
}

.evcp-hover-scale:hover img.evcp-trigger-img {
    transform: scale(1.1);
}

.evcp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.evcp-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.evcp-play-icon i {
    font-size: 50px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- New Carousel Styles --- */
.evcp-carousel-wrapper {
    position: relative;
}

.evcp-carousel-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* For radius and effects */
    display: block;
}

.evcp-carousel-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure Swiper arrows are visible if outside */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    /* Default */
}

/* Adjustments for popup when used in carousel */
.evcp-carousel-modal .evcp-video-container iframe {
    /* Ensure injected iframe sizes correctly */
    min-height: 300px;
    /* Fallback */
}