/* All product screens: inline slideshow plus a persistent enlarged viewer. */
.av-gallery{margin:26px 0 34px;min-width:0;border:1px solid #b9ddea;border-radius:20px;padding:22px;background:linear-gradient(135deg,#f2fcff,#fff 54%,#fbf4ff);box-shadow:0 16px 44px rgba(16,67,95,.06)}
.av-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.av-gallery-kicker{font-size:11px;letter-spacing:.13em;font-weight:800;color:#08708f}
.av-gallery-heading h3{margin:5px 0 7px;color:#123c55;font-size:clamp(22px,2.1vw,30px);line-height:1.2}
.av-gallery-heading p{font-size:14px;margin:0;color:#587081}
.av-gallery-select-label{display:flex;flex-direction:column;gap:7px;flex-shrink:0;font-size:12px;font-weight:700;color:#355368}
.av-gallery-select-label select{width:230px;max-width:100%;border:1px solid #adcedd;background:#fff;color:#143e56;border-radius:10px;padding:11px 34px 11px 12px;font:600 14px/1.3 inherit;min-height:44px}
.av-gallery-frame{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:clamp(290px,43vw,510px);overflow:hidden;border-radius:13px;border:1px solid #c6dce4;background:repeating-linear-gradient(45deg,#eaf1f5,#eaf1f5 12px,#edf4f7 12px,#edf4f7 24px);touch-action:pan-y;isolation:isolate}
.av-gallery-frame>.av-gallery-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff;user-select:none;-webkit-user-drag:none}
.av-gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:58px;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:12px;background:rgba(10,49,73,.9);color:white;font:600 26px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 4px 14px #15394d30}
.av-gallery-arrow-prev{left:10px}.av-gallery-arrow-next{right:10px}
.av-gallery-arrow:hover{background:#078aac}.av-gallery-arrow:active{transform:translateY(-50%) scale(.96)}
.av-gallery-expand{position:absolute;right:12px;bottom:12px;border:1px solid #b5d0df;border-radius:8px;padding:10px 12px;min-height:40px;background:rgba(255,255,255,.96);color:#164764;font:700 12px/1.2 inherit;cursor:pointer;box-shadow:0 4px 15px #13314b15}
.av-gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px}
.av-gallery-position{font-size:12px;font-weight:800;letter-spacing:.025em;color:#0c819a}
.av-gallery-caption h4{margin:5px 0 0;color:#173e54;font-size:18px;line-height:1.25}
.av-gallery-play{min-height:44px;white-space:nowrap;border:0;border-radius:10px;padding:12px 18px;background:#15506c;color:white;font:700 13px/1.2 inherit;cursor:pointer}
.av-gallery-play[aria-pressed="true"]{background:#9e366e}
.av-gallery-hint{font-size:12px;color:#5b7180;margin:10px 0 14px}
.av-gallery-thumbnails{position:relative;display:flex;gap:9px;max-width:100%;overflow-x:auto;padding:4px 3px 12px;scrollbar-color:#8abbcf #edf4f7;scrollbar-width:thin;overscroll-behavior-x:contain}
.av-gallery-thumbnails button{position:relative;flex:0 0 106px;height:68px;border:2px solid #b8cbd6;border-radius:7px;background:#fff;padding:2px;cursor:pointer;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.av-gallery-thumbnails button img{width:100%;height:100%;display:block;object-fit:contain;background:#fff}
.av-gallery-thumbnails button span{position:absolute;bottom:0;right:0;min-width:23px;border-top-left-radius:5px;padding:2px 5px;font-size:10px;font-weight:800;background:#26445b;color:white}
.av-gallery-thumbnails button.is-selected{border-color:#009cb8;box-shadow:0 0 0 2px #79d5e9}
.av-gallery-thumbnails button.is-selected span{background:#0084a0}
.av-gallery-note{margin:8px 0 0;color:#587080;font-size:11px;line-height:1.5}
.av-gallery :focus-visible,.av-gallery-modal :focus-visible{outline:3px solid #d845a4;outline-offset:3px}
.av-gallery-image-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:20px;background:#fff2f5;color:#92234c;border-radius:10px;text-align:center;font-size:14px;width:min(90%,360px)}
.av-gallery-image-error[hidden]{display:none}.av-gallery .has-error,.av-gallery-modal .has-error{opacity:0}
.av-gallery-modal{width:min(1460px,96vw);max-width:none;max-height:96dvh;padding:18px 20px;border:1px solid #96bdce;border-radius:18px;color:#153c55;background:#f6fafc;box-shadow:0 24px 100px #082b4966;overflow:auto}
.av-gallery-modal::backdrop{background:rgba(7,30,46,.85)}
.av-gallery-modal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}
.av-gallery-modal-heading h2{margin:5px 0 0;font-size:clamp(18px,2vw,26px);letter-spacing:0;line-height:1.2;color:#153c55}
.av-gallery-close{flex-shrink:0;border:1px solid #b0c8d6;background:#fff;border-radius:9px;min-height:42px;padding:10px 14px;color:#143d54;font-weight:700;cursor:pointer}
.av-gallery-modal-frame{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:calc(94dvh - 200px);min-height:190px;overflow:hidden;border:1px solid #c1d7e1;border-radius:9px;background:#e9f0f5;touch-action:pan-y}
.av-gallery-modal-frame img{width:100%;height:100%;display:block;object-fit:contain;user-select:none;-webkit-user-drag:none}
.av-gallery-modal-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;max-width:640px;margin:14px auto 10px}
.av-gallery-modal-controls button{border:0;border-radius:9px;min-height:46px;padding:11px 15px;background:#164d6c;color:white;font:700 14px/1.2 inherit;cursor:pointer}
.av-gallery-modal-controls button:hover{background:#078cac}.av-gallery-modal-controls [aria-pressed="true"]{background:#9e366e}
.av-gallery-modal-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:11px;color:#577083}
.av-gallery-modal-foot a{color:#08768f;text-decoration:underline;font-weight:700;white-space:nowrap}
@media(max-width:700px){
  .av-gallery{padding:14px;border-radius:14px;margin-top:20px}
  .av-gallery-heading{align-items:stretch;flex-direction:column;gap:14px}
  .av-gallery-select-label{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.av-gallery-select-label select{width:210px}
  .av-gallery-heading h3{font-size:24px}.av-gallery-frame{height:320px}.av-gallery-arrow{width:35px;height:46px;font-size:23px;border-radius:8px}.av-gallery-arrow-prev{left:4px}.av-gallery-arrow-next{right:4px}
  .av-gallery-caption{align-items:flex-start}.av-gallery-caption h4{font-size:16px}.av-gallery-play{font-size:11px;padding:10px 11px}
  .av-gallery-thumbnails button{flex-basis:90px;height:60px}.av-gallery-expand{font-size:11px;right:7px;bottom:7px;padding:9px}
  .av-gallery-modal{padding:12px;width:96vw;border-radius:12px}.av-gallery-modal-heading{gap:12px}.av-gallery-close{font-size:12px;padding:9px}.av-gallery-modal-frame{height:calc(92dvh - 220px)}
  .av-gallery-modal-controls{gap:7px}.av-gallery-modal-controls button{padding:9px 5px;font-size:12px}.av-gallery-modal-foot{flex-direction:column;gap:5px;text-align:center}
}
@media(max-width:380px){.av-gallery-caption{flex-direction:column;gap:10px}.av-gallery-frame{height:280px}.av-gallery-select-label{flex-direction:column;align-items:stretch}.av-gallery-select-label select{width:100%}}
@media(prefers-reduced-motion:reduce){.av-gallery-thumbnails button{transition:none}.av-gallery-thumbnails{scroll-behavior:auto}}
