/* AME 5.1: exactly three portrait images per complete carousel slide. */
.ame48-stories .ame48-carousel{position:relative;min-width:0}
.ame48-slide-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y;max-width:100%}
.ame48-slide-track::-webkit-scrollbar{display:none}
.ame48-slide{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.ame48-slide .ame43-gallery-track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:unset!important;gap:clamp(10px,1.5vw,20px)!important;overflow:visible!important;scroll-snap-type:none!important;min-width:0}
.ame48-slide .ame43-gallery-card{grid-row:auto!important;grid-column:auto!important;width:100%!important;height:auto!important;aspect-ratio:4/5!important;flex:none!important;min-width:0;min-height:0;border-radius:clamp(10px,1vw,17px);overflow:hidden}
.ame48-slide .ame43-gallery-card img{object-fit:cover;width:100%;height:100%}
.ame48-slide .ame48-card:not([role="button"]){cursor:default}
.ame48-slide .ame48-card:not([role="button"]):after{display:none}
.ame48-slide .ame48-card:not([role="button"]):hover img{transform:none}
.ame48-carousel-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:25px;min-height:48px}
.ame48-carousel-controls .ame43-gallery-arrow{border:1px solid #B6CAC5;color:#102B2C;background:#fff;display:flex;width:46px;height:46px;flex:0 0 46px}
.ame48-carousel-controls .ame43-gallery-arrow:hover{background:#102B2C;color:#fff;border-color:#102B2C}
.ame48-carousel-controls .ame43-gallery-arrow:focus-visible,.ame48-dot:focus-visible{outline:3px solid #8A651C;outline-offset:3px}
.ame48-dots{display:flex;align-items:center;justify-content:center;gap:9px}
.ame48-dot{display:block;border:0;border-radius:99px;width:9px;height:9px;background:#C2D0CD;padding:0;cursor:pointer;transition:background .2s ease,width .2s ease}
.ame48-dot[aria-current="true"]{background:#102F32;width:28px}
.ame48-position{font:700 12px/1.3 Montserrat,Arial,sans-serif;color:#21484A;letter-spacing:.06em;min-width:38px}
/* Dashboard: three independently managed portrait positions. Older 4/5 data stays archived. */
.ame48-admin{margin:0 0 48px;color:#102A2B}
.ame48-admin-head{padding:24px 28px;background:#E9F0ED;border-radius:18px;margin-bottom:25px}
.ame48-admin-head span{font-size:11px;color:#826223;font-weight:800;letter-spacing:.12em}
.ame48-admin-head h2{font-size:clamp(22px,2.5vw,34px);margin:8px 0 10px;color:#102A2B}
.ame48-admin-head p{color:#324D4C;line-height:1.6;max-width:900px;margin:0}
.ame48-admin-slide,.ame48-new-slide{padding:clamp(16px,2vw,28px);margin:0 0 24px;background:#fff;border:1px solid #D7E1DF;border-radius:20px;box-shadow:0 12px 32px rgba(14,42,43,.05)}
.ame48-admin-slide header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.ame48-admin-slide header strong{font-size:20px;line-height:1.3;color:#10292A}
.ame48-status{background:#E9EFED;border-radius:20px;padding:7px 11px;font-size:11px;font-weight:700;color:#214446}
.ame48-admin-slide>.form{display:grid;grid-template-columns:2fr 1fr 1.4fr auto;gap:12px;align-items:end;margin-bottom:25px}
.ame48-admin-slide>.form .field,.ame48-admin-slide>.form .check{margin:0}
.ame48-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ame48-slot{border:1px solid #DBE5E2;background:#F6F8F7;border-radius:13px;padding:13px;min-width:0}
.ame48-slot h4{margin:0 0 10px;font-size:14px;color:#123738}
.ame48-slot-img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;border-radius:8px;margin-bottom:12px;background:#123536}
.ame48-slot .field{margin-bottom:10px}
.ame48-slot .field span{font-size:12px}
.ame48-slot .field input,.ame48-slot .field select{min-width:0;width:100%}
.ame48-slot .field small{line-height:1.5;display:block;overflow-wrap:anywhere}
.ame48-slot form .btn{font-size:12px;white-space:normal;text-align:center;width:100%}
.ame48-danger{margin-top:18px!important;background:#FFF1EF!important;color:#8F271E!important;border:1px solid #CFA5A0!important}
.ame48-new-slide h3{color:#102B2C;margin:0 0 10px}
.ame48-new-slide p{color:#355452}
@media(max-width:1100px){.ame48-admin-slide>.form{grid-template-columns:repeat(2,minmax(0,1fr))}.ame48-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
 .ame48-slide .ame43-gallery-track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:unset!important;gap:8px!important}
 .ame48-slide .ame43-gallery-card{aspect-ratio:4/5!important;height:auto!important}
 .ame48-slide .ame43-gallery-overlay{gap:5px!important;padding:10px!important}
 .ame48-slide .ame43-gallery-overlay strong{font-size:clamp(11px,2.5vw,16px)!important;line-height:1.15}
 .ame48-slide .ame43-gallery-quote{font-size:clamp(10px,2vw,12px)!important;line-height:1.3;-webkit-line-clamp:4}
 .ame48-slide .ame43-gallery-overlay small{font-size:9px}
 .ame48-carousel-controls{gap:17px;margin-top:18px}
}
@media(max-width:600px){
 /* Keep three full portrait photographs in each swipeable slide and maintain a readable tap-overlay. */
 .ame48-slide .ame43-gallery-track{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .ame48-slide .ame43-gallery-card{border-radius:7px;aspect-ratio:3/5!important}
 .ame48-slide .ame43-gallery-overlay{padding:4px!important;gap:3px!important}
 .ame48-slide .ame43-gallery-overlay strong{font-size:clamp(9px,2.8vw,12px)!important}
 .ame48-slide .ame43-gallery-quote{font-size:clamp(8px,2.3vw,10px)!important;-webkit-line-clamp:6}
 .ame48-slide .ame43-gallery-overlay small{font-size:8px!important;letter-spacing:0!important}
 .ame48-carousel-controls .ame43-gallery-arrow{width:40px;height:40px;flex-basis:40px}
 .ame48-slot-grid{grid-template-columns:1fr}
 .ame48-admin-slide>.form{grid-template-columns:1fr}
 .ame48-slot-img{height:220px;width:auto;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.ame48-slide-track{scroll-behavior:auto!important}.ame48-dot{transition:none!important}}
