/* Separate gallery dimensions for phones, tablets and desktops. */
body .cmm-immersive .cmm-product-gallery{display:grid;grid-template-rows:minmax(0,1fr) auto;align-self:start;background:#fff;overflow:hidden}
body .cmm-immersive .cmm-gallery-main{grid-row:1;width:100%;height:100%;min-height:0;aspect-ratio:auto;background:#fafaf8}
body .cmm-immersive .cmm-gallery-main img{width:100%;height:100%;object-fit:contain;object-position:center}
body .cmm-immersive .cmm-gallery-thumbnails{position:static;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:8px;width:100%;height:auto;max-height:none;margin:0;padding:10px 12px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;background:#fff}
body .cmm-immersive .cmm-gallery-thumbnail{width:60px;height:60px;flex:0 0 60px;box-sizing:border-box;box-shadow:none;border:1px solid #dce2dc;border-radius:6px;overflow:hidden}
body .cmm-immersive .cmm-gallery-thumbnail img{width:100%;height:100%;object-fit:contain;object-position:center}
body .cmm-immersive .cmm-gallery-thumbnail[aria-current=true]{border:2px solid #244632;box-shadow:none}
body .cmm-immersive .cmm-gallery-counter{left:16px;bottom:94px;pointer-events:none}
body .cmm-immersive .cmm-gallery-arrow{top:calc((100% - 80px)/2);transform:translateY(-50%)}
@media(min-width:1000px){
 body .cmm-immersive .cmm-product-gallery{height:clamp(380px,var(--cmm-chenille-height,65svh),720px);min-height:0;max-height:none;aspect-ratio:auto}
}
@media(min-width:761px) and (max-width:999px){
 body .cmm-immersive .cmm-product-gallery{height:clamp(360px,65svh,620px);min-height:0;max-height:none;aspect-ratio:auto}
}
@media(max-width:760px){
 body .cmm-immersive .cmm-product-gallery{height:auto;min-height:0;max-height:none;aspect-ratio:auto;grid-template-rows:auto auto}
 body .cmm-immersive .cmm-gallery-main{height:auto;aspect-ratio:1;max-height:520px}
 body .cmm-immersive .cmm-gallery-thumbnails{padding:8px 12px;gap:8px}
 body .cmm-immersive .cmm-gallery-thumbnail{width:48px;height:48px;flex-basis:48px}
 body .cmm-immersive .cmm-gallery-counter{left:12px;bottom:76px;font-size:12px;padding:5px 9px}
}
