#gallery .section-header{margin:0 0 66px!important}
#gallery{padding:70px 0 60px;overflow:hidden}
.result-arc{max-width:1280px;margin:auto;position:relative}
.result-stage{height:440px;position:relative;perspective:1100px;touch-action:pan-y;isolation:isolate}
.result-card{position:absolute;left:50%;top:95px;width:270px;height:330px;padding:0;border:2px solid #FFF8F2;border-radius:16px;overflow:hidden;background:#fff9f5;cursor:pointer;box-shadow:0 16px 30px -16px rgba(48,20,66,.35);transform:translateX(-50%);transition:transform .65s cubic-bezier(.22,.68,.2,1),filter .65s,opacity .65s;will-change:transform}
.result-card img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.result-card:focus-visible,.result-control:focus-visible{outline:3px solid #894cf9;outline-offset:5px}
.result-footer{display:flex;align-items:center;justify-content:center;gap:28px;position:relative;z-index:20;margin-top:14px}
.result-label{min-width:240px;text-align:center;color:#301442;font-family:Montserrat,sans-serif}
.result-label strong{display:block;font-size:18px;font-weight:700}.result-count{display:block;margin-top:8px;font-size:12px;letter-spacing:2px;color:#756579}
.result-control{width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(48,20,66,.12);border-radius:50%;background:#fff9f5;color:#301442;font-size:25px;cursor:pointer;transition:background .2s,transform .2s}.result-control:hover{background:#e8ddf7;transform:translateY(-2px)}
@media(max-width:600px){#gallery{padding:44px 0}.result-stage{height:325px;perspective:800px}.result-card{width:210px;height:260px;top:48px;border-radius:13px}.result-footer{gap:12px;margin-top:8px}.result-label{min-width:0;width:215px}.result-label strong{font-size:15px}.result-control{flex-shrink:0;width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.result-card,.result-control{transition:none}}

#gallery>.container{max-width:1360px}
/* Phones: centered slide instead of overlapping 3D cards. */
@media(max-width:768px){
#gallery .result-stage{height:320px;perspective:none}
#gallery .result-card{width:min(300px,80%);height:300px;top:10px;border-radius:16px}
#gallery .section-header{margin-bottom:32px!important}
}
@media(max-width:768px){
#gallery{padding-top:0!important;padding-bottom:0!important}
}
