/* Premium Phone Video Rotator Layout */
.ce-ppvr {
    width: 100%;
}

.ce-ppvr__phone-col {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

/* Smartphone Mockup Container */
.ce-ppvr__phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    border: 11px solid #0f0f0f;
    border-radius: 40px;
    background-color: #000;
    overflow: hidden;
    transform: translateZ(0);
    transition: margin 0.3s ease, box-shadow 0.3s ease;
}

.ce-ppvr__phone-mockup.has-shadow {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* CSS Notch (Dynamic Island shape) */
.ce-ppvr__phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background-color: #0f0f0f;
    border-radius: 20px;
    z-index: 25;
}

/* Screen */
.ce-ppvr__phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

/* PNG Overlay Frame */
.ce-ppvr__phone-png-frame {
    position: absolute;
    top: -11px;
    left: -11px;
    width: calc(100% + 22px);
    height: calc(100% + 22px);
    z-index: 20;
    pointer-events: none;
    object-fit: fill;
}

/* Swiper Container inside screen */
.ce-ppvr__phone-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Media */
.ce-ppvr__slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Video poster play button overlay */
.ce-ppvr .slide-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ce-ppvr .slide-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.ce-ppvr .video-play-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ce-ppvr .video-play-btn svg {
    fill: #000;
    stroke: #000;
    margin-left: 3px;
    width: 20px;
    height: 20px;
}

.ce-ppvr .video-play-btn:hover {
    transform: scale(1.1);
    background-color: #ffffff;
}

/* Outer Navigation & Pagination (Same as Gallery Carousel 3) */
.ce-ppvr__phone-col .navigation-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 30px;
    display: flex !important;
    align-items: center !important;
    align-content: center !important;
    width: 100%;
    z-index: 25;
}

/* Alignment positions for outer pagination */
.ce-ppvr__phone-col .navigation-pagination-left {
    justify-content: flex-start !important;
}

.ce-ppvr__phone-col .navigation-pagination-center {
    justify-content: center !important;
}

.ce-ppvr__phone-col .navigation-pagination-right {
    justify-content: flex-end !important;
}

/* Reset absolutely positioned Swiper buttons */
.ce-ppvr__phone-col .navigation-pagination .swiper-button-prev,
.ce-ppvr__phone-col .navigation-pagination .swiper-button-next {
    position: static !important;
    transform: none !important;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ce-ppvr__phone-col .navigation-pagination .swiper-button-prev::after,
.ce-ppvr__phone-col .navigation-pagination .swiper-button-next::after {
    display: none !important; /* Hide Swiper default font icons */
}

/* Reset absolutely positioned Swiper bullets */
.ce-ppvr__phone-col .navigation-pagination .swiper-pagination {
    position: static !important;
    transform: none !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.ce-ppvr__phone-col .navigation-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ce-ppvr__phone-col .navigation-pagination .swiper-pagination-bullet-active {
    background-color: #E0532C;
    transform: scale(1.2);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ce-ppvr__phone-mockup {
        width: 290px;
        height: 580px;
    }
}
