@font-face{font-family:"DM Sans";src:url("fonts/dm-sans.woff2") format("woff2");font-style:normal;font-weight:100 1000;font-display:swap}
@font-face{font-family:"DM Serif Text";src:url("fonts/dm-serif-text.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"DM Serif Text";src:url("fonts/dm-serif-text-italic.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap}
:root {
  --paper:#faf9f6; --white:#fff; --pine:#234a3c; --ink:#1d3028; --muted:#626b61;
  --line:#dbded4; --gold:#e4c58f; --serif:"DM Serif Text",Georgia,serif;
  font-family:"DM Sans",system-ui,sans-serif; color:var(--ink); background:var(--paper);
  font-synthesis:none; -webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
body{margin:0;min-width:280px;line-height:1.5}
body:has(dialog[open]){overflow:hidden}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
a{color:inherit}
button{color:inherit;cursor:pointer}
button:disabled{opacity:.48;cursor:default}
button,dialog{border:0}
button{background:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b97b20;outline-offset:3px}
button:disabled:focus-visible{outline:none}
h1,h2,h3,p{margin:0}
svg{display:inline-block;width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.icons{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}
.skip-link{position:fixed;left:1rem;top:-5rem;z-index:50;padding:.65rem 1rem;background:white;border-radius:6px}
.skip-link:focus{top:1rem}
.shell{width:min(1320px,calc(100% - clamp(48px,9vw,144px)));margin-inline:auto}
.site-header{background:var(--paper);border-bottom:1px solid #dedfd7}
.header-inner{display:flex;align-items:center;gap:clamp(22px,4.6vw,76px);min-height:74px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font:400 1.72rem/1 var(--serif);letter-spacing:-.07em;white-space:nowrap}
.brand-symbol{width:36px;height:36px;display:block;flex:none}
.main-nav,.header-actions,.gallery-actions,.viewer-actions,.grid-options,.filters{display:flex;align-items:center}
.main-nav{gap:9px;height:100%}
.nav-button{font-size:.91rem;font-weight:600;display:flex;align-items:center;gap:8px;color:#60685e;position:relative;min-height:38px;padding:7px 14px;border-radius:7px}
.nav-button:is(:hover,.is-active){color:var(--pine);background:#e7ebe2}
.nav-button svg{width:16px;height:16px}
.favorite-count{font-size:.75rem}
.header-actions{margin-left:auto;gap:10px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:41px;white-space:nowrap;text-decoration:none;border:1px solid #c9cec3;border-radius:7px;background:var(--paper);font-size:.88rem;font-weight:650;padding:8px 16px;line-height:1.4;transition:background-color .15s,border-color .15s}
.button:hover,.icon-button:hover{background-color:#edefe7}
.button svg{width:16px;height:16px}
.button-primary{background:var(--pine);color:#fff;border-color:var(--pine)}
.button-primary:hover{background:#173b2e;border-color:#173b2e}
.share-button{border-color:#b7c1b3}
.share-button svg{width:15px;height:15px}
.import-button{border-color:transparent;background:none;padding-inline:8px;font-weight:500;color:var(--muted)}
.hero{isolation:isolate;position:relative;overflow:hidden;background:#192e23;color:#fff}
.hero-photo,.hero-shade{position:absolute;inset:0;z-index:-1}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:65% 48%;display:block}
.hero-photo img:not([src]){visibility:hidden}
.hero-shade{background:linear-gradient(90deg,rgba(15,35,25,.97) 0%,rgba(19,39,29,.89) 19%,rgba(23,39,27,.59) 40%,rgba(22,31,19,.07) 68%,rgba(17,27,17,.03) 100%),linear-gradient(0deg,rgba(15,25,15,.18),transparent 38%)}
.hero-inner{position:relative;min-height:clamp(350px,28vw,426px);display:flex;align-items:center;padding-block:40px 47px}
.hero-content{max-width:65%}
.hero-eyebrow{display:flex;align-items:center;gap:12px;color:#f0d59e;font-size:.73rem;line-height:1.3;letter-spacing:.185em;text-transform:uppercase;font-weight:700}
.hero-eyebrow>span{display:block;width:31px;height:2px;background:#dbb876}
.hero h1{font:400 clamp(3.95rem,5.45vw,5.6rem)/.99 var(--serif);letter-spacing:-.045em;margin:19px 0 26px}
.hero h1 em{font-weight:400;color:#edd4a5}
.event-details{display:flex;align-items:center;gap:0;flex-wrap:wrap;row-gap:8px;color:#f4f3e9;font-size:.875rem;line-height:1.3}
.event-details>span{display:inline-flex;align-items:center;gap:8px}
.event-details>span+span::before{content:"";width:1px;height:13px;margin-inline:9px 8px;background:rgba(238,233,214,.36)}
.event-details svg{width:15px;height:15px;color:#e8d9af}
.sample-tag{position:absolute;bottom:20px;right:0;display:inline-flex;align-items:center;gap:6px;padding:4px 9px;color:white;background:rgb(23 32 23 /.69);border:1px solid rgb(255 255 255 /.3);border-radius:5px;font-size:.75rem}
.sample-tag svg{width:12px;height:12px}
.collection{padding-block:36px 60px;min-height:400px;scroll-margin-top:16px}
.section-head,.collection-toolbar,.gallery-title,.footer-inner,.dialog-head{display:flex;align-items:center}
.section-head,.collection-toolbar,.footer-inner,.dialog-head{justify-content:space-between}
.gallery-title{gap:13px}
.gallery-title h2,.empty-state h3,.small-dialog h2,.viewer-caption h2{font-family:var(--serif);font-weight:400;letter-spacing:-.04em}
.gallery-title h2{font-size:clamp(2rem,2.5vw,2.65rem);line-height:1.2}
.count{display:inline-grid;place-items:center;padding:1px 9px;min-width:26px;min-height:23px;border:1px solid #d7ddce;border-radius:6px;color:#4d624c;background:#edf0e6;font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums}
.count:empty{visibility:hidden}
.gallery-actions{gap:9px}
.collection-toolbar{gap:12px;margin:21px 0 19px;border-top:1px solid var(--line);padding-top:16px}
.filters{gap:6px;min-width:0;overflow:auto;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filter-chip{border:1px solid transparent;border-radius:999px;padding:7px 13px;min-height:34px;white-space:nowrap;font-size:.87rem;line-height:1.25;font-weight:500;color:#545f53}
.filter-chip:hover{background:#f0f0e9}
.filter-chip.is-active,.filter-chip[aria-pressed="true"]{background:#e6ecdf;border-color:#d6e0cd;color:#2a4c35;font-weight:650}
.grid-options{flex:none;gap:2px;border:1px solid #d9ddd3;border-radius:6px;padding:2px;background:#f0f1eb}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:5px;color:#667263;padding:0}
.icon-button svg{width:17px;height:17px}
.grid-options .icon-button{width:31px;height:28px}
.grid-options .icon-button svg{width:15px;height:15px}
.grid-options .icon-button.is-active{background:var(--white);box-shadow:0 1px 3px #1935222b;color:var(--pine)}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 18px}
.photo-grid.is-compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 13px}
.photo-card{position:relative;min-width:0;isolation:isolate}
.photo-open{display:block;position:relative;width:100%;padding:0;overflow:hidden;border-radius:8px;background:#e5e6db;aspect-ratio:1.52}
.photo-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.photo-open:hover img{transform:scale(1.025)}
.photo-favorite,.photo-check,.photo-download{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;border-radius:50%;padding:0;position:absolute;z-index:1;border:1px solid rgb(255 255 255 /.52);color:#fff;background:rgb(22 32 24 /.47);backdrop-filter:blur(5px);cursor:pointer}
.photo-favorite,.photo-check{top:11px;right:11px}
.photo-favorite svg,.photo-check svg,.photo-download svg{width:16px;height:16px;stroke-width:1.8}
.photo-favorite:is(:hover,.is-favorite,[aria-pressed="true"]),.photo-download:hover{background:var(--pine);border-color:#e4e9d9}
.photo-favorite:is(.is-favorite,[aria-pressed="true"]) svg{fill:currentColor}
.photo-download{right:11px;top:calc((100cqw / 1.52) - 43px);text-decoration:none}
.photo-card{container-type:inline-size}
.photo-download{background:rgb(22 32 24 /.64)}
.card-download-label{display:none}
@container (min-width:340px){.photo-download{width:auto;gap:5px;padding:0 10px;border-radius:18px}.card-download-label{display:inline;font-size:.76rem;font-weight:600}}
.photo-check{display:none;border:2px solid #fff;border-radius:6px;background:#25392b66}
.is-selecting .photo-check{display:flex}
.is-selecting .photo-favorite,.is-selecting .photo-download{display:none}
.is-selecting .photo-card:not(.is-selected) .photo-check svg{visibility:hidden}
.photo-card.is-selected .photo-open{outline:3px solid var(--pine);outline-offset:-3px}
.photo-card.is-selected .photo-open::after{content:"";position:absolute;inset:0;border:4px solid var(--pine);border-radius:inherit;pointer-events:none}
.photo-card.is-selected .photo-check{background:var(--pine)}
.photo-caption{display:flex;align-items:baseline;justify-content:space-between;gap:9px;padding:9px 1px 0}
.photo-title{font-size:.94rem;line-height:1.35;font-weight:600;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.photo-category{font-size:.78rem;line-height:1.4;color:var(--muted);white-space:nowrap}
.empty-state{text-align:center;padding:62px 18px;color:var(--muted)}
.empty-state svg{width:28px;height:28px}
.empty-state h3{margin:10px 0 4px;font-size:1.75rem;color:var(--ink)}
.site-footer{border-top:1px solid var(--line);color:var(--muted)}
.footer-inner{min-height:80px;gap:12px;font-size:.82rem}
.footer-inner .brand{font-size:1.3rem;color:var(--pine);gap:7px}
.footer-inner .brand-symbol{width:24px;height:24px}
.selection-bar{position:fixed;z-index:5;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:17px;background:var(--paper);padding:11px 13px 11px 19px;border:1px solid #cbd3c5;box-shadow:0 5px 28px #192e223d;border-radius:12px;max-width:calc(100% - 20px)}
.selection-bar strong,.selection-link{font-size:.875rem;white-space:nowrap}
.selection-link{text-decoration:underline;text-underline-offset:3px;color:var(--pine);padding:5px}
.selection-bar .icon-button{flex:none}
.selection-downloads{display:flex;align-items:stretch;gap:8px}
.selection-downloads .button{flex:1 0 auto}
body:has(.selection-bar:not([hidden])){padding-bottom:70px}
.toast{position:fixed;z-index:15;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);color:white;background:#233b2f;border-radius:7px;box-shadow:0 3px 18px #16291d22;padding:10px 17px;text-align:center;font-size:.91rem}
body:has(.selection-bar:not([hidden])) .toast{bottom:95px}
dialog::backdrop{background:#111e16c9}
.lightbox{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:clamp(14px,2vw,30px);margin:0;color:#fff;background:#111a15}
.lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.viewer-top,.viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}
.viewer-top{color:#e1e5db;font-size:.86rem}
.viewer-button{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;padding:0;border:1px solid #ffffff4d;color:white;background:#1b291fde;border-radius:50%;flex:none}
.viewer-button:hover{background:#355040}
.viewer-button svg{width:20px;height:20px}
.viewer-stage{min-height:0;position:relative;display:flex;align-items:center;justify-content:center}
.viewer-stage img{width:100%;height:100%;object-fit:contain;min-height:0}
#lightbox-prev,#lightbox-next{position:absolute;z-index:1;top:50%;transform:translateY(-50%)}
#lightbox-prev{left:0}
#lightbox-next{right:0}
.viewer-caption{min-width:0}
.viewer-caption h2{font-size:clamp(1.4rem,3vw,2rem);overflow-wrap:anywhere;line-height:1.1}
#lightbox-category,#lightbox-credit{color:#d4d8cc;font-size:.8rem}
#lightbox-credit a{color:inherit}
.viewer-actions{gap:9px}
#lightbox-favorite:is(.is-favorite,[aria-pressed="true"]) svg{fill:currentColor}
.button-light{background:#f4f3e9;color:var(--pine)}
.small-dialog{width:min(420px,calc(100% - 32px));padding:25px 27px 27px;background:var(--paper);color:var(--ink);border-radius:14px;box-shadow:0 15px 65px #16271f44}
.dialog-symbol{display:grid;place-items:center;background:#e6ecdf;color:var(--pine);border-radius:9px;width:42px;height:42px}
.small-dialog h2{font-size:2rem;margin-top:14px}
.small-dialog p{color:var(--muted);margin:5px 0 20px;font-size:.94rem}
.small-dialog label{display:block;font-size:.86rem;font-weight:600;margin-bottom:6px}
.small-dialog input:not([type=file]),.small-dialog select{width:100%;border-radius:6px;border:1px solid #b9c3b5;padding:10px 12px;background:#fff;color:var(--ink);font-size:1rem}
.small-dialog select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23234a3c' stroke-width='2'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:40px}
.small-dialog>.button{width:100%;margin-top:16px}
#import-status:not(:empty){margin:13px 0 0}
#import-status:empty{display:none}
@media(min-width:1700px){.hero-photo img{object-position:65% 43%}}
@media(max-width:900px){
  .shell{width:calc(100% - 48px)}
  .header-inner{gap:28px;min-height:68px}
  .main-nav{gap:2px}.nav-button{padding-inline:10px}
  .hero-inner{min-height:340px}.hero-content{max-width:70%}
  .photo-grid{gap:22px 12px}.photo-caption{display:block}.photo-caption span{display:block}
}
@media(max-width:700px){
  .shell{width:calc(100% - 36px)}
  .header-inner{gap:12px;min-height:62px}
  .brand{font-size:1.5rem;gap:7px}.brand-symbol{width:31px;height:31px}
  .main-nav{margin-left:auto}.nav-button{min-height:38px;padding:8px}.nav-button svg{width:18px;height:18px}
  .nav-button>span{display:none}
  .nav-button::after{content:attr(aria-label);display:none}
  .header-actions{margin-left:0;gap:4px}
  .import-button{padding:7px;width:34px}.import-button span{display:none}
  .share-button{min-height:36px;padding:7px 10px;font-size:.8rem;gap:6px}
  .hero-inner{min-height:340px;padding-block:40px}.hero-content{max-width:90%}
  .hero-photo img{object-position:70% center}
  .hero-shade{background:linear-gradient(90deg,rgba(14,34,23,.9),rgba(18,35,24,.61) 44%,rgba(16,30,20,.07) 100%),linear-gradient(0deg,rgba(15,24,17,.6),transparent 70%)}
  .hero-eyebrow{font-size:.68rem;letter-spacing:.15em}.hero h1{font-size:clamp(3.3rem,8.8vw,4rem);margin-bottom:22px}
  .event-details{font-size:.8rem}.event-details svg{width:13px;height:13px}.event-details>span{gap:5px}.event-details>span+span::before{margin-inline:4px 5px}
  .sample-tag{font-size:.68rem;bottom:12px;padding:3px 6px}
  .collection{padding-top:26px}.gallery-title{gap:9px}.gallery-title h2{font-size:2rem}
  .gallery-actions .button{font-size:.8rem;min-height:37px;gap:6px;padding:7px 10px}.gallery-actions{gap:6px}
  .collection-toolbar{margin:16px 0 14px;padding-top:12px;gap:5px}
  .filter-chip{padding:6px 10px;font-size:.8rem}.filters{gap:2px}
  .grid-options .icon-button{width:28px}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.photo-grid.is-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 7px}
  .photo-open{aspect-ratio:1.32;border-radius:6px}.photo-favorite,.photo-check{top:7px;right:7px;width:29px;height:29px}
  .photo-download{top:calc((100cqw / 1.32) - 36px);right:7px;width:29px;height:29px}
  .photo-caption{padding-top:6px}.photo-title{font-size:.85rem}.photo-category{font-size:.75rem}
  .photo-grid.is-compact .photo-category{white-space:normal}
  .selection-bar{gap:8px;padding:9px;bottom:10px}.selection-bar .button{padding-inline:9px}.selection-bar .icon-button{width:29px}
  .viewer-bottom{align-items:flex-start}
}
@media(max-width:480px){
  .shell{width:calc(100% - 32px)}.header-inner{gap:6px}.nav-button{padding:8px 6px}
  .hero-inner{min-height:330px;align-items:flex-end;padding-bottom:37px}.hero-content{max-width:100%}
  .hero-photo img{object-position:69% center}
  .hero-shade{background:linear-gradient(90deg,rgba(14,34,23,.55),rgba(12,28,20,.1) 85%),linear-gradient(0deg,rgba(15,29,20,.93),rgba(16,30,19,.58) 41%,rgba(16,24,19,.06) 95%)}
  .hero h1{font-size:clamp(3.2rem,13.6vw,4rem);margin:13px 0 18px}
  .sample-tag{top:11px;bottom:auto;right:0}
  .section-head{align-items:flex-start;flex-direction:column;gap:14px}
  .gallery-actions .button{min-height:38px;font-size:.85rem;padding-inline:12px}
  .collection-toolbar{gap:7px;align-items:flex-start;margin-top:14px}
  .filters{flex:1;gap:2px}
  .grid-options{margin-top:1px}.grid-options .icon-button{width:24px;height:25px}
  .filter-chip{font-size:.8rem;padding:7px 9px}
  .selection-bar strong,.selection-link,.selection-bar .button{font-size:.76rem}
  .selection-bar{gap:4px;max-width:calc(100% - 12px)}
  .viewer-actions .button{font-size:.82rem;padding-inline:10px}.viewer-actions{gap:5px}
}
@media(max-width:365px){.share-button span{display:none}.share-button{width:35px}.event-details{font-size:.74rem}.event-details>span+span::before{margin-inline:2px 3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.footer-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.footer-meta a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){.footer-meta{flex-direction:column;align-items:flex-end;gap:2px}}
.brand{letter-spacing:-.055em}
@media(max-width:480px){
  .share-button .share-full{display:none}
  .collection{position:relative}
  .collection-toolbar{display:block}
  .grid-options{position:absolute;right:0;top:28px}
  .grid-options .icon-button{width:25px;height:28px}
  .filter-chip{padding-inline:8px}
  .photo-favorite::after,.photo-download::after,.photo-check::after{content:"";position:absolute;inset:-5px}
}
@media(max-width:480px){
  .filters{flex-wrap:wrap;gap:3px}
  .filter-chip{padding-inline:4px}
}
#lightbox-details{display:block;color:#d4d8cc;font-size:.8rem}
#lightbox-details:empty{display:none}
@media(max-width:370px){.gallery-actions{flex-wrap:wrap}.gallery-actions .button{font-size:.8rem;padding-inline:9px}}

.owner-tools{position:relative;z-index:8}
.owner-tools summary{list-style:none;cursor:pointer}
.owner-tools summary::-webkit-details-marker{display:none}
.owner-tools summary:focus-visible{outline:3px solid #b97b20;outline-offset:3px}
.owner-tools[open] summary,.owner-menu button:is(:hover,.is-active){background:#e7ebe2}
.owner-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:192px;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 24px #19352229}
.owner-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:7px 10px;border-radius:4px;white-space:nowrap;text-align:left;font-size:.9rem}
.private-note{display:flex;align-items:center;gap:7px;margin-top:9px;color:var(--muted);font-size:.86rem}
.private-note svg{width:14px;height:14px}
@media(max-width:700px){
  .owner-tools summary{min-height:36px;width:36px;padding:7px}
  .owner-tools summary span{display:none}
  .selection-bar:has(#move-private:not([hidden])){display:grid;grid-template-columns:auto 1fr auto;gap:5px 8px;width:max-content;max-width:calc(100% - 16px);min-width:min(350px,calc(100% - 16px));padding:8px 12px}
  .selection-bar:has(#move-private:not([hidden])) #selected-count{grid-area:1/1}
  .selection-bar:has(#move-private:not([hidden])) #select-visible{grid-area:1/2;justify-self:start}
  .selection-bar:has(#move-private:not([hidden])) #clear-selection{grid-area:1/3;justify-self:end}
  .selection-bar:has(#move-private:not([hidden])) #move-private{grid-area:2/2/3/4}
  .selection-bar:has(#move-private:not([hidden])) .selection-downloads{grid-area:2/1}
  body:has(.selection-bar:not([hidden]) #move-private:not([hidden])){padding-bottom:110px}
  body:has(.selection-bar:not([hidden]) #move-private:not([hidden])) .toast{bottom:122px}
}

.button-danger{color:#fff;background:#853d32;border-color:#853d32}
.button-danger:hover{background:#703025}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px}
#trash-dialog h2,#filenames-dialog h2{margin-top:0}
#trash-status:empty{display:none}
#trash-status{color:#853d32}
#favorite-filenames{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;font:inherit;resize:vertical}

.heading-group,.favorites-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.favorites-actions{gap:8px}
.section-head:has(#favorites-actions:not([hidden])){align-items:flex-start;flex-wrap:wrap;gap:14px}
.favorites-help{margin:12px 0 0;color:var(--muted);font-size:.92rem;max-width:75ch}
@media(max-width:700px){
  #nav-favorites>span:first-of-type{display:inline}
  .header-inner{column-gap:5px}
  .nav-button{gap:4px}
  .section-head:has(#favorites-actions:not([hidden])){flex-direction:column}
  .heading-group:has(#favorites-actions:not([hidden])){align-items:flex-start;flex-direction:column;gap:10px}
  .favorites-actions .button{font-size:.85rem;min-height:38px;padding:7px 11px}
}
@media(max-width:410px){
  .header-inner .brand{font-size:1.23rem;gap:5px}
  .header-inner .brand-symbol{width:27px;height:27px}
  #nav-favorites>span:first-of-type{font-size:.8rem}
  .header-inner .share-button{width:34px;padding:6px}
  .header-inner .share-button span{display:none}
}
@media(max-width:360px){
  .header-inner{width:calc(100% - 16px);gap:3px}
  .header-inner .brand{font-size:1.12rem;gap:4px}
  .header-inner .brand-symbol{width:24px;height:24px}
  .header-inner .nav-button{padding-inline:4px}
  .header-inner .header-actions{gap:2px}
}
@media(max-width:300px){.header-inner{width:calc(100% - 10px)}.header-inner .brand>span{max-width:6ch;white-space:normal;line-height:.97}.header-inner #nav-favorites svg{display:none}}

.selection-bar:has(#delete-selected:not([hidden])){width:max-content;gap:12px}
@media(max-width:1000px){
  .selection-bar:has(#delete-selected:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px 8px;width:min(445px,calc(100% - 16px));max-width:none;min-width:0;padding:8px 10px;bottom:max(8px,env(safe-area-inset-bottom))}
  .selection-bar:has(#delete-selected:not([hidden])) #selected-count{grid-area:1/1}
  .selection-bar:has(#delete-selected:not([hidden])) #select-visible{grid-area:1/2;justify-self:start}
  .selection-bar:has(#delete-selected:not([hidden])) #clear-selection{grid-area:1/3;justify-self:end}
  .selection-bar:has(#delete-selected:not([hidden])) .selection-downloads{grid-area:2/1/3/4}
  .selection-bar:has(#delete-selected:not([hidden])) #move-private{grid-area:3/1}
  .selection-bar:has(#delete-selected:not([hidden])) #delete-selected{grid-area:3/2/4/4}
  .selection-bar:has(#delete-selected:not([hidden])) .button{white-space:normal;line-height:1.2;min-height:36px;padding:5px 7px}
  body:has(.selection-bar:not([hidden]) #delete-selected:not([hidden])){padding-bottom:160px}
  body:has(.selection-bar:not([hidden]) #delete-selected:not([hidden])) .toast{bottom:165px}
}

.share-options{display:flex;gap:4px;padding:3px;margin:10px 0 11px;background:#e8ece3;border:1px solid var(--line);border-radius:7px}
.share-options button{flex:1;padding:7px 9px;border-radius:4px;font-size:.88rem;font-weight:600}
.share-options button[aria-pressed="true"]{background:var(--white);color:var(--pine);box-shadow:0 1px 3px #19352225}
.gallery-actions{flex-wrap:wrap}
@media(max-width:600px){.section-head{flex-wrap:wrap;gap:12px}.viewer-bottom{flex-wrap:wrap}.viewer-bottom .viewer-actions{margin-left:auto}}
@media(max-width:600px){
  .selection-bar:has(#move-private[hidden]):has(#delete-selected[hidden]){display:grid;grid-template-columns:auto 1fr auto;gap:6px 10px;width:min(365px,calc(100% - 16px));padding:8px 10px}
  .selection-bar:has(#move-private[hidden]):has(#delete-selected[hidden]) #select-visible{justify-self:start}
  .selection-bar:has(#move-private[hidden]):has(#delete-selected[hidden]) #clear-selection{grid-area:1/3}
  .selection-bar:has(#move-private[hidden]):has(#delete-selected[hidden]) .selection-downloads{grid-area:2/1/3/4}
  body:has(.selection-bar:not([hidden]) #move-private[hidden]){padding-bottom:108px}
}

.guest-shell :is(.hero,.main-nav,#owner-tools,#share-gallery,.footer-meta){display:none!important}
.guest-shell .header-actions{margin-left:auto}
.guest-shell .collection{min-height:calc(100vh - 158px)}
@media(max-width:700px){.heading-group:has(#share-private:not([hidden])){align-items:flex-start;flex-direction:column;gap:10px}}

@media(min-width:701px) and (max-width:820px){
  .header-inner{width:calc(100% - 32px);gap:14px}
  .header-inner .brand{font-size:1.48rem}
  .header-inner .nav-button{padding-inline:7px}
  .header-actions{gap:6px}
}

.viewer-save-button{background:#efd5a4;color:#23382c;border-color:#efd5a4}
.viewer-save-button:hover{background:#f7e2bc}
.photo-save-dialog{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.photo-save-dialog h2{margin:0}
.photo-save-item{display:flex;align-items:center;gap:12px;margin:17px 0 11px}
#photo-save-thumb{display:block;width:58px;height:53px;object-fit:cover;border-radius:6px;-webkit-touch-callout:none;pointer-events:none}
.photo-save-item>div{min-width:0}
#photo-save-name{display:block;overflow-wrap:anywhere;font-size:.95rem}
#photo-save-meta,#photo-save-position{color:var(--muted);font-size:.82rem}
.photo-save-dialog #photo-save-note{margin:10px 0 14px}
#photo-save-image{display:block;width:100%;height:auto;max-height:42dvh;object-fit:contain;background:#edf0e9;border-radius:6px;margin:0 0 13px;-webkit-touch-callout:default;user-select:auto}
.photo-save-actions{display:flex;flex-wrap:wrap;gap:8px}
.photo-save-actions .button{flex:1 1 auto}
.photo-save-actions .save-image-link{width:100%;padding:7px;color:var(--pine);font-size:.85rem;text-decoration:underline;text-underline-offset:3px}
.photo-save-nav{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:14px;margin-top:8px;border-top:1px solid var(--line)}
.photo-save-nav .button{min-height:35px;font-size:.83rem;padding:6px 8px}
@media(max-width:700px){
  .viewer-bottom:has(#lightbox-save-photo:not([hidden])){align-items:flex-start;flex-wrap:wrap}
  .viewer-actions:has(#lightbox-save-photo:not([hidden])){justify-content:flex-end;flex-wrap:wrap;max-width:100%}
}
@media(max-width:370px){
  .viewer-actions:has(#lightbox-save-photo:not([hidden])) .button{font-size:.79rem;padding:7px;gap:4px}
  .photo-save-dialog{padding:17px}
}

.photo-download.card-mobile-save{width:auto;gap:4px;padding:0 8px;border-radius:18px}
.card-mobile-save .card-download-label{display:inline;font-size:.75rem;font-weight:650}
.is-compact .card-mobile-save{width:32px;padding:0}
.is-compact .card-mobile-save .card-download-label{display:none}
