#image-report-dialog{box-sizing:border-box;width:min(calc(100vw - 24px),480px);max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:18px;color:#25342f;background:#fff;overflow:hidden;font:14px/1.45 system-ui,sans-serif}
#image-report-dialog::backdrop{background:#0009}
#image-report-form{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);margin:0;min-height:0}
#image-report-title{flex:none;margin:0;padding:18px 20px 10px;font:700 21px/1.2 system-ui,sans-serif;color:#25342f}
#image-report-dialog .image-report-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 14px}
#image-report-dialog p{font-size:14px;line-height:1.45;margin:8px 0 12px}
#image-report-dialog .field{display:grid;gap:5px;margin:12px 0}
#image-report-dialog .field>span{font-size:13px;font-weight:600}
#image-report-dialog select,#image-report-dialog textarea,#image-report-dialog input{width:100%;min-height:44px;box-sizing:border-box;border:1px solid #d5dcd7;border-radius:10px;background:#fff;color:#25342f;font:16px/1.35 system-ui,sans-serif;padding:9px 11px}
#image-report-dialog textarea{min-height:72px;resize:vertical}
#image-report-dialog .image-report-privacy{font-size:12px;line-height:1.4;margin-top:10px}
#image-report-dialog .image-report-privacy summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:6px 0}
#image-report-dialog .image-report-privacy p,#image-report-dialog .image-report-privacy a{font-size:12px;line-height:1.4}
#image-report-dialog .image-report-footer{flex:none;padding:12px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e5e9e6;background:#fff}
#image-report-message:empty{display:none}
#image-report-dialog .image-report-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#image-report-dialog .image-report-actions button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--theme-primary,#245e50);border-radius:999px;background:var(--theme-primary,#245e50);color:#fff;font:600 14px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:none}
#image-report-dialog .image-report-actions [data-report-close]{background:#fff;color:var(--theme-primary,#245e50)}
#image-report-dialog .image-report-actions button:focus-visible{outline:2px solid #245e50;outline-offset:3px}
#image-report-dialog .image-report-actions button:disabled{opacity:.6;cursor:wait}
.social-status:empty{display:none}.social-status{position:fixed;z-index:1000;bottom:20px;left:16px;right:16px;max-width:480px;margin:auto;background:#fff;color:#25342f;padding:16px;border-radius:12px;box-shadow:0 4px 24px #0003}

.media-card .image-social-actions{position:absolute;bottom:10px;right:10px;z-index:6;display:flex;pointer-events:auto}
.image-like-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:7px 12px;border:1px solid #ffffff40;border-radius:999px;background:#17201cb3;color:white;font:500 13px system-ui;cursor:pointer;backdrop-filter:blur(8px)}
.image-like-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.image-like-button.has-likes svg{color:#ffabc3;fill:currentColor}
.gallery-grid.is-list-view .media-card .image-social-actions{right:5px;bottom:5px}
.gallery-grid.is-list-view .media-card .image-like-button{min-width:32px;min-height:32px;gap:3px;padding:4px 7px;font-size:11px}
.gallery-grid.is-list-view .media-card .image-like-button svg{width:15px;height:15px}
.image-like-button:focus-visible,.image-viewer-menu summary:focus-visible{outline:2px solid white;outline-offset:3px}
.image-viewer-category{position:fixed;top:max(18px,env(safe-area-inset-top));left:18px;z-index:5;display:inline-flex;align-items:center;min-height:44px;max-width:min(46vw,420px);padding:8px 14px;border:1px solid color-mix(in srgb,var(--theme-accent,#d7aa62) 72%,#fff);border-radius:999px;color:var(--theme-text,#17211e);background:var(--theme-accent,#d7aa62);box-shadow:0 8px 24px #0003;font:800 12px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;backdrop-filter:blur(8px)}
.image-viewer-category[hidden]{display:none!important}
.image-viewer-actions{position:fixed;top:max(18px,env(safe-area-inset-top));right:76px;z-index:5;display:flex;align-items:center;gap:10px}
.image-viewer-actions[hidden]{display:none}
.image-viewer-actions .image-like-button{background:#ffffff12;border-color:#ffffff25}
/* Single-photo download sits alongside likes and reporting in the viewer.
   Keep it visible and finger-sized on mobile, but never display for videos. */
.image-viewer-download{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:9px;border:1px solid #ffffff25;border-radius:50%;color:#fff;background:#ffffff12;cursor:pointer;touch-action:manipulation}
.image-viewer-download[hidden]{display:none!important}
.image-viewer-download svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.image-viewer-download:hover{background:#ffffff26}
.image-viewer-download:focus-visible{outline:2px solid #fff;outline-offset:3px}
.image-viewer-menu{position:relative;color:white}
.image-viewer-menu summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;border-radius:50%;background:#ffffff12}
.image-viewer-menu summary::-webkit-details-marker{display:none}.image-viewer-menu summary svg{width:24px;height:24px;fill:currentColor}
.image-viewer-menu>div{position:absolute;right:0;top:52px;min-width:160px;padding:6px;border:1px solid #ffffff25;border-radius:12px;background:#20332b;box-shadow:0 8px 30px #0005}
.image-viewer-menu button{width:100%;min-height:44px;padding:10px 14px;background:none;border:0;text-align:left;color:white;font:14px system-ui;cursor:pointer;border-radius:7px}
.image-viewer-menu button:hover,.image-viewer-menu button:focus-visible{background:#ffffff18}
.lightbox .lightbox-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){
 .image-viewer-category{top:max(18px,env(safe-area-inset-top));left:14px;min-height:40px;max-width:calc(100vw - 150px);padding:7px 11px;font-size:11px}
 .lightbox.open{padding:76px 10px 74px}
 .lightbox .lightbox-content,.lightbox .lightbox-content img,.lightbox .lightbox-content video{max-height:calc(100dvh - 150px)}
 .lightbox .lightbox-nav{top:auto;bottom:max(14px,env(safe-area-inset-bottom));width:44px;height:44px;transform:none;background:transparent;border:1px solid #ffffff30;border-radius:50%}
 .lightbox .lightbox-prev{left:calc(50% - 112px);right:auto}.lightbox .lightbox-next{right:calc(50% - 112px);left:auto}
 .lightbox .lightbox-count{bottom:max(12px,calc(env(safe-area-inset-bottom) + 4px));background:transparent;font-size:12px;letter-spacing:.08em}
 .lightbox .lightbox-close{top:max(18px,env(safe-area-inset-top));right:18px;width:44px;height:44px;background:#ffffff12}
}
/* Edge-to-edge viewer; touch swipe and keyboard arrows navigate photographs. */
.lightbox.open{inset:0;z-index:1000;padding:0;background:#080b09}
.lightbox .lightbox-content{display:grid;place-items:center;width:100vw;height:100dvh;max-width:none;max-height:none}
.lightbox .lightbox-content img,.lightbox .lightbox-content video{display:block;width:100%;height:100%;max-width:100vw;max-height:100dvh;object-fit:contain;border-radius:0}
.lightbox .lightbox-nav{display:none}
.lightbox .lightbox-count{pointer-events:none;text-shadow:0 1px 5px #000;background:#0005}

@media(min-width:701px){.lightbox .lightbox-nav{display:grid;place-items:center;z-index:6;top:50%;bottom:auto;transform:translateY(-50%);width:52px;height:52px;background:#17201cb3;border:1px solid #ffffff80;box-shadow:0 3px 16px #0005}.lightbox .lightbox-prev{left:20px;right:auto}.lightbox .lightbox-next{right:20px;left:auto}.lightbox .lightbox-nav:hover{background:#17201cee}.lightbox .lightbox-nav:focus-visible{outline:3px solid white;outline-offset:4px}}


/* Theme report-image and viewer action surfaces with the active gallery palette. */
#image-report-dialog{
  color:var(--theme-text,#25342f);
  background:var(--theme-surface,#fff);
  border:1px solid var(--theme-border,#d5dcd7);
}
#image-report-title{color:var(--theme-text,#25342f)}
#image-report-dialog p,
#image-report-dialog .image-report-privacy,
#image-report-dialog .image-report-privacy p,
#image-report-dialog .image-report-privacy a{color:var(--theme-muted,#68766f)}
#image-report-dialog select,
#image-report-dialog textarea,
#image-report-dialog input{
  color:var(--theme-control-text,var(--theme-text,#25342f));
  background:var(--theme-control-background,var(--theme-surface,#fff));
  border-color:var(--theme-border,#d5dcd7);
}
#image-report-dialog .image-report-footer{
  border-color:var(--theme-border,#e5e9e6);
  background:var(--theme-surface,#fff);
}
#image-report-dialog .image-report-actions [data-report-close]{
  color:var(--theme-primary,#245e50);
  background:var(--theme-control-background,var(--theme-surface,#fff));
  border-color:var(--theme-border,#d5dcd7);
}
.social-status{color:var(--theme-text,#25342f);background:var(--theme-surface,#fff);border:1px solid var(--theme-border,#d5dcd7)}
.image-viewer-menu>div{
  color:var(--theme-button-text,#fff);
  background:var(--theme-primary-dark,var(--theme-primary,#20332b));
  border-color:color-mix(in srgb,var(--theme-primary,#20332b) 55%,#fff);
}
.image-viewer-menu button{color:var(--theme-button-text,#fff)}
.image-viewer-menu button:hover,.image-viewer-menu button:focus-visible{background:color-mix(in srgb,var(--theme-accent,#fff) 20%,transparent)}
