/* Only /project-1/ and /project-2/, phones. The desktop theme and editor settings remain authoritative. */
@media (max-width: 767px) {
    body:has(.projects-page-header) .main-header-one__bottom-inner { padding: 16px 0; }
    body:has(.projects-page-header) .main-header-one__bottom-left .logo-box img { width: auto; max-width: 220px; max-height: 64px; }
    body:has(.projects-page-header) .page-wrapper { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    body:has(.projects-page-header) .cookie-consent__settings { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
    .projects-page-header { padding: 0; background: #20374a; }
    .projects-page-header .page-header__fit-image { display: block !important; }
    .projects-page-header .page-header__fit-image img { display: block; width: 100%; height: auto; }
    .projects-page-header .page-header__bg { position: relative; inset: auto; z-index: -1; background-image: none !important; }
    .projects-page-header .page-header__bg::before { z-index: 1; }
    .projects-page-header > .container { position: relative; z-index: 2; padding-block: 24px 32px; }
    .projects-page-header .page-header__inner h1 { font-size: clamp(26px, 7.5vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
    .projects-page-header .thm-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.5; }
    .projects-page-header .thm-breadcrumb li { margin: 0; overflow-wrap: anywhere; }
    :is(.gallery-one--project1, .project-page-two) { padding-block: 48px; }
    .sec-title { margin-bottom: 28px; }
    .sec-title__title { font-size: clamp(26px, 7vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
    .sec-title__tagline h6 { font-size: 14px; line-height: 1.5; }
    .gallery-one--project1 .gallery-one__single { margin-bottom: 28px; }
    .gallery-one--project1 .gallery-one__single-img .inner { aspect-ratio: auto; }
    .gallery-one--project1 .gallery-one__single-img .inner img { display: block; width: 100%; height: auto; object-fit: contain; transform: none; }
    .gallery-one--project1 .gallery-one__single-img .overlay-content { position: relative; inset: auto; width: 100%; display: flex; align-items: flex-start; gap: 16px; padding: 20px 16px; opacity: 1; visibility: visible; transform: none; }
    .gallery-one--project1 .overlay-content .text-box { min-width: 0; flex: 1; }
    .gallery-one--project1 .overlay-content .text-box h2 { font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
    .gallery-one--project1 .overlay-content .text-box p { overflow-wrap: anywhere; }
    .gallery-one--project1 .overlay-content :is(h2,p) { visibility: visible; opacity: 1; transform: none; clip-path: none; text-transform: none; }
    .gallery-one--project1 .gallery-one__link { position: relative; inset: auto; flex-shrink: 0; }
    .project-page-two__single { margin-bottom: 28px; }
    .project-page-two__single-img > img { display: block; width: 100%; height: auto; object-fit: contain; }
    .project-page-two__single-img .icon-box { top: 12px; right: 12px; left: auto; width: 44px; height: 44px; opacity: 1; transform: none; background: rgba(0, 0, 0, .55); }
    .project-page-two__single-img .btn-box { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; }
    .project-page-two__single-img .btn-box a { min-height: 44px; display: block; padding: 12px 16px; width: 100%; writing-mode: horizontal-tb; transform: none; }
    .project-page-two__single-img .btn-box a span::before { writing-mode: horizontal-tb; transform: none; top: 0; }
    .project-page-two__single-content { padding: 20px 12px; }
    .project-page-two__single-content h2 { font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
    .project-page-two__single-content p { overflow-wrap: anywhere; }
    .project-pagination { flex-wrap: wrap; gap: 8px; }
    .project-pagination :is(a,span) { min-width: 44px; min-height: 44px; }
}
