/* JovanPeric.com — public site. Design: design/mockups/*.png (plan v5). */

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ------------------------------------------------------------------------- */

:root {
    color-scheme: light;
    --bg: #f6f6f5;
    --surface: #ffffff;
    --surface-2: #eef0f2;
    --text: #121418;
    --text-2: #3d424a;
    --muted: #6d727b;
    --border: #e1e3e6;
    --border-strong: #cfd3d8;
    --accent: #1f6fe0;
    --accent-contrast: #ffffff;
    --active: #0f1b2d;          /* selected chip / toggle */
    --active-contrast: #ffffff;
    --link: #121418;
    --footer-bg: #eceef1;
    --chrome-bg: #e3e6ea;       /* header: grey in the light theme (Jovan, 2026-10-11), dark in the dark theme */
    --chrome-footer: #dadee3;
    --chrome-bg-2: #e3e6ea;     /* Galleries menu */
    --chrome-line: #ccd1d7;
    --chrome-text: #121418;
    --chrome-muted: #6d727b;
    --chrome-hover: #b8582c;
    --chrome-hover-bg: rgba(10, 14, 20, .05);
    --warm: #d9774b;            /* header/footer active line and the short rules on About/Contact */
    --warm-light: #eab08a;
    --menu-link: #b8582c;       /* Galleries menu icons and "Browse …" links (plan v9) */
    --round-bg: #e9e9ea;
    --stage-bg: #0c0d0f;
    --frame: #000000;           /* full-screen photo frame: black in light mode */
    --popover-bg: #ffffff;
    --shadow: 0 10px 30px rgba(10, 14, 20, .14);
    --radius: 4px;
    --focus: 0 0 0 3px rgba(31, 111, 224, .45);

    --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1254px;
    --container-wide: 1480px;
    --gutter: clamp(16px, 3vw, 28px);
}

:root[data-theme="dark"] { /* navy, a little lighter than before (Jovan, 2026-10-12) */
    color-scheme: dark;
    --bg: #121c2b;
    --surface: #182436;
    --surface-2: #152031;
    --text: #e9edf2;
    --text-2: #c7ced7;
    --muted: #8f99a5;
    --border: #26354a;
    --border-strong: #36485f;
    --accent: #3d8ff0;
    --active: #3d8ff0;
    --link: #3d8ff0;
    --footer-bg: #152031;
    --chrome-bg: #162232;
    --chrome-footer: #162232;
    --chrome-bg-2: #1c2a3d;
    --chrome-line: #28374c;
    --chrome-text: #f1f3f5;
    --chrome-muted: #9aa1a8;
    --chrome-hover: #eab08a;
    --chrome-hover-bg: rgba(255, 255, 255, .06);
    --menu-link: #eab08a;
    --round-bg: #213046;
    --stage-bg: #05070a;
    --frame: #ffffff;           /* full-screen photo frame: white in dark mode */
    --popover-bg: #1b293b;
    --shadow: 0 12px 34px rgba(0, 0, 0, .5);
}

/* ---- Base ---------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon .cut { fill: var(--cut, var(--bg)); }
.popover { --cut: var(--popover-bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }

.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.meta-caps { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .03em; white-space: nowrap; }
.link-arrow .icon { width: 15px; height: 15px; }

/* ---- Header (About/Contact mockups, plan v6: dark bar in both themes) ----------------------- */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--chrome-bg); color: var(--chrome-text); border-bottom: 1px solid var(--chrome-line); --cut: var(--chrome-bg); }
/* Logo on the left, links in the centre of the page, search and theme switch on the right (Jovan, 2026-10-11). */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; gap: 28px; }
.header-inner .header-logo { justify-self: start; }
/* Signature logo (Jovan, 2026-10-13): black in the light theme, white in the dark one. */
.header-logo { display: inline-flex; align-items: center; line-height: 0; }
.header-logo img { width: auto; height: 60px; } /* signature-*-tight.svg: the signature cropped to its edges */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: 23px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: inherit; white-space: nowrap; }
.wordmark:hover { color: inherit; }
.wordmark-sub { font-size: 10.5px; letter-spacing: .62em; margin: 7px -.62em 0 0; color: var(--chrome-muted); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 38px; height: 100%; }
.site-nav a { position: relative; display: flex; align-items: center; height: 100%; font-size: 16.5px; letter-spacing: .02em; color: var(--chrome-text); }
.site-nav a:hover, .nav-menu-toggle:hover { color: var(--chrome-hover); }
.site-nav > a[aria-current="page"]::after, .nav-menu > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 2px; background: var(--warm); }
.nav-menu { position: relative; display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-menu-toggle { display: inline-flex; padding: 3px; border: 0; border-radius: 4px; background: none; color: var(--chrome-text); }
.nav-menu-toggle .icon { width: 15px; height: 15px; transition: transform .2s; }
.nav-menu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-dropdown { display: none; position: absolute; top: 100%; left: -18px; min-width: 190px; margin: 0; padding: 8px 0; list-style: none; background: var(--chrome-bg-2); border: 1px solid var(--chrome-line); border-top: 0; border-radius: 0 0 6px 6px; box-shadow: var(--shadow); }
.nav-menu.is-open .nav-dropdown { display: block; }
.site-nav .nav-dropdown a { display: block; height: auto; padding: 9px 18px; font-size: 15px; }
.site-nav .nav-dropdown a:hover { background: var(--chrome-hover-bg); }

/* Galleries menu: a card for Church and one for Photography, and View All Galleries (design/mockups/galleries-menu.png,
   plan v9). In the site's own fonts and colours; its own text colours, so it reads the same over the homepage hero. */
.nav-mega { display: none; position: absolute; top: 100%; left: 50%; z-index: 5; width: min(640px, calc(100vw - 32px)); padding: 22px 24px 0;
    transform: translateX(-50%); background: var(--chrome-bg-2); color: var(--text); border: 1px solid var(--chrome-line); border-top: 0;
    border-radius: 0 0 8px 8px; box-shadow: var(--shadow); text-shadow: none; --cut: var(--chrome-bg-2); }
.nav-menu.is-open .nav-mega { display: block; }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
.mega-cards li { min-width: 0; padding: 0 0 22px 22px; }
.mega-cards li:first-child { padding: 0 22px 22px 0; border-right: 1px solid var(--chrome-line); }
.site-nav .mega-card { display: block; height: auto; font-size: 14px; letter-spacing: .01em; color: var(--text); }
.site-nav .mega-card:hover { color: var(--text); }
.mega-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.mega-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mega-card:hover .mega-photo img { transform: scale(1.04); }
.mega-photo > .icon { width: 40px; height: 40px; --cut: var(--surface-2); }
.mega-photo--empty { border: 1px solid var(--chrome-line); } /* no gallery in the section yet */
.mega-body { display: flex; gap: 14px; margin-top: 16px; }
.mega-icon { width: 28px; height: 28px; color: var(--menu-link); }
.mega-words { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mega-title { font-size: 21px; line-height: 1.2; }
.mega-text { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.mega-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--menu-link); }
.mega-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.mega-card:hover .mega-link .icon { transform: translateX(3px); }
.mega-card:hover .mega-title { color: var(--menu-link); }
.mega-arrow { display: none; }
.site-nav .mega-all { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; margin: 0 -24px; border-top: 1px solid var(--chrome-line); font-size: 14.5px; color: var(--text); }
.site-nav .mega-all:hover { color: var(--menu-link); }
.mega-all .icon { width: 18px; height: 18px; }
.mega-all .icon:last-child { width: 15px; height: 15px; }
.header-tools { display: flex; align-items: center; justify-self: end; gap: 24px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; }
.icon-button:hover { color: var(--chrome-hover); }
.icon-button .icon { width: 22px; height: 22px; }
.menu-button { display: none; }

/* Theme switch: sun and moon inside the track; the knob covers the moon in light mode and the sun in dark mode. */
.theme-switch { display: inline-flex; align-items: center; gap: 9px; padding: 2px; border: 0; border-radius: 16px; background: none; color: var(--chrome-text); }
.theme-switch-track { position: relative; width: 54px; height: 30px; border-radius: 15px; background: #2a353e; }
.theme-switch .icon-sun { position: absolute; top: 7px; left: 7px; width: 16px; height: 16px; color: #fff; }
.theme-switch-knob { position: absolute; top: 4px; left: 28px; width: 22px; height: 22px; border-radius: 50%; background: #c4c5c6; transition: left .2s ease; }
.theme-switch .icon-moon { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; color: #fff; }
:root[data-theme="dark"] .theme-switch-knob { left: 4px; background: #e9ecef; }
.theme-switch:hover .theme-switch-track { background: #34414c; }

.search-panel { border-top: 1px solid var(--chrome-line); background: var(--chrome-bg); }
.search-panel[hidden] { display: none; }
/* Search bar: the field and the Search button form one bar; focus is a sharp blue line, not a soft glow. */
.search-form { display: flex; gap: 0; padding: 14px 0; }
.search-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.search-form input:focus, .search-form input:focus-visible { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); border-radius: var(--radius) 0 0 var(--radius); }
.search-form .button { flex: none; height: 42px; border-radius: 0 var(--radius) var(--radius) 0; }
.search-form .button:focus-visible { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.search-panel .search-form { padding: 14px var(--gutter); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 1px solid var(--active); border-radius: var(--radius); background: var(--active); color: var(--active-contrast); font-size: 14px; letter-spacing: .03em; }
.button:hover { color: var(--active-contrast); filter: brightness(1.12); }
.button--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button--ghost:hover { color: var(--accent); border-color: var(--accent); }
.button .icon { width: 18px; height: 18px; }

/* ---- Footer (plan v6) ---------------------------------------------------------------------- */

.site-footer { margin-top: 56px; background: var(--chrome-footer); color: var(--chrome-text); --cut: var(--chrome-footer); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 26px 0 22px; }
.footer-top .wordmark { font-size: 21px; }
.footer-nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.footer-nav a { position: relative; color: var(--chrome-text); }
.footer-nav a:hover { color: var(--chrome-hover); }
.footer-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 1.5px; background: var(--warm); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid var(--chrome-line); font-size: 13.5px; color: var(--chrome-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--chrome-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--chrome-text); }
.footer-tagline { font-style: italic; }

/* ---- Home ---------------------------------------------------------------------------------- */

.hero { position: relative; height: clamp(360px, 27.3vw, 560px); overflow: hidden; background: #1b1d20; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 18, .62) 0%, rgba(6, 10, 18, .3) 38%, rgba(6, 10, 18, 0) 62%); }
.hero-text { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-eyebrow { font-size: 14.5px; letter-spacing: .38em; text-transform: uppercase; margin: 0 0 8px; }
.hero-title { font-size: clamp(40px, 4.4vw, 66px); font-weight: 300; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 18px; }
.hero-tagline { font-size: 18px; letter-spacing: .36em; text-transform: uppercase; margin: 0; }
.hero-rule { width: 46px; height: 1.5px; margin: 30px 0 26px; border: 0; background: #fff; }
.hero-logo { margin: 0 0 14px; line-height: 0; }
.hero-logo img { width: clamp(220px, 24vw, 370px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.hero-intro { max-width: 290px; font-size: 16px; line-height: 1.45; letter-spacing: .03em; margin: 0; }
.hero-link { position: absolute; inset: 0; z-index: 2; }

/* Homepage: the header is see-through (25% colour) over the hero, which starts under it; solid once the page scrolls
   (site.js removes .is-over). Jovan, 2026-10-13. */
:root { --header-h: 81px; }
.site-header { transition: background-color .25s, border-color .25s; }
.site-header.is-over { background: color-mix(in srgb, var(--chrome-bg) 25%, transparent); border-bottom-color: transparent;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Over the hero: white logo and links in both themes; the theme's own colours once it turns solid. */
.site-header.is-over { --chrome-text: #fff; --chrome-muted: rgba(255, 255, 255, .82); --chrome-hover: #fff; color: #fff; }
.site-header.is-over .site-nav > a, .site-header.is-over .nav-menu > a { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.site-header.is-over .nav-dropdown a { color: var(--text); text-shadow: none; } /* the Galleries menu keeps its own background */
.site-header.is-over .header-logo .signature-light { display: none; }
.site-header.is-over .header-logo .signature-dark { display: block; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .3)); }
.page-home main { margin-top: calc(-1 * var(--header-h)); }
.page-home .hero { height: calc(clamp(360px, 27.3vw, 560px) + var(--header-h)); }
.page-home .hero-text { padding-top: var(--header-h); }

/* Latest Album: a large cover on the left, title, description and a button on the right. */
/* Homepage: more room under the hero and between the sections (Jovan, 2026-10-13). */
.page-home main .section { padding-top: 64px; }
.page-home main .section.section--feature { padding-top: 72px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.feature-photo { display: block; overflow: hidden; border-radius: 2px; background: var(--surface-2); }
.feature-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.feature-photo:hover img { transform: scale(1.03); }
.feature-title { margin: 2px 0 8px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 400; line-height: 1.2; }
.feature-description { margin: 16px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.feature-text .button { margin-top: 24px; }
.section { padding-top: 32px; }
.section + .section { padding-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card-plain p { margin: 0; }
.section-title { font-size: 26px; }

.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card-plain img { width: 100%; aspect-ratio: 303 / 188; object-fit: cover; border-radius: 2px; background: var(--surface-2); transition: filter .2s; }
.card-plain:hover img { filter: brightness(1.06); }
.card-plain-title { display: flex; align-items: center; gap: 6px; margin: 9px 0 1px; font-size: 15.5px; color: var(--text); }
.card-plain:hover .card-plain-title { color: var(--accent); }
.card-plain .icon { width: 14px; height: 14px; }

.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.photo-strip img { width: 100%; aspect-ratio: 199 / 126; object-fit: cover; border-radius: 2px; background: var(--surface-2); transition: filter .2s; }
.photo-strip a:hover img { filter: brightness(1.08); }
/* Popular Photos: the view count on each photo. */
.photo-strip--popular a { position: relative; display: block; }
.photo-badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 12px; background: rgba(8, 10, 14, .62); color: #fff; font-size: 12px; line-height: 1.3; }
.photo-badge .icon { width: 13px; height: 13px; }
/* ---- Galleries index ----------------------------------------------------------------------- */

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0 34px; }
.page-title { font-size: clamp(38px, 3.6vw, 54px); font-weight: 400; margin-bottom: 8px; }
.page-intro { color: var(--text-2); font-size: 15px; letter-spacing: .04em; margin: 0; }
/* All · Church · Photography (plan v9), underlined like the header's current link. */
.section-tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.section-tabs a { position: relative; padding: 3px 0; font-size: 15px; letter-spacing: .03em; color: var(--muted); }
.section-tabs a:hover, .section-tabs a[aria-current="page"] { color: var(--text); }
.section-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--warm); }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 22px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface); color: var(--text); font-size: 12.5px; letter-spacing: .03em; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-current="page"], .chip.is-active { background: var(--active); border-color: var(--active); color: var(--active-contrast); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-card { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--surface-2); color: #fff; }
.gallery-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.03); }
.gallery-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); pointer-events: none; }
.gallery-card-text { position: absolute; left: 18px; right: 52px; bottom: 15px; z-index: 1; }
.gallery-card-title { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.2; color: #fff; }
.gallery-card-title .icon { width: 15px; height: 15px; }
.gallery-card .meta-caps { color: rgba(255, 255, 255, .85); }
.gallery-card-arrow { position: absolute; right: 16px; bottom: 17px; z-index: 1; width: 22px; height: 22px; color: #fff; }
.gallery-card:hover { color: #fff; }
.gallery-card[hidden] { display: none; }
.year-heading { grid-column: 1 / -1; margin: 18px 0 2px; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.year-heading:first-child { margin-top: 0; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---- Gallery page -------------------------------------------------------------------------- */

.gallery-head { padding: 20px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); margin: 0 0 12px; padding: 0; list-style: none; letter-spacing: .03em; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted); transform: rotate(-45deg); margin-right: 2px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .year { color: var(--text); }
:root[data-theme="dark"] .breadcrumb .year { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }
.gallery-title { font-size: clamp(30px, 2.7vw, 40px); margin-bottom: 10px; }
.gallery-description { color: var(--text-2); font-size: 15px; max-width: 980px; margin: 0 0 8px; letter-spacing: .02em; }
.gallery-head-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 26px; padding-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--link); letter-spacing: .02em; }
.back-link .icon { width: 14px; height: 14px; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle a { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 31px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface); color: var(--text); }
.view-toggle a .icon { width: 17px; height: 17px; }
.view-toggle a[aria-current="true"] { background: var(--active); border-color: var(--active); color: var(--active-contrast); }
:root[data-theme="dark"] .view-toggle a[aria-current="true"] { background: transparent; color: var(--accent); border-color: var(--accent); }

.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 345px; grid-template-areas: "stage thumbs" "stats ."; gap: 0 14px; }
.stage { grid-area: stage; }
.photo-stats { grid-area: stats; }
.thumbs { grid-area: thumbs; }
/* The stage takes the photo's shape (--ratio, set by viewer.js) inside an equal black frame, so there are no side
   bars (Jovan, 2026-10-12). Tall photos are limited in height and centred. */
.stage { --ratio: 1.5; --frame-w: 12px; --stage-max-h: min(698px, 74vh); position: relative; box-sizing: content-box; justify-self: center;
    width: min(calc(100% - 2 * var(--frame-w)), calc(var(--stage-max-h) * var(--ratio))); aspect-ratio: var(--ratio);
    padding: var(--frame-w); overflow: hidden; border-radius: 4px; background: #000; }
:root[data-theme="dark"] .stage { box-shadow: 0 0 0 1px #1e3a5f; }
.stage-photo { position: absolute; top: var(--frame-w); left: var(--frame-w); width: calc(100% - 2 * var(--frame-w)); height: calc(100% - 2 * var(--frame-w)); max-width: none; object-fit: contain; transition: opacity .25s ease; cursor: zoom-in; }
.stage-photo.is-loading { opacity: .35; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); pointer-events: none; }
.stage-counter, .stage-caption { position: absolute; bottom: 16px; z-index: 2; color: #fff; font-size: 16px; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.stage-counter { left: 22px; }
.stage-caption { right: 22px; max-width: 60%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-nav { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(8, 10, 14, .78); color: #fff; }
.stage-nav:hover { background: rgba(8, 10, 14, .95); color: #fff; }
.stage-nav .icon { width: 24px; height: 24px; }
.stage-nav--prev { left: 20px; }
.stage-nav--next { right: 26px; }
.stage-nav[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.stage-tools { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 4px; padding: 3px 6px; border-radius: 8px; background: rgba(8, 10, 14, .62); }
.stage-tools button, .stage-tools a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border: 0; background: none; color: #fff; border-radius: 6px; }
.stage-tools button:hover, .stage-tools a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.stage-tools .icon { width: 19px; height: 19px; }
.stage-tools [aria-pressed="true"] .icon, .stage-tools .is-rated .icon { fill: #ff5a6e; stroke: #ff5a6e; }

.thumbs { position: relative; height: 0; min-height: 100%; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.thumb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 4px 0 0 4px; list-style: none; }
.thumb-grid a { display: block; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; }
.thumb-grid img { width: 100%; aspect-ratio: 160 / 110; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.thumb-grid a:hover img { filter: brightness(1.08); }
.thumb-grid a[aria-current="true"] { outline-color: var(--accent); }
.thumbs-more { padding: 14px 0; text-align: center; color: var(--muted); font-size: 13px; }

.photo-stats { display: flex; justify-content: space-between; gap: 18px; padding: 16px 2px 0; }
.photo-stats-title { font-size: 19px; font-weight: 500; margin: 0 0 4px; }
.photo-stats-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); }
.photo-stats-views .sep { color: var(--muted); }
.meta-caps [data-gallery-donate] { white-space: nowrap; }
.photo-stats-views .icon { width: 20px; height: 20px; }
.photo-stats-side { text-align: right; flex: none; }
/* Download button (Jovan, 2026-10-13): beside the photo's numbers. */
.photo-stats { align-items: flex-start; }
.photo-download { flex: none; height: 38px; padding: 0 16px; margin: 2px 0 0 auto; }
.stars { display: inline-flex; gap: 3px; color: #f2b632; }
.stars .icon { width: 21px; height: 21px; }
.stars .is-full { fill: currentColor; }
.stars .is-empty { color: var(--border-strong); }
.rating-summary { color: var(--text-2); margin-top: 4px; }

.donation { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.donation p { margin: 0; color: var(--text-2); }
.donation p + p { margin-top: .6em; }
.donation .button { flex: none; }

/* Popovers: rating and share */
.popover { position: absolute; top: 56px; right: 14px; z-index: 5; width: 270px; padding: 16px; border-radius: 8px; background: var(--popover-bg); color: var(--text); box-shadow: var(--shadow); }
.popover[hidden] { display: none; }
.popover h2 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.popover-stars { display: flex; gap: 4px; }
.popover-stars button { display: inline-flex; padding: 3px; border: 0; background: none; color: var(--border-strong); }
.popover-stars button .icon { width: 30px; height: 30px; }
.popover-stars button.is-on { color: #f2b632; }
.popover-stars button.is-on .icon { fill: currentColor; }
.popover-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.share-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.share-list a, .share-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 8px; border: 0; border-radius: 6px; background: none; font-size: 14.5px; color: var(--text); text-align: left; }
.share-list a:hover, .share-list button:hover { background: var(--surface-2); color: var(--text); }
.share-list .icon { width: 18px; height: 18px; }

/* Full thumbnail grid view */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.photo-grid a:hover img { filter: brightness(1.08); }

/* Full screen: near-black background; the photo keeps its shape inside a frame (black in light mode, white in dark). */
.stage:fullscreen { display: flex; align-items: center; justify-content: center; aspect-ratio: auto; width: 100vw; height: 100vh; padding: 0; border-radius: 0; background: #08090b; box-shadow: none; }
.stage:fullscreen .stage-photo { position: static; width: auto; height: auto; max-width: calc(80vw - 20px); max-height: calc(80vh - 20px); /* 80% of the screen, frame included (Jovan, 2026-10-12) */ object-fit: contain; cursor: zoom-out; border: 10px solid var(--frame); box-sizing: content-box; }
.stage:fullscreen::after { height: 90px; }

/* ---- Locked gallery, text pages, search, errors ------------------------------------------- */

.locked { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 40px; align-items: center; padding: 30px 0; }
.locked-cover { position: relative; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.locked-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.locked-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(8, 10, 14, .7); color: #fff; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.locked-badge .icon { width: 14px; height: 14px; }
.locked form { max-width: 420px; }
.form-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.form-field[hidden] { display: none; } /* the contact form's own-subject box until it's chosen */
.form-field input, .form-field textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.form-field textarea { height: auto; padding: 10px 14px; }
.alert { padding: 10px 14px; border-radius: var(--radius); background: rgba(220, 53, 69, .1); color: #c0313f; font-size: 14px; margin-bottom: 14px; }
:root[data-theme="dark"] .alert { color: #ff8a95; }

.prose { max-width: 720px; padding: 10px 0 20px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin: 1.7em 0 .55em; font-size: 23px; color: var(--text); }
.prose h2:first-child { margin-top: .4em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose strong { font-weight: 500; color: var(--text); }
/* Privacy Policy: one centred column; the heading block is centred, paragraphs stay left-aligned for easy reading. */
.page-privacy .page-head, .page-privacy .prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-privacy .page-head { justify-content: center; text-align: center; }

.search-page .search-form { max-width: 640px; padding: 0 0 26px; }
.result-section { margin-bottom: 34px; }
.result-section h2 { font-size: 20px; margin-bottom: 14px; }

.error-page { padding: 80px 0; text-align: center; }
.error-code { font-size: 13px; letter-spacing: .32em; color: var(--muted); }

/* ---- About and Contact (design/mockups/about.png, contact.png) ------------------------------ */

/* Same height on About and Contact, slightly taller than before (Jovan, 2026-10-13). */
.page-banner { position: relative; height: clamp(220px, 17.4vw, 320px); overflow: hidden; background: #1b1d20; color: #fff; }
.page-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 18, .55) 0%, rgba(6, 10, 18, .22) 40%, rgba(6, 10, 18, 0) 65%); }
.page-banner-text { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.page-banner-title { font-size: clamp(38px, 4vw, 62px); font-weight: 400; letter-spacing: .005em; margin: 0 0 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.page-banner-tagline { margin: 0; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; }
.page-banner-tagline::after { content: ""; display: block; width: 68px; height: 2px; margin-top: 16px; background: var(--warm); }

.eyebrow--rule { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--text); margin: 0 0 10px; }
.eyebrow--rule::after { content: ""; width: 58px; height: 1px; background: var(--warm); }
.round-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--round-bg); color: var(--text); --cut: var(--round-bg); }
.round-icon .icon { width: 27px; height: 27px; }

.about { display: grid; grid-template-columns: minmax(0, 482fr) minmax(0, 786fr); gap: 38px; align-items: start; padding-top: 64px; }
.about--no-portrait { grid-template-columns: minmax(0, 860px); }
.about-portrait { width: 100%; aspect-ratio: 482 / 370; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.about-story { padding-top: 4px; }
.about-heading { font-size: clamp(30px, 2.5vw, 38px); margin: 0 0 16px; }
.about-story > p:not(.eyebrow) { max-width: 680px; font-size: 16.5px; line-height: 1.5; color: var(--text-2); margin-bottom: .95em; }
.signature { margin: 18px 0 0; }
.signature img { width: min(300px, 70%); height: auto; }
.signature-dark, :root[data-theme="dark"] .signature-light { display: none; }
:root[data-theme="dark"] .signature-dark { display: block; }


/* Wide screens: form on the left, heading and details on the right. Phones: heading, form, details. */
.contact { display: grid; grid-template-columns: minmax(0, 644fr) minmax(0, 512fr); grid-template-rows: auto 1fr;
    grid-template-areas: "form head" "form list"; column-gap: clamp(32px, 6.5vw, 100px); align-items: start; padding-top: 64px; }
.contact-head { grid-area: head; }
.contact-card { grid-area: form; }
.contact-list { grid-area: list; }
.contact-heading { font-size: clamp(30px, 2.5vw, 38px); margin: 6px 0 16px; }
.contact-intro { font-size: 16.5px; line-height: 1.4; color: var(--text-2); margin: 0 0 18px; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list::before { content: ""; display: block; width: min(300px, 60%); height: 1px; margin-bottom: 20px; background: var(--border); }
.contact-list li { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; }
.contact-label { display: block; font-size: 17.5px; color: var(--text); }
.contact-value { color: var(--text-2); font-size: 15.5px; }
.contact-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { filter: brightness(1.2); }
.contact-list .icon-external { width: 16px; height: 16px; }

.contact-card { padding: 22px 30px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 2px 14px rgba(10, 14, 20, .05); }
.contact-card-title { font-size: clamp(26px, 2.1vw, 31px); margin: 6px 0 16px; }
.contact-form .form-field { gap: 6px; margin-bottom: 18px; font-size: 16.5px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field select { width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; appearance: none; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field [aria-invalid="true"] { border-color: #c0313f; }
.select { position: relative; display: block; }
.select .icon { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.required { color: #c0313f; }
.field-error { font-size: 13.5px; color: #c0313f; }
:root[data-theme="dark"] .required, :root[data-theme="dark"] .field-error { color: #ff8a95; }
.button--block { width: 100%; height: 50px; font-size: 17px; }
.contact-note { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.contact-sent { font-size: 16.5px; color: var(--text-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Responsive ---------------------------------------------------------------------------- */

/* Galleries menu opens on hover or keyboard focus where there's a mouse and room; elsewhere by its toggle. */
@media (hover: hover) and (min-width: 1061px) {
    .nav-menu:hover .nav-dropdown, .nav-menu:focus-within .nav-dropdown,
    .nav-menu:hover .nav-mega, .nav-menu:focus-within .nav-mega { display: block; }
}

@media (max-width: 1240px) {
    .site-nav { gap: 28px; }
}

@media (max-width: 1100px) {
    .viewer { grid-template-columns: minmax(0, 1fr) 260px; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* Header: the menu button takes over from the links. */
@media (max-width: 1060px) {
    :root { --header-h: 69px; }
    .header-logo img { height: 52px; }
    .header-inner { display: flex; height: 68px; gap: 14px; }
    .header-tools { margin-left: auto; }
    .menu-button { display: inline-flex; order: 3; }
    .header-tools { gap: 12px; }
    .site-nav { display: none; }
    .site-nav.is-open { position: absolute; top: 68px; left: 0; right: 0; display: grid; gap: 0; height: auto; margin: 0; padding: 6px var(--gutter) 16px; background: var(--chrome-bg); border-bottom: 1px solid var(--chrome-line); }
    .site-nav.is-open > a, .site-nav.is-open .nav-menu > a { height: 48px; font-size: 17px; }
    .site-nav > a[aria-current="page"]::after, .nav-menu > a[aria-current="page"]::after { bottom: 9px; right: auto; width: 28px; }
    .nav-menu { flex-wrap: wrap; height: auto; }
    .nav-menu-toggle { padding: 10px; }
    .nav-dropdown { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px; border: 0; background: none; box-shadow: none; }
    .nav-menu.is-open .nav-dropdown { display: flex; flex-wrap: wrap; gap: 8px; }
    .site-nav .nav-dropdown a { padding: 7px 14px; border: 1px solid var(--chrome-line); border-radius: 3px; font-size: 14.5px; }
    /* Galleries menu in the small-screen menu: one row per section with a thumbnail, then View All Galleries. */
    .nav-mega { position: static; flex-basis: 100%; width: auto; padding: 0 0 6px; transform: none; border: 0; border-radius: 0;
        background: none; box-shadow: none; --cut: var(--chrome-bg); }
    .mega-cards { grid-template-columns: 1fr; }
    .mega-cards li, .mega-cards li:first-child { padding: 0; border: 0; border-bottom: 1px solid var(--chrome-line); }
    .site-nav .mega-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 12px 0; }
    .mega-photo { aspect-ratio: 4 / 5; }
    .mega-photo > .icon { width: 28px; height: 28px; }
    .mega-body { flex-direction: column; gap: 6px; margin-top: 0; }
    .mega-icon { width: 22px; height: 22px; }
    .mega-title { font-size: 18px; }
    .mega-text { margin-top: 4px; font-size: 13px; }
    .mega-link { display: none; }
    .mega-arrow { display: block; width: 18px; height: 18px; color: var(--chrome-muted); }
    .site-nav .mega-all { justify-content: flex-start; height: 52px; margin: 0; border-top: 0; }
    .mega-all span { flex: 1; }
}

@media (max-width: 900px) {
    .recent-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-strip { grid-template-columns: repeat(3, 1fr); }
    .feature { grid-template-columns: 1fr; gap: 20px; }
    .page-home main .section { padding-top: 44px; }
    .page-home main .section.section--feature { padding-top: 44px; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .chips { justify-content: flex-start; }
    .viewer { grid-template-columns: 1fr; grid-template-areas: "stage" "stats" "thumbs"; }
    .stage { --frame-w: 8px; --stage-max-h: 70vh; }
    /* One swipeable row; more thumbnails load at its end. */
    .thumbs { display: flex; align-items: flex-start; gap: 8px; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; padding: 16px 0 8px; scroll-snap-type: x proximity; }
    .thumbs > div { flex: 0 0 1px; align-self: stretch; }
    .thumbs-more { flex: none; padding: 0 8px; align-self: center; }
    .thumb-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 116px; grid-template-columns: none; gap: 8px; padding: 2px; }
    .thumb-grid a { scroll-snap-align: start; }
    .locked { grid-template-columns: 1fr; }
    .about, .contact { grid-template-columns: 1fr; }
    .about-portrait { max-width: 560px; }
    .contact { grid-template-areas: "head" "form" "list"; grid-template-rows: none; row-gap: 8px; }
    .contact-card { margin-bottom: 24px; }
}

@media (max-width: 720px) {
    :root { --header-h: 61px; }
    .header-logo img { height: 44px; }
    .header-inner { height: 60px; }
    .site-nav.is-open { top: 60px; }
    .wordmark { font-size: 17px; }
    .wordmark-sub { font-size: 8.5px; margin-top: 5px; }
    .header-tools { gap: 6px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-card { padding: 18px 18px 20px; }
    .contact-list li { gap: 16px; }
    .hero { height: 420px; }
    .page-home .hero { height: calc(420px + var(--header-h)); }
    .hero::after { background: linear-gradient(90deg, rgba(6, 10, 18, .7), rgba(6, 10, 18, .25)); }
    .hero-tagline { letter-spacing: .22em; font-size: 14px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .gallery-head { grid-template-columns: 1fr; }
    .gallery-head-side { flex-direction: row; align-items: center; padding-top: 0; }
    .stage-nav { width: 40px; height: 40px; margin-top: -20px; }
    .stage-nav--prev { left: 10px; }
    .stage-nav--next { right: 10px; }
    .stage-caption { display: none; }
    .photo-stats { flex-direction: column; gap: 6px; }
    .rating-summary { margin-bottom: 0; }
    .photo-stats-side { text-align: left; }
    .photo-download { order: 3; margin: 6px 0 0; align-self: flex-start; }
    .donation { flex-direction: column; align-items: flex-start; }
    .copyright { white-space: normal; }
}

@media (max-width: 480px) {
    .recent-grid, .gallery-grid { grid-template-columns: 1fr; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); }
    .chip { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Password field with an eye button to show what was typed. */
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 46px !important; }
.password-toggle { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: var(--text); }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.password-toggle .icon { width: 20px; height: 20px; }
.password-toggle[aria-pressed="false"] .icon-eye-off, .password-toggle[aria-pressed="true"] .icon-eye { display: none; }

/* Grid view lightbox (Jovan, 2026-10-13): the photo at 80% of the screen with arrows, over the grid. */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #08090b; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: #08090b; }
.lightbox-photo { width: auto; height: auto; max-width: calc(80vw - 20px); max-height: calc(80vh - 20px); object-fit: contain; border: 10px solid #000; box-sizing: content-box; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-download { top: 18px; right: 78px; }
.lightbox-nav { top: 50%; margin-top: -24px; }
.lightbox-nav--prev { left: 18px; }
.lightbox-nav--next { right: 18px; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; padding: 0 80px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .85); }
.lightbox-count { margin-left: 10px; color: rgba(255, 255, 255, .6); }
@media (max-width: 720px) {
    .lightbox-photo { max-width: calc(100% - 12px); max-height: calc(80vh - 12px); border-width: 6px; }
    .lightbox-nav { top: auto; bottom: 14px; margin: 0; width: 44px; height: 44px; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-download { top: 12px; right: 68px; }
    .lightbox-caption { bottom: 72px; padding: 0 16px; }
}
