/* Model-specific media album — never a WooCommerce/product card list. */
.tpa-evv-vehicle .tpa-evx-gallery-heading{display:flex;gap:20px;align-items:end;justify-content:space-between}
.tpa-evx-gallery-all,.tpa-evx-gallery-footer button{border:1px solid #b9e1ef;background:#f1fbfe;color:#06789d;border-radius:11px;padding:12px 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.tpa-evx-gallery-all:hover,.tpa-evx-gallery-footer button:hover{background:#e3f6fb;border-color:#36b0c4}
.tpa-evx-gallery-preview{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:14px;align-items:stretch}
.tpa-evx-gallery-preview.only-feature{grid-template-columns:minmax(0,1fr)}
.tpa-evx-gallery-hero,.tpa-evx-gallery-mini{position:relative;display:block;overflow:hidden;min-width:0;border:1px solid #d7eaf3;border-radius:14px;background:#f1f9fc;padding:0;text-align:left;cursor:zoom-in;font:inherit;color:#123c57}
.tpa-evx-gallery-hero{min-height:310px;aspect-ratio:16/10}
.tpa-evx-gallery-hero>img{width:100%;height:100%;object-fit:contain;display:block}
.tpa-evx-gallery-hero-meta{display:grid;gap:4px;position:absolute;bottom:0;left:0;right:0;padding:30px 17px 14px;background:linear-gradient(transparent,#082d49d9);color:#fff}
.tpa-evx-gallery-hero-meta strong{font-size:15px;line-height:1.4;max-width:65ch}
.tpa-evx-gallery-hero-meta small{font-size:12px;color:#d4f9ff}
.tpa-evx-gallery-chip{display:inline-block;justify-self:start;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:700;color:#fff;background:#008eac}
.tpa-evx-gallery-minis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.tpa-evx-gallery-mini{aspect-ratio:4/3;background:#eaf6fb}
.tpa-evx-gallery-mini img{display:block;width:100%;height:100%;object-fit:contain}
.tpa-evx-gallery-mini:hover,.tpa-evx-gallery-hero:hover{border-color:#17a6c1;box-shadow:0 5px 20px #00628d22}
.tpa-evx-gallery-play,.tpa-evx-gallery-mini-play{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;background:#0088b9e8;color:#fff;font-size:24px;width:65px;height:65px}
.tpa-evx-gallery-mini-play{width:36px;height:36px;font-size:15px}
.tpa-evx-gallery-demo{position:absolute;top:8px;left:8px;border-radius:5px;padding:3px 6px;background:#086686;color:#fff;font-size:11px;font-weight:700}
.tpa-evx-gallery-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:80px;background:linear-gradient(125deg,#c9f0fc,#eafaff);font-size:33px;color:#057bb1}
.tpa-evx-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:13px;font-size:13px;color:#647f92}
.tpa-evx-gallery-footer button{padding:9px 12px}
.tpa-evx-gallery-dialog{border:0;border-radius:18px;padding:0;width:min(1050px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 28px);box-shadow:0 30px 90px #00182a88;background:#fff;color:#133852;overflow:hidden}
.tpa-evx-gallery-dialog::backdrop{background:rgba(2,19,35,.85);backdrop-filter:blur(3px)}
.tpa-evx-gallery-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);min-width:0;padding:15px 19px}
.tpa-evx-gallery-modal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 12px;color:#0d3556}
.tpa-evx-gallery-modal-header strong{font-size:17px}
.tpa-evx-gallery-modal-header span{font-size:13px;color:#5d7b90;margin-left:12px}
.tpa-evx-gallery-close,.tpa-evx-gallery-arrow{display:grid;place-items:center;flex:none;cursor:pointer;color:#0b567f;background:#e7f6fc;border:1px solid #c1e2f1;border-radius:10px;min-width:42px;min-height:42px;font-size:18px}
.tpa-evx-gallery-stage-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center;min-height:0}
.tpa-evx-gallery-arrow{font-size:32px;line-height:1}
.tpa-evx-gallery-stage{display:grid;place-items:center;min-width:0;height:min(57dvh,590px);background:#edf7fb;border-radius:12px;overflow:hidden;touch-action:pan-y}
.tpa-evx-gallery-stage img,.tpa-evx-gallery-stage video,.tpa-evx-gallery-stage iframe{width:100%;height:100%;object-fit:contain;border:0;display:block}
.tpa-evx-gallery-detail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 54px 10px;color:#173b59}
.tpa-evx-gallery-detail>span{font-size:12px;border-radius:6px;background:#def4f9;color:#006f8c;padding:5px 8px;font-weight:700}
.tpa-evx-gallery-detail>strong{font-size:14px;line-height:1.5}
.tpa-evx-gallery-strip{display:flex;gap:8px;max-width:100%;padding:6px 2px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-inline:contain}
.tpa-evx-gallery-thumb{position:relative;flex:0 0 90px;height:62px;border:2px solid transparent;background:#e8f5fb;border-radius:8px;overflow:hidden;padding:0;cursor:pointer}
.tpa-evx-gallery-thumb.is-current{border-color:#0086b7}
.tpa-evx-gallery-thumb>img{display:block;width:100%;height:100%;object-fit:contain}
.tpa-evx-gallery-thumb-video{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;width:26px;height:26px;display:grid;place-items:center;background:#0090b7e0;color:#fff;font-size:12px}
.tpa-evx-gallery-thumb>span:not(.tpa-evx-gallery-thumb-video){display:grid;place-items:center;height:100%;color:#067e9a}
body.tpa-evx-gallery-open{overflow:hidden}
@media(max-width:900px){.tpa-evx-gallery-preview{grid-template-columns:minmax(0,1fr)}.tpa-evx-gallery-hero{min-height:0;aspect-ratio:16/9}.tpa-evx-gallery-minis{grid-template-rows:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .tpa-evv-vehicle .tpa-evx-gallery-heading{align-items:stretch;flex-direction:column;gap:12px}
 .tpa-evx-gallery-all{width:100%;white-space:normal}
 .tpa-evx-gallery-minis{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .tpa-evx-gallery-mini{border-radius:8px}
 .tpa-evx-gallery-hero-meta{padding:20px 10px 9px}
 .tpa-evx-gallery-hero-meta strong{font-size:13px}
 .tpa-evx-gallery-footer{flex-direction:column;align-items:stretch;gap:8px}
 .tpa-evx-gallery-footer button{width:100%}
 .tpa-evx-gallery-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}
 .tpa-evx-gallery-modal{max-height:100dvh;height:100dvh;padding:14px 10px calc(12px + env(safe-area-inset-bottom))}
 .tpa-evx-gallery-stage-row{grid-template-columns:32px minmax(0,1fr) 32px;gap:5px}
 .tpa-evx-gallery-arrow{min-width:32px;min-height:40px;font-size:24px}
 .tpa-evx-gallery-stage{height:55dvh}
 .tpa-evx-gallery-detail{padding:12px 8px;font-size:13px}
 .tpa-evx-gallery-thumb{flex-basis:77px;height:54px}
}
@media(prefers-reduced-motion:reduce){.tpa-evx-gallery-preview button{transition:none}}
