:root {
    --bg: #f4f8fc;
    --bg-band: #eaf3fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #101828;
    --muted: #617089;
    --line: #d8e2ee;
    --brand: #0b6fe8;
    --brand-dark: #084fa3;
    --brand-soft: #e8f2ff;
    --accent: #f59e0b;
    --live: #e11d48;
    --success: #138a52;
    --danger: #b42318;
    --footer: #071c30;
    --shadow-sm: 0 8px 22px rgba(16, 24, 40, .07);
    --shadow: 0 18px 46px rgba(16, 24, 40, .1);
    --shadow-lg: 0 28px 70px rgba(16, 24, 40, .15);
    --font-main: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    background: linear-gradient(180deg, #fbfdff 0, var(--bg) 260px);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-header, .admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px clamp(18px, 4vw, 44px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
    backdrop-filter: blur(14px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), #18a0fb);
    box-shadow: 0 8px 20px rgba(11, 111, 232, .24);
}
.brand-mark::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 9px;
    width: 14px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 4px;
}
.brand-mark::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}
.site-nav a.active,
.site-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-decoration: none;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 420px;
    margin-left: auto;
}
.header-search input {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
}
.header-search button {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
}
.nav-toggle { display: none; }

.hero {
    min-height: 520px;
    display: grid;
    align-items: center;
    padding: 56px clamp(18px, 5vw, 72px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 28, 48, .92), rgba(7, 28, 48, .58)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-content { max-width: 780px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.eyebrow.location-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--brand-dark);
}
.location-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    vertical-align: baseline;
}
.eyebrow.location-line a {
    display: inline-flex;
    align-items: center;
    color: var(--brand-dark);
}
.eyebrow.location-line a:hover {
    color: var(--brand);
}
.eyebrow.location-line .country-label,
.eyebrow.location-line .location-label {
    gap: 8px;
}
.eyebrow.location-line .location-region,
.eyebrow.location-line .location-region-name {
    color: var(--brand-dark);
}
.location-separator {
    color: var(--muted);
}
.meta .location-label {
    gap: 7px;
}
h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
}
h1 { margin: 0 0 18px; font-size: 44px; }
h2 { margin: 0 0 16px; font-size: 28px; }
h3 { margin: 0 0 8px; font-size: 20px; }
.hero h1,
.home-hero-copy h1,
.timelapse-hero-copy h1,
.catalog-hero-copy h1 {
    margin: 0 0 16px;
    font-size: 54px;
    line-height: 1.04;
}
.hero p,
.home-hero-copy p,
.timelapse-hero-copy p,
.catalog-hero-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}
.hero p { color: #e9f2fb; }
.lead, .meta { color: var(--muted); }
.country-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    vertical-align: baseline;
}
.country-flag {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    background: #edf3fa;
    border: 1px solid rgba(16, 24, 40, .12);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .14);
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}
.country-flag-code {
    position: relative;
    z-index: 2;
}
.country-name {
    display: inline;
}
.country-flag-at { background: linear-gradient(to bottom, #ed2939 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666%); }
.country-flag-cz { background: linear-gradient(to bottom, #fff 0 50%, #d7141a 50%); }
.country-flag-cz::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #11457e;
}
.country-flag-fi {
    background:
        linear-gradient(to right, transparent 0 31%, #003580 31% 45%, transparent 45%),
        linear-gradient(to bottom, #fff 0 38%, #003580 38% 56%, #fff 56%);
}
.country-flag-de { background: linear-gradient(to bottom, #000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666%); }
.country-flag-it { background: linear-gradient(to right, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666%); }
.country-flag-si,
.country-flag-sk { background: linear-gradient(to bottom, #fff 0 33.333%, #005da4 33.333% 66.666%, #ed1c24 66.666%); }
.country-flag-pl { background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50%); }
.country-flag-fr { background: linear-gradient(to right, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666%); }
.country-flag-ch { background: #d52b1e; }
.country-flag-ch::before,
.country-flag-ch::after {
    content: "";
    position: absolute;
    background: #fff;
}
.country-flag-ch::before {
    left: 10px;
    top: 3px;
    width: 4px;
    height: 10px;
}
.country-flag-ch::after {
    left: 7px;
    top: 6px;
    width: 10px;
    height: 4px;
}
.country-flag-es { background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.country-flag-hr { background: linear-gradient(to bottom, #ff0000 0 33.333%, #fff 33.333% 66.666%, #171796 66.666%); }
.country-flag-hu { background: linear-gradient(to bottom, #ce2939 0 33.333%, #fff 33.333% 66.666%, #477050 66.666%); }
.country-flag-at .country-flag-code,
.country-flag-cz .country-flag-code,
.country-flag-fi .country-flag-code,
.country-flag-de .country-flag-code,
.country-flag-it .country-flag-code,
.country-flag-si .country-flag-code,
.country-flag-sk .country-flag-code,
.country-flag-pl .country-flag-code,
.country-flag-fr .country-flag-code,
.country-flag-ch .country-flag-code,
.country-flag-es .country-flag-code,
.country-flag-hr .country-flag-code,
.country-flag-hu .country-flag-code {
    display: none;
}
.country-list strong .country-label,
h1 .country-label {
    gap: 11px;
}

.home-hero,
.timelapse-hero,
.catalog-hero {
    width: min(1240px, calc(100% - 36px));
    display: grid;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    padding: 50px 0 34px;
}
.home-hero { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); }
.timelapse-hero { grid-template-columns: minmax(0, .78fr) minmax(470px, 1.22fr); }
.catalog-hero { grid-template-columns: minmax(0, .78fr) minmax(430px, 1.05fr); }
.home-hero-copy,
.timelapse-hero-copy,
.catalog-hero-copy { max-width: 590px; }

.featured-camera,
.timelapse-hero-card,
.current-photo-card,
.latest-timelapse-card,
.camera-card,
.video-card,
.stat,
.info-panel {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.featured-camera,
.timelapse-hero-card,
.catalog-featured {
    box-shadow: var(--shadow-lg);
}
.featured-media {
    display: block;
    position: relative;
    background: #dbe7f2;
}
.featured-media img,
.featured-media .camera-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.featured-body { padding: 22px; }
.featured-body h2 { margin-bottom: 8px; font-size: 30px; }

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.home-stats a {
    display: grid;
    gap: 2px;
    min-height: 78px;
    padding: 13px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .05);
}
.home-stats a:hover {
    border-color: #bdd4ee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.home-stats strong {
    color: var(--brand-dark);
    font-size: 23px;
    line-height: 1;
}
.home-stats span {
    color: var(--muted);
    font-size: 13px;
}

.home-quick {
    width: min(1240px, calc(100% - 36px));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px auto 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.home-quick a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}
.home-quick a:hover {
    color: #fff;
    background: var(--brand);
    text-decoration: none;
}
.home-quick a.active {
    color: #fff;
    background: var(--brand);
}
.catalog-quick,
.timelapse-quick {
    margin-top: -4px;
    margin-bottom: 4px;
}

.search-box, .filter-bar {
    display: flex;
    gap: 10px;
    max-width: 760px;
}
input, select, textarea, button { font: inherit; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(11, 111, 232, .14);
    border-color: var(--brand);
}
textarea { min-height: 120px; resize: vertical; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(11, 111, 232, .18);
}
button:hover, .button:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}
.button.danger { background: var(--danger); box-shadow: none; }
.button.danger:hover { background: #8f1d14; }
.button.secondary { background: #607083; box-shadow: none; }
.button.secondary:hover { background: #435267; }

.page, .page-section, .camera-detail, .admin-main {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0;
}
.home-directory { padding-bottom: 20px; }
.home-section-compact { padding-top: 8px; }
.narrow { width: min(1080px, calc(100% - 36px)); }
.muted {
    width: 100%;
    max-width: none;
    padding-left: max(18px, calc((100% - 1240px) / 2));
    padding-right: max(18px, calc((100% - 1240px) / 2));
    background: var(--bg-band);
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section-head > a {
    font-weight: 700;
}

.card-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.camera-card,
.video-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.camera-card:hover,
.video-card:hover {
    transform: translateY(-2px);
    border-color: #bdd4ee;
    box-shadow: var(--shadow);
}
.camera-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #dbe7f2;
}
.camera-card > div:not(.camera-placeholder),
.video-card { padding: 16px; }
.camera-card h2,
.camera-card h3,
.video-card h2,
.video-card h3 {
    color: var(--brand-dark);
    font-weight: 800;
}
.camera-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #12375d, #0b6f8e);
    color: #fff;
    font-weight: 800;
}
.camera-placeholder span {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}
.badge-live {
    background: #fff1f3;
    color: var(--live);
}
.badge-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
}
.badge-soft {
    background: #fff6df;
    color: #915e00;
}
.badge-snapshot {
    background: #ecfdf3;
    color: var(--success);
}

.video-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    margin: -16px -16px 14px;
    background: #102033;
    background-position: center;
    background-size: cover;
}
.video-thumb-link {
    color: #fff;
    text-decoration: none;
}
.video-thumb-link:hover {
    text-decoration: none;
}
.video-thumb > span,
.video-thumb > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(7, 28, 48, .28);
}
.video-thumb-link:hover > span,
.video-thumb > button:hover {
    background: var(--brand-dark);
}
.video-thumb iframe { width: 100%; height: 100%; border: 0; }

.timelapse-main-embed { margin-bottom: 18px; }
.timelapse-current-copy { max-width: 820px; }
.timelapse-current-copy h2 { margin-bottom: 8px; }
.archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-card-compact { padding: 12px; }
.video-card-compact .video-thumb { margin: -12px -12px 12px; }
.video-card-compact h3 { font-size: 18px; }
.timelapse-hero-card .video-thumb { margin: 0; }

.directory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}
.directory-grid h3 { margin-bottom: 12px; }
.directory-grid .country-list,
.directory-grid .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.directory-grid .area-list a { min-height: 96px; }
.catalog-filter { max-width: none; }
.catalog-filter input { flex: 1 1 360px; }
.catalog-filter select { flex: 0 0 220px; }
.date-list a { min-height: 96px; }

.country-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.country-list a,
.area-list a {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(16, 24, 40, .04);
}
.country-list a {
    padding: 16px;
}
.country-list a:hover,
.area-list a:hover {
    border-color: #bdd4ee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.country-list a > span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}
.country-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 800;
}
.area-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.area-list a {
    display: grid;
    gap: 4px;
    min-height: 112px;
    padding: 16px;
}
.area-list span,
.area-list em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}
.area-list strong {
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 800;
}
.region-list {
    margin-bottom: 36px;
}

.home-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 36px;
    align-items: start;
}
.home-text > div:first-child p:last-child {
    color: var(--muted);
    font-size: 17px;
}
.compact-faq details:first-child { border-top: 1px solid var(--line); }
.faq details {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 800; }

.detail-head { margin-bottom: 22px; }
.camera-current-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: 18px;
    align-items: stretch;
}
.current-photo-card .section-head,
.latest-timelapse-card .section-head {
    margin: 0;
    padding: 16px 16px 0;
}
.current-photo-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-top: 14px;
    background: #dbe7f2;
}
.single-photo { max-width: 920px; }
.latest-timelapse-card .video-thumb { margin: 14px 0 0; }
.latest-timelapse-body { padding: 16px; }
.latest-timelapse-body h3 { font-size: 22px; }
.embed-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.live-embed { margin-bottom: 14px; }
.detail-subhead { margin-top: 28px; }
.empty-state, .admin-warning {
    padding: 16px;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    background: #fff3f3;
    color: var(--danger);
}
.empty-state { grid-column: 1 / -1; }

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 40px clamp(18px, 5vw, 72px);
    background: linear-gradient(135deg, var(--footer), #092b49);
    color: #d6e6f5;
}
.site-footer a { color: #fff; }
.footer-brand strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.footer-brand p {
    max-width: 520px;
    margin-bottom: 0;
}
.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-content: start;
}

.admin-body {
    background: #f4f6f8;
    font-size: 14px;
}
.admin-body .admin-header { padding-top: 9px; padding-bottom: 9px; }
.admin-body .brand { font-size: 18px; }
.admin-body .site-nav {
    gap: 4px;
    margin-left: auto;
}
.admin-body .site-nav a {
    padding: 6px 9px;
    font-size: 14px;
}
.admin-main {
    width: min(1360px, calc(100% - 24px));
    padding-top: 18px;
}
.admin-main h1 { font-size: 32px; }
.admin-main h2 { font-size: 22px; }
.admin-warning {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 13px;
}
.stats-grid, .admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 14px; }
.stat span { display: block; color: var(--muted); }
.stat strong { font-size: 28px; }
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-body table {
    min-width: 980px;
    font-size: 13px;
}
th, td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.admin-body th,
.admin-body td {
    padding: 7px 8px;
    line-height: 1.35;
}
.admin-body td:last-child { white-space: nowrap; }
.admin-body td:last-child a {
    display: inline-block;
    margin-right: 8px;
}
th {
    background: #edf3f7;
    font-size: 13px;
    text-transform: uppercase;
}
.admin-body th { font-size: 11px; }
.edit-form {
    display: grid;
    gap: 11px;
    max-width: 820px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.admin-body input,
.admin-body select,
.admin-body textarea {
    padding: 8px 10px;
    font-size: 14px;
}
.admin-body button,
.admin-body .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}
.edit-form label { display: grid; gap: 5px; font-weight: 700; }
.edit-form .check { display: flex; align-items: center; gap: 10px; }
.edit-form .check input { width: auto; }
.info-panel { padding: 16px; margin-bottom: 16px; }
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 1080px) {
    .header-search { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
    .site-nav { margin-left: auto; }
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-quick { margin-top: 0; }
    .home-hero,
    .timelapse-hero,
    .catalog-hero,
    .home-text,
    .camera-current-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }
    .hero h1,
    .home-hero-copy h1,
    .timelapse-hero-copy h1,
    .catalog-hero-copy h1 {
        font-size: 42px;
    }
    .country-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .area-list,
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .site-header, .admin-header { align-items: flex-start; }
    .site-header { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; width: 42px; }
    .site-nav[data-nav] { display: none; width: 100%; margin-left: 0; }
    .site-nav[data-nav].open { display: flex; }
    .site-nav { gap: 4px; }
    .home-hero { padding-top: 32px; }
    .hero h1,
    .home-hero-copy h1,
    .timelapse-hero-copy h1,
    .catalog-hero-copy h1 {
        font-size: 34px;
    }
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .featured-body h2 { font-size: 24px; }
    .card-grid,
    .video-grid,
    .country-list,
    .area-list,
    .stats-grid,
    .admin-grid,
    .directory-grid .country-list,
    .directory-grid .area-list {
        grid-template-columns: 1fr;
    }
    .hero { min-height: 460px; }
    .search-box, .filter-bar, .header-search { flex-direction: column; }
    .header-search button { width: 100%; }
    .home-stats { grid-template-columns: 1fr 1fr; }
    .home-quick a { flex: 1 1 100%; justify-content: center; }
    .catalog-filter select { flex: 1 1 auto; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; }
}
