@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --green: #009b54;
    --green-dark: #006f3c;
    --ink: #17231f;
    --muted: #6d7b74;
    --line: #dfe7e1;
    --canvas: #f4f8f6;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.gallery-shell { width: min(1120px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding-bottom: 70px; }
.gallery-header { display: flex; min-height: 94px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.gallery-back { display: inline-flex; min-height: 39px; padding: 0 13px 0 9px; align-items: center; gap: 4px; color: var(--green-dark); border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 10px; font-weight: 800; }
.gallery-back svg { width: 17px; height: 17px; }
.gallery-brand { width: 105px; margin-left: 3px; }
.gallery-brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.gallery-header > strong { font: 800 14px Manrope, sans-serif; }
.gallery-profile { display: grid; width: 39px; height: 39px; margin-left: auto; place-items: center; color: #fff; border-radius: 13px; background: linear-gradient(145deg, #718d77, #315343); font: 700 11px Manrope, sans-serif; }
.gallery-intro { padding: 65px 0 38px; }
.gallery-intro > span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-intro h1 { max-width: 720px; margin: 15px 0 13px; font: 800 clamp(38px, 5vw, 62px)/1.03 Manrope, sans-serif; letter-spacing: -.055em; }
.gallery-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.gallery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 15px 38px rgba(23, 50, 37, .07); }
.gallery-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-card-copy { padding: 22px; }
.gallery-card-copy > span { color: #78867f; font-size: 9px; }
.gallery-card h2 { margin: 7px 0 8px; font: 800 21px/1.15 Manrope, sans-serif; letter-spacing: -.035em; }
.gallery-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.gallery-card-images { display: grid; grid-auto-columns: minmax(88px, 28%); grid-auto-flow: column; gap: 7px; overflow-x: auto; margin-top: 14px; padding-bottom: 3px; scrollbar-width: thin; }
.gallery-card-images img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; object-fit: cover; }
.gallery-colours { display: flex; gap: 6px; margin-top: 13px; }
.gallery-colours span { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--colour); box-shadow: 0 0 0 1px var(--line); }
.gallery-card a { display: inline-flex; margin-top: 18px; align-items: center; gap: 7px; color: var(--green-dark); font-size: 10px; font-weight: 800; }
.gallery-empty { grid-column: 1 / -1; padding: 60px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; text-align: center; }
.gallery-empty h2 { margin: 0; font: 800 22px Manrope, sans-serif; }
.gallery-empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.gallery-back:focus-visible, .gallery-card a:focus-visible { outline: 3px solid #f0b735; outline-offset: 3px; }

@media (max-width: 820px) {
    .gallery-shell { width: min(100%, 480px); padding: 0 18px calc(104px + env(safe-area-inset-bottom)); background: #fff; }
    .gallery-header { min-height: 82px; gap: 10px; border: 0; }
    .gallery-back { min-height: 35px; padding-inline: 8px 10px; }
    .gallery-brand { width: 70px; }
    .gallery-header > strong { font-size: 13px; }
    .gallery-profile { width: 40px; height: 40px; border-radius: 50%; }
    .gallery-intro { padding: 20px 6px 25px; }
    .gallery-intro > span { display: none; }
    .gallery-intro h1 { margin: 0 0 8px; font-size: 28px; }
    .gallery-intro p { font-size: 11px; line-height: 1.55; }
    .gallery-list { grid-template-columns: 1fr; gap: 22px; }
    .gallery-card { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .gallery-card > img { border-radius: 19px; }
    .gallery-card-copy { padding: 12px 12px 0; }
    .gallery-card-copy > span { display: block; margin-top: 7px; }
    .gallery-card h2 { margin: 0; font-size: 16px; }
    .gallery-card p { margin-top: 7px; font-size: 10px; }
    .gallery-card a { margin-top: 11px; }
}

@media (max-width: 430px) {
    .gallery-header > strong { font-size: 12px; }
    .gallery-brand { display: none; }
    .gallery-intro { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
