.endure-photos{display:block;overflow:hidden;background:var(--ep-background,#f5f2ed);color:var(--ep-ink,#111);padding-block:var(--ep-top,30px) var(--ep-bottom,40px)}
.endure-photos__container{max-width:1440px;margin-inline:auto;padding-inline:20px}
.endure-photos__heading{font-size:var(--ep-heading,28px);font-weight:700;line-height:1.35;text-align:center;margin:0 0 10px;direction:rtl;color:var(--ep-ink,#111)}
.endure-photos__heading span{color:var(--ep-accent,#2f5da8)}
.endure-photos__sub{margin:0 0 24px;text-align:center;font-size:16px;line-height:1.6;direction:rtl;opacity:.8}
.endure-photos__viewport{position:relative;display:flex;gap:var(--ep-gap,15px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;direction:ltr;scrollbar-width:thin;scrollbar-color:#b5b0a6 transparent;padding:4px 2px 12px;cursor:grab;-webkit-overflow-scrolling:touch}
.endure-photos__viewport.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.endure-photos__card{display:block;flex:0 0 var(--ep-width,280px);width:var(--ep-width,280px);overflow:hidden;border-radius:var(--ep-radius,12px);scroll-snap-align:start;scroll-snap-stop:normal;background:#fff;text-decoration:none;outline-offset:2px;-webkit-user-drag:none}
.endure-photos__card img{display:block;width:100%;height:var(--ep-height,320px);max-height:none;object-fit:contain;object-position:center;border-radius:inherit;pointer-events:none;user-select:none;-webkit-user-drag:none}
.endure-photos__controls{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:16px}
.endure-photos__counter{font:inherit;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;min-width:90px;text-align:center;direction:ltr;unicode-bidi:isolate}
.endure-photos__arrow,.endure-photos__close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #d8d2c8;border-radius:50%;color:#111;background:#fff;cursor:pointer;touch-action:manipulation}
.endure-photos__arrow svg,.endure-photos__close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.endure-photos__arrow:disabled{opacity:.35;cursor:default}
.endure-photos__arrow:not(:disabled):hover,.endure-photos__close:hover{background:#f5f2ed;border-color:#5c5346}
.endure-photos :focus-visible{outline:2px solid var(--ep-accent,#2f5da8);outline-offset:3px}
.endure-photos__dialog{box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px 24px 24px;border:0;background:rgba(17,17,17,.98);color:#fff;overflow:hidden}
.endure-photos__dialog[open]{display:flex;flex-direction:column;gap:12px}
.endure-photos__dialog::backdrop{background:rgba(0,0,0,.85)}
.endure-photos__modal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:1200px;margin-inline:auto;flex:none}
.endure-photos__stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:20px;width:100%;max-width:1200px;min-height:0;flex:1;margin-inline:auto}
.endure-photos__full{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;object-position:center}
html.endure-photo-modal-open{overflow:hidden}
@media(max-width:749px){
 .endure-photos{padding-block:var(--ep-mobile-top,25px) var(--ep-mobile-bottom,30px)}
 .endure-photos__container{padding-inline:12px}
 .endure-photos__heading{font-size:var(--ep-mobile-heading,24px)}
 .endure-photos__sub{font-size:14px;margin-bottom:18px}
 .endure-photos__card{flex-basis:var(--ep-mobile-width,220px);width:var(--ep-mobile-width,220px)}
 .endure-photos__card img{height:var(--ep-mobile-height,280px)}
 .endure-photos__dialog{padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}
 .endure-photos__stage{position:relative;display:flex;gap:0;justify-content:center}
 .endure-photos__stage .endure-photos__arrow{position:absolute;z-index:1;bottom:12px}
 .endure-photos__stage [data-photo-modal-prev]{left:8px}
 .endure-photos__stage [data-photo-modal-next]{right:8px}
}
@media(prefers-reduced-motion:reduce){.endure-photos__viewport{scroll-behavior:auto}}
