/* ==========================================================================
   Coverflow 3D Interactive Gallery - Refined & Integrated
   ========================================================================== */

.coverflow-carousel {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.coverflow-stage {
    position: relative;
    height: 440px;
    perspective: 1200px;
    perspective-origin: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #181614 0%, #25221e 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 90, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.coverflow-track {
    position: relative;
    width: 62%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    transform-style: preserve-3d;
}

.coverflow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.45s ease,
                box-shadow 0.45s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    background: #141210;
}

.coverflow-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.coverflow-slide.is-center {
    cursor: default;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 165, 90, 0.28);
}

.cf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cf-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 29, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 20;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cf-btn:hover {
    background: var(--accent-primary);
    color: #1f1d1a;
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 165, 90, 0.45);
}

.cf-btn.prev {
    left: 1.25rem;
}

.cf-btn.next {
    right: 1.25rem;
}

.cf-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(31, 29, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    z-index: 15;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cf-counter-num {
    color: var(--accent-primary);
}

.cf-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
    align-items: center;
}

.cf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(45, 42, 38, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.cf-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(212, 165, 90, 0.4);
}

.cf-dot:hover:not(.active) {
    background: rgba(45, 42, 38, 0.5);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
    .coverflow-stage {
        height: 320px;
    }

    .coverflow-track {
        width: 72%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .coverflow-stage {
        height: 220px;
        border-radius: 16px;
    }

    .coverflow-track {
        width: 82%;
        aspect-ratio: 16 / 9;
    }

    .cf-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .cf-btn.prev {
        left: 0.5rem;
    }

    .cf-btn.next {
        right: 0.5rem;
    }
}

