:root { --gallery-paper:#f5f2eb; --gallery-white:#fbfaf7; --gallery-ink:#292b26; --gallery-muted:#72736b; --gallery-line:#d9d3c8; --gallery-olive:#737760; --gallery-forest:#343a32; }
body.gallery-page { background:var(--gallery-paper); color:var(--gallery-ink); font-size:16px; }
.gallery-shell { width:min(100% - 44px, 1060px); margin:0 auto; padding:60px 0 90px; }
.gallery-kicker { margin:0 0 13px; color:var(--gallery-olive); font-size:12px; letter-spacing:2px; text-transform:uppercase; }
.gallery-shell h1,.gallery-shell h2,.gallery-shell h3 { font-family:'Playfair Display',Georgia,serif; font-weight:400; }
.gallery-shell h1 { max-width:760px; font-size:clamp(36px,6vw,68px); line-height:1.08; }
.gallery-shell h2 { font-size:clamp(26px,4vw,38px); }
.gallery-lead { max-width:620px; margin:17px 0 0; color:#62635b; font-size:17px; line-height:1.7; }
.gallery-card { max-width:620px; margin-top:35px; padding:30px; border:1px solid var(--gallery-line); background:rgba(251,250,247,.7); }
.gallery-form { display:grid; gap:15px; }
.gallery-form label,.gallery-field label { display:grid; gap:7px; color:#55564e; font-size:16px; }
.gallery-form input,.gallery-field input,.gallery-field select { width:100%; min-height:44px; padding:11px 12px; border:1px solid var(--gallery-line); border-radius:0; background:var(--gallery-white); color:var(--gallery-ink); font:inherit; font-size:16px; }
.gallery-button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:11px 16px; border:1px solid var(--gallery-forest); background:var(--gallery-forest); color:#fff; font-size:15px; text-decoration:none; cursor:pointer; }
.gallery-button:hover { background:var(--gallery-olive); border-color:var(--gallery-olive); }
.gallery-button.secondary { border-color:var(--gallery-line); background:transparent; color:var(--gallery-ink); }
.gallery-button.secondary:hover { background:var(--gallery-olive); color:#fff; }
.gallery-button:disabled { cursor:wait; opacity:.55; }
.gallery-notice { min-height:20px; margin:12px 0 0; color:var(--gallery-olive); font-size:16px; line-height:1.6; }
.gallery-notice.is-error { color:#9d3c32; }
.gallery-notice:empty { display:none; }
#gallery-client-status:not(:empty) { position:sticky; top:12px; z-index:4; width:fit-content; max-width:100%; margin:0 auto 12px; padding:10px 14px; border:1px solid var(--gallery-line); background:rgba(251,250,247,.96); box-shadow:0 6px 22px rgba(41,43,38,.08); }
.gallery-hero { position:relative; display:flex; min-height:clamp(330px,55vw,570px); align-items:flex-end; justify-content:space-between; gap:24px; overflow:hidden; padding:clamp(24px,5vw,58px); background:#373a34; color:#fff; }
.gallery-hero-image { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.gallery-hero-image[hidden] { display:none; }
.gallery-hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(20,21,19,.64),rgba(20,21,19,.12) 80%),linear-gradient(0deg,rgba(20,21,19,.58),transparent 64%); }
.gallery-hero-copy { position:relative; z-index:1; max-width:min(720px,78%); }
.gallery-hero .gallery-kicker { color:rgba(255,255,255,.82); }
.gallery-hero h1 { color:#fff; text-shadow:0 2px 24px rgba(0,0,0,.2); }
.gallery-hero-package { max-width:620px; margin:14px 0 0; color:rgba(255,255,255,.92); font-size:16px; line-height:1.6; text-shadow:0 1px 8px rgba(0,0,0,.25); }
.gallery-counter { position:relative; z-index:1; flex:none; align-self:flex-start; padding:10px 13px; border:1px solid rgba(255,255,255,.55); background:rgba(25,27,23,.42); color:#fff; font-size:14px; font-weight:600; white-space:nowrap; backdrop-filter:blur(7px); }
.gallery-progress { height:3px; margin:15px 0 24px; background:#e2ddd3; }
.gallery-progress span { display:block; width:0; height:100%; background:var(--gallery-olive); transition:width .2s ease; }
.gallery-photo-grid { columns:4; column-gap:4px; }
.gallery-photo-card { position:relative; display:inline-block; width:100%; min-width:0; margin:0 0 5px; break-inside:avoid; vertical-align:top; }
.gallery-photo-card.is-reveal-ready { opacity:0; transform:translateY(14px); transition:opacity .48s ease var(--gallery-reveal-delay,0ms),transform .48s ease var(--gallery-reveal-delay,0ms); }
.gallery-photo-card.is-visible { opacity:1; transform:translateY(0); }
.gallery-photo-view { display:block; position:relative; width:100%; padding:0; overflow:hidden; border:0; outline:0; background:transparent; cursor:zoom-in; }
.gallery-photo-view img { display:block; width:100%; height:auto; object-fit:contain; transition:transform .35s cubic-bezier(.2,.65,.25,1); }
.gallery-photo-card.is-selection-unavailable .gallery-photo-view img { filter:grayscale(.72); opacity:.48; }
.gallery-photo-card.is-selection-unavailable .gallery-photo-view::after { position:absolute; inset:0; background:rgba(245,242,235,.13); content:""; pointer-events:none; }
.gallery-photo-card.is-selection-unavailable .gallery-photo-caption { color:#96958d; }
.gallery-photo-view:focus-visible { outline:3px solid var(--gallery-olive); outline-offset:3px; }
.gallery-photo-pick { position:absolute; top:10px; right:10px; z-index:2; display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(255,255,255,.82); border-radius:50%; background:rgba(251,250,247,.95); color:var(--gallery-olive); font:inherit; font-size:21px; line-height:1; cursor:pointer; box-shadow:0 2px 12px rgba(0,0,0,.12); }
.gallery-photo-pick[aria-pressed=true] { background:var(--gallery-olive); color:#fff; }
.gallery-photo-pick:disabled { cursor:default; }
.gallery-photo-pick[aria-disabled=true] { border-color:rgba(80,81,74,.35); background:rgba(221,219,211,.96); color:#77776f; cursor:not-allowed; }
.gallery-photo-watermark { position:absolute; right:0; bottom:9px; left:0; color:rgba(255,255,255,.9); font-size:10px; letter-spacing:1.1px; text-align:center; text-shadow:0 1px 5px rgba(0,0,0,.65); pointer-events:none; }
.gallery-photo-caption { overflow:hidden; margin:0; padding-top:7px; color:var(--gallery-muted); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.gallery-viewer { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; overflow:hidden; border:0; background:#1b1d1a; color:#fff; }
.gallery-viewer::backdrop { background:rgba(18,19,17,.94); }
.gallery-viewer-frame { display:grid; width:100%; height:100%; grid-template-rows:auto minmax(0,1fr) auto; padding:12px clamp(12px,3vw,32px) 18px; }
.gallery-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:52px; }
.gallery-viewer-count { color:rgba(255,255,255,.68); font-size:12px; letter-spacing:1.4px; }
.gallery-viewer-caption { margin-top:3px; color:#fff; font-size:16px; }
.gallery-viewer-close { display:grid; width:44px; height:44px; place-items:center; border:1px solid rgba(255,255,255,.32); border-radius:50%; background:transparent; color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.gallery-viewer-stage { display:grid; min-height:0; grid-template-columns:52px minmax(0,1fr) 52px; align-items:center; gap:clamp(8px,2vw,24px); }
.gallery-viewer-figure { display:grid; width:100%; height:100%; min-width:0; min-height:0; place-items:center; margin:0; }
.gallery-viewer-image { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; }
.gallery-viewer-nav { display:grid; width:48px; height:48px; place-items:center; border:1px solid rgba(255,255,255,.32); border-radius:50%; background:rgba(255,255,255,.08); color:#fff; font-size:34px; font-weight:300; line-height:1; cursor:pointer; }
.gallery-viewer-nav:hover:not(:disabled),.gallery-viewer-close:hover { background:rgba(255,255,255,.17); }
.gallery-viewer-nav:disabled { opacity:.3; cursor:default; }
.gallery-viewer-footer { display:grid; justify-items:center; gap:7px; padding-top:10px; color:rgba(255,255,255,.67); font-size:15px; text-align:center; }
.gallery-viewer-favorite { min-height:44px; padding:10px 18px; border:1px solid #fff; background:#fff; color:var(--gallery-forest); font:inherit; font-weight:600; cursor:pointer; }
.gallery-viewer-favorite[aria-pressed=true] { background:var(--gallery-olive); border-color:var(--gallery-olive); color:#fff; }
.gallery-viewer-favorite:disabled { cursor:default; }
.gallery-viewer button:focus-visible { outline:3px solid #c8d0a5; outline-offset:3px; }
.gallery-upgrade { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:30px; padding:19px; background:#e8e3d9; }
.gallery-upgrade h3 { font-size:22px; }
.gallery-upgrade p { max-width:560px; margin-top:5px; color:#65665d; font-size:16px; line-height:1.6; }
.gallery-download { display:grid; justify-items:start; gap:9px; margin-top:20px; }
.gallery-download .gallery-lead { margin:0; font-size:16px; }
.gallery-brand { margin-top:52px; padding-top:17px; border-top:1px solid var(--gallery-line); color:var(--gallery-muted); font-size:13px; }
.gallery-admin-shell { width:min(100% - 44px, 920px); margin:0 auto; padding:52px 0 90px; }
.gallery-admin-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:48px; }
.gallery-admin-top .wordmark { text-decoration:none; }
.booking-top-links { display:flex; align-items:center; gap:8px; }
.gallery-admin-top .wordmark-main { color:var(--gallery-ink); }
.gallery-admin-card { margin-top:26px; padding:24px; border:1px solid var(--gallery-line); background:rgba(251,250,247,.72); }
.gallery-admin-card h2 { margin-bottom:8px; font-size:28px; }
.gallery-admin-card > p { color:var(--gallery-muted); font-size:16px; line-height:1.7; }
.gallery-admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 0; }
.gallery-field { display:grid; gap:7px; }
.gallery-drop { display:grid; justify-items:center; gap:9px; padding:28px 16px; border:1px dashed #aaa18f; background:rgba(255,255,255,.35); text-align:center; }
.gallery-drop.is-dragging { border-color:var(--gallery-olive); background:#ebe6dc; }
.gallery-drop strong { font:400 22px/1.25 'Playfair Display',Georgia,serif; }
.gallery-drop p,.gallery-upload-meta { color:var(--gallery-muted); font-size:16px; line-height:1.6; }
.gallery-drop-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin-top:6px; }
.gallery-file-list { display:grid; gap:0; margin:12px 0; padding:0; list-style:none; }
.gallery-file-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--gallery-line); }
.gallery-file-row img { width:42px; height:52px; flex:none; object-fit:cover; background:#e8e3d9; }
.gallery-file-name { min-width:0; flex:1; overflow:hidden; color:#55564e; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.gallery-cover-choice { display:inline-flex; flex:none; align-items:center; gap:6px; color:var(--gallery-muted); font-size:15px; white-space:nowrap; cursor:pointer; }
.gallery-cover-choice input { width:18px; height:18px; margin:0; accent-color:var(--gallery-olive); }
.gallery-cover-choice.is-selected { color:var(--gallery-forest); font-weight:600; }
.gallery-cover-picker { display:grid; width:100%; grid-template-columns:1fr auto; gap:10px; margin-top:12px; padding:12px; border:1px solid var(--gallery-line); background:#f5f2eb; }
.gallery-cover-picker[hidden] { display:none; }
.gallery-cover-picker-grid { display:grid; grid-column:1/-1; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:8px; max-height:360px; overflow:auto; }
.gallery-cover-option { display:grid; min-width:0; gap:6px; padding:7px; border:1px solid var(--gallery-line); background:var(--gallery-white); cursor:pointer; }
.gallery-cover-option img { display:block; width:100%; height:105px; object-fit:cover; }
.gallery-cover-option input { width:18px; height:18px; margin:0; accent-color:var(--gallery-olive); }
.gallery-cover-option span { overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.gallery-file-remove { flex:none; padding:8px 10px; font-size:13px; }
.gallery-meter { height:3px; margin:8px 0 14px; background:#e2ddd3; }
.gallery-meter span { display:block; width:0; height:100%; background:var(--gallery-olive); transition:width .2s ease; }
.gallery-list { display:grid; gap:10px; margin-top:18px; }
.gallery-admin-row { display:grid; gap:15px; padding:19px 20px; border:1px solid var(--gallery-line); background:var(--gallery-white); }
.gallery-admin-row > div:first-child { min-width:0; }
.gallery-admin-row h3 { font-size:20px; }
.gallery-admin-row p { margin-top:5px; color:var(--gallery-muted); font-size:16px; line-height:1.6; }
.gallery-admin-row .gallery-admin-activity { margin-top:9px; color:#55564e; font-size:16px; line-height:1.55; white-space:pre-line; }
.gallery-admin-actions { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; padding-top:13px; border-top:1px solid var(--gallery-line); }
.gallery-admin-actions button { min-height:42px; padding:9px 12px; font-size:14px; }
@media(max-width:760px) { .gallery-photo-grid { columns:3; column-gap:4px; } .gallery-photo-card { margin-bottom:5px; } }
@media (hover:hover) and (pointer:fine) {
  .gallery-photo-view:hover img,.gallery-photo-view:focus-visible img { transform:scale(1.02); }
  .gallery-photo-view:hover { box-shadow:0 4px 18px rgba(29,31,26,.14); }
}
@media(max-width:560px) {
  .gallery-shell,.gallery-admin-shell { width:min(100% - 34px, 1060px); padding-top:38px; }
  .gallery-lead,.gallery-upgrade p,.gallery-download .gallery-lead { font-size:18px; }
  .gallery-form label,.gallery-field label { font-size:17px; }
  .gallery-notice,.gallery-photo-caption,.gallery-admin-card > p,.gallery-drop p,.gallery-upload-meta,.gallery-admin-row p,.gallery-admin-row .gallery-admin-activity { font-size:17px; }
  .gallery-brand { font-size:14px; }
  .gallery-card,.gallery-admin-card { padding:20px; }
  .gallery-admin-grid { grid-template-columns:1fr; gap:11px; }
  .gallery-admin-top { align-items:flex-start; }
  .booking-top-links { flex-direction:column; align-items:flex-end; }
  .gallery-photo-grid { columns:2; column-gap:3px; }
  .gallery-upgrade { align-items:stretch; flex-direction:column; }
  .gallery-admin-row { align-items:stretch; }
  .gallery-file-row { flex-wrap:wrap; }
  .gallery-file-name { flex-basis:calc(100% - 62px); }
  .gallery-cover-choice { margin-left:52px; }
  .gallery-file-remove { margin-left:auto; }
  .gallery-upgrade .gallery-button,.gallery-download .gallery-button { width:100%; }
  .gallery-hero { min-height:390px; align-items:flex-end; padding:24px 20px; }
  .gallery-hero-copy { max-width:100%; }
  .gallery-counter { position:absolute; top:15px; right:15px; padding:8px 10px; font-size:12px; }
  .gallery-admin-actions button { flex:1 1 140px; }
  .gallery-viewer-frame { padding:8px 10px 14px; }
  .gallery-viewer-stage { grid-template-columns:38px minmax(0,1fr) 38px; gap:5px; }
  .gallery-viewer-nav { width:38px; height:38px; font-size:29px; }
  .gallery-viewer-image { max-height:100%; }
  .gallery-viewer-footer p { max-width:270px; line-height:1.4; }
}
@media(prefers-reduced-motion: reduce) {
  .gallery-photo-card.is-reveal-ready { opacity:1; transform:none; transition:none; }
  .gallery-photo-view img,.gallery-progress span { transition:none; }
}
