.album-download-bar{position:static;width:min(100%,820px);margin:0 auto 24px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;background:transparent;color:#edf0e8;border:0;box-shadow:none;text-align:center;box-sizing:border-box}
.album-download-bar[hidden]{display:none!important}
.album-download-bar button{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:0;padding:10px 12px;border:1px solid #9cad91;border-radius:6px;background:transparent;color:inherit;font:600 13px/1.4 Inter,Arial,sans-serif;cursor:pointer}
.album-download-bar button:disabled{opacity:.45;cursor:default}
.album-download-bar button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.album-download-summary{display:none;align-items:center;justify-content:center;gap:12px;font:500 12px/1.4 Inter,Arial,sans-serif}
.album-download-bar [data-bulk-hint]{grid-column:1/-1;margin:0;color:#c1d4b5;font:400 11px/1.5 Inter,Arial,sans-serif}
.album-download-bar [data-bulk-clear]{font-size:11px;border:0;padding:4px;min-height:44px;text-decoration:underline}
.album-download-bar:not(.is-selecting) [data-bulk-selected],.album-download-bar:not(.is-selecting) [data-bulk-all]{display:none}
.album-download-bar.is-selecting [data-bulk-album]{display:none}
.album-download-bar.is-selecting .album-download-summary{display:flex}
.album-share-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.album-share-link{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;text-align:center;font:400 11px/1.5 Inter,Arial,sans-serif}
.album-share-link[hidden]{display:none}
.album-share-link input{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:10px;border:1px solid #9cad91;border-radius:4px;background:#0b100f;color:#edf0e8;font:400 16px/1.4 Inter,Arial,sans-serif;text-align:center}
.portfolio-photo-select{display:none;position:absolute;inset:0;cursor:pointer;background:#0001;z-index:2}
.portfolio-photo-select input{position:absolute;top:8px;left:8px;margin:0;width:44px;height:44px;accent-color:#c1d4b5;cursor:pointer}
.photo-grid.is-selecting .portfolio-photo-select{display:block}
.photo-grid figure.is-selected{outline:3px solid #c1d4b5;outline-offset:-3px}
#album-viewer.has-album-downloads>.gallery-toolbar{display:none}
#album-viewer.has-album-downloads .photo-select{display:none}
#album-viewer.has-album-downloads .is-selecting .photo-select{display:block;inset:0;z-index:4;width:auto;height:auto;cursor:pointer;background:#0001}
#album-viewer.has-album-downloads .photo-select input{position:absolute;top:8px;left:8px;width:44px;height:44px;margin:0;accent-color:#c1d4b5;cursor:pointer}
@media(max-width:640px){.album-download-bar{padding-inline:10px;gap:6px}.album-download-bar button{font-size:12px}.album-share-actions{gap:6px}.album-download-summary{gap:4px;font-size:11px}.album-download-bar [data-bulk-clear]{font-size:10px}}
@media(min-width:641px) and (max-height:500px){
 .album-download-bar{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 12px max(8px,env(safe-area-inset-bottom))}
 .album-share-actions{grid-column:3/-1;grid-row:1;gap:6px}
 .album-download-bar.is-selecting .album-download-summary{grid-column:1;grid-row:1}
 .album-download-bar.is-selecting [data-bulk-mode]{grid-column:2;grid-row:1}
 .album-download-bar.is-selecting [data-bulk-selected]{grid-column:3;grid-row:1}
 .album-download-bar.is-selecting [data-bulk-all]{grid-column:4;grid-row:1}
 .album-download-bar.is-selecting .album-share-actions{grid-row:2}
 .album-download-bar.is-selecting [data-bulk-hint]{grid-column:1/3;grid-row:2;align-self:center}
 .album-share-link{grid-row:3}
}
/* Photo actions live inside the fullscreen shell so phones can share without exiting. */
.photo-share-tools{display:none}
.gallery-viewer.is-expanded .viewer-bottom>.photo-share-tools,.viewer-shell:fullscreen .photo-share-tools,#photo-dialog.is-expanded .dialog-actions>.photo-share-tools{display:grid!important;flex:2 1 0;min-width:0;gap:6px;color:#edf0e8;text-align:center}
.photo-share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.gallery-viewer .photo-share-tools button,#photo-dialog .photo-share-tools button{min-height:48px;min-width:0;padding:10px 12px;border:1px solid #9cad91;border-radius:999px;background:transparent;color:#edf0e8;font:600 12px/1.4 Inter,Arial,sans-serif;cursor:pointer}
.photo-share-tools button:focus-visible,.photo-share-link input:focus-visible{outline:2px solid #fff;outline-offset:2px}
.photo-share-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;font:400 11px/1.5 Inter,Arial,sans-serif}
.photo-share-link input{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:3px;padding:9px;border:1px solid #9cad91;border-radius:4px;background:#0b100f;color:#edf0e8;font:400 16px/1.4 Inter,Arial,sans-serif}
.photo-share-status{margin:0;color:#c1d4b5;font:400 11px/1.4 Inter,Arial,sans-serif}
.photo-share-link[hidden],.photo-share-status[hidden]{display:none!important}
.gallery-viewer.is-expanded .viewer-bottom,.gallery-viewer .viewer-shell:fullscreen .viewer-bottom{gap:6px;align-items:center}
#photo-dialog.is-expanded .dialog-actions,#photo-viewer-shell:fullscreen .dialog-actions{gap:6px;align-items:center;flex-wrap:nowrap}
.gallery-viewer.is-expanded [data-original],.gallery-viewer .viewer-shell:fullscreen [data-original],#photo-dialog.is-expanded #download-current,#photo-viewer-shell:fullscreen #download-current{flex:1 1 0;min-width:0;max-width:none;width:auto;padding-inline:10px}
/* Fullscreen controls stay outside the image and use transparent, floating pills. */
.gallery-viewer.is-expanded :is(button,[data-original]),#photo-dialog.is-expanded :is(button,#download-current){background:transparent!important;color:#edf0e8!important;border-radius:999px!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}
.gallery-viewer.is-expanded [data-original],#photo-dialog.is-expanded #download-current{border:1px solid #9cad91}
.gallery-viewer.is-expanded .viewer-top,#photo-dialog.is-expanded .dialog-bar{background:transparent!important;border-bottom:0}
.gallery-viewer.is-expanded .viewer-bottom,#photo-dialog.is-expanded .dialog-controls{background:transparent!important;border-top:0;min-height:0;padding:8px 12px max(8px,env(safe-area-inset-bottom))}
@media(max-width:640px){
 .gallery-viewer.is-expanded .viewer-bottom,#photo-dialog.is-expanded .dialog-actions{flex-wrap:nowrap!important;gap:6px}
 .gallery-viewer.is-expanded [data-original],#photo-dialog.is-expanded #download-current{flex:1 1 0;min-width:0;max-width:none;width:auto;padding:10px 6px;font-size:11px;line-height:1.4}
 .gallery-viewer.is-expanded .viewer-bottom>.photo-share-tools,#photo-dialog.is-expanded .dialog-actions>.photo-share-tools{flex:2 1 0;width:auto;min-width:0}
 .gallery-viewer.is-expanded .photo-share-tools button,#photo-dialog.is-expanded .photo-share-tools button{padding:10px 6px;font-size:11px}
}
/* Page actions float visually and scroll naturally with the page. */
.photographer-share{max-width:540px;margin:20px auto 0}
.photographer-share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.photographer-share button{min-height:48px;min-width:0;padding:10px 12px;border:1px solid #71836b;border-radius:6px;background:transparent;color:#edf0e8;font:600 12px/1.4 Inter,Arial,sans-serif;cursor:pointer;overflow-wrap:anywhere}
.photographer-link-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;margin-top:10px;font:400 11px/1.5 Inter,Arial,sans-serif}
.photographer-link-panel input{display:block;width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #9cad91;border-radius:4px;background:#0b100f;color:#edf0e8;font:400 16px/1.4 Inter,Arial,sans-serif;text-align:center}
.photographer-share-status{margin:8px 0 0;font:400 11px/1.5 Inter,Arial,sans-serif;color:#c1d4b5}
[data-photographer-controls] [hidden]{display:none!important}
[data-photographer-controls] button:focus-visible,[data-photographer-controls] input:focus-visible{outline:2px solid #c1d4b5;outline-offset:3px}
/* Whole-gallery sharing is available at entry and while browsing the archive. */
.gallery-page-sharing,.gallery-entry-sharing{display:none}
.gallery-page-sharing.is-ready,.gallery-entry-sharing.is-ready{display:block}
.gallery-page-sharing{position:static;max-width:560px;margin:0 auto 24px;padding:0;background:transparent;border:0;text-align:center}
.gallery-share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
[data-gallery-controls] button{min-height:48px;min-width:0;padding:10px 12px;border:1px solid #9cad91;border-radius:999px;background:transparent;color:#edf0e8;font:600 12px/1.4 Inter,Arial,sans-serif;cursor:pointer}
[data-gallery-controls] button:focus-visible,[data-gallery-controls] input:focus-visible{outline:2px solid #c1d4b5;outline-offset:3px}
.gallery-page-link-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;margin-top:8px;font:400 11px/1.4 Inter,Arial,sans-serif}
.gallery-page-link-panel input{display:block;box-sizing:border-box;width:100%;min-width:0;padding:9px;border:1px solid #9cad91;border-radius:4px;background:#0b100f;color:#edf0e8;font:400 16px/1.4 Inter,Arial,sans-serif;text-align:center}
.gallery-page-share-status{margin:6px 0 0;color:#c1d4b5;font:400 11px/1.4 Inter,Arial,sans-serif;text-align:center}
[data-gallery-controls] [hidden]{display:none!important}
#gallery-entry .gallery-entry-bottom{display:block;z-index:3;text-align:center;letter-spacing:normal}
#gallery-entry .gallery-entry-bottom>span{display:block;margin:8px auto 0;max-width:none;font-size:9px;letter-spacing:.09em}
.gallery-entry-sharing{max-width:440px;margin:auto}
@media(max-width:640px){.gallery-page-sharing{margin-inline:5%;padding:0}.gallery-share-buttons{gap:6px}[data-gallery-controls] button{padding:10px 8px;font-size:11px}}
@media(max-height:500px){#gallery-entry .gallery-entry-center{padding:64px 5% 100px}#gallery-entry .gallery-entry-center .eyebrow,#gallery-entry .gallery-entry-center .gallery-entry-note{display:none}#gallery-entry .gallery-entry-center :is(h1,h2){font-size:44px;margin-bottom:10px}#gallery-entry .gallery-entry-center>p:not(.eyebrow){font-size:12px;margin-bottom:12px}#gallery-entry .gallery-entry-button{min-height:48px}#gallery-entry .gallery-entry-bottom{bottom:8px}#gallery-entry .gallery-entry-bottom>span{display:none}}

@media(max-width:640px){.unified-gallery #gallery-entry .gallery-entry-center :is(h1,h2){white-space:normal;max-width:100%;font-size:clamp(34px,9vw,54px);line-height:1.08}}
.album-download-bar button,.photographer-share button{border-radius:999px;box-shadow:0 3px 12px #0002}
[data-gallery-controls] button{box-shadow:0 3px 12px #0002}
.profile-gallery-sharing{max-width:540px;margin:12px auto 0}
.portfolio-tabs a.button{min-height:48px!important;border-radius:999px}
@media(max-width:640px){.profile-gallery-sharing{margin:12px auto 0}.photographer-share button{padding:10px 7px;font-size:11px}}

/* A single photo tap clears fullscreen chrome; a second tap restores it. */
.gallery-viewer.is-expanded.controls-hidden :is(.viewer-top,.viewer-bottom,.viewer-gesture-hint),#photo-dialog.is-expanded.controls-hidden :is(.dialog-bar,.dialog-controls,.zoom-hint,.photo-nav-arrow){display:none!important}
.gallery-viewer.is-expanded.controls-hidden .viewer-stage,#photo-dialog.is-expanded.controls-hidden #photo-stage{padding:0;outline:0}
