/* Six complete slots: five gallery images plus the video in slot three. */
@media(min-width:901px){
 .ap-gallery [data-gallery-version="2"] .ap-thumbnail-viewport{grid-column:1;grid-row:1;position:relative;width:94px;height:644px;align-self:start;min-width:0}
 .ap-gallery [data-gallery-version="2"] .animetal-r2-thumbnails{width:94px;height:644px;max-height:644px;overflow-y:auto;overflow-x:hidden;gap:16px;margin:0;overscroll-behavior:contain;scroll-snap-type:y proximity}
 .ap-gallery [data-gallery-version="2"] .ap-media-thumb{width:94px;height:94px;min-height:94px;flex:0 0 94px;box-sizing:border-box;scroll-snap-align:start}
 .ap-gallery [data-gallery-version="2"] .ap-thumb-arrow{position:absolute;left:0;z-index:3;display:grid;place-items:center;width:94px;height:28px;padding:0;border:0;color:#d0d4ff;font-size:20px;cursor:pointer;background:linear-gradient(transparent,#01041ae6);line-height:1}
 .ap-gallery [data-gallery-version="2"] .ap-thumb-next{bottom:0}
 .ap-gallery [data-gallery-version="2"] .ap-thumb-prev{top:0;background:linear-gradient(#01041ae6,transparent)}
 .ap-gallery [data-gallery-version="2"] .ap-thumb-arrow[hidden]{display:none}
}
@media(max-width:900px){
 .ap-gallery [data-gallery-version="2"] .ap-thumbnail-viewport{grid-column:1;grid-row:2;min-width:0;width:100%}
 .ap-gallery [data-gallery-version="2"] .ap-thumb-arrow{display:none!important}
}

/* Follow the source product column: the whole gallery sticks below the header,
   then leaves with the product section. The rail does not set the media height. */
@media(min-width:901px){
 .ap-product-page>.ap-gallery{position:sticky;top:var(--ap-gallery-sticky-top,211px);align-self:start;min-width:0}
 .ap-product-page>.ap-product-details{position:static}
 .ap-gallery [data-gallery-version="2"]{position:relative}
 .ap-gallery [data-gallery-version="2"] .ap-thumbnail-viewport{position:absolute;left:0;top:0}
}
