/* WhyDoubleU Photography — shared styles for site, client area and admin */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1c2024;
  --ink-2: #3b4147;
  --muted: #6d7379;
  --line: #e8e4df;
  --line-2: #d9d3cc;
  --accent: #a9574e;        /* logo terracotta */
  --accent-hover: #8f463e;
  --accent-soft: #f6ebe8;
  --slate: #3c5560;         /* logo lens slate */
  --success: #2f7a52;
  --danger: #b3261e;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .05), 0 8px 24px rgba(20, 24, 28, .06);
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 500 .78rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 .85rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .74rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: #e5c4c1; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }

label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(60, 85, 96, .15); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }

.flash { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 20px; font-size: .95rem; border: 1px solid; }
.flash-success { background: #eef6f1; border-color: #cfe6d8; color: #1f5c3c; }
.flash-error { background: #fbefee; border-color: #f0d0cd; color: #8a2019; }
.flash-stack { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 32px)); }
.flash-stack .flash { box-shadow: var(--shadow); animation: flash-out .4s ease 6s forwards; }
@keyframes flash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 248, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font: 400 .82rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 8px 0; position: relative; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-client { border: 1px solid var(--ink); padding: 10px 16px; color: var(--ink); }
.nav .nav-client::after { display: none; }
.nav .nav-client:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Portfolio dropdown */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-drop-toggle .caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.nav-sub {
  position: absolute; top: 100%; left: -20px; min-width: 230px; padding-top: 18px; /* gap bridge keeps hover alive */
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-sub::before { content: ""; position: absolute; inset: 18px 0 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: -1; }
.nav-sub a { display: block; padding: 13px 20px; }
.nav-sub a::after { display: none; }
.nav-sub a:hover, .nav-sub a.active { color: var(--accent); background: var(--accent-soft); }
.nav-sub a:first-child { margin-top: 6px; } .nav-sub a:last-child { margin-bottom: 6px; }
.nav-drop.open .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-drop.open .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
@media (hover: hover) {
  .nav-drop:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .caret { transform: rotate(180deg); }
}

@media (max-width: 1080px) {
  /* backdrop-filter would make the fixed menu panel position against the header (zero height) */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 32px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  .nav a { padding: 18px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-client { margin-top: 24px; text-align: center; border-bottom: 1px solid var(--ink); }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 1080px) {
  .nav-drop-toggle .caret { display: none; }
  .nav-sub, .nav-drop:hover .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; min-width: 0; transition: none; }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 14px 0 14px 18px; font-size: .9rem; background: none !important; }
  .nav-sub a:first-child, .nav-sub a:last-child { margin: 0; }
  .nav-sub a.active { color: var(--accent); }
}

/* ---------- home ---------- */
.hero { position: relative; height: min(88vh, 860px); min-height: 520px; background: var(--slate); color: #fff; overflow: hidden; }
/* Each slide zooms out gently while showing and finishes at scale(1) before the next one
   starts (slides change every 6s), so the outgoing photo fades out without any jump. */
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1); will-change: opacity, transform; }
.hero-slide.on { opacity: 1; animation: hero-zoom 6s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)); }
.hero-inner { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { color: #fff; max-width: 820px; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero .eyebrow { color: #f2c9bf; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-empty { background: linear-gradient(135deg, #2b3b43 0%, #3c5560 55%, #6b4a45 100%); }
.hero-empty::after { display: none; }

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card { grid-column: span 2; position: relative; display: block; text-decoration: none; color: #fff; overflow: hidden; background: var(--slate); aspect-ratio: 4 / 5; }
.cat-card:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 3 / 2; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6)); }
.cat-card .cat-label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.cat-card h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.cat-card .cat-label span { font: 400 .75rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.cat-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #34474f, #4d6670); }
.cat-placeholder img { width: 38%; height: auto; object-fit: contain; opacity: .35; }
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card, .cat-card:nth-child(-n+2) { grid-column: span 1; aspect-ratio: 4 / 5; }
  .cat-card:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
  .cat-card h3 { font-size: 1.2rem; }
  .cat-card .cat-label { left: 16px; bottom: 16px; }
}

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-mark { background: var(--surface); border: 1px solid var(--line); padding: clamp(32px, 6vw, 72px); display: grid; place-items: center; }
.about-mark img { width: min(320px, 100%); }
.services { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.services li { padding-left: 18px; position: relative; color: var(--ink-2); }
.services li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- category & photo ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 6px; }
.crumbs { font: 400 .75rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.cat-tabs a { font: 400 .75rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line-2); color: var(--ink-2); }
.cat-tabs a:hover, .cat-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.masonry { columns: 3 340px; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.tile { display: block; position: relative; overflow: hidden; background: #ece8e3; }
.tile img { width: 100%; height: auto; transition: transform .6s ease, opacity .3s; }
.tile:hover img { transform: scale(1.03); }
.tile-caption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); opacity: 0; transition: opacity .3s; }
.tile:hover .tile-caption { opacity: 1; }

.empty { text-align: center; padding: 80px 24px; border: 1px dashed var(--line-2); color: var(--muted); background: var(--surface); }
.empty h3 { color: var(--ink); }

.photo-stage { background: #f1eee9; padding: clamp(16px, 4vw, 48px) 0; }
.photo-stage img { width: auto; height: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.photo-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.photo-bar h1 { font-size: 1.5rem; margin: 0; }
.pager { display: flex; gap: 8px; align-items: center; }
.pager a, .pager span.disabled { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); text-decoration: none; }
.pager a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager span.disabled { opacity: .35; }
.pager .count { font: 400 .8rem/1 var(--head); letter-spacing: .14em; color: var(--muted); padding: 0 8px; border: 0; width: auto; }

/* ---------- contact block ---------- */
.contact-block { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.contact-info dl { margin: 28px 0 0; }
.contact-info dt { font: 500 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.contact-info dd { margin: 6px 0 0; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.photo-ref { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); padding: 10px; margin-bottom: 20px; }
.photo-ref img { width: 64px; height: 64px; object-fit: cover; }
.photo-ref small { display: block; color: var(--muted); font-size: .78rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- footer ---------- */
.site-footer { background: #181c1f; color: #c8ccd0; padding: 56px 0 32px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; color: #c8ccd0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #2c3236; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8a9096; font-size: .8rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- client login ---------- */
.auth-page { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--slate) center / cover no-repeat; position: relative; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(28,32,36,.15), rgba(28,32,36,.6)); }
.auth-art .auth-quote { position: absolute; left: 48px; right: 48px; bottom: 48px; color: #fff; z-index: 2; font: 400 1.6rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .btn { width: 100%; margin-top: 8px; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- client gallery ---------- */
.gal-hero { position: relative; height: 62vh; min-height: 380px; background: var(--slate) center / cover no-repeat; color: #fff; }
.gal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.6)); }
.gal-hero .wrap { position: absolute; inset: auto 0 48px 0; z-index: 2; }
.gal-hero h1 { color: #fff; margin-bottom: 8px; }
.gal-hero .meta { font: 400 .8rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.gal-toolbar { position: sticky; top: 76px; z-index: 30; background: rgba(251,250,248,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gal-toolbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { font: 400 .76rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; padding: 11px 16px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.seg button.on { background: var(--ink); color: #fff; }
.seg svg { width: 14px; height: 14px; fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.gal-grid .tile { cursor: zoom-in; }
.fav-btn {
  position: absolute; bottom: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; z-index: 3;
  opacity: 0; transition: opacity .2s, transform .15s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tile:hover .fav-btn, .fav-btn.on, .fav-btn:focus-visible { opacity: 1; }
.fav-btn:active { transform: scale(.9); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.fav-btn.on svg { fill: var(--accent); stroke: var(--accent); }
@media (hover: none) { .fav-btn { opacity: 1; } }
.gal-grid[data-filter="favs"] .tile-wrap:not(.is-fav),
.gal-grid[data-filter="selects"] .tile-wrap:not(.is-select) { display: none; }
.seg svg.star { fill: #e2a23b; stroke: #e2a23b; }
.preview-banner { background: #fff7e0; border-bottom: 1px solid #f0e0a8; padding: 10px 0; font-size: .9rem; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0e1012; display: none; flex-direction: column; color: #fff; }
.lb.open { display: flex; }
.lb-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; }
.lb-title { font-size: .85rem; color: #aab0b5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lb-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 10px 14px; font: 400 .74rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; border-radius: 2px; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-btn.on svg { fill: #e58e82; stroke: #e58e82; }
.lb-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px 24px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.dl-menu { position: relative; }
.dl-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); min-width: 230px; box-shadow: var(--shadow); display: none; z-index: 5; border-radius: 4px; overflow: hidden; }
.dl-menu.open .menu { display: block; }
.dl-menu .menu a { display: block; padding: 12px 16px; text-decoration: none; font-size: .9rem; }
.dl-menu .menu a:hover { background: var(--accent-soft); }
.dl-menu .menu small { display: block; color: var(--muted); font-size: .76rem; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 0 12px; }
  .lb-nav { width: 42px; height: 42px; background: rgba(0,0,0,.4); }
  .lb-btn .lbl { display: none; }
}

/* ---------- error page ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.error-page .code { font: 500 6rem/1 var(--head); color: var(--line-2); }

/* ---------- reviews ---------- */
.stars { display: inline-flex; gap: 2px; font-size: 1.05rem; line-height: 1; color: #d9d3cc; letter-spacing: 0; }
.stars .on { color: #e2a23b; }
.reviews { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(64px, 10vw, 120px); }
.rating-summary { display: flex; align-items: center; gap: 16px; }
.rating-big { font: 500 3.2rem/1 var(--head); color: var(--ink); }
.rating-summary .stars { font-size: 1.3rem; margin-bottom: 4px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card { margin: 0; background: var(--bg); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review-card blockquote {
  margin: 0; flex: 1; color: var(--ink-2); font-size: .98rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card blockquote::before { content: "“"; }
.review-card blockquote::after { content: "”"; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .92rem; }
.review-card figcaption img, .review-card .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.review-card .avatar { display: grid; place-items: center; background: var(--slate); color: #fff; font: 500 1rem/1 var(--head); }
.review-card figcaption a { text-decoration: none; }
.review-card figcaption a:hover { color: var(--accent); }
.review-card figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.review-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .post-grid-3 { grid-template-columns: 1fr 1fr; } .post-grid-3 .post-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .post-grid-3 { grid-template-columns: 1fr; } .post-grid-3 .post-card:nth-child(3) { display: flex; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: #ece8e3; }
.post-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.post-card:hover .post-img > img { transform: scale(1.04); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body time { font: 400 .74rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-body h3 { font-size: 1.3rem; margin: 0; }
.post-body p { margin: 0; color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; padding-top: 8px; font: 500 .76rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 900px) {
  .post-card-lg { grid-column: 1 / -1; flex-direction: row; }
  .post-card-lg .post-img { flex: 1.3; aspect-ratio: auto; min-height: 380px; }
  .post-card-lg .post-body { flex: 1; padding: 40px; justify-content: center; }
  .post-card-lg h3 { font-size: 2rem; }
  .post-card-lg .post-more { margin-top: 12px; }
}

.newsletter { background: #eef1f2; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.newsletter-embed { background: #fff; border: 1px solid var(--line); }
.newsletter-embed iframe { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
@media (max-width: 860px) { .newsletter-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-photo { display: block; overflow: hidden; background: #ece8e3; }
.about-photo img { width: 100%; height: auto; transition: transform .8s ease; }
.about-photo:hover img { transform: scale(1.03); }
.about-page { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: 24px; padding-bottom: clamp(48px, 8vw, 96px); }
.about-page-photo { position: sticky; top: 100px; }
.about-page-photo > img { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.about-page-text h1 { margin-bottom: 24px; }
.about-page-text p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; }
.about-page-text p.lead { font-size: 1.25rem; color: var(--ink); line-height: 1.6; }
@media (max-width: 860px) { .about-page { grid-template-columns: 1fr; } .about-page-photo { position: static; } }
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.genre { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.genre:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.genre h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.genre p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
@media (max-width: 1080px) { .genre-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* sub-gallery link at the bottom of a portfolio section (e.g. Boudoir under Portraits) */
.sub-gallery { display: flex; align-items: stretch; margin-top: 56px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .25s, border-color .25s; overflow: hidden; }
.sub-gallery:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.sub-gallery > img { width: 38%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s ease; }
.sub-gallery:hover > img { transform: scale(1.03); }
.sub-gallery > div { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.sub-gallery h3 { font-size: 1.8rem; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.sub-gallery p { margin: 0; color: var(--ink-2); max-width: 480px; }
.sub-gallery .eyebrow { margin-bottom: 4px; }
@media (max-width: 640px) { .sub-gallery { flex-direction: column; } .sub-gallery > img { width: 100%; max-width: none; } }
.photo-ref[hidden] { display: none; }

/* =====================================================================
   Home page "pop": cinematic hero, genre band, dark portfolio,
   statement band, steps and scroll reveals
   ===================================================================== */

/* hero */
.hero { height: calc(100svh - 76px); min-height: 560px; max-height: none; }
.hero::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.72) 100%); }
.hero-inner { padding-bottom: clamp(72px, 12vh, 130px); }
.hero .eyebrow { color: #f0b9ac; letter-spacing: .3em; }
.hero-title { font-size: clamp(2.8rem, 7.5vw, 6.2rem); line-height: .98; letter-spacing: .01em; margin-bottom: 26px; max-width: 1000px; }
.hero-title span { display: block; }
.hero-title .accent { color: #f0b9ac; }
.hero p { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-anim { opacity: 0; transform: translateY(26px); animation: hero-in 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.hero-empty { background: radial-gradient(ellipse at 75% 20%, rgba(169,87,78,.55), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(60,85,96,.9), transparent 60%), #14181b; }
.hero-dots { position: absolute; z-index: 3; right: clamp(16px, 4vw, 48px); bottom: clamp(72px, 12vh, 130px); display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 24px; padding: 10px 0; background: none; border: 0; cursor: pointer; }
.hero-dots span { display: block; height: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots .on span::after { animation: dot-fill 6s linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.8); text-decoration: none; font: 400 .66rem/1 var(--head); letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 38px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 640px) { .hero-dots { left: 24px; right: auto; bottom: 28px; } .scroll-cue { display: none; } }

/* dark portfolio section */
.section.dark { background: #14181b; color: #e9e6e1; }
.section.dark h2 { color: #fff; }
.section.dark .muted { color: #9aa1a7; }
.section.dark .eyebrow { color: #e08f81; }
.cat-card { background: #1f262a; }
.cat-card::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75)); transition: opacity .4s; }
.cat-num { position: absolute; top: 18px; left: 22px; z-index: 2; font: 500 .85rem/1 var(--head); letter-spacing: .2em; color: rgba(255,255,255,.85); }
.cat-card .cat-label p { margin: 6px 0 10px; font-size: .92rem; color: rgba(255,255,255,.85); max-width: 380px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease; }
.cat-card:hover .cat-label p, .cat-card:focus-visible .cat-label p { max-height: 80px; opacity: 1; }
.cat-card img { filter: saturate(.95); transition: transform .9s ease, filter .6s ease; }
.cat-card:hover img { filter: saturate(1.08); }
.dark .cat-placeholder { background: radial-gradient(circle at 70% 25%, rgba(169,87,78,.35), transparent 60%), linear-gradient(135deg, #222a2f, #2f3d44); }
@media (hover: none) { .cat-card .cat-label p { display: none; } }

/* statement band */
.statement { position: relative; padding: clamp(110px, 18vw, 220px) 0; background: #22292d center / cover no-repeat; background-attachment: fixed; color: #fff; text-align: center; overflow: hidden; }
.statement::before { content: ""; position: absolute; inset: 0; background: rgba(15,18,20,.62); }
.statement:not([style])::before { background: radial-gradient(ellipse at 50% 120%, rgba(169,87,78,.5), transparent 60%), #1a2024; }
.statement .wrap { position: relative; }
.statement .eyebrow { color: #f0b9ac; }
.statement-text { font: 500 clamp(2.2rem, 6vw, 5rem)/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 22px; }
.statement-text span { color: #f0b9ac; }
.statement-sign { font: 400 .8rem/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 0; }
.statement-sign::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }
@media (hover: none), (max-width: 860px) { .statement { background-attachment: scroll; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); padding: 36px 32px 34px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.step:hover::after { transform: scaleX(1); }
.step-num { display: block; font: 500 4.2rem/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-slide.on { animation: none; }
  .scroll-cue i::after, .hero-dots .on span::after { animation: none; }
  .hero-dots .on span::after { transform: scaleX(1); }
}

/* gallery videos */
.play-badge { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; pointer-events: none; }
.play-badge svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.lb-stage video { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); background: #000; }
.lb-stage [hidden], .dl-menu [hidden], .dl-menu[hidden] { display: none !important; }
.gallery-group { grid-column: 1 / -1; font-size: 1.3rem; margin: 24px 0 0; }
.gallery-group:first-child { margin-top: 0; }

/* Portfolio photos: no drag-out, no long-press save menu (body[data-protect] on public pages) */
body[data-protect] img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.protect-wrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.protect-wrap::after { content: ""; position: absolute; inset: 0; }  /* clicks land on this, not the image */

/* whole-gallery downloads in the client gallery header */
.gal-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.gal-downloads .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.gal-downloads .btn-outline-light svg { fill: #e2a23b; stroke: #e2a23b; }
.gal-downloads .dl-meta { opacity: .65; font-size: .7rem; letter-spacing: .08em; margin-left: 4px; }
.dl-note { margin: 12px 0 0; font-size: .9rem; opacity: .9; }
.dl-note[hidden] { display: none; }
.gal-downloads [hidden] { display: none; }
.gal-downloads .btn-fav-dl svg { fill: #e58e82; stroke: #e58e82; }

/* the photographer's selects: small gold star, top-right of the tile (not needed in the Selects view) */
.select-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(20,24,28,.55); display: grid; place-items: center; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.select-badge svg { width: 15px; height: 15px; fill: #f2b544; }
.gal-grid[data-filter="selects"] .select-badge { display: none; }

/* ---------- photo mosaics (home "Selected work" + portfolio section pages) ---------- */
.wrap-wide { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 clamp(8px, 2vw, 24px); }
.mosaic-section { background: var(--surface); }
.mosaic-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.mosaic-head .muted { max-width: 520px; margin: 0 auto; }

/* Home: the six sections as one titled collage */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 21vw, 330px); gap: 0; }
.mosaic-tile { position: relative; display: block; overflow: hidden; background: #2b3337; color: #fff; text-decoration: none; }
.mosaic-tile.t1 { grid-column: 1 / 3; grid-row: 1 / 3; }  /* Portraits: large */
.mosaic-tile.t2 { grid-column: 3 / 5; grid-row: 1; }      /* Events: wide */
.mosaic-tile.t3 { grid-column: 3 / 4; grid-row: 2; }      /* Commercial */
.mosaic-tile.t4 { grid-column: 4 / 5; grid-row: 2; }      /* Street */
.mosaic-tile.t5 { grid-column: 1 / 3; grid-row: 3; }      /* Landscape: wide */
.mosaic-tile.t6 { grid-column: 3 / 5; grid-row: 3; }      /* Real Estate: wide */
.mosaic-tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 14, .22); transition: background .4s; }
.mosaic-tile:hover > img { transform: scale(1.04); }
.mosaic-tile:hover::after { background: rgba(10, 12, 14, .36); }
.mosaic-label {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 12px;
  font: 500 clamp(1rem, 1.9vw, 1.7rem)/1.1 var(--head); letter-spacing: .24em; text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.mosaic-tile.t1 .mosaic-label { font-size: clamp(1.3rem, 2.6vw, 2.4rem); }
.mosaic-tile .cat-placeholder { width: 100%; height: 100%; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .mosaic-tile.t1 { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-tile.t2, .mosaic-tile.t3, .mosaic-tile.t4, .mosaic-tile.t5 { grid-column: auto; grid-row: auto; }
  .mosaic-tile.t6 { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-label { letter-spacing: .16em; }
}

/* Portfolio pages: justified rows. Every photo keeps its shape and each row fills the width.
   flex-grow and flex-basis are both proportional to the photo's aspect ratio (--r),
   so all photos in a row end up the same height. */
.justified { --row: clamp(150px, 21vw, 330px); display: flex; flex-wrap: wrap; gap: 0; }
.justified::after { content: ""; flex-grow: 1e6; }  /* keeps the last row from stretching */
.jtile { position: relative; display: block; flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row)); aspect-ratio: var(--r); overflow: hidden; background: #ece8e3; }
.jtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.jtile:hover img { transform: scale(1.03); }
.jtile:hover .tile-caption { opacity: 1; }
@media (max-width: 640px) { .justified { --row: 120px; } }
.wrap-wide > .empty, .wrap-wide > .sub-gallery, .wrap-wide > p { max-width: calc(var(--wrap) - 48px); margin-left: auto; margin-right: auto; }

/* photo page: previous/next arrows beside the photo */
.stage-inner { position: relative; }
.stage-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transition: background .2s, color .2s, transform .2s;
}
.stage-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.stage-nav:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.06); }
.stage-prev { left: 24px; }
.stage-next { right: 24px; }
@media (max-width: 760px) {
  .stage-nav { width: 42px; height: 42px; background: rgba(255, 255, 255, .8); }
  .stage-prev { left: 30px; }
  .stage-next { right: 30px; }
}

/* Text under each portfolio gallery */
.cat-about { max-width: 720px; margin: clamp(48px, 8vw, 88px) auto 0; padding: 0 24px; }
.cat-about h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 16px; }
.cat-about p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; margin: 0; }

/* About page: "As featured in" press link */
.press-link { display: grid; gap: 4px; margin: 28px 0 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); text-decoration: none; color: inherit; transition: box-shadow .25s, border-color .25s; }
.press-link:hover { box-shadow: var(--shadow); border-color: var(--line-2); border-left-color: var(--accent); }
.press-eyebrow { font: 500 .7rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.press-name { font: 500 1.35rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.press-title { font-style: italic; color: var(--ink-2); }
.press-more { font: 500 .75rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.press-link:hover .press-more { color: var(--accent); }

/* Client gallery: share dialog */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); }
.share-dialog { border: 0; border-radius: 10px; padding: 28px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.share-dialog::backdrop { background: rgba(20, 24, 27, .6); }
.share-dialog h2 { font-size: 1.3rem; margin: 0 0 10px; }
.share-dialog h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 24px 0 8px; color: var(--muted); }
.share-dialog p { font-size: .95rem; line-height: 1.55; margin: 0 0 16px; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.share-list { list-style: none; margin: 0; padding: 0; }
.share-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.share-list small { display: block; color: var(--muted); font-size: .8rem; }
.share-list form { margin: 0; }

/* Legal pages and form notes */
.legal { max-width: 760px; padding-top: 8px; padding-bottom: clamp(64px, 9vw, 110px); }
.legal h2 { font-size: 1.2rem; margin: 44px 0 12px; }
.legal h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.75; color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-hover); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.legal-table th { background: var(--bg); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form-note { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.form-note a { color: inherit; text-decoration: underline; }
.legal-links a { color: inherit; }
@media (max-width: 760px) { .legal-table th, .legal-table td { padding: 10px; } }

/* Hint under the gallery download buttons */
.dl-tip { margin: 14px 0 0; max-width: 560px; font-size: .88rem; line-height: 1.5; opacity: .92; }
.dl-tip strong { font-weight: 600; }

/* Gallery ZIP size switch (Full size / Low resolution) */
.dl-quality { display: inline-flex; margin-top: 22px; border: 1px solid rgba(255, 255, 255, .55); }
.dl-quality[hidden] { display: none; }
.dl-quality button { font: 400 .72rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; color: #fff; padding: 11px 16px; cursor: pointer; }
.dl-quality button.on { background: #fff; color: var(--ink); }
.dl-quality-note { margin: 8px 0 0; font-size: .78rem; opacity: .8; }
.dl-quality ~ .gal-downloads { margin-top: 12px; }
.gal-downloads[data-quality="lo"] .dl-size { display: none; }

/* Download icon on each photo (next to the heart) and its size menu */
.dl-btn {
  position: absolute; bottom: 10px; right: 54px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; z-index: 3;
  opacity: 0; transition: opacity .2s, transform .15s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tile:hover .dl-btn, .dl-btn:focus-visible, .dl-btn[aria-expanded="true"] { opacity: 1; }
.dl-btn:active { transform: scale(.9); }
.dl-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .dl-btn { opacity: 1; } }
.dl-pop { position: fixed; z-index: 120; width: min(260px, calc(100vw - 16px)); background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.28); overflow: hidden; }
.dl-pop[hidden] { display: none; }
.dl-pop a { display: block; padding: 13px 16px; text-decoration: none; font-size: .92rem; color: var(--ink); }
.dl-pop a + a { border-top: 1px solid var(--line); }
.dl-pop a:hover, .dl-pop a:focus-visible { background: var(--accent-soft); }
.dl-pop small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
@media (hover: none) { .fav-btn, .dl-btn { width: 44px; height: 44px; } .dl-btn { right: 62px; } }  /* bigger targets for thumbs */
