/* v0.12.3 — product photography only. Text, prices, buttons and grid columns stay as-is.
   The extra specificity is deliberate: legacy Semac/Orchid image rules use !important.
   No rules here target category icons, logos, banners, payment icons or PDF content. */
body.semac-theme.semac-photos-v123 .semac-product-photo[data-semac-photo]{
    display:block;position:relative;box-sizing:border-box;flex:0 0 auto;
    overflow:hidden;background:#fff;isolation:isolate;border:0;padding:0;
    --semac-photo-scale:1;--semac-photo-x:0%;--semac-photo-y:0%;
}
body.semac-theme.semac-photos-v123 .semac-product-photo--card[data-semac-photo]{
    width:calc(100% + var(--semac-photo-outset,0px));
    margin:0 calc(var(--semac-photo-outset,0px) / -2) 7px;
    aspect-ratio:1 / 1.08;max-height:330px;border-radius:10px;
}
body.semac-theme.semac-photos-v123 .semac-product-photo[data-semac-photo] picture{
    display:block;width:100%;height:100%;margin:0;padding:0;max-width:none;
}
body.semac-theme.semac-photos-v123 .semac-product-photo[data-semac-photo] img.semac-product-photo-image:not(.zoomImg){
    display:block!important;position:static!important;float:none!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:100%!important;max-height:100%!important;min-height:0!important;
    aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;
    transform:translate(var(--semac-photo-x,0%),var(--semac-photo-y,0%)) scale(var(--semac-photo-scale,1))!important;
    transform-origin:50% 50%!important;transition:none!important;
}
/* Gallery: keep the original <a><img> and all zoom/lightbox/variation attributes.
   Native .zoomImg overlays, slide wrappers and gallery thumbnail controls are excluded. */
body.semac-theme.semac-photos-v123 .semac-single-gallery{padding:16px;}
body.semac-theme.semac-photos-v123 .semac-product-photo--gallery[data-semac-photo]{
    width:100%;min-width:0;aspect-ratio:1 / 1;max-height:520px;
    margin:0 auto;border-radius:10px;
}
/* Existing cart and order columns keep their sizes. Only the inner blank margins change. */
body.semac-theme.semac-photos-v123 .semac-product-photo--cart[data-semac-photo]{
    width:72px;height:72px;max-width:100%;margin:0 auto;
    border:1px solid #edf1ee;border-radius:10px;
}
body.semac-theme.semac-photos-v123 .semac-product-photo--order[data-semac-photo]{
    width:100%;height:100%;margin:0;border-radius:6px;
}
body.semac-theme.semac-photos-v123 .semac-product-photo--mini[data-semac-photo]{
    display:inline-block;width:var(--semac-mini-photo-width,48px);height:var(--semac-mini-photo-height,48px);
    margin:0 0 0 8px;float:right;border-radius:6px;vertical-align:middle;
}
@media(max-width:767px){
    body.semac-theme.semac-photos-v123 .semac-product-photo--card[data-semac-photo]{max-height:300px;}
    body.semac-theme.semac-photos-v123 .semac-product-photo--cart[data-semac-photo]{
        width:80px;height:80px;border:0;border-radius:0;
    }
    body.semac-theme.semac-photos-v123 .semac-single-gallery{padding:12px;}
    /* Identical photo area to the approved 0.12.2 phone homepage. */
    body.semac-theme.semac-photos-v123.semac-home-mobile-v120 .semac-home-products .semac-home-photo{
        max-height:none;width:calc(100% + 12px);margin:0 -6px 7px;aspect-ratio:1 / 1.08;
    }
}
