/* ==========================================================================
   ALBUM GALLERY SECTION (PANORAMA 3D SLIDER · DRIBBLE AESTHETIC)
   Always Dark Theme · Full Viewport Width · Cylindrical 3D Perspective
   ========================================================================== */

/* 1. SECTION ROOT & FULL BLEED CONTAINER */
.album-gallery-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    padding: 32px 0;
    overflow: hidden;
    box-sizing: border-box;
    /* Always forced Dark Theme (Luxury Obsidian Charcoal) */
    background-color: #07061c !important;
    color: #ffffff !important;
    isolation: isolate;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

    /* Atmospheric subtle backdrop lights */
    .album-gallery-section::before {
        content: "";
        position: absolute;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
        width: 850px;
        height: 400px;
        background: radial-gradient( ellipse, rgba(234, 76, 137, 0.07) 0%, rgba(108, 92, 231, 0.04) 40%, transparent 70% );
        pointer-events: none;
        filter: blur(40px);
        z-index: 0;
    }

/* 2. SECTION HEADER TYPOGRAPHY */
.album-gallery-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1120px;
    margin: 0 auto 44px;
    padding: 0 24px;
}

.album-gallery-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff !important;
    letter-spacing: -0.015em;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.album-gallery-subtitle {
    margin-top: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 3. SWIPER PANORAMA CONTAINER & 3D STAGE */
.album-panorama-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    z-index: 2;
    overflow: visible;
}

.album-panorama-swiper {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 28px;
    overflow: visible !important;
    perspective: 1400px;
    -webkit-perspective: 1400px;
}

    .album-panorama-swiper .swiper-wrapper {
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        align-items: center;
    }

/* 4. SLIDE & CARD ARCHITECTURE */
.album-slide {
    width: 58vw !important;
    max-width: 860px;
    min-width: 320px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
    will-change: transform;
}

@media (max-width: 1024px) {
    .album-slide {
        width: 68vw !important;
    }
}

@media (max-width: 768px) {
    .album-slide {
        width: 84vw !important;
    }
}

@media (max-width: 480px) {
    .album-slide {
        width: 90vw !important;
    }
}

/* The 3D transformed Card */
.album-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.2;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1e2025;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 8px 16px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: grab;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

    .album-card:active {
        cursor: grabbing;
    }

.album-slide.swiper-slide-active .album-card {
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.85), 0 12px 24px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 40px -10px rgba(255, 255, 255, 0.06);
}

/* Media Wrap & High-Res Image */
.album-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-img {
    transform: scale(1.03);
}

/* Ambient 3D Shading Overlay for non-active slides */
.album-shade-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Scrim Gradient to make captions ultra readable */
.album-scrim-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 28%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 80% );
    pointer-events: none;
    z-index: 2;
}

/* 5. ALBUM CAPTION & GLASSMORPHIC BADGE */
.album-caption-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    z-index: 3;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 640px) {
    .album-caption-bar {
        padding: 16px 18px;
        gap: 12px;
    }
}

/* Title on the left */
.album-caption-title {
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    font-weight: 600;
    line-height: 1.42;
    color: #ffffff !important;
    margin: 0;
    max-width: 80%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .album-caption-title {
        font-size: 0.92rem;
        max-width: 75%;
    }
}

/* Glassmorphism Badge on the right (Icon + Count) */
.album-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.album-card:hover .album-badge {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.4);
}

.album-badge-icon {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.album-badge-count {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #ffffff;
}

/* 6. PAGINATION DOTS (MATCHING REFERENCE MOCKUP) */
.album-pagination-wrap {
    position: relative;
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.album-gallery-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: auto !important;
}

    .album-gallery-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 !important;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.25);
        opacity: 1;
        transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s ease, background-color 0.3s ease, border-radius 0.35s ease, box-shadow 0.3s ease;
        cursor: pointer;
        outline: none;
        border: none;
    }

        .album-gallery-pagination .swiper-pagination-bullet:hover {
            background-color: rgba(255, 255, 255, 0.55);
        }

    /* Active dot is bright white pill */
    .album-gallery-pagination .swiper-pagination-bullet-active {
        width: 22px;
        height: 7px;
        border-radius: 6px;
        background-color: #ffffff !important;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    }

/* 7. DRIBBLE FLOATING NAV ARROWS */
.album-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(18, 19, 22, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    outline: none;
}

    .album-nav-arrow:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.35);
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    }

    .album-nav-arrow:active {
        transform: translateY(-50%) scale(0.96);
    }

    .album-nav-arrow svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        stroke-width: 2.2;
        transition: transform 0.2s ease;
    }

.album-nav-prev {
    left: 28px;
}

    .album-nav-prev:hover svg {
        transform: translateX(-2px);
    }

.album-nav-next {
    right: 28px;
}

    .album-nav-next:hover svg {
        transform: translateX(2px);
    }

@media (max-width: 768px) {
    .album-nav-arrow {
        display: none; /* Mobile relies on intuitive swipe touch gestures */
    }
}
