/* Branded frame around the managed image; keep the original image ratio. */
#dewford-home-popup{width:min(480px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-top:4px solid var(--id-color,#52196d);border-radius:0;background:#fff;color:#292929;box-shadow:0 24px 100px rgb(25 12 33 / 32%);overflow:auto;font-family:var(--dewford-body-font-family,Pretendard,sans-serif);}
#dewford-home-popup::backdrop{background:rgb(26 16 32 / 64%);backdrop-filter:blur(4px);}
#dewford-home-popup .dewford-popup-image{background:#f5f5f5;}
#dewford-home-popup .dewford-popup-image img{display:block;width:100%;height:auto;max-height:calc(100dvh - 112px);object-fit:contain;}
#dewford-home-popup .dewford-popup-image>a{display:block;}
#dewford-home-popup .dewford-popup-slider-controls{display:flex;align-items:center;justify-content:space-between;padding:4px 16px;background:var(--id-color,#52196d);}
#dewford-home-popup .dewford-popup-dots{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;}
html body.dewford-home #dewford-home-popup .dewford-popup-slider-controls>button{font-size:24px!important;min-width:28px;justify-content:center;}
html body.dewford-home #dewford-home-popup .dewford-popup-dots button{font-size:9px!important;opacity:.5;padding:5px 3px;}
html body.dewford-home #dewford-home-popup .dewford-popup-dots button[aria-current="true"]{opacity:0;}
#dewford-home-popup.has-slides .dewford-popup-image img{max-height:calc(100dvh - 152px);}
#dewford-home-popup .dewford-popup-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;border-top:0;background:var(--id-color,#52196d);color:#fff;}
#dewford-home-popup label{display:flex;align-items:center;gap:9px;margin:0;font:400 12px/1.5 var(--dewford-body-font-family,Pretendard,sans-serif);color:#fff;cursor:pointer;}
#dewford-home-popup input{width:16px;height:16px;margin:0;accent-color:#fff;}
html body.dewford-home #dewford-home-popup button{display:flex;align-items:center;gap:10px;padding:3px 0;border:0!important;border-radius:0;background:transparent!important;color:#fff!important;font:500 12px/1.5 var(--dewford-body-font-family,Pretendard,sans-serif)!important;cursor:pointer;transition:none!important;box-shadow:none!important;transform:none!important;}
html body.dewford-home #dewford-home-popup button:is(:hover,:focus,:active){background:transparent!important;color:#fff!important;border:0!important;box-shadow:none!important;transform:none!important;}
html body.dewford-home #dewford-home-popup button::before,html body.dewford-home #dewford-home-popup button::after{display:none!important;}
#dewford-home-popup .dewford-popup-actions :is(label,button) span{color:#fff!important;font-size:12px!important;line-height:1.5!important;}
#dewford-home-popup button span[aria-hidden]{font-size:20px!important;line-height:1!important;}
#dewford-home-popup :is(button,input,a):focus-visible{outline:2px solid var(--id-color,#52196d);outline-offset:4px;}
#dewford-home-popup .dewford-popup-actions :is(button,input):focus-visible{outline-color:#fff;}
@media(max-width:480px){#dewford-home-popup .dewford-popup-actions{padding:8px 12px;gap:10px;}#dewford-home-popup label{font-size:11px;}html body.dewford-home #dewford-home-popup button{padding:3px 0;gap:10px;}}
@media(prefers-reduced-motion:reduce){html body.dewford-home #dewford-home-popup button{transition:none;}}
/* Keep images mounted while the track moves, with controls floating over the photo. */
#dewford-home-popup .dewford-popup-image{position:relative;overflow:hidden;}
#dewford-home-popup .dewford-popup-track{display:flex;align-items:center;width:100%;will-change:transform;}
#dewford-home-popup .dewford-popup-track.is-animating{transition:transform 450ms cubic-bezier(.25,.7,.25,1);}
#dewford-home-popup .dewford-popup-slide{flex:0 0 100%;min-width:0;}
#dewford-home-popup .dewford-popup-slide>a{display:block;}
#dewford-home-popup.has-slides .dewford-popup-image img{max-height:calc(100dvh - 112px);}
#dewford-home-popup .dewford-popup-slider-controls{position:absolute;inset:auto 0 12px;z-index:2;padding:4px 16px;background:transparent;pointer-events:none;}
#dewford-home-popup .dewford-popup-slider-controls button{pointer-events:auto;text-shadow:none;}
html body.dewford-home #dewford-home-popup .dewford-popup-dots button{opacity:.5;min-width:24px;min-height:32px;justify-content:center;}
html body.dewford-home #dewford-home-popup .dewford-popup-dots button[aria-current="true"]{opacity:0;}
@media(prefers-reduced-motion:reduce){#dewford-home-popup .dewford-popup-track.is-animating{transition:none;}}

/* Brand-colored pagination without shadows, including hover/focus states. */
html body.dewford-home #dewford-home-popup .dewford-popup-slider-controls button,
html body.dewford-home #dewford-home-popup .dewford-popup-slider-controls button:is(:hover,:focus,:active) {color:var(--id-color,#52196d)!important;box-shadow:none!important;text-shadow:none;}
