.ep-photo-open { display:block; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
[data-dish-photos] { cursor:zoom-in; }
.ep-photo-open:focus-visible, .ep-photo-viewer button:focus-visible, .ep-gallery button:focus-visible { outline:3px solid #e5a93d; outline-offset:3px; }
.ep-photo-status { min-height:1.4em; margin:6px 0; font:14px/1.4 system-ui,sans-serif; color:#60564e; }
.ep-photo-retry { min-height:44px; padding:8px 14px; border:1px solid currentColor; border-radius:6px; background:transparent; color:inherit; cursor:pointer; }
.ep-gallery .ep-photo-open { height:300px; background:#f5f3f0; border-radius:10px; }
.ep-gallery .ep-photo-open img { width:100%; height:100%; object-fit:contain; }
.ep-gallery__nav { display:flex; align-items:center; gap:8px; max-width:100%; }
.ep-gallery__arrow { flex:0 0 44px; height:44px; padding:0; border:1px solid #ddd; border-radius:50%; background:#fff; font-size:26px; cursor:pointer; }
.ep-gallery__thumbs { position:relative; display:flex; gap:8px; overflow-x:auto; min-width:0; padding:5px; }
.ep-gallery__thumb { flex:0 0 60px; height:60px; padding:0; border:2px solid transparent; border-radius:5px; overflow:hidden; background:#eee; cursor:pointer; }
.ep-gallery__thumb[aria-pressed="true"] { border-color:#a72e1c; }
.ep-gallery__thumb img { width:100%; height:100%; object-fit:cover; }
.ep-photo-viewer { box-sizing:border-box; width:min(1100px,96vw); max-width:96vw; height:min(850px,94dvh); max-height:94dvh; padding:16px; border:1px solid #555; border-radius:14px; color:#fff; background:#171514; }
.ep-photo-viewer::backdrop { background:rgba(0,0,0,.82); }
.ep-photo-viewer[open] { display:flex; flex-direction:column; gap:10px; }
.ep-photo-viewer__header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ep-photo-viewer__header h2 { margin:0; font:600 18px/1.3 system-ui,sans-serif; color:#fff; }
.ep-photo-viewer button { min-width:44px; min-height:44px; padding:8px 14px; border:1px solid #666; border-radius:8px; color:#fff; background:#282422; cursor:pointer; font:600 16px system-ui,sans-serif; }
.ep-photo-viewer button:disabled { opacity:.4; cursor:default; }
.ep-photo-viewer__stage { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:pan-y pinch-zoom; }
.ep-photo-viewer__stage img { display:block; width:100%; height:100%; object-fit:contain; }
.ep-photo-viewer__stage img[hidden] { display:none; }
.ep-photo-viewer__caption { margin:0; min-height:1.4em; font:15px/1.4 system-ui,sans-serif; text-align:center; }
.ep-photo-viewer__controls { display:flex; align-items:center; justify-content:center; gap:16px; }
.ep-photo-viewer .ep-photo-status { color:#e8d9ca; text-align:center; }
.ep-photo-viewer .ep-photo-retry { align-self:center; }
.ep-photo-viewer__credit { min-height:1.3em; margin:0; text-align:center; font:13px/1.3 system-ui,sans-serif; }
.ep-photo-viewer__credit a { color:#f7c98c; }
.ep-photo-viewer__thumbs { position:relative; display:flex; flex:0 0 86px; gap:8px; overflow-x:auto; overflow-y:hidden; padding:4px; box-sizing:border-box; }
.ep-photo-viewer button.ep-photo-viewer__thumb { flex:0 0 60px; height:60px; padding:0; overflow:hidden; border:2px solid transparent; }
.ep-photo-viewer__thumb img { width:100%; height:100%; object-fit:cover; }
.ep-photo-viewer button.ep-photo-viewer__thumb[aria-pressed="true"] { border-color:#f7c98c; }
.ep-photo-retry[hidden] { display:none; }
@media(max-width:600px) {
    .ep-photo-viewer { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; padding:12px; }
    .ep-gallery .ep-photo-open { height:260px; }
}
