/* ===================================================
   EXPLOREAIN ALBUM: CLASSIC & MINIMALIST PHOTOGRAPHER'S GALLERY
   Quiet Luxury &bull; Natural Botanical Tree &bull; Fine-Art Archival Aesthetic
   =================================================== */

:root {
    --gallery-bg: #0c0d10;
    --gallery-surface: #14161b;
    --gallery-surface-card: #131417;
    --gallery-border: rgba(255, 255, 255, 0.08);
    --gallery-border-hover: rgba(255, 255, 255, 0.24);
    --text-primary: #f6f4ef;       /* Warm ivory */
    --text-secondary: #9ea2a8;     /* Soft slate / oyster */
    --text-muted: #6a6e76;
    --wood-bark: #423429;         /* Natural deep bark */
    --wood-branch: #5a4738;       /* Organic timber */
    --wood-twig: #786554;         /* Outer wood bough */
    --wood-grain: #998471;        /* Subtle natural grain */
    --wood-sap: #c4b29f;          /* Living sap progress */
    --leaf-sage: #758a74;         /* Botanical sage */
    --leaf-sage-light: #92a691;
    --accent-sand: #d6c7b2;       /* Warm linen / parchment */
}

body.album-body {
    background-color: var(--gallery-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Gallery Ambience (No Neon Lights) */
.album-gallery-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(38, 32, 26, 0.35) 0%, rgba(12, 13, 16, 0.98) 75%);
}

/* Page wrapper to sit above background */
.album-main-wrapper {
    position: relative;
    z-index: 1;
}

/* ===================================================
   HEADER & NAVIGATION: MINIMALIST & REFINED
   =================================================== */

.album-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12, 13, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.album-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo-container {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

.brand-logo-container:hover .brand-logo-img {
    opacity: 0.88;
}

.album-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ea2a8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.album-back-btn:hover {
    color: #f6f4ef;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

.album-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.album-slideshow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #f6f4ef;
    border-radius: 24px;
    font-size: 0.86rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.slideshow-text-full {
    display: inline;
}

.slideshow-text-short {
    display: none;
}

.album-slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===================================================
   HERO BANNER: EDITORIAL TYPOGRAPHY
   =================================================== */

.album-hero-section {
    padding: 70px 24px 28px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.album-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.18;
}

.album-serif-italic {
    font-style: italic;
    font-weight: 400;
    color: #d6c7b2;
}

.album-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ===================================================
   NATURAL BOTANICAL MEMORY TREE (NO NEON)
   =================================================== */

.album-tree-section {
    position: relative;
    max-width: 1220px;
    margin: 20px auto 90px;
    padding: 0 24px;
}

/* Root Botanical Emblem */
.album-tree-root-anchor {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.tree-root-emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-sand);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.tree-root-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 5px 16px;
    border-radius: 20px;
    color: #c7bfb4;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tree-root-hint {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 10px;
    letter-spacing: 0.01em;
}

/* Central Trunk - Natural Wood Grain */
.album-tree-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0 60px;
}

.album-tree-trunk {
    position: absolute;
    top: -25px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    z-index: 1;
    pointer-events: none;
}

.trunk-backbone {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: var(--wood-bark);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.trunk-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--wood-sap) 0%, var(--wood-twig) 60%, var(--wood-branch) 100%);
    box-shadow: 0 0 8px rgba(196, 178, 159, 0.35);
    transition: height 0.15s ease-out;
}

/* Tree Branch Nodes */
.album-tree-node {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 95px;
    z-index: 2;
}

.album-tree-node.branch-left {
    justify-content: flex-start;
}

.album-tree-node.branch-right {
    justify-content: flex-end;
}

.album-tree-node.branch-dual {
    justify-content: space-between;
    margin-bottom: 110px;
}

/* Trunk Wood Bud Node */
.tree-trunk-bud {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.bud-core {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--wood-branch);
    border: 1.5px solid var(--wood-twig);
    transition: all 0.4s ease;
}

.bud-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(196, 178, 159, 0.4);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.5s ease;
}

.album-tree-node.is-sprouted .bud-core {
    background: var(--wood-twig);
    border-color: var(--wood-sap);
    transform: scale(1.15);
}

.album-tree-node.is-sprouted .bud-ring {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Branch Connectors - Natural Curved Wood */
.album-branch-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    pointer-events: none;
    z-index: 2;
}

.album-tree-node.branch-left .album-branch-connector {
    right: calc(50% - 11px);
    width: 105px;
}

.album-tree-node.branch-right .album-branch-connector {
    left: calc(50% - 11px);
    width: 105px;
}

.album-tree-node.branch-dual .album-branch-connector.connector-left {
    right: calc(50% - 11px);
    left: auto;
    width: 105px;
}

.album-tree-node.branch-dual .album-branch-connector.connector-right {
    left: calc(50% - 11px);
    right: auto;
    width: 105px;
}

.branch-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.branch-glow-path {
    display: none; /* No neon laser lines */
}

.branch-main-path {
    fill: none;
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-svg-left .branch-main-path {
    stroke: url(#branchWoodGradLeft);
}

.branch-svg-right .branch-main-path {
    stroke: url(#branchWoodGradRight);
}

.branch-twig-path {
    fill: none;
    stroke: var(--wood-twig);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* Botanical Sage Leaves */
.branch-sprout-leaf {
    position: absolute;
    color: var(--leaf-sage);
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0) rotate(-20deg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.album-tree-node.branch-left .leaf-1 {
    top: 6px;
    right: 38px;
}

.album-tree-node.branch-left .leaf-2 {
    bottom: 8px;
    right: 68px;
    font-size: 0.72rem;
    color: var(--leaf-sage-light);
}

.album-tree-node.branch-right .leaf-1 {
    top: 6px;
    left: 38px;
}

.album-tree-node.branch-right .leaf-2 {
    bottom: 8px;
    left: 68px;
    font-size: 0.72rem;
    color: var(--leaf-sage-light);
}

.album-tree-node.is-sprouted .branch-main-path,
.album-tree-node.is-sprouted .branch-twig-path {
    stroke-dashoffset: 0;
}

.album-tree-node.is-sprouted .branch-sprout-leaf {
    opacity: 0.95;
    transform: scale(1) rotate(10deg);
}

/* ===================================================
   PHOTOGRAPHER'S EXHIBITION CARDS: SQUARE FRAMES
   =================================================== */

.album-card {
    position: relative;
    width: calc(50% - 95px);
    max-width: 480px;
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--gallery-surface-card);
    border: 1px solid var(--gallery-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(35px) scale(0.94);
    pointer-events: none;
    z-index: 3;
}

.album-tree-node.branch-left .album-card {
    transform-origin: right center;
}

.album-tree-node.branch-right .album-card {
    transform-origin: left center;
}

.album-tree-node.branch-dual .card-left {
    transform-origin: right center;
}

.album-tree-node.branch-dual .card-right {
    transform-origin: left center;
}

.album-tree-node.branch-dual.is-sprouted .card-left {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0.25s;
}

.album-tree-node.branch-dual.is-sprouted .card-right {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0.38s;
}

.album-tree-node.is-sprouted .album-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0.3s;
}

.album-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: var(--gallery-border-hover) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7) !important;
}

/* Image Container - Crisp Square Corners */
.album-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #090a0c;
    border-radius: 0 !important;
}

.album-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-img-wrap img {
    transform: scale(1.04);
}

/* Location Badge & Text Content - Removed per request for pure photo gallery */
.album-card-badge,
.album-card-content {
    display: none !important;
}

.album-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.album-card-caption {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.55;
    font-weight: 400;
}

.album-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.album-customer-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-sand);
    font-weight: 500;
}

/* ===================================================
   BOTTOM CALL TO ACTION: QUIET LUXURY EDITORIAL
   =================================================== */

.album-cta-banner {
    max-width: 880px;
    margin: 40px auto 90px;
    padding: 60px 40px;
    border-radius: 0 !important;
    background: #111215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.album-cta-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-sand);
    margin-bottom: 14px;
}

.album-cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.album-cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.album-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 34px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
    color: #f6f4ef !important;
    text-decoration: none !important;
    background: #1c1d22;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-cta-btn:hover {
    background: #25262d;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.cta-btn-sparkle {
    color: var(--accent-sand);
    display: inline-flex;
}

.ai-badge-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #f6f4ef;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-btn-arrow {
    font-size: 0.88rem;
    color: #9ea2a8;
    transition: transform 0.25s ease, color 0.25s ease;
}

.album-cta-btn:hover .ai-btn-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

/* ===================================================
   LIGHTBOX FULLSCREEN MODAL: DARKROOM EXHIBITION
   =================================================== */

.album-fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-fullscreen-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.album-modal-topbar {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.album-modal-counter {
    color: #9ea2a8;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8e6e1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.album-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.08);
}

.album-modal-main {
    position: relative;
    max-width: 92vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-modal-img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 0 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.album-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 0 !important;
    background: rgba(19, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f6f4ef;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.album-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.album-nav-arrow.prev { left: -70px; }
.album-nav-arrow.next { right: -70px; }

.album-modal-caption {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 620px;
    text-align: center;
    background: rgba(19, 20, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 !important;
    padding: 9px 20px;
    color: #c7bfb4;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
}

/* ===================================================
   RESPONSIVE LAYOUT (TABLET & MOBILE)
   =================================================== */

@media (max-width: 900px) {
    .album-nav-arrow.prev { left: 12px; }
    .album-nav-arrow.next { right: 12px; }

    /* Keep alternating tree on tablets — just compact the cards */
    .album-tree-section {
        padding: 0 12px;
    }

    .album-card {
        width: calc(46% - 70px);
    }

    .album-tree-node {
        margin-bottom: 70px;
    }
}

/* =====================================================
   MOBILE: TRUE ALTERNATING TREE (trunk centred)
   ===================================================== */
@media (max-width: 640px) {
    .album-tree-section {
        padding: 0 8px;
        margin-bottom: 50px;
    }

    /* Trunk stays centred */
    .album-tree-trunk {
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
    }

    /* Bud stays centred on trunk */
    .tree-trunk-bud {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Each node is still a full-width row */
    .album-tree-node {
        width: 100%;
        margin-bottom: 36px;
        position: relative;
    }

    /* Left-branch cards: grow to the LEFT of trunk */
    .album-tree-node.branch-left {
        justify-content: flex-start;
    }

    /* Right-branch cards: grow to the RIGHT of trunk */
    .album-tree-node.branch-right {
        justify-content: flex-end;
    }

    /* Cards take up ~46% width (minus bud/connector space) */
    .album-card {
        width: calc(50% - 34px) !important;
        max-width: none;
    }

    /* Compact image aspect ratio for smaller cards */
    .album-img-wrap {
        aspect-ratio: 4 / 3;
    }

    /* Tighter card content padding on mobile */
    .album-card-content {
        padding: 10px 12px;
    }

    .album-card-title {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .album-card-footer {
        font-size: 0.62rem;
        padding-top: 7px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .album-card-badge {
        font-size: 0.6rem;
        padding: 3px 7px;
        top: 8px;
        left: 8px;
    }

    /* Branch connectors re-anchored to trunk centre */
    .album-tree-node.branch-left .album-branch-connector {
        right: calc(50% - 11px);
        left: auto;
        width: 40px;
    }

    .album-tree-node.branch-right .album-branch-connector {
        left: calc(50% - 11px);
        right: auto;
        width: 40px;
    }

    /* Restore correct SVG orientations */
    .branch-svg-left {
        transform: none;
    }

    /* Leaves for left branches */
    .album-tree-node.branch-left .leaf-1 {
        top: 6px;
        right: 18px;
        left: auto;
    }
    .album-tree-node.branch-left .leaf-2 {
        bottom: 8px;
        right: 30px;
        left: auto;
    }

    /* Leaves for right branches */
    .album-tree-node.branch-right .leaf-1 {
        top: 6px;
        left: 18px;
        right: auto;
    }
    .album-tree-node.branch-right .leaf-2 {
        bottom: 8px;
        left: 30px;
        right: auto;
    }

    .album-tree-root-anchor {
        margin-bottom: 30px;
    }

    .tree-root-emblem {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }

    /* Bottom CTA */
    .album-cta-banner {
        margin: 0 10px 50px;
        padding: 38px 18px;
    }

    .album-cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 18px;
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .album-navbar {
        padding: 10px 16px;
        gap: 10px;
    }

    .album-nav-left {
        gap: 12px;
    }

    .brand-logo-container .brand-logo-img {
        height: 28px;
        max-width: 120px;
    }

    .album-back-btn {
        padding: 7px 12px;
        font-size: 0.84rem;
        gap: 6px;
    }

    .album-nav-actions {
        gap: 10px;
    }

    .album-slideshow-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .nav-hamburger-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
    }

    .album-modal-topbar {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .album-modal-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .album-modal-counter {
        font-size: 0.82rem;
        padding: 4px 10px;
    }

    .album-nav-arrow {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .album-nav-arrow.prev { left: 10px; }
    .album-nav-arrow.next { right: 10px; }

    .album-modal-caption {
        bottom: -50px;
        font-size: 0.84rem;
        padding: 8px 14px;
        width: 92%;
    }

    .album-cta-banner {
        margin: 0 16px 60px;
        padding: 45px 24px;
    }

    .album-cta-title {
        font-size: 1.6rem;
    }

    .album-cta-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
}

/* Phones & Small Screens */
@media (max-width: 580px) {
    .album-navbar {
        padding: 8px 12px;
        gap: 8px;
    }

    .album-nav-left {
        gap: 8px;
        min-width: 0;
    }

    .brand-logo-container .brand-logo-img {
        height: 24px;
        max-width: 96px;
    }

    /* Circular minimalist back button */
    .album-back-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .album-back-btn .album-back-text {
        display: none !important;
    }

    .album-back-btn i {
        font-size: 0.95rem;
        margin: 0;
    }

    .album-nav-actions {
        gap: 8px;
        margin-left: auto;
    }

    .slideshow-text-full {
        display: none !important;
    }

    .slideshow-text-short {
        display: inline !important;
    }

    .album-slideshow-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 20px;
        gap: 5px;
    }

    .album-slideshow-btn i {
        font-size: 0.75rem;
    }

    .nav-hamburger-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
        gap: 4px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .nav-hamburger-btn .hamburger-line {
        width: 17px;
        height: 2px;
    }

    /* Tree Layout on Phones — keep alternating left/right */
    .album-tree-section {
        padding: 0 6px;
        margin-bottom: 50px;
    }

    /* Trunk stays centred */
    .album-tree-trunk {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 4px;
    }

    .tree-trunk-bud {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 18px;
        height: 18px;
    }

    .bud-core {
        width: 9px;
        height: 9px;
    }

    .album-tree-node {
        margin-bottom: 32px;
    }

    /* Cards: compact but still alternating */
    .album-card {
        width: calc(50% - 28px) !important;
        max-width: none;
    }

    .album-img-wrap {
        aspect-ratio: 1 / 1;
    }

    .album-card-content {
        padding: 8px 10px;
    }

    .album-card-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .album-card-footer {
        font-size: 0.58rem;
        padding-top: 5px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .album-card-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
    }

    /* Branch connectors re-anchored to trunk centre */
    .album-tree-node.branch-left .album-branch-connector {
        right: calc(50% - 10px) !important;
        left: auto !important;
        width: 32px !important;
    }

    .album-tree-node.branch-right .album-branch-connector {
        left: calc(50% - 10px) !important;
        right: auto !important;
        width: 32px !important;
    }

    .album-tree-node.branch-dual {
        margin-bottom: 24px;
    }

    .album-tree-node.branch-dual .album-branch-connector.connector-left {
        right: calc(50% - 10px) !important;
        left: auto !important;
        width: 32px !important;
    }

    .album-tree-node.branch-dual .album-branch-connector.connector-right {
        left: calc(50% - 10px) !important;
        right: auto !important;
        width: 32px !important;
    }

    .album-tree-root-anchor {
        margin-bottom: 30px;
    }

    .tree-root-emblem {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    /* Bottom CTA on Mobile */
    .album-cta-banner {
        margin: 0 12px 50px;
        padding: 38px 18px;
    }

    .album-cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 18px;
        font-size: 0.92rem;
    }
}

/* Very narrow devices (<= 360px) */
@media (max-width: 360px) {
    .album-navbar {
        padding: 8px 10px;
        gap: 6px;
    }

    .brand-logo-container .brand-logo-img {
        height: 22px;
        max-width: 82px;
    }

    .slideshow-text-short {
        display: none !important;
    }

    .album-slideshow-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .album-slideshow-btn i {
        font-size: 0.82rem;
        margin: 0;
    }

    .album-cta-btn {
        padding: 11px 14px;
        font-size: 0.88rem;
    }

    /* Even narrower cards on 360px — still alternating */
    .album-card {
        width: calc(50% - 22px) !important;
    }

    .album-img-wrap {
        aspect-ratio: 1 / 1;
    }

    .album-card-title {
        font-size: 0.68rem;
    }

    .album-card-footer {
        font-size: 0.54rem;
    }
}

/* ===================================================
   FOOTER: ENSURE VISIBILITY ON ALBUM PAGE
   Footer background overridden to match the album page's
   natural dark-brown wood palette instead of the default blue.
   =================================================== */
body.album-body .tours-footer {
    --deep: #1e1510;
    background: #1e1510;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    z-index: 2;
}

body.album-body .tours-footer .footer-col-title,
body.album-body .tours-footer .footer-tagline,
body.album-body .tours-footer .footer-link,
body.album-body .tours-footer .footer-contact-item,
body.album-body .tours-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.82);
}

body.album-body .tours-footer .footer-link:hover,
body.album-body .tours-footer .footer-contact-item:hover {
    color: #ffffff;
}

body.album-body .tours-footer .footer-col-title {
    color: #ffffff;
    font-weight: 600;
}

body.album-body .tours-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
}

body.album-body .tours-footer .footer-social-btn {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

body.album-body .tours-footer .footer-social-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

body.album-body .tours-footer .footer-contact-icon {
    color: rgba(255, 255, 255, 0.5);
}
