/* =========================================================
   M&B Rénovation : feuille de style commune (Design A-C)
   Ivoire (#F7F4EE), pierre (#F4F1EB), charbon (#1C1E22), champagne (#C9B27C / #A88A4E).
   Mobile d'abord.
   ========================================================= */
:root {
    --ink: #1C1E22;          /* charbon */
    --ink-2: #33363C;
    --cream: #F7F4EE;        /* ivoire (fond principal) */
    --ivory: #F7F4EE;
    --paper: #FFFFFF;        /* blanc (cartes) */
    --sand: #F4F1EB;         /* pierre claire (fonds secondaires) */
    --stone: #F4F1EB;
    --char: #1C1E22;
    --text: #1C1E22;
    --muted: #50545C;        /* texte secondaire (contraste AA sur ivoire) */
    --gold: #A88A4E;         /* or retenu : filets et accents */
    --gold-text: #7A5E26;    /* or lisible sur ivoire (contraste AA) */
    --accent-text: #7A5E26;
    --gold-bright: #D8C59A;  /* champagne clair sur fond charbon */
    --champagne: #C9B27C;
    --line: #DEDAD2;
    --line-dark: rgba(247, 244, 238, 0.16);
    --focus: #7A5E26;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
    --gutter: 20px;
    --radius: 0px;

    /* Compatibilité avec les blocs existants (bandeau cookies, footer légal) */
    --white: #FFFFFF;
    --silver: #DCD6CA;
    --bg-void: #1C1E22;
    --font-serif: var(--serif);
    --font-sans: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-h);
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 3000; background: #fff; color: #000; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.005em; line-height: 1.12; }
h1 { font-size: clamp(2.15rem, 6.5vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); line-height: 1.25; }
em.gold, .gold, h1 em, h2 em { color: var(--gold-text); font-style: italic; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40em; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section--paper { background: var(--sand); border-top: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink .eyebrow { color: var(--gold-bright); }
.section--ink .lead { color: #DCD6CA; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 14px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 48px; height: 1px; background: var(--gold); margin: 22px 0 0; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 28px;
    font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
    border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
    border-radius: var(--radius); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.btn:hover { background: var(--ink-2); color: var(--cream); }
.btn--gold { background: var(--champagne); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); color: var(--ink); border-color: #8E7440; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: transparent; color: var(--cream); border-color: rgba(247,244,238,0.6); }
.btn--light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-text); border-bottom: 1px solid currentColor; padding-bottom: 4px; min-height: 28px;
}
.link-arrow:hover { color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- En-tête A-C & Menu plein écran ---------- */
.site-head {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 64px; padding: 0 12px 0 8px;
    background: rgba(247, 244, 238, 0.97);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.site-head .head-devis {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 18px;
    font: 500 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
    background: #C9B27C; color: #1C1E22; border: 1px solid #A88A4E; text-decoration: none;
}
.site-head .head-devis:hover { background: #D8C59A; border-color: #8E7440; color: #1C1E22; }
.site-head .head-devis:focus-visible { outline: 2px solid #1C1E22; outline-offset: 2px; }

.menu-trigger {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 12px; border: 0; background: transparent;
    color: var(--char); font: 500 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.menu-lines { display: grid; gap: 6px; }
.menu-lines span { width: 25px; height: 1px; background: currentColor; }

.full-menu {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
    margin: 0; padding: 0 24px max(24px, env(safe-area-inset-bottom));
    border: 0; background: var(--ivory); color: var(--char);
    overflow-y: auto; overscroll-behavior: contain;
}
.full-menu::backdrop { background: var(--ivory); }
.full-menu-head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 82px; background: var(--ivory); border-bottom: 1px solid var(--line);
}
.full-menu-head h2 { font: 500 0.75rem var(--sans); text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent-text); }
.full-menu-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent;
    color: var(--char); font: 300 2.8rem/1 var(--sans); cursor: pointer;
}
.full-menu-content { max-width: 1120px; margin: 0 auto; padding: 34px 0 30px; }
.full-menu-primary { display: grid; gap: 6px; text-align: center; }
.full-menu-primary a {
    display: flex; align-items: center; justify-content: center;
    min-height: 60px; padding: 8px 0;
    font: italic 400 clamp(1.85rem, 4.6vw, 3.4rem)/1.15 var(--serif); text-decoration: none;
}
.full-menu-primary a:hover, .full-menu-details a:hover { color: var(--accent-text); }
.full-menu-details { margin-top: 30px; border-top: 1px solid var(--line); }
.full-menu-details > a, .full-menu-details summary {
    display: block; padding: 15px 4px; min-height: 50px;
    border-bottom: 1px solid var(--line); text-decoration: none; font: 400 1rem/1.5 var(--sans);
}
.full-menu-details summary { display: list-item; list-style-position: inside; cursor: pointer; }
.menu-subnav { display: grid; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); }
.menu-subnav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: none; font-size: 0.94rem; }
.menu-devis {
    display: block; width: 100%; min-height: 52px; margin-top: 24px; padding: 12px;
    border: 1px solid var(--gold); background: #C9B27C; color: var(--char);
    font: 500 0.76rem/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.full-menu-legal {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
    max-width: 1120px; margin: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.full-menu-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.8rem; text-underline-offset: 4px; }

@media (max-width: 360px) {
    .site-head { gap: 8px; padding: 0 8px; }
    .menu-trigger { gap: 8px; padding: 0 8px; font-size: 0.74rem; letter-spacing: 0.1em; }
    .site-head .head-devis { padding: 0 10px; font-size: 0.64rem; letter-spacing: 0.1em; }
}
@media (min-width: 900px) {
    .full-menu { padding-inline: 48px; }
    .full-menu-head { min-height: 96px; }
    .full-menu-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 90px; padding: 45px 0; align-items: start; }
    .full-menu-primary { text-align: left; }
    .full-menu-primary a { justify-content: flex-start; min-height: 68px; }
    .full-menu-details { margin-top: 0; }
}
@media (min-width: 1100px) {
    :root { --header-h: 76px; }
    .site-head { padding: 0 48px; height: 76px; }
    .site-head .head-devis { padding: 0 24px; font-size: 0.72rem; }
}

/* ---------- Pied de page A-C ---------- */
.site-footer { background: var(--ivory); color: var(--muted); border-top: 1px solid var(--line); padding: 70px 0 0; font-size: 0.95rem; }
.logo { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.logo em { color: var(--gold-text); font-style: italic; }
.site-footer .logo { color: var(--ink); font-size: 1.8rem; }
.site-footer .logo em { color: var(--gold-text); }
.footer-grid { display: grid; gap: 36px; }
.footer-title { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 2px; }
.site-footer li a { display: inline-block; padding: 4px 0; min-height: 24px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold-text); }
.footer-tagline { margin-top: 14px; max-width: 30em; color: var(--muted); }
.footer-bottom { color: var(--muted); font-size: 0.85rem; }
.footer-grid + .footer-bottom { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom span { color: var(--gold-text); }
.footer-contacts li { display: flex; gap: 12px; padding: 6px 0; align-items: flex-start; color: var(--muted); }
.footer-contact-icon { color: var(--gold-text); width: 16px; margin-top: 5px; display: inline-flex; flex-shrink: 0; }
.footer-contacts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-link-btn { color: var(--gold-text) !important; font-weight: 500; padding: 6px 0; font-size: 0.95rem; }
.footer-news { padding: 60px 0; border-top: 1px solid var(--line); }
.footer-news h2 { color: var(--ink); text-align: center; margin-bottom: 34px; font-size: 2.5rem; }
.news-grid { display: grid; gap: 20px; }
.news-card { background: var(--paper); border: 1px solid var(--line); padding: 28px 24px; }
.news-card h3 { color: var(--ink); font-size: 1.4rem; }
.news-card p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.news-card .link-arrow { margin-top: 16px; color: var(--gold-text); }

/* ---------- Contenu éditorial (pages Markdown) ---------- */
.page-hero { padding: 48px 0 28px; }
.page-hero h1 { margin-top: 14px; max-width: 18em; }
.page-meta { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.prose { padding-bottom: 80px; color: var(--text); font-size: 1.04rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--gold-text); text-decoration: underline; text-decoration-color: rgba(168,138,78,0.5); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose img { margin: 1.8em 0; width: 100%; height: auto; }
.prose > img:first-child { max-height: 520px; object-fit: cover; margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose td, .prose th { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose td:first-child { color: var(--ink); font-weight: 500; width: 40%; }
.prose blockquote { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.prose .btn-cta, .btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 28px;
    background: var(--ink); color: var(--cream) !important; text-decoration: none !important;
    font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--ink);
}
.prose .btn-cta:hover, .btn-cta:hover { background: var(--champagne); color: var(--ink) !important; border-color: var(--gold); }
@media (max-width: 600px) {
    .prose td { display: block; width: 100%; padding: 4px 0; }
    .prose td:first-child { border-bottom: 0; padding-top: 14px; }
}

/* ---------- Encadrés (paiement par étapes, parrainage) ---------- */
.callout { border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--paper); padding: 24px; margin: 28px 0; }
.callout-title { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); line-height: 1.3; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.callout-icon { color: var(--gold-text); display: inline-flex; align-items: center; flex-shrink: 0; }
.callout p { margin: 0; color: var(--text); }
.callout small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.callout .link-arrow { margin-top: 14px; }

/* ---------- Cartes & Blog ---------- */
.grid { display: grid; gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 28px 24px; display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.25s, background 0.25s; }
.card:hover { background: var(--sand); border-color: var(--gold); }
.card h2, .card h3 { margin-bottom: 10px; font-size: 1.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-meta { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.card .link-arrow { margin-top: 18px; align-self: flex-start; }

/* ---------- Projets & Réalisations ---------- */
.page-hero--realisations { padding: 32px 0 16px; }
.page-hero--realisations h1 { font-size: clamp(1.85rem, 4.8vw, 3.1rem); margin-top: 10px; }
.page-hero--realisations .rule { margin-top: 14px; }
.page-hero--realisations .lead { margin-top: 14px !important; font-size: 0.98rem; }
.real-filter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.real-filter-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.real-filter-nav a:hover { border-color: var(--gold); background: var(--ink); color: var(--cream); }
.realisations-section { padding: 20px 0 36px; scroll-margin-top: 84px; }
.realisations-section h2 { margin-bottom: 20px; }

.project-grid { display: grid; gap: 34px 20px; }
.project-card { display: block; text-decoration: none; color: inherit; }
.project-card .frame { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card .meta { margin-top: 16px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.project-card h3 { margin-top: 6px; }
.project-card .multi { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.tag {
    position: absolute; left: 12px; top: 12px; padding: 5px 10px;
    background: rgba(28,30,34,0.82); color: var(--cream);
    font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.tag--apres { background: var(--champagne); color: var(--ink); }

.gallery { display: grid; gap: 14px; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba .gallery-item img { aspect-ratio: 3 / 4; object-fit: cover; height: 100%; }
.project-facts { display: grid; gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 40px; }
.project-facts dt { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.project-facts dd { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 8px; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0 0; border-top: 1px solid var(--line); margin-top: 56px; }

.project-grid--photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.project-grid--photos .frame { aspect-ratio: 4 / 5; }
.gallery--captions .gallery-item img { aspect-ratio: 3 / 4; object-fit: cover; height: auto; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left; background: linear-gradient(180deg, rgba(28,30,34,0) 0%, rgba(28,30,34,0.82) 100%); color: var(--cream); }
.gallery-caption h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--cream); }
.gallery-caption span { display: block; margin-top: 2px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.project-grid--photos .gallery-caption { padding: 32px 12px 12px; background: linear-gradient(180deg, rgba(28,30,34,0) 0%, rgba(28,30,34,0.84) 100%); }
.project-grid--photos .gallery-caption h4 { font-size: clamp(0.95rem, 2.2vw, 1.25rem); line-height: 1.2; margin-top: 3px; }
.project-grid--photos .gallery-caption span { font-size: 0.62rem; letter-spacing: 0.14em; }
.gallery--projet .gallery-item img { height: auto; }
.project-nav .link-arrow { text-transform: none; letter-spacing: 0.02em; font-size: 0.88rem; font-weight: 400; max-width: 48%; }
.project-nav .link-arrow:last-child { text-align: right; margin-left: auto; }
@media (max-width: 350px) { .project-grid--photos { grid-template-columns: 1fr; } }
/* Mobile : légende sous la photo (sans recouvrir l'image ni ses étiquettes « Avant / Après ») */
@media (max-width: 699px) {
    .project-grid--photos .frame { aspect-ratio: auto; overflow: visible; background: none; }
    .project-grid--photos .frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--sand); }
    .project-grid--photos .gallery-caption { position: static; padding: 8px 2px 4px; background: none; color: var(--ink); }
    .project-grid--photos .gallery-caption h4 { font-size: 0.92rem; line-height: 1.3; margin-top: 2px; color: var(--ink); }
    .project-grid--photos .gallery-caption span { font-size: 0.6rem; color: var(--accent-text); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9800; display: none; align-items: center; justify-content: center; background: rgba(28,30,34,0.96); padding: 64px 12px 120px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 74px; text-align: center; color: #DCD6CA; font-size: 0.85rem; padding: 0 16px; pointer-events: none; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--cream); border: 1px solid rgba(247,244,238,0.35); font-size: 1.3rem; background: rgba(28,30,34,0.4); }
.lightbox-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; bottom: 16px; }
.lightbox-next { right: 10px; bottom: 16px; }

/* ---------- Tablette et plus ---------- */
@media (min-width: 700px) {
    :root { --gutter: 32px; }
    .section { padding: 96px 0; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .project-facts { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (min-width: 1000px) {
    .section { padding: 112px 0; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    .project-grid--photos { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .project-grid--photos .gallery-caption { padding: 44px 18px 16px; }
    .gallery--captions { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .page-hero { padding: 64px 0 36px; }
    .lightbox { padding: 64px 90px; }
    .lightbox-caption { bottom: 22px; padding: 0 70px; }
    .lightbox-prev { left: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
    .lightbox-next { right: 20px; top: 50%; bottom: auto; transform: translateY(-50%); }
}
