:root {
        --primary-dark: #f68a0a;
        --accent-teal: #f68a0a;
        --text-muted: #7a7a7a;
    }

    .explore-section {
        padding: 100px 0;
        overflow: hidden;
    }

    /* --- Image Gallery Styling --- */
    .gallery-container {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .gal-item {
        flex: 1;
        position: relative;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border-radius: 2px;
        overflow: hidden;
    }

    .gal-item img {
        width: 100%;
        height: 450px;
        /* Fixed height for consistency */
        object-fit: cover;
        display: block;
    }

    /* Staggered Heights & Offsets */
    .offset-low {
        margin-top: 120px;
    }

    .offset-high {
        margin-top: 10px;
    }

    .offset-mid {
        margin-top: 90px;
    }

    .offset-v-low {
        margin-top: 30px;
    }

    /* --- Typography & Content --- */
    .content-box {
        padding-left: 50px;
    }

    .main-title {
        font-size: 8rem;
        font-weight: 800;
        color: var(--primary-dark);
        line-height: 0.8;
        letter-spacing: -2px;
        margin-bottom: 0;
        position: relative;
        left: -140px;
        color: var(--primary-dark);
        z-index: 10;
    }

    .sub-header {
        text-transform: uppercase;
        letter-spacing: 12px;
        color: var(--accent-teal);
        font-weight: 500;
        margin-top: 20px;
        font-size: 1.1rem;
    }

    .description {
        color: var(--text-muted);
        max-width: 380px;
        margin: 25px 0;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .btn-outline-custom {
        border: 1px solid #333;
        color: #333;
        padding: 8px 35px;
        border-radius: 0;
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        transition: 0.3s;
    }

    .btn-outline-custom:hover {
        background-color: #333;
        color: #fff;
    }

    /* Responsive Fixes */
    @media (max-width: 991px) {
        .content-box {
            padding-left: 0;
            text-align: center;
            margin-top: 50px;
        }

        .overlap-text {
            display: none;
        }

        /* Hide overlap on small screens */
        .main-title {
            font-size: 5rem;
        }

        .gallery-container {
            flex-wrap: wrap;
            justify-content: center;
        }

        .gal-item {
            min-width: 45%;
        }

        .offset-low,
        .offset-mid,
        .offset-v-low {
            margin-top: 0;
        }
    }

    /* Tablet Breakpoint (768px - 991px) */
    @media (max-width: 991px) and (min-width: 768px) {
        .explore-section {
            padding: 60px 0;
        }

        .main-title {
            font-size: 4rem;
            left: 0;
        }

        .gal-item img {
            height: 300px;
        }

        .gallery-container {
            gap: 10px;
        }

        .gal-item {
            min-width: 48%;
        }

        .photo-stack {
            max-width: 250px;
        }

        .photo-stack img,
        .photo-stack::before,
        .photo-stack::after {
            height: 200px;
        }
    }

    /* Mobile Breakpoint (≤767px) */
    @media (max-width: 767px) {
        .explore-section {
            padding: 40px 0;
        }

        .container-fluid {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .content-box {
            padding-left: 0;
            text-align: center;
            margin-top: 40px;
        }

        .main-title {
            font-size: 3.5rem;
            left: 0;
            letter-spacing: -1px;
        }

        .sub-header {
            font-size: 0.9rem;
            letter-spacing: 8px;
        }

        .description {
            max-width: 100%;
            padding: 0 10px;
            font-size: 0.9rem;
        }

        .gallery-container {
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }

        .gal-item {
            width: 100%;
            max-width: 400px;
            min-width: unset;
        }

        .gal-item img {
            height: 250px;
        }

        .offset-low,
        .offset-high,
        .offset-mid,
        .offset-v-low {
            margin-top: 0;
        }

        /* Gallery Section Mobile */
        .gallery-section {
            padding: 50px 0;
        }

        .gallery-section .mb-5 {
            margin-bottom: 30px !important;
        }

        .gallery-section h1.text-primary {
            font-size: 1.8rem;
        }

        .row.g-5 {
            gap: 30px !important;
        }

        .photo-stack-wrapper {
            padding: 10px;
        }

        .photo-stack {
            max-width: 280px;
        }

        .photo-stack img,
        .photo-stack::before,
        .photo-stack::after {
            height: 180px;
            border-width: 4px;
        }

        .album-content {
            margin-top: 25px;
        }

        .album-title {
            font-size: 1rem;
        }

        .album-count {
            font-size: 0.7rem;
            padding: 3px 10px;
        }

        /* Disable hover effects on touch devices */
        .photo-stack-wrapper:hover .photo-stack::before {
            transform: translate(10px, -10px) rotate(5deg);
        }

        .photo-stack-wrapper:hover .photo-stack::after {
            transform: translate(-10px, -15px) rotate(-8deg);
        }
    }

    /* Very Small Mobile (≤480px) */
    @media (max-width: 480px) {
        .explore-section {
            padding: 30px 0;
        }

        .main-title {
            font-size: 2.5rem;
        }

        .sub-header {
            font-size: 0.8rem;
            letter-spacing: 6px;
        }

        .description {
            font-size: 0.85rem;
            margin: 20px 0;
        }

        .btn-outline-custom {
            padding: 8px 25px;
            font-size: 0.75rem;
        }

        .gal-item img {
            height: 200px;
        }

        .gallery-section {
            padding: 40px 0;
        }

        .gallery-section h1.text-primary {
            font-size: 1.5rem;
        }

        .photo-stack {
            max-width: 240px;
        }

        .photo-stack img,
        .photo-stack::before,
        .photo-stack::after {
            height: 160px;
            border-width: 3px;
        }

        .album-title {
            font-size: 0.9rem;
        }
    }

    .gallery-section {
        background-color: #1f1f1fff;
        padding: 100px 0;
        overflow: hidden;
    }

    .photo-stack-wrapper {
        text-decoration: none;
        display: block;
        padding: 20px;
        transition: all 0.4s ease;
    }

    .photo-stack {
        position: relative;
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Common styles for all layers */
    .photo-stack img,
    .photo-stack::before,
    .photo-stack::after {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border: 6px solid #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: 10px;
    }

    /* Top Layer (The Main Image) */
    .photo-stack img {
        position: relative;
        z-index: 3;
        display: block;
    }

    /* Middle Layer (Behind) */
    .photo-stack::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        background-size: cover;
        background-position: center;
        transform: translate(10px, -10px) rotate(5deg);
        transition: transform 0.4s ease;
    }

    /* Bottom Layer (Furthest Back) */
    .photo-stack::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        background-size: cover;
        background-position: center;
        transform: translate(-10px, -15px) rotate(-8deg);
        transition: transform 0.4s ease;
    }

    /* Set specific background images for the stacks */
    .stack-1::before {
        background-image: url('/assets/img/gal-7.jpg');
    }

    .stack-2::before {
        background-image: url('/assets/img/gal-8.jpg');
    }

    .stack-3::before {
        background-image: url('/assets/img/gal-10.jpg');
    }

    .stack-1::after {
        background-image: url('/assets/img/gal-2.jpg');
    }

    .stack-2::after {
        background-image: url('/assets/img/gal-4.jpg');
    }

    .stack-3::after {
        background-image: url('/assets/img/gal-6.jpg');
    }

    /* Album UI Styles */
    .album-content {
        margin-top: 40px;
        text-align: center;
    }

    .album-title {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 5px;
        display: block;
    }

    .album-count {
        background: rgba(255, 255, 255, 0.1);
        color: #f68a0a;
        font-size: 0.75rem;
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-block;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Hover State: The stack "explodes" or spreads out */
    .photo-stack-wrapper:hover .photo-stack::before {
        transform: translate(30px, -25px) rotate(12deg);
    }

    .photo-stack-wrapper:hover .photo-stack::after {
        transform: translate(-30px, -30px) rotate(-15deg);
    }

    .photo-stack-wrapper:hover .album-title {
        color: #f68a0a;
    }