.dd-photo-slider { --slider-gap:16px; --slider-columns:5; padding:36px 6% 28px; min-width:0; color:#161713; }
.dd-photo-slider__track { overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#b59a61 #e9e4d9; overscroll-behavior-x:contain; border-radius:8px; }
.dd-photo-slider__list { display:flex; gap:var(--slider-gap); list-style:none; padding:0; margin:0; }
.dd-photo-slider__slide { flex:0 0 calc((100% - (var(--slider-columns) - 1)*var(--slider-gap))/var(--slider-columns)); min-width:0; margin:0; aspect-ratio:3/4; scroll-snap-align:start; overflow:hidden; border-radius:8px; background:#eee9df; }
.dd-photo-slider__slide img { display:block; width:100%; height:100%; object-fit:contain; }
.dd-photo-slider__controls:not([hidden]) { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:20px; }
.dd-photo-slider__controls button { display:grid; place-items:center; width:48px; height:48px; padding:11px; border:1px solid #b59a61; border-radius:50%; background:#161713; color:#e8d7ad; cursor:pointer; transition:background .15s; }
.dd-photo-slider__controls button:hover:not(:disabled) { background:#65522d; }
.dd-photo-slider__controls button:disabled { background:transparent; color:#777165; border-color:#d8d1c1; cursor:default; }
.dd-photo-slider__controls svg { width:24px; height:24px; }
.dd-photo-slider__position { font:12px Arial,sans-serif; letter-spacing:1px; min-width:65px; text-align:center; }
.dd-photo-slider button:focus-visible,.dd-photo-slider__track:focus-visible { outline:3px solid #947b46; outline-offset:4px; }
.dd-photo-slider--ready .dd-photo-slider__track { scrollbar-width:none; }
.dd-photo-slider--ready .dd-photo-slider__track::-webkit-scrollbar { display:none; }
@media(max-width:1199.98px) { .dd-photo-slider { --slider-columns:3; } }
@media(max-width:767.98px) { .dd-photo-slider { --slider-columns:2; --slider-gap:12px; padding-top:24px; } }
@media(max-width:519.98px) { .dd-photo-slider { --slider-columns:1; } }
@media(prefers-reduced-motion:reduce) { .dd-photo-slider * { scroll-behavior:auto!important; transition:none!important; } }

/* Native dialog keeps keyboard focus inside the enlarged photo. */
.dd-photo-slider__open { display:block; width:100%; height:100%; cursor:zoom-in; }
.dd-photo-slider__open:focus-visible { outline:3px solid #947b46; outline-offset:-4px; }
.dd-photo-viewer { box-sizing:border-box; width:fit-content; max-width:96vw; max-height:96vh; max-height:96dvh; padding:16px; border:1px solid #b59a61; border-radius:10px; background:#161713; color:white; overflow:auto; }
.dd-photo-viewer::backdrop { background:rgb(0 0 0 / 85%); }
.dd-photo-viewer__bar { display:flex; justify-content:flex-start; margin-bottom:12px; }
.dd-photo-viewer__back { display:inline-flex; align-items:center; min-height:48px; padding:12px 20px; border:1px solid #e8d7ad; border-radius:5px; background:#e8d7ad; color:#161713; font:600 16px Arial,sans-serif; cursor:pointer; }
.dd-photo-viewer__back:hover { background:#fff3d8; }
.dd-photo-viewer__back:focus-visible { outline:3px solid white; outline-offset:3px; }
.dd-photo-viewer__image { display:block; width:auto; height:auto; max-width:calc(96vw - 34px); max-height:calc(96vh - 110px); max-height:calc(96dvh - 110px); object-fit:contain; margin:auto; }
html.dd-photo-viewer-open { overflow:hidden; }
@media(max-width:520px) { .dd-photo-viewer { padding:12px; } .dd-photo-viewer__image { max-width:calc(96vw - 26px); max-height:calc(96dvh - 100px); } }

/* Editor-only tools: share a JPEG file, save it, or copy an editable caption. */
.dd-photo-viewer--social { width:min(760px,96vw); }
.dd-photo-viewer--social .dd-photo-viewer__image { max-height:52vh; max-height:52dvh; }
.dd-photo-social { margin-top:16px; max-width:100%; }
.dd-photo-social__label { display:block; font:600 14px Arial,sans-serif; color:#fff3d8; }
.dd-photo-social__caption { display:block; box-sizing:border-box; width:100%; margin:8px 0 12px; padding:10px 12px; border:1px solid #b59a61; border-radius:5px; background:#fffdf8; color:#161713; font:14px/1.5 Arial,sans-serif; resize:vertical; }
.dd-photo-social__actions { display:flex; gap:10px; flex-wrap:wrap; }
.dd-photo-social__actions button { flex:1 1 140px; min-height:46px; padding:12px; border:1px solid #e8d7ad; border-radius:5px; background:#e8d7ad; color:#161713; font:600 14px Arial,sans-serif; cursor:pointer; }
.dd-photo-social__actions button:hover:not(:disabled) { background:#fff3d8; }
.dd-photo-social__actions button:disabled { background:#47483f; border-color:#747368; color:#dedbd0; cursor:wait; }
.dd-photo-social__actions button:focus-visible,.dd-photo-social__caption:focus-visible { outline:3px solid white; outline-offset:3px; }
.dd-photo-social p.dd-photo-social__status { margin:12px 0 0; font:13px/1.5 Arial,sans-serif; color:#fff3d8; }
.dd-photo-viewer--social .dd-photo-viewer__bar { position:sticky; top:0; padding-bottom:8px; background:#161713; z-index:1; }

.dd-photo-social__actions a.dd-photo-social__facebook { box-sizing:border-box; display:flex; flex:1 0 100%; align-items:center; justify-content:center; min-height:48px; padding:12px; border:1px solid #1877f2; border-radius:5px; background:#164a92; color:white; text-decoration:none; font:600 15px Arial,sans-serif; text-align:center; }
.dd-photo-social__actions a.dd-photo-social__facebook:hover { background:#0f386f; }
.dd-photo-social__actions a.dd-photo-social__facebook:focus-visible { outline:3px solid white; outline-offset:3px; }
