/* == 25% == */
@media only screen and (min-width: 4501px) and (max-width: 6000px) {
    .expressions-wrapper {
        height: 30vh !important;
    }

    .expressions-section .sub-title::before {
        width: 168px;
    }

     .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 69% !important;
    }
    .sidebar-vertical-logo {
        bottom: 54% !important;
    }




}

/* == 33% == */
@media only screen and (min-width: 3100px) and (max-width: 4500px) {
    .expressions-wrapper {
        height: 40vh !important;
    }

    .expressions-section .sub-title::before {
        width: 168px;
    }

    .sidebar-vertical-logo {
        bottom: 54% !important;
    }
    .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 69% !important;
    }


}

/* == 50% == */
@media only screen and (min-width: 2701px) and (max-width: 3100px) {
    .expressions-wrapper {
        height: 60vh !important;
    }

    .expressions-section .sub-title::before {
        width: 168px;
    }

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(27.5vw - 100px) !important;
        right: auto;
    }

    .sidebar-vertical-logo {
        bottom: 54% !important;
    }
    .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 68.5% !important;
    }

}

/* == 67% == */
@media only screen and (min-width: 2001px) and (max-width: 2700px) {
    .expressions-wrapper {
        height: 74vh !important;
    }

    .expressions-section .sub-title::before {
        width: 168px;
    }

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(26.5vw - 100px) !important;
        right: auto;
    }

    .sidebar-vertical-logo {
        bottom: 54% !important;
    }
     .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 68% !important;
    }




}

/* == 75% == */
@media only screen and (min-width: 1801px) and (max-width: 2000px) {
    .expressions-wrapper {
        height: 84vh !important;
    }

    .expressions-section .sub-title::before {
        width: 168px;
    }

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(26vw - 100px) !important;
        right: auto;
    }

    .sidebar-vertical-logo {
        bottom: 55% !important;
    }
     .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 67.5% !important;
    }



}

/* == 80% == */
@media only screen and (min-width: 1601px) and (max-width: 1800px) {
    .expressions-wrapper {
        height: 84vh !important;
    }

    .expressions-section .sub-title::before {
        width: 164px;
    }

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(25.5vw - 100px) !important;
        right: auto;
    }

    .sidebar-vertical-logo {
        bottom: 55% !important;
    }
    
    .portfolio-lightbox.portfolio-carousel-lightbox {
        width: 67.5% !important;
    }



}

/* == 90% == */
@media only screen and (min-width: 1517px) and (max-width: 1600px) {
    .expressions-section .sub-title::before {
        right: 200% !important;
    }

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(25vw - 100px) !important;
        right: auto;
    }

    .sidebar-vertical-logo {
        bottom: 56% !important;
    }
}

@media (min-width: 3100px) {

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(28.5vw - 100px) !important;
        right: auto;
    }
}

@media (min-width: 2300px) {

    .portfolio-wrapper .scroll-heading,
    .portfolio-wrapper.active .scroll-heading {
        left: calc(27.5vw - 100px) !important;
        right: auto;
    }
}


/* @media (max-width: 1500px) {
.portfolio-wrapper .scroll-heading {
  left: calc(23vw - 100px) !important;
  right: auto;
  justify-content: center;
  z-index: 1000001;
}
} */
@media (min-width: 1601px) {
    .container {
        max-width: 1400px !important;
    }

}

/* @media (min-width: 1501px) {
   .home-hero-wrapper .scroll-heading,
   .ethos-page-wrapper .scroll-heading {
        right: calc(50% - 120px) !important;
        gap: 50px;
    }
  
} */
@media (min-width: 1367px) {
    /* .section-space {
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
} */

    .contact-page-wrapper {
        height: 100vh;
    }

    .expressions-section .section-content {
        top: 70%;
    }
}

@media (min-width: 1300px) {

    .container,
    .expressions-section {
        max-width: 670px !important;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .site-footer .container {
        padding: 5px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }



    .services-large .services-image {
        width: 70% !important;
    }

    p,
    .common-outer p {
        max-width: 100%;
    }

    .services-text {
        width: 100%;
        max-width: 100%;
    }

    .intro-tagline {
        font-weight: 400;
    }


    .blog-main-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }


}


@media (min-width: 1400px) {
    .footer-outer .footer-email a {
        font-size: 16px;
    }

    .footer-copyright {
        font-size: 16px;
    }

    .footer-copyright a {
        font-size: 16px;
    }

}

@media (max-width: 1400px) {
    .hero-title {
        font-size: 140px;
        line-height: 130px;
    }

    /* .sidebar-vertical-logo {
        bottom: 58% !important;
    } */
}

@media (max-width: 1340px) {
    .portfolio-box {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        box-shadow: none;
    }

    .portfolio-box img {
        aspect-ratio: 4/3;
    }

    .portfolio-1 img {
        aspect-ratio: 3/4;
    }

    .portfolio-content h3 {
        max-width: 100% !important;
    }

    .expressions-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .expressions-section .section-content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        max-width: 100%;
        margin-bottom: 0px;
        padding: 24px;
        gap: 20px;
    }

    .expressions-section .sub-title::before {
        display: none !important;
    }

    .expressions-section .yellow-btn {
        writing-mode: horizontal-tb;
        transform: none !important;
        width: auto;
        height: auto;
        padding: 5px 20px !important;
    }


    .architecture-section {
        margin-top: 0px;
    }
}

@media (max-width: 1280px) {
    .ethos-page-wrapper .footer-copyright {
        padding-right: 0px;
    }

    .footer-copyright {
        padding-right: 0px;
    }

    .footer-outer {
        display: flex;
        padding-left: 0px;
        flex-direction: column;
    }

    .architecture-section .contact-form {
        padding: 50px;
    }

    .portfolio-wrapper .scroll-heading {
        left: calc(23.5vw - 100px) !important;
        right: auto;
    }

}

@media (max-width: 1200px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-title {
        font-size: 100px;
        line-height: 100px;
    }

    .main-grid {
        gap: 40px;
    }

    /* 
    .right-editor {
        padding-top: 10%;
    } */
    .main-right-content {
        padding-top: 0px;
    }



    .services-content-wrapper {
        padding-left: 60px !important;
    }

    .row-container {
        padding-left: 30px;
        padding-right: 30px;
        min-height: 600px;
    }

    /* .service-image,
    .service-content {
        padding: 40px;
    } */

    .services-header .page-title {
        font-size: 40px;
    }

    .service-content h3 {
        font-size: 30px;
    }
}

@media (max-width: 1199px) {}




@media (max-width: 1024px) {
    :root {
        --sidebar-width: 60px;
    }

    body::before {
        width: var(--sidebar-width);
    }

    .container,
    .e-con-inner,
    .elementor-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    section,
    .common-outer {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    /* .services-content .service-sub {
        flex-direction: column;
        gap: 30px;
    } */

    .services-large {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        margin-top: 40px;
    }

    h1 {
        font-size: 92px;
        line-height: 92px;
    }

    h2 {
        font-size: 68px;
        line-height: 72px;
    }

    h3 {
        font-size: 22px;
    }

    .hero-title {
        font-size: 120px;
        line-height: 110px;
    }

    .main-grid,
    .ethos-repeater-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-hero-wrapper,
    .ethos-page-wrapper {
        padding-left: var(--sidebar-width);
    }

    .hero-content-wrapper,
    .right-fixed-image {
        width: 50%;
    }

    .section-title h2 {
        font-size: 48px;
    }

    .services-large .services-image {
        width: 320px;
    }

    .ethos-outer .service-sub {
        width: 100%;
        gap: 30px;
    }

    /* 
    .site-footer {
        padding: 30px 40px;
    } */
    .main-right-content {
        padding-top: 0px;
    }




}

/* ============================================================
   SIDEBAR VERTICAL LOGO
============================================================ */

@media (min-width: 992px) {
    .sidebar-vertical-logo {
        display: flex;
        position: fixed;
        bottom: 60%;
        left: 28px;
        transform: translate(-50%, -50%) rotate(-90deg);
        transform-origin: center center;
        white-space: nowrap;
        z-index: 9999;
    }

    .sidebar-vertical-logo a {
        display: block;
        line-height: 1;
    }

    .sidebar-vertical-logo img {
        display: block;
        max-width: 30vh;
        height: auto;
        max-height: 50px;
        object-fit: contain;
    }

    .ethos-right-col {
        height: 100%;
        min-height: 100vh !important;
    }

    a.ScrollTop {
        display: none !important;
    }

    .portfolio-lightbox.portfolio-carousel-lightbox {
        left: auto !important;
        right: 0 !important;
        width: 67%;
        /* border-left: 1px solid rgba(255, 255, 255, 0.08); */
    }

    .portfolio-carousel-lightbox .lightbox-inner {
        width: 100%;
        max-width: 100% !important;
        height: 100% !important;
    }


}

@media (max-width: 991px) {
   
    :root {
        --sidebar-width: 0px;
    }

    body::before {
        display: none;
    }

    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
    }

    /* Reset horizontal scroll container for mobile */
    #pages {
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pages-track {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        overscroll-behavior: none;
    }

    /* Transition Wipe for Mobile */
    .transition-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 999999;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        visibility: hidden;
    }

    .transition-overlay.is-active {
        visibility: visible;
    }

    .transition-overlay.is-active .wipe-1 {
        animation: mobileWipeLeft 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    }

    .transition-overlay.is-active .wipe-2 {
        animation: mobileWipeLeft 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards 0.15s;
    }

    @keyframes mobileWipeLeft {
        0% {
            transform: translateX(0);
        }

        40%,
        60% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(-200%);
        }
    }

    .pages-track .page {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        position: relative !important;
        transform: none !important;
        rotate: 0deg !important;
        transform-origin: center center !important;
        display: none !important;
        /* Hide pages by default on mobile ONLY inside pages-track */
        opacity: 0;
    }

    @keyframes mobilePageFadeIn {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Only show active page inside pages-track */
    html:not([data-active-page]) .pages-track #page-home,
    html[data-active-page="page-home"] .pages-track #page-home,
    html[data-active-page="page-ethos"] .pages-track #page-ethos,
    html[data-active-page="page-portfolio"] .pages-track #page-portfolio,
    html[data-active-page="page-services"] .pages-track #page-services,
    html[data-active-page="page-blog"] .pages-track #page-blog,
    html[data-active-page="page-contact"] .pages-track #page-contact {
        display: block !important;
        /* opacity comes from mobilePageFadeIn animation — do NOT set it here
           or it will override the 0% keyframe and kill the fade-in effect */
        animation: mobilePageFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .page-inner {
        transform: none !important;
        -webkit-transform: none !important;
        width: 100% !important;
        height: auto !important;
        rotate: 0deg !important;
        transform-origin: center center !important;
    }

    .page-nav-arrows,
    .nav-dots,
    .nav-dot {
        display: none !important;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
        background: var(--primary-pink);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-logo {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        padding-top: 0;
        z-index: 10;
        display: flex !important;
        align-items: center;
    }

    .sidebar-logo img.imganimation {
        width: 32px;
        height: auto;
    }

    .sidebar-social {
        position: relative;
        left: auto;
        bottom: auto;
        display: flex;
        flex-direction: row;
        gap: 12px;
        z-index: 10;
    }

    .sidebar-social a {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        backdrop-filter: blur(4px);
    }

    .mobile-sidebar {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        transform: none !important;
        z-index: 10;
    }

    p,
    .common-outer p {
        max-width: 100%;
    }

    .home-hero-wrapper,
    .ethos-page-wrapper {
        display: flex;
        flex-direction: column;
        padding-left: 0 !important;
        overflow-x: hidden !important;
    }

    .main-right-content {
        width: 100%;
    }

    .services-text {
        padding: 0px !important;
    }

    .ethos-outer .container-service .section-content {
        width: 100%;
    }

    .hero-content-wrapper,
    .ethos-right-content,
    .services-content-wrapper {
        width: 100%;
        order: 2;
        height: auto !important;
        overflow: visible !important;
        overflow-x: hidden !important;
    }

    .right-fixed-image,
    .ethos-left-image {
        width: 100%;
        position: relative;
        height: 50vh;
        /* top: 66px; */
        margin-top: 60px !important;
        sticky: static;
    }

    .ethos-outer {
        padding: 0px;
    }

    .ethos-page-wrapper {
        flex-direction: column;
    }

    .ethos-section .ethos-outer {
        justify-content: left;
        padding: 0px;
    }

    .ethos-left-image,
    .ethos-page-wrapper .right-content {
        width: 100%;
    }

    .ethos-page-wrapper .right-content {
        height: auto;
        overflow: visible;
    }

    .ethos-page-wrapper .ethos-left-image {
        width: 100%;
    }

    .ethos-right-col {
        background: var(--accent-gold);
        display: flex;
        flex-direction: column-reverse;
    }

    .ethos-outer .top-right-image img {
        right: 0 !important;
        top: -34px !important;
        width: 100% !important;
    }

    .right-fixed-image img,
    .ethos-left-image img {
        object-position: top;
    }

    .right-content .ethos-right-content {
        width: 100%;
    }

    .main-heading-section .site-logo {
        margin-bottom: 15px;
    }

    .hero-content-wrapper section,
    .ethos-right-content section,
    .portfolio-right section {
        min-height: auto;
        padding: 20px;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 30px;
        background: var(--white);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .top-heading h3,
    .ethos-main-heading h1 {
        font-size: 28px;
    }

    .right-editor,
    .ethos-editor-content {
        padding-top: 0;
    }

    /* 
    .expressions-section .section-title {
        padding: 24px 0px;
    } */

    .site-footer .container {
        padding: 0px !important;
    }

    .services-section,
    .ethos-section,
    .expressions-section,
    .contact-section,
    .architecture-section .section-content,
    .architecture-section .contact-form {
        padding: 60px 30px;
    }

    .architecture-section .section-content {
        padding-bottom: 0px !important;
        padding-top: 40px !important;
    }

    .architecture-section .contact-form {
        padding-top: 20px !important;
    }

    .services-outer {
        padding-bottom: 0px !important;
    }

    .architecture-section {
        margin-top: 0 !important;
    }

    .architecture-section {
        border-left: 0px solid var(--off-white);
    }

    .services-content .service-sub,
    .ethos-outer .service-sub {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }

    .section-sub-title {
        writing-mode: horizontal-tb;
        transform: none;
        width: 120px;
        height: auto;
        padding: 5px 20px !important;
    }

    .expressions-section .section-content .sub-title::after {
        width: 100vw !important;
    }

    .services-large {
        padding-bottom: 0;
        margin-top: 40px;
    }

    .services-large .services-image {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        margin: 0px auto 0;
    }

    .expressions-section {
        padding-bottom: 0px !important;
        padding-top: 0px !important;
    }

    /* Keep Polaroid contact image proportioned and clean instead of stretching full width */
    .form-image-right {
        width: 100% !important;
        max-width: 280px !important;
        height: 350px;
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        margin: 20px auto 0;
    }

    .services-content-wrapper .contact-left {
        max-width: 100%;
    }

    .contact-left {
        max-width: 100%;
    }

    .site-footer {
        padding: 20px 30px;
        text-align: center;
    }

    .footer-logo {
        width: 240px;
    }

    .ethos-page-wrapper .footer-logo {
        width: 240px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .right-content .ethos-right-content {
        padding: 20px 40px;
    }

    .ethos-page-wrapper .ethos-repeater-wrapper {
        padding: 20px 40px;
    }

    .ethos-outer .ethos-right-content .yellow-btn {
        transform: rotate(0deg);
    }

    .ethos-page-wrapper .footer-copyright {
        padding-right: 0px;
    }

    .mobile-branding {
        width: 100% !important;
        padding: 20px 24px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        height: 100vh;
    }

    .mobile-branding.active {
        /* padding-bottom: 20px; */
        padding-top: 20px;
    }

    .popup-header {
        position: relative;
        z-index: 100;
        background: var(--primary-pink);
        align-items: center;
        display: flex;
        flex-shrink: 0;
    }

    .popup-header .heading-logo {
        width: 40%;
    }

    .popup-nav {
        scrollbar-width: none;
    }

    .popup-nav::-webkit-scrollbar {
        display: none;
    }

    .header-menu-section {
        width: 30px !important;
        /* minimum usable for stylus pen */
        height: 30px !important;
    }

    .sidebar-menu li {
        margin-bottom: 4px;
        /* spacing comes from padding on <a>, matches custom.css */
        margin-left: 0px !important;
    }

    .sidebar-menu li a {
        font-size: 24px;
        letter-spacing: 1.5px;
        line-height: 1.2;
    }

    .sidebar-menu li a span {
        /* font-size: 13px; */
        /* display: block; */
        margin-top: 4px;
        opacity: 0.8;
    }

    .popup-img img {
        height: 40vh !important;
    }

    /* 
    .scroll-heading {
        display: none;
    } */

    .services-content-wrapper {
        padding-left: 0 !important;
        height: auto;
        overflow: visible;
        overflow-x: hidden !important;
    }


    .contact-page {
        height: auto;
        overflow: visible;
        overflow-x: hidden !important;
        padding: 0px !important;
    }

    .contact-page-wrapper {
        flex-direction: column;
        padding-left: 0 !important;
        height: auto !important;
    }

    .contact-page-wrapper .contact-page-section {
        padding: 90px 20px !important;
        padding-top: 165px !important;
        /* Spacing to prevent scroll-heading overlap */
        width: 100% !important;
    }

    .contact-page-wrapper .contact-section {
        width: 100% !important;
        padding: 0px 30px !important;
        /* 60px vertical padding for breathing room */
        align-items: center;
    }

    .contact-page-wrapper .contact-section .form-container {
        padding: 0 !important;
    }


    /* Mobile Header matches the white contact sidebar theme */
    html[data-active-page="page-contact"] .site-header {
        background: var(--white) !important;
        border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    }

    html[data-active-page="page-contact"] .sidebar-logo img.imganimation {
        filter: brightness(0) saturate(100%) invert(31%) sepia(95%) saturate(3530%) hue-rotate(320deg) brightness(96%) contrast(96%) !important;
        -webkit-filter: brightness(0) saturate(100%) invert(31%) sepia(95%) saturate(3530%) hue-rotate(320deg) brightness(96%) contrast(96%) !important;
    }
 
    .services-content-wrapper .container,
    .services-section .container {
        padding: 0 !important;
        max-width: 100% !important;
        margin-top: 165px;
    }

    #page-services .site-footer .container {
        margin-top: 0px;
    }

    .service-row .row-container,
    .reverse-row .row-container {
        flex-direction: column-reverse;
        min-height: auto;
        padding: 0;
    }

    .left-container,
    .right-container,
    .service-row .service-image {
        flex: 0 0 100%;
        width: 100% !important;
        padding: 0px;
        min-height: auto;
    }

    .left-container,
    .right-container,
    .service-row .service-image {
        padding: 20px;
    }

    .service-row .service-image {
        /* height: 50vh;
        min-height: 350px; */
        order: 1;
    }

    .service-content {
        flex: 0 0 100%;
        width: 100% !important;
        min-height: auto;
        order: 2;
        /* padding: 40px 24px !important; */
        /* 24px horizontal padding so content doesn't touch screen edges */
        align-items: flex-start;
        text-align: left;
    }

    .service-content h3 {
        font-size: 28px;
        text-align: left;
    }

    .service-content .content-text {
        max-width: 100%;
    }

    .services-header {
        margin-bottom: 40px;
        padding: 40px 24px 0;
    }

    .services-header .page-title {
        font-size: 32px;
    }

    /* Portfolio Lightbox */
    .portfolio-lightbox {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        height: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
    }

    /* Generic lightbox inner (non-carousel) */
    .lightbox-inner {
        width: 90% !important;
        max-width: 450px !important;
        height: auto !important;
        max-height: 85vh !important;
        max-height: 85dvh !important;
        top: auto !important;
        margin: auto !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        /* border-radius: 12px; */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    /* Carousel lightbox: always full-viewport, no top offset */
    .portfolio-carousel-lightbox .lightbox-inner {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        top: 0 !important;
        overflow: hidden !important;
    }

    .lightbox-carousel-wrap {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .lightbox-close {
             width: 38px !important;
        height: 38px !important;
        font-size: 22px !important;
        top: 0px !important;
        right: 0px !important;
        /* border-radius: 50% !important; */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99 !important;
    }

    #lightbox-image {
        height: 52vw;
        max-height: 340px;
    }

    .lightbox-content-wrap {
        padding: 32px 28px 40px;
    }

    .portfolio-carousel-lightbox .lightbox-content-wrap {
        display: block !important;
        position: relative !important;
        background: var(--white);
        padding: 20px 24px !important;
    }

    /* .portfolio-carousel-lightbox #lightbox-title {
        color: var(--primary-pink) !important;
        font-family: var(--font-primary);
        font-size: 20px;
        font-weight: 600;
        margin-top: 10px;
        margin-bottom: 10px;
    } */

    .portfolio-carousel-lightbox #lightbox-description {
        color: var(--dark-gray) !important;
        font-size: 14px;
        line-height: 1.6;
    }


    .portfolio-mockup-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 165px 0 0px !important;
        overflow-x: hidden !important;
    }

    .portfolio-left {
        position: static;
        height: auto;
        width: 100%;
    }

    .portfolio-right {
        width: 100%;
        height: auto;
        overflow: visible;
        overflow-x: hidden !important;
        direction: ltr;
        padding: 20px 0;
        padding-bottom: 0px;
    }

    .portfolio-wrapper .contact-left {
        max-width: 100%;
    }

    .portfolio-sidebar {
        height: auto;
        min-height: auto;
        padding: 20px 24px;
        background: #fff;
        border-right: 0;
        border-bottom: 1px solid var(--light-gray);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        direction: ltr;
        width: 100%;
        background: var(--selection);
    }

    .portfolio-placeholder {
        padding: 0px;
    }

    .portfolio-content-panel {
        margin-top: 20px;
        padding-right: 0;
    }

    /* #portfolio-content {
        max-height: 450px;
        padding-right: 8px;
    } */

    .portfolio-intro-copy {
        font-size: 14px;
        color: #555;
    }

    .portfolio-intro-copy h1,
    .portfolio-intro-copy h2,
    .portfolio-intro-copy h3,
    .portfolio-intro-copy h4 {
        font-size: 18px;
        margin-top: 20px;
    }

    .portfolio-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .portfolio-desc {
        font-size: 15px;
        margin-top: 12px;
        line-height: 1.6;
    }

    .portfolio-grid-item,
    .portfolio-grid-sizer,
    .portfolio-grid-item--wide,
    .portfolio-grid-item--standard {
        width: 100%;
        padding: 0 15px 25px;
    }

    .portfolio-stage {
        min-height: 0;
        padding: 0px 5px 0px;
    }

    .portfolio-stage-watermark,
    .portfolio-stage-accent,
    .portfolio-stage-arrow {
        display: none;
    }

    .portfolio-item-caption {
        text-align: center;
        padding: 5px;
    }

    .portfolio-content-panel .portfolio-detail.is-visible {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portfolio-content-panel .portfolio-title {
        display: block !important;
        font-size: 20px;
        line-height: 1.3;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .portfolio-content-panel .portfolio-desc {
        margin-top: 0;
    }

    .portfolio-carousel-lightbox .lightbox-inner {
        width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        top: 0 !important;
        overflow: hidden !important;
    }

    /* ---- Responsive Inline Gallery (matching desktop slides layout) ---- */
    .portfolio-content-panel .lightbox-carousel-wrap {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: transparent !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }

    .portfolio-content-panel .lightbox-slides-container {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        /* 16:9 Aspect Ratio Hack */
        overflow: hidden !important;
        background: var(--white) !important;
    }

    .portfolio-content-panel .lightbox-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .portfolio-content-panel .lightbox-nav-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        padding-top: 15px !important;
        width: 100% !important;
    }

    .portfolio-content-panel .lightbox-nav-btn {
        position: static !important;
        transform: none !important;
        width: 36px !important;
        height: 36px !important;
        background: var(--primary-pink) !important;
        border-radius: 50% !important;
        border: none !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: background 0.25s ease !important;
    }

    .portfolio-content-panel .lightbox-nav-btn:hover {
        background: var(--accent-gold) !important;
    }

    .portfolio-content-panel .lightbox-nav-btn svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }


    .portfolio-placeholder.is-visible .portfolio-desc {
        position: relative;
        bottom: 0;
        right: 0;
    }

    .lightbox-carousel-wrap button::before {
        display: none !important;
    }


    /* Blog Page Responsiveness */
    .blog-page-section {
        height: auto !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 0px !important;
    }

    .blog-container {
        display: flex !important;
        flex-direction: column-reverse !important;
        /* Display active blog post first, other list/filters below */
        padding-left: 0 !important;
        min-height: auto !important;
        gap: 20px !important;
        overflow-x: hidden !important;
        padding: 165px 0 0px !important;
        /* Spacing to prevent scroll-heading overlap */
    }

    .blog-page-section .contact-left {
        max-width: 100%;
    }

    .blog-main-content {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        overflow-y: visible !important;
        padding: 20px 0 0px 0 !important;
        display: flex;
        flex-direction: column-reverse;
    }

    .blog-main-content .blog-post-shell {
        padding: 0px 20px;
    }

    .blog-sidebar-wrapper {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        overflow-y: visible !important;
        padding: 40px 24px !important;
        direction: ltr !important;
        order: 1;
    }

    .blog-sidebar-wrapper::-webkit-scrollbar,
    .blog-main-content::-webkit-scrollbar {
        display: none !important;
    }

    .blog-sidebar-wrapper .btn-outer {
        margin-top: 40px !important;
        margin-bottom: 20px !important;
    }

    .blog-intro-section {
        padding: 20px 20px !important;
        background: var(--selection);
    }

    .blog-intro-section h2,
    .blog-intro-content {
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .blog-post-item {
        padding: 20px 0 !important;
    }

    .blog-top {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .blog-heading-content {
        align-items: flex-start !important;
        width: 100% !important;
    }

    .blog-heading-content h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: left !important;
    }

    .blog-meta-card {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .blog-meta-card h3,
    .blog-meta-card .blog-meta-year,
    .blog-meta-card h2.blog-meta-title {
        /* padding: 10px 20px !important; */
        font-size: 16px !important;
    }

    .blog-content img {
        width: 100% !important;
        float: none !important;
        margin: 20px 0 !important;
    }

    /* .blog-main-content .blog-content .bottom-img {
        height: 250px !important;
    } */

    .masonry-item span {
        text-align: left !important;
    }

    .blog-page-section .architecture-section {
        padding-left: 0px !important;
    }

    .blog-intro-section {
        justify-content: flex-start;
        /* margin-bottom: 45px; */
    }

    .blog-intro-copy {
        width: 100%;
        margin-left: 0;
    }

    .blog-intro-copy h1 {
        font-size: 32px;
        max-width: none;
    }

    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar-wrapper,
    .blog-main-content {
        width: 100%;
        height: auto;
        position: static;
        top: auto;
        padding-right: 0;
    }

    .masonry-grid {
        column-count: 2;
    }

    .blog-top {
        flex-direction: column;
    }

    .blog-feature-image,
    .blog-heading-content {
        width: 100%;
    }

    .blog-heading-content h2 {
        font-size: 28px;
    }

    .blog-main-content {
        padding-top: 20px !important;
    }

    /* html[data-active-page="page-contact"] .heading-logo img {
        filter: brightness(0) saturate(100%) invert(22%) sepia(92%) saturate(3387%) hue-rotate(324deg) brightness(96%) contrast(96%);
    }

    html[data-active-page="page-contact"] .header-menu-section span {
        background: var(--primary-pink);
    } */
    /* 
    .architecture-section,
    .contact-section,
    .site-footer {
        display: none !important;
    }

    #page-contact .site-footer {
        display: block !important;
    }

    #page-blog .architecture-section {
        display: block !important;
    }

    #page-blog .architecture-section .section-content,
    #page-blog .architecture-section .contact-form {
        display: none !important;
    } */

    /* Unified scroll-heading positioning and alignment for responsive (max-width: 991px) */
    .scroll-heading {
        position: absolute !important;
        top: 100px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        z-index: 999 !important;
    }

    .scroll-heading h1.heading-one,
    .scroll-heading h2.heading-two {
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Disable the old, hardcoded absolute separator */
    .scroll-heading .heading-two::after {
        display: none !important;
    }

    /* Dynamically positioned separator: attached to the second heading (heading-two) as a ::before element */
    .scroll-heading h2.heading-two {
        display: inline-flex !important;
        align-items: center !important;
    }

    .scroll-heading h2.heading-two::before {
        content: '' !important;
        display: inline-block !important;
        width: 4px !important;
        height: 24px !important;
        border-radius: 25px !important;
        background: var(--primary-pink) !important;
        margin-right: 16px !important;
        flex-shrink: 0 !important;
    }

    .contact-page .contact-page-wrapper .scroll-heading {
        top: 90px !important;
    }

    /* Page-specific separator background colors */
    .ethos-page-wrapper .scroll-heading h2.heading-two::before {
        background: var(--white) !important;
    }

    #page-home .scroll-heading h2.heading-two::before {
        background: var(--white) !important;
    }

    /* .contact-page .scroll-heading h2.heading-two::before {
        background: var(--accent-gold) !important;
    } */

    /* White theme heading color configurations */
    #page-home .scroll-heading h1,
    #page-home .scroll-heading h2,
    .ethos-page-wrapper .scroll-heading h1,
    .ethos-page-wrapper .scroll-heading h2 {
        color: var(--white) !important;
    }

    /* Contact page yellow theme configuration */
    /* .contact-page .scroll-heading h1,
    .contact-page .scroll-heading h2 {
        color: var(--accent-gold) !important;
    } */

    /* Services and Blog page configurations */
    .services-content-wrapper .scroll-heading h1,
    .blog-page-section .scroll-heading h1 {
        color: var(--primary-pink) !important;
    }

    .services-content-wrapper .scroll-heading h2,
    .blog-page-section .scroll-heading h2 {
        color: var(--medium-gray) !important;
    }

    .contact-form .eb-contact-button-wrapper button {
        height: auto;
        padding: 5px 20px !important;
        line-height: 38px !important;
    }

    .contact-page .contact-page-wrapper .scroll-heading h2::before {
        right: 0px;
    }

    .footer-copyright {
        padding-right: 0px;
    }

    /* .portfolio-lightbox.portfolio-carousel-lightbox{
        display: none !important;
    } */
    .mrtnz-tooltip.type-cursor.active {
        display: none !important;
    }


    /* ── Sidebar Vertical Logo — Tablet (≤ 991px): fixed above hero image ── */
    .sidebar-vertical-logo {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 150px;
        transform: translateX(-50%);
        transform-origin: unset;
        white-space: nowrap;
        justify-content: center;
        align-items: center;
        height: 84px;
        padding: 0 16px;
        z-index: 1001;
        pointer-events: auto;
    }

    .sidebar-vertical-logo a {
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    .sidebar-vertical-logo img {
        display: block;
        width: auto;
        max-width: 160px;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }

    /* .sidebar-vertical-logo {
        display: none !important;
    } */
    .error-page .yellow-btn {
        padding-top: 0px;
    }

    html[data-active-page="page-contact"] .sidebar-logo::before {
        width: 32px;
        height: 32px;
        top: 0;
        left: 0;
    }

    .portfolio-wrapper .scroll-heading {
        left: 50% !important;
    }
    .sidebar-vertical-logo {
    display: none !important;
    }
    html[data-active-page="page-contact"] .sidebar-vertical-logo img{
        display: none !important;
    }
    .portfolio-lightbox.active .lightbox-btn-wrapper .yellow-btn {
    padding: 0px;
    }
    .load-more-wrap .yellow-btn {
    padding: 0px;
    }


}


@media (max-width: 768px) {
    .ethos-repeat-row {
        flex-direction: column;
        gap: 20px;
    }

    .ethos-repeat-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .ethos-header-heading h1 {
        font-size: 48px;
    }

    .ethos-header-heading h1 span {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    .ethos-header-heading h1 span::before {
        display: none;
    }

    .service-row .service-image {
        /* height: 40vh;
        min-height: 280px; */
    }

    /* .service-content {
        padding: 40px 20px 60px;
    } */

    .service-content h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .service-content .content-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .expressions-section .section-title h4 {
        line-height: 24px;
    }

    .services-header .page-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 30px;
    }

    .container,
    .e-con-inner,
    .elementor-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    section,
    .common-outer {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    h1 {
        font-size: 58px;
        line-height: 58px;
        margin-bottom: 30px;
    }

    .welcome-text {
        font-size: clamp(32px, 7.5vw, 46px) !important;
        letter-spacing: 0.15em !important;
        white-space: nowrap !important;
    }

    h2 {
        font-size: 46px;
        line-height: 50px;
        margin-bottom: 24px;
    }

    h3 {
        font-size: 24px;
        line-height: 30px;
    }

    h4 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 10px;
    }

    h5 {
        font-size: 24px;
        line-height: 34px;
    }

    p,
    .common-outer p {
        font-size: 15px;
        line-height: 30px;
    }

    .large-text {
        font-size: 22px;
        line-height: 40px;
    }

    blockquote {
        padding-left: 24px;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    blockquote p {
        font-size: 28px;
        line-height: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 34px;
    }

    .intro-brand-name {
        font-size: 24px;
        letter-spacing: 0.3em;
    }

    .intro-interiors {
        font-size: 24px;
    }

    .intro-tagline {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .intro-logo-reveal {
        margin-bottom: 10px;
    }

    strong {
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 38px;
    }

    .scroll-heading h1 {
        font-size: 24px !important;
        line-height: 34px !important;
    }

    .scroll-heading h2 {
        font-size: 22px !important;
        line-height: 35px !important;
    }

    /* .services-section .section-title {
        margin-bottom: 20px;
    } */

    .hero-title,
    .ethos-main-heading h1 {
        font-size: 60px;
        line-height: 1;
    }

    .top-heading h3,
    .ethos-bottom-content h3 {
        font-size: 24px;
        line-height: 30px;
        /* margin-top: 10px;
        margin-bottom: 20px; */
    }

    .services-text h3 {
        font-size: 24px;
    }

    .services-text p {
        font-size: 16px;
    }

    .architecture-content h2 {
        font-size: 30px;
        line-height: 38px;
    }

    .architecture-section .section-content h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .ethos-bottom-section .bottom-editor {
        padding: 20px !important;
    }

    .architecture-content {
        padding: 20px;
    }

    .contact-form .edublink-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    /* Fix: reset the desktop bottom:-60px offset that pushes the photo
       and the name/title block out of view on mobile */
    .form-image-right {
        bottom: 0 !important;
        width: 180px;
        /* height: 220px; */
    }

    /* Ensure Carlos Martinez name + title are always visible */
    .contact-left h3,
    .contact-left p,
    .contact-left strong {
        color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }

    /* Allow the section to grow tall enough to show all content */
    .contact-section {
        overflow: visible !important;
        padding: 30px 24px !important;
    }

    .architecture-section .contact-section {
        overflow: visible !important;
    }

    .contact-page-wrapper .form-container {
        gap: 25px;
    }

    .right-content .ethos-right-content {
        padding: 20px;
    }

    .ethos-page-wrapper .ethos-repeater-wrapper {
        padding: 20px;
    }

    .ethos-bottom-section .bottom-editor {
        padding: 20px;
    }

    .sidebar-menu li a {
        font-size: 22px;
    }

    /* .sidebar-menu li a span {
        font-size: 12px;
    } */

    /* Blog Page Mobile Updates */
    .blog-container .masonry-grid {
        column-count: 1 !important;
    }

    .blog-meta-card h3,
    .blog-meta-card .blog-meta-year,
    .blog-meta-card h2.blog-meta-title {
        font-size: 14px !important;
        /* padding: 8px 16px !important; */
    }

    .blog-meta-card span.blog-meta-year,
    .blog-heading-content span.blog-meta-author {
        font-size: 14px !important;
        /* padding: 8px 12px !important; */
    }

    .blog-heading-content h2 {
        font-size: 24px !important;
    }

    /* Removed page-specific absolute overrides to maintain unified center alignment */

    /* 
    .blog-main-content .blog-content .bottom-img {
        height: 200px !important;
    } */

    .contact-page .contact-form {
        padding: 30px 0;
    }
}

@media (max-width: 640px) {
    .portfolio-page-title-main {
        font-size: clamp(24px, 9vw, 36px);
    }

    .portfolio-page-title-accent {
        font-size: 12px;
    }

    .portfolio-content-panel {
        padding: 0;
    }

    #portfolio-content {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .portfolio-grid-item,
    .portfolio-grid-sizer,
    .portfolio-grid-item--wide,
    .portfolio-grid-item--standard {
        width: 100%;
        padding: 0 6px 14px;
    }

    .portfolio-title {
        font-size: 24px;
    }

    .left-container,
    .right-container,
    .service-row .service-image {
        padding: 20px;
    }

    .right-fixed-image,
    .ethos-left-image {
        height: 50vh;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title strong {
        font-size: 18px;
    }

}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .hero-content-wrapper section,
    .ethos-right-content section {
        padding: 20px 20px !important;
    }

    .hero-content-wrapper .contact-section {
        padding: 30px 60px 30px 60px !important;
    }

    .home-hero-wrapper .architecture-section {
        padding: 0px !important;
    }

    .architecture-section .section-content {
        padding: 30px !important;
        padding-bottom: 0px !important;
    }

    .portfolio-wrapper .portfolio-right {
        padding: 0px !important;
    }

    .portfolio-content-panel .lightbox-nav-btn.prev {
        left: 0px !important;
    }

    .portfolio-content-panel .lightbox-nav-btn.next {
        right: 0px !important;
    }

    .expressions-section .section-content {
        padding-bottom: 0px;
    }

    .services-section,
    .ethos-section,
    .expressions-section,
    .contact-section,
    .architecture-section .section-content,
    .architecture-section .contact-form {
        padding: 30px 20px;
    }

    .contact-form .eb-contact-button-wrapper {
        padding: 0;
    }

    .services-text .service-item {
        padding-bottom: 10px;
    }

    .section-title {
        margin-bottom: 10px;
    }

    .hero-content-wrapper .services-section {
        padding-top: 0px !important;
    }

    /* p, .common-outer p {
        font-size: 15px;
        line-height: 26px;
    }
    body {
        font-size: 15px;
        line-height: 26px;
    } */
    .top-heading h3,
    .ethos-bottom-content h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .portfolio-content-panel .portfolio-title {
        font-size: 18px;
        line-height: 24px;
    }

    .contact-page .contact-form {
        padding: 0px;
    }

    .contact-page-wrapper .contact-page-section {
        padding-bottom: 35px !important;
        /* padding: 90px 20px !important; */
    }

    .contact-page-wrapper .contact-section {
        padding: 30px 60px 22px 60px !important;
    }

    .privacy-policy-wrapper .privacy-sidebar .privacy-content-panel h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .site-footer {
        padding: 20px 20px;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .footer-copyright a {
        font-size: 14px;
    }
  
    .sidebar-logo {
        flex-direction: row;
        gap:5px;
    }
    .contact-page .contact-page-wrapper .scroll-heading {
        top: 67px !important;
    }

}

@media (max-width: 520px) {
    #lightbox-image {
        height: 100vw;
    }

    .lightbox-content-wrap {
        padding: 24px 20px 32px;
    }

    #lightbox-title {
        font-size: 18px;
    }

    #lightbox-button {
        font-size: 10px;
    }

    /* .footer-copyright {
        font-size: 12px;
    } */

    .popup-header .heading-logo {
        width: 60%;
    }

    .header-menu-section {
        width: 30px !important;
        /* keep usable for stylus — was 20px */
        height: 30px !important;
    }
}

@media (max-width: 480px) {

    .hero-content-wrapper section,
    .ethos-right-content section {
        padding: 20px 20px;
    }

    .architecture-content h2 {
        font-size: 24px;
        line-height: 30px;
    }

    /* .section-title h2 {
        font-size: 32px;
    } */

    .contact-left h3 {
        font-size: 18px;
        line-height: 20px;
    }

    .mobile-header {
        padding: 15px 20px;
    }

    .site-logo img {
        max-width: 240px;
    }

    .site-footer .site-logo img {
        max-width: 240px;
    }

    .sidebar-menu li a {
        font-size: 14px;
    }

    .sidebar-menu li a span {
        font-size: 14px;
    }

    .form-image-right {
        height: 300px;
    }

    .sidebar-vertical-logo {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 150px;
        transform: translateX(-50%);
        justify-content: center;
        align-items: center;
        padding: 0 12px;
        z-index: 1001;
    }

    h3 {
        font-size: 20px;
        line-height: 24px;
    }

    section.expressions-section.section-in-view {
        padding-bottom: 45px !important;
    }
    .site-header {
      padding: 14px 14px;
    }
    .sidebar-social a {
        width: 30px;
        height: 30px;
        font-size: 13px;

     }
     .contact-page .contact-page-wrapper .scroll-heading {
        top: 60px !important;
    }

    .sidebar-vertical-logo {
        display: none !important;
    }
}


@media (max-width: 440px) {
    .sidebar-vertical-logo {
        display: none !important;
    }
}

@media (max-width: 320px) {

    .container,
    .e-con-inner,
    .elementor-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1,
    .hero-title,
    .ethos-main-heading h1 {
        font-size: 42px;
        line-height: 44px;
    }

    h2 {
        font-size: 32px;
        line-height: 36px;
    }

    h3 {
        font-size: 16px;
        line-height: 22px;
    }

    .architecture-content h2 {
        font-size: 20px;
        line-height: 22px;
    }


    .intro-brand-name {
        font-size: 20px !important;
        letter-spacing: 0.25em !important;
    }

    .intro-interiors {
        font-size: 20px !important;
    }

    /* Intro brand full text (typewriter) — 320px */
    .intro-brand-full {
        font-size: 18px !important;
        letter-spacing: 0.06em !important;
        white-space: normal !important;
        text-align: center !important;
        padding: 0 16px !important;
        line-height: 1.5 !important;
    }

    /* Welcome text — center + scale down for 320px */
    .welcome-text {
        font-size: 30px !important;
        letter-spacing: 0.1em !important;
        padding: 0 16px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .intro-tagline {
        font-size: 10px !important;
    }

    .top-heading h3,
    .ethos-bottom-content h3 {
        font-size: 18px;
        line-height: 20px;
    }

    .sidebar-menu li a {
        font-size: 14px;
    }

    .sidebar-menu li a span {
        font-size: 14px;
    }

    .site-logo img {
        max-width: 180px;
    }

    .mobile-header {
        padding: 15px 15px;
    }

    .ethos-right-content {
        padding: 40px 20px !important;
    }

    /* .ethos-outer .top-right-image img {
        right: 0 !important;
        top: -10px !important;
        width: 80% !important;
    } */

    .ethos-repeat-image {
        width: 100% !important;
    }

    .ethos-repeat-row {
        gap: 15px !important;
    }

    /* Scroll Headings fine-tuning for 320px screens */
    .scroll-heading h1 {
        font-size: 20px !important;
    }

    .scroll-heading h2 {
        font-size: 18px !important;
    }

    .scroll-heading h2.heading-two::before {
        height: 18px !important;
        margin-right: 12px !important;
    }

    /* Padding adjustments to maximize reading space on 320px */
    .blog-main-content {
        padding: 20px 15px !important;
    }

    .blog-sidebar-wrapper {
        padding: 30px 15px !important;
    }

    .portfolio-sidebar {
        padding: 20px 15px !important;
    }

    .contact-page-wrapper .contact-page-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .contact-page-wrapper .contact-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .contact-form .edublink-row {
        gap: 15px !important;
    }
}

/* ============================================================
   MOBILE SAFETY: Ensure pages are always visible even if
   CSS animations are disabled (prefers-reduced-motion / 
   battery saver / older Android browsers)
============================================================ */
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {

    html:not([data-active-page]) .pages-track #page-home,
    html[data-active-page="page-home"] .pages-track #page-home,
    html[data-active-page="page-ethos"] .pages-track #page-ethos,
    html[data-active-page="page-portfolio"] .pages-track #page-portfolio,
    html[data-active-page="page-services"] .pages-track #page-services,
    html[data-active-page="page-blog"] .pages-track #page-blog,
    html[data-active-page="page-contact"] .pages-track #page-contact {
        display: block !important;
        opacity: 1 !important;
        animation: none !important;
    }
}