.cp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.cp-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.cp-modal {
    position: relative;
    width: auto;
    max-width: min(420px, 90vw);
    max-height: 88vh;
    background: transparent;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    display: flex;
    flex-direction: column;
}
.cp-overlay.is-open .cp-modal {
    transform: scale(1);
    opacity: 1;
}

.cp-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #111;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s;
}
.cp-close:hover { transform: scale(1.08); }

.cp-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}
.cp-viewport { overflow: hidden; }
.cp-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.cp-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: transparent;
}
.cp-slide {
    background: #0a125f;
}
.cp-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    background: #0a125f;
    user-select: none;
}
a.cp-slide { cursor: pointer; }

.cp-slide-cta {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #f9a703 0%, #d68b00 100%);
    color: #0a125f;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.cp-slide-cta:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    color: #0a125f;
}
.cp-slide-cta::after {
    content: '→';
    font-weight: 800;
    font-size: 1.1em;
    line-height: 1;
}

.cp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    border-radius: 50%;
    color: #0f1977;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s, opacity 0.18s;
}
.cp-nav:hover { transform: translateY(-50%) scale(1.08); }
.cp-nav:disabled { opacity: 0.45; cursor: not-allowed; }
.cp-nav--prev { left: 12px; }
.cp-nav--next { right: 12px; }

.cp-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1rem;
}
.cp-cta { display: none !important; }

.cp-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s, width 0.18s, transform 0.18s;
}
.cp-dot:hover { background: rgba(255, 255, 255, 0.7); }
.cp-dot.is-active {
    background: #f9a703;
    width: 22px;
    border-radius: 99px;
}

@media (max-width: 640px) {
    .cp-overlay { padding: 1rem; }
    .cp-modal { max-width: 100%; max-height: 95vh; }
    .cp-close { top: -10px; right: -10px; width: 34px; height: 34px; }
    .cp-slide img { max-height: 75vh; }
    .cp-slide-cta { bottom: 1rem; padding: 0.75rem 1.4rem; font-size: 0.9rem; }
    .cp-nav { width: 36px; height: 36px; }
    .cp-nav--prev { left: 8px; }
    .cp-nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-overlay, .cp-modal, .cp-track, .cp-nav, .cp-close, .cp-slide-cta {
        transition: none !important;
    }
}
