/* Basic's measured media frame and six-thumbnail rhythm, shared without price or body rules. */
.lw-gallery {--lw-gallery-gap:10px;display:block;position:relative;width:100%;max-width:min(540px,calc(100vw - 32px));min-width:0;margin:0;}
.lw-gallery,.lw-gallery * {box-sizing:border-box;}
.lw-gallery .lw-gallery__stage {position:relative;width:100%;height:auto;aspect-ratio:1;background:#f6f6f6;border:0;border-radius:14px;overflow:hidden;touch-action:pan-y;}
.lw-gallery [data-lw-gallery-slide] {position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;}
.lw-gallery [data-lw-gallery-slide]>button:not(.f2u-intro-play),
.lw-gallery [data-lw-gallery-slide]>picture {display:block;position:static;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;transform:none;}
.lw-gallery [data-lw-gallery-slide] :is(img,video),.lw-gallery .lw-gallery__thumbs img {display:block;width:100%;height:100%;max-width:100%!important;max-height:100%;margin:0;padding:0;object-fit:contain;object-position:center;transform:none;}
.lw-gallery [data-lw-gallery-prev],.lw-gallery [data-lw-gallery-next] {position:absolute;top:50%;z-index:5;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#111;box-shadow:none;font-size:30px;line-height:1;transform:translateY(-50%);cursor:pointer;}
.lw-gallery [data-lw-gallery-prev] {left:16px;right:auto;}
.lw-gallery [data-lw-gallery-next] {right:16px;left:auto;}
.lw-gallery .lw-gallery__thumbs {position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:var(--lw-gallery-gap);width:100%;height:auto;max-height:none;margin:14px 0 0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;}
.lw-gallery .lw-gallery__thumbs::-webkit-scrollbar {display:none;}
.lw-gallery [data-lw-gallery-thumb] {display:block;flex:0 0 calc((100% - 5 * var(--lw-gallery-gap)) / 6);width:calc((100% - 5 * var(--lw-gallery-gap)) / 6);height:auto;min-width:44px;min-height:44px;aspect-ratio:1;padding:0;margin:0;border:1px solid transparent;border-radius:8px;background:#f6f6f6;box-shadow:none;overflow:hidden;cursor:pointer;}
.lw-gallery [data-lw-gallery-thumb][aria-pressed="true"] {border-color:#111;}
.lw-gallery button:focus-visible,.lw-gallery:focus-visible {outline:3px solid #1688e8;outline-offset:-3px;}
.lw-gallery [hidden] {display:none!important;}
/* Only migrated purchase areas opt into the reference's two-column geometry. */
body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout {display:grid;grid-template-columns:minmax(0,540px) minmax(0,1fr);align-items:start;gap:32px;width:100%;max-width:980px;margin-inline:auto;}
body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout>.lw-gallery-column {width:100%;max-width:540px;min-width:0;margin:0;padding:0;}
body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout>* {min-width:0;}
body :is(#main,#main-content,main) .gallery-purchase-container {width:min(980px,calc(100% - 48px));max-width:980px;margin-inline:auto;padding-inline:0;}
@media(max-width:1024px) {body :is(#main,#main-content,main) .gallery-purchase-container {width:min(980px,calc(100% - 40px));}}
@media(max-width:900px) {
 body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:28px;}
 body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout>.lw-gallery-column,
 body :is(#main,#main-content,main) .lw-gallery-layout.lw-gallery-layout>.lw-gallery {margin-inline:auto;}
}
@media(max-width:767px) {.lw-gallery {--lw-gallery-gap:6px;}}
@media(max-width:600px) {body :is(#main,#main-content,main) .gallery-purchase-container {width:calc(100% - 32px);}}
