/* --- DESKTOP OVERRIDES (MIN-WIDTH: 601PX) --- */
@media only screen and (min-width: 601px) {
    .description-block {
        display: block;
    }

    .image-caption {
        position: static;
        text-align: left;
        white-space: nowrap;
        margin-top: 0;
    }

    .logo-container {
        pointer-events: auto;
    }

    .logo {
        cursor: pointer;
    }
}

/* --- MOBILE VERSION (MAX-WIDTH: 600PX) --- */
@media only screen and (max-width: 600px) {

    /* --- MOBILE GLOBAL --- */
    html,
    body {
        overflow: hidden !important;
        background: #FBEE9B;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* --- MOBILE CAROUSEL --- */
    .image-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }

    .carousel-image {
        position: absolute;
        width: 82%;
        max-width: 350px;
        height: auto;
        max-height: 350px;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
        object-fit: contain;
        opacity: 0;
        filter: blur(3px);
        transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
        pointer-events: auto;
        cursor: pointer;
    }

    .carousel-image.active {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        filter: blur(0px);
    }

    /* --- MOBILE FOOTER STACK TECHNIQUE --- */
    .mobile-footer-wrapper {
        position: absolute;
        bottom: 10px;
        /* Logo distance from bottom */
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: auto;
        display: flex;
        flex-direction: column;
        /* Stacks: Logo (bottom), then Center, then Email */
        gap: 15px;
        /* Consistent spacing between blocks */
        align-items: flex-start;
        z-index: 50;
        pointer-events: none;
        /* Force override of desktop style.css defaults */
        top: auto !important;
        transform: none !important;
        overflow-y: auto;
        max-height: calc(100vh - 20px);
    }

    .logo-container,
    .center-text-block,
    .email-corner {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        text-align: left !important;
        pointer-events: auto;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .logo-container {
        display: block;
        line-height: 19px;
    }

    .logo {
        display: inline;
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
        cursor: pointer;
        pointer-events: auto;
    }

    /* --- MOBILE BIO --- */
    .bio-text {
        display: none !important;
        position: static !important;
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
        width: auto !important;
        max-width: 100%;
        text-align: left;
        margin-top: 4px;
        margin-left: 0;
        /* Block display below Daunay */
    }
    
    .bio-text[style*="display: inline"],
    .bio-text[style*="display: block"] {
        display: block !important;
    }

    .bio-text a {
        color: #FF0000;
        text-decoration: none;
        font-style: italic;
    }

    .three-column-block {
        display: block;
        position: relative;
    }

    .three-column-block .column {
        margin-bottom: 15px;
    }

    .three-column-block .column:last-child {
        margin-bottom: 0;
    }

    .center-text-block p {
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
        margin: 0;
    }

    /* --- MOBILE SERVICES --- */
    .services-title {
        font-size: 18px !important;
        line-height: 19px;
        color: #FF0000;
        display: inline;
        cursor: pointer;
    }

    .services-text {
        display: none;
        position: static !important;
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
        margin-top: 4px;
        width: auto !important;
    }
    
    .services-text p {
        display: block !important;
        margin: 0 0 4px 0;
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
    }
    
    .services-text p:last-child {
        margin-bottom: 0;
    }

    /* --- MOBILE CLIENTS & CAPTION --- */
    .selected-clients-title {
        font-size: 18px !important;
        line-height: 19px;
        color: #FF0000;
        display: inline;
    }

    .image-caption {
        display: block !important;
        position: static !important;
        font-size: 18px;
        line-height: 19px;
        color: #FF0000;
        opacity: 1 !important;
        margin-left: 0;
        margin-top: 4px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* --- MOBILE CONTACT --- */
    .email-corner a,
    .email-corner a:link,
    .email-corner a:visited {
        font-size: 18px !important;
        line-height: 19px;
        color: #FF0000;
        display: inline !important;
        text-decoration: none;
        background: none !important;
        -webkit-text-fill-color: #FF0000 !important;
    }

    .email-corner a:hover,
    .email-corner a:active {
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;
    }

    /* --- SHORT VIEWPORTS (HEIGHT < 650PX) --- */
    @media only screen and (max-height: 650px) {
        .carousel-image {
            max-height: 280px;
        }
    }
}