
/* Guest controls remain below the image in every gallery design. */
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo{overflow:visible!important;align-self:start}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo:has(.photo-menu[open]){z-index:20}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions{
 position:relative!important;inset:auto!important;transform:none!important;
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-around!important;
 width:100%!important;min-height:60px;box-sizing:border-box;margin:0!important;padding:8px!important;
 gap:4px!important;background:var(--surface,#fff)!important;color:var(--ink,#242127)!important;border:0!important;
 transition:none!important;z-index:2;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions>:is(a,button,label,details){
 flex:1 1 0!important;min-width:0!important;max-width:none!important;width:auto!important;
 min-height:44px;height:auto;margin:0!important;padding:0!important;border:0!important;
 background:transparent!important;color:var(--ink,#242127)!important;box-shadow:none!important;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions>:is(a,button,label){
 display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:4px!important;
 font:500 12px/1.3 Arial,sans-serif!important;text-decoration:none;border-radius:5px;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions>:is(a,button,label)>span{
 display:block!important;position:static!important;width:auto!important;height:auto!important;
 clip-path:none!important;overflow:visible!important;white-space:nowrap;font-size:12px!important;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions .icon{width:20px!important;height:20px!important;margin:0!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-select>.icon{order:-1}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-select input{
 position:absolute!important;width:1px!important;height:1px!important;opacity:0;clip-path:inset(50%);overflow:hidden;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-select:has(input:checked){color:var(--accent,#b31e57)!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-select:has(input:checked)>.icon{fill:#b31e5720}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-select:focus-within{outline:2px solid var(--accent,#b31e57);outline-offset:2px}
/* The action bar is the containing block, rather than the full photograph. */
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions>.photo-menu{position:static!important;text-align:center}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu>summary{
 display:flex!important;align-items:center;justify-content:center;list-style:none;cursor:pointer;
 width:100%!important;min-width:44px!important;min-height:44px!important;height:44px;
 padding:0!important;margin:0!important;border:0;background:transparent!important;color:var(--ink,#242127)!important;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu>summary::-webkit-details-marker{display:none}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel{
 position:absolute!important;inset:calc(100% + 4px) 8px auto auto!important;
 width:min(230px,calc(100% - 16px))!important;box-sizing:border-box;padding:6px!important;
 background:var(--surface,#fff)!important;color:var(--ink,#242127)!important;border:1px solid var(--line,#e6dfe3);border-radius:10px;
 box-shadow:0 5px 22px #0003;z-index:30;text-align:left;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu:not([open])>.photo-menu-panel{display:none!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu[open]>.photo-menu-panel{display:block!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel form{margin:0;width:100%}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button{
 position:static!important;display:block!important;width:100%!important;min-width:0!important;min-height:44px;
 height:auto!important;margin:0!important;padding:10px!important;border:0!important;border-radius:5px;
 background:var(--surface,#fff)!important;color:var(--ink,#242127)!important;font:500 13px/1.4 Arial,sans-serif!important;
 white-space:normal;text-align:left;box-shadow:none!important;overflow-wrap:anywhere;
}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button:is(:hover,:focus-visible){background:var(--ui-hover,#f8edf2)!important}
@media(max-width:600px){
 html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important;padding:4px!important}
 html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos .photo-actions>:is(a,button,label)>span{font-size:11px!important}
}
@media(min-width:361px) and (max-width:600px){
 html body.brand-ui.gallery-page.concept-gallery:is(.theme-editoriallight,.theme-photofocus):not(.workspace-ui) #album-photos .photo-actions{display:flex!important;min-height:60px}
}
body:has(#upload[action*="7fvdkrze-uf3w50-n7g4an3j" i]){--accent:#bd824c;--pink:#bd824c;--ui-link:#edc399;--page:#110d10;--fbh-paper:#110d10;--surface:#21181b;--participation-paper:#21181b;--participation-accent:#bd824c;--ui-bg:#21181b;--hero:#21181b}

/* Menu scrollbar is hidden; touch and keyboard scrolling remain available. */
#guest-menu{scrollbar-width:none!important}#guest-menu::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* Album titles stay readable on dark galleries. */
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(h1,h2,h3,.album-section-title,.collection-heading){color:#f3dfc4!important}

/* MOBILE_PHOTO_ROW_V1 */
@media(max-width:600px){
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos article.photo .photo-actions.photo-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:2px!important;padding:2px 4px!important;min-height:48px!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos article.photo .photo-actions.photo-actions>:is(a,button,label,details){flex:1 1 0!important;min-width:0!important;width:auto!important;min-height:44px!important;margin:0!important;padding:0!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos article.photo .photo-actions.photo-actions>:is(a,button,label){gap:2px!important;font-size:11px!important;line-height:1.2!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos article.photo .photo-actions.photo-actions>:is(a,button,label)>span{font-size:11px!important;white-space:nowrap!important}
html body.brand-ui.gallery-page:not(.workspace-ui) #album-photos article.photo .photo-actions.photo-actions .icon{width:18px!important;height:18px!important}
}

/* MOBILE_SINGLE_PHOTO_V1 */
@media(max-width:600px){
html body.brand-ui.gallery-page #album-photos .photos.photos{
display:grid!important;
grid-template-columns:minmax(0,1fr)!important;
columns:auto!important;
}
html body.brand-ui.gallery-page #album-photos .photos.photos>.photo{
width:100%!important;min-width:0!important;
max-width:100%!important;box-sizing:border-box;
grid-column:1/-1!important;
}
}

/* gallery-admin-photo-popover */
#album-photos article.photo:has(.admin-photo-options[open]){position:relative;z-index:35;overflow:visible!important}
#album-photos .photo-actions:has(.admin-photo-options){position:relative!important}
#album-photos .photo-actions>.admin-photo-options{position:static!important}
#album-photos .admin-photo-options:not([open])>.admin-photo-panel{display:none!important}
#album-photos .admin-photo-options[open]>.admin-photo-panel{
 position:absolute!important;inset:calc(100% + 4px) 6px auto auto!important;z-index:40;
 display:grid!important;gap:6px;width:min(238px,calc(100% - 12px))!important;box-sizing:border-box;
 padding:8px;background:#fff;color:#2a2229;border:1px solid #e4dae2;border-radius:9px;
 box-shadow:0 6px 22px #27152326;text-align:left;
}
#album-photos .admin-photo-panel :is(form,p){width:100%!important;max-width:none!important;margin:0!important}
#album-photos .admin-photo-panel button{
 position:static!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;
 min-height:36px!important;height:auto!important;margin:3px 0!important;padding:6px 9px!important;
 white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;text-align:left!important;
}
#album-photos .photo-actions:has(.admin-photo-options)>.photo-select{font-size:0!important;white-space:nowrap!important}
#album-photos .photo-actions:has(.admin-photo-options)>.photo-select input{margin:0}
#lightbox #viewer-image{transform-origin:center center;user-select:none;-webkit-user-drag:none}
#lightbox #viewer-stage{position:relative}
#lightbox #viewer-stage.zoom-double{touch-action:none}
#lightbox :is(#viewer-zoom-out,#viewer-fit){font-variant-numeric:tabular-nums;flex-shrink:0}
#lightbox #viewer-zoom-out{font-size:18px}

/* gallery-photo-loupe-ui */
#lightbox #viewer-stage.photo-mode{
 position:relative;display:block!important;padding:0!important;border:0!important;
 place-items:normal!important;place-content:normal!important;text-align:left;
 overflow:hidden!important;overscroll-behavior:contain;overflow-anchor:none;touch-action:pan-x pan-y!important;
}
#lightbox #viewer-stage.photo-mode.photo-enlarged{overflow:auto!important}
#lightbox #viewer-photo-plane{position:relative}
#lightbox #viewer-stage:not(.photo-mode) #viewer-photo-plane{display:none}
#lightbox #viewer-stage #viewer-photo-plane #viewer-image{
 position:absolute!important;display:block;max-width:none!important;max-height:none!important;
 min-width:0!important;min-height:0!important;margin:0!important;transform:none!important;
 touch-action:auto!important;cursor:zoom-in;user-select:none;-webkit-user-drag:none;
}
#lightbox #viewer-stage #viewer-photo-plane #viewer-image[hidden]{display:none!important}
#lightbox #viewer-stage.photo-enlarged #viewer-photo-plane #viewer-image{cursor:grab}
#lightbox #viewer-stage.photo-dragging #viewer-photo-plane #viewer-image{cursor:grabbing}
#lightbox .viewer-top #viewer-fit{
 width:auto!important;padding:0 10px!important;white-space:nowrap;flex-shrink:0;
}
#lightbox :is(#viewer-fit,#viewer-zoom)[hidden]{display:none!important}

body #album-photos article.photo:has(.admin-photo-options[open]){position:relative;z-index:35;overflow:visible!important}
body #album-photos .photo-actions:has(>.admin-photo-options){
 position:relative!important;display:flex!important;align-items:center!important;justify-content:space-evenly!important;
 flex-wrap:nowrap!important;gap:2px!important;
}
body #album-photos .photo-actions:has(>.admin-photo-options)>:is(a,button,label,details){
 flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;
}
body #album-photos .photo-actions>.admin-photo-options{position:static!important}
body #album-photos .photo-actions>.admin-photo-options>summary{
 display:grid!important;place-items:center;list-style:none;min-width:0!important;width:100%!important;
 min-height:36px;margin:0!important;padding:0!important;cursor:pointer;font-size:0!important;
}
body #album-photos .admin-photo-options>summary::-webkit-details-marker{display:none}
body #album-photos .admin-photo-options>summary:not(:has(svg))::before{content:"…";font:700 22px/1 Arial,sans-serif}
body #album-photos .photo-actions:has(>.admin-photo-options)>.photo-select{
 display:grid!important;place-items:center;min-height:36px;font-size:0!important;white-space:nowrap!important;cursor:pointer;
}
body #album-photos .photo-actions:has(>.admin-photo-options)>.photo-select input{
 position:static!important;width:16px!important;height:16px!important;margin:0!important;opacity:1!important;clip-path:none!important;
}
body #album-photos .admin-photo-options:not([open])>.admin-photo-panel,
body #album-photos .admin-photo-panel[popover]:not(:popover-open){display:none!important}
body #album-photos .admin-photo-options[open]>.admin-photo-panel{
 position:absolute!important;inset:auto 6px calc(100% + 4px) auto!important;z-index:40;
 display:block!important;width:min(244px,calc(100vw - 16px))!important;max-width:none!important;box-sizing:border-box;
 max-height:min(65dvh,430px);overflow:auto;overscroll-behavior:contain;
 margin:0!important;padding:8px!important;background:#fff!important;color:#2a2229!important;
 border:1px solid #e4dae2;border-radius:10px;box-shadow:0 6px 22px #27152326;text-align:left;
}
body #album-photos .admin-photo-options[open]>.admin-photo-panel[popover]{
 position:fixed!important;inset:var(--photo-menu-top,8px) auto auto var(--photo-menu-left,8px)!important;
}
body #album-photos .admin-photo-panel :is(form,p){
 width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}
body #album-photos .admin-photo-panel p{padding:6px 9px!important;font-size:12px;line-height:1.4}
body #album-photos .admin-photo-panel :is(button,a){
 position:static!important;display:flex!important;align-items:center!important;gap:8px!important;
 width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box;
 min-height:38px!important;height:auto!important;margin:3px 0!important;padding:7px 9px!important;
 white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;text-align:left!important;
}
body #album-photos .admin-photo-panel .icon{width:16px!important;height:16px!important;flex:none;margin:0!important}
body #album-photos .admin-photo-panel [data-photo-menu-close]{display:none!important}
@media(max-width:600px){
 body #album-photos .admin-photo-options[open]>.admin-photo-panel,
 body #album-photos .admin-photo-options[open]>.admin-photo-panel[popover]{
  position:fixed!important;inset:auto 0 0!important;width:100%!important;
  max-height:72dvh;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  border-radius:15px 15px 0 0;
 }
 body #album-photos .admin-photo-panel::backdrop{background:#22141d40}
 body #album-photos .admin-photo-panel [data-photo-menu-close]{display:flex!important;justify-content:flex-end}
}

/* gallery-photo-loupe-controls */
#lightbox #viewer-stage.photo-mode.photo-enlarged{scrollbar-width:none!important}
#lightbox #viewer-stage.photo-mode.photo-enlarged::-webkit-scrollbar{display:none}
#lightbox .viewer-top #viewer-zoom[data-gallery-loupe]{
 display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;
 width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
 box-sizing:border-box;padding:0!important;
}
#lightbox .viewer-top #viewer-zoom[data-gallery-loupe][hidden]{display:none!important}
#lightbox #viewer-zoom[data-gallery-loupe] > :not(.viewer-loupe-icon){display:none!important}
#lightbox #viewer-zoom[data-gallery-loupe] .viewer-loupe-icon{
 display:block!important;width:18px;height:18px;flex:none;
 fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;
}
#lightbox #viewer-zoom[data-enlarged] .viewer-loupe-plus{display:none}

/* gallery-photo-loupe-single-icon */
#lightbox #viewer-stage.photo-mode.photo-enlarged{scrollbar-width:none!important}
#lightbox #viewer-stage.photo-mode.photo-enlarged::-webkit-scrollbar{display:none}
#lightbox .viewer-top #viewer-loupe-toggle{
 display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;gap:0!important;
 width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
 box-sizing:border-box;padding:0!important;
}
#lightbox .viewer-top #viewer-loupe-toggle[hidden]{display:none!important}
#lightbox .viewer-top #viewer-loupe-toggle::before,
#lightbox .viewer-top #viewer-loupe-toggle::after{content:none!important;display:none!important}
#lightbox #viewer-loupe-toggle > :not(svg.viewer-loupe-icon){display:none!important}
#lightbox #viewer-loupe-toggle > svg.viewer-loupe-icon{
 display:block!important;width:18px;height:18px;flex:none;
 fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;
}
#lightbox #viewer-loupe-toggle[data-enlarged] .viewer-loupe-plus{display:none}

/* Keep the shop drawer controls separate from the gallery theme's button sizes. */
#commerce-product-drawer .commerce-drawer-grid article > a[data-drawer-product],
#commerce-product-drawer footer > a{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:auto!important;max-width:100%!important;
 min-height:36px!important;height:auto!important;padding:6px 14px!important;
 font-size:13px!important;line-height:1.25!important;text-align:center;
}
#commerce-product-drawer footer{text-align:center}
#commerce-product-drawer #commerce-drawer-close{
 display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;
 flex:0 0 44px;width:44px!important;min-width:44px!important;
 height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
 border-radius:50%!important;font:500 28px/1 system-ui,sans-serif!important;cursor:pointer;
}
#commerce-product-drawer #commerce-drawer-close:hover{background:#f5edf1!important}
@media(max-width:600px){
 #commerce-product-drawer .commerce-drawer-grid article > a[data-drawer-product],
 #commerce-product-drawer footer > a{min-height:40px!important}
}
