/* All crops use pixel coordinates in the original 1024 by 1536 artwork. */
.art {
    display: block;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.art::before {
    content: "";
    display: block;
    background-image: url("./rodarshop-original.jpg");
    background-repeat: no-repeat;
    background-size: calc(102400% / var(--w)) calc(153600% / var(--h));
    background-position: calc(100% * var(--x) / (1024 - var(--w))) calc(100% * var(--y) / (1536 - var(--h)));
}
.art-logo, .art-business-logo, .art-shopisale-logo, .art-partner-logo {
    aspect-ratio: var(--w) / var(--h);
    mix-blend-mode: screen;
}
.art-logo::before, .art-business-logo::before, .art-shopisale-logo::before, .art-partner-logo::before {
    position: absolute;
    inset: 0;
    filter: grayscale(1) contrast(2.5);
}
.art-logo { --x: 34; --y: 17; --w: 311; --h: 33; }
.art-business-logo { --x: 43; --y: 1421; --w: 212; --h: 51; }
.art-shopisale-logo { --x: 580; --y: 1418; --w: 187; --h: 54; }

.art-division, .art-opportunity {
    aspect-ratio: 320 / 107;
    background-color: var(--base, #222325);
}
.art-division::before, .art-opportunity::before {
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--photo-width);
    mask-image: linear-gradient(to right, transparent, black 24%);
}
.division-automotive { --x: 180; --y: 476; --w: 161; --h: 103; --photo-width: 53%; --base: #252628; }
.division-electric   { --x: 485; --y: 476; --w: 186; --h: 103; --photo-width: 60%; --base: #232426; }
.division-luxury     { --x: 823; --y: 476; --w: 180; --h: 103; --photo-width: 58%; --base: #252729; }
.division-moto       { --x: 180; --y: 592; --w: 161; --h: 104; --photo-width: 53%; --base: #242424; }
.division-adventure  { --x: 498; --y: 592; --w: 173; --h: 104; --photo-width: 56%; --base: #222325; }
.division-energy     { --x: 836; --y: 592; --w: 167; --h: 104; --photo-width: 54%; --base: #28292b; }
.division-tools      { --x: 187; --y: 709; --w: 154; --h: 105; --photo-width: 50%; --base: #242425; }
.division-care       { --x: 493; --y: 709; --w: 178; --h: 105; --photo-width: 57%; --base: #282828; }
.division-fleet      { --x: 846; --y: 709; --w: 157; --h: 105; --photo-width: 51%; --base: #28292b; }

.art-product, .art-brand {
    container-type: size;
    aspect-ratio: 1.16;
}
.art-product { background-color: white; }
.art-product::before, .art-brand::before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100cqw, calc(100cqh * var(--w) / var(--h)));
    aspect-ratio: var(--w) / var(--h);
    transform: translate(-50%, -50%);
}
.product-dashcam  { --x: 28;  --y: 884; --w: 112; --h: 100; }
.product-bicicleta{ --x: 150; --y: 884; --w: 114; --h: 100; }
.product-casco    { --x: 273; --y: 884; --w: 113; --h: 100; }
.product-estacion { --x: 394; --y: 884; --w: 113; --h: 100; }
.product-taladro  { --x: 518; --y: 884; --w: 111; --h: 100; }
.product-detailing{ --x: 638; --y: 884; --w: 115; --h: 100; }
.product-wallbox  { --x: 761; --y: 884; --w: 113; --h: 100; }
.product-luces    { --x: 883; --y: 884; --w: 116; --h: 100; }

.art-brand {
    aspect-ratio: 2.55;
    mix-blend-mode: multiply;
}
.art-brand::before {
    width: min(83cqw, calc(78cqh * var(--w) / var(--h)));
    filter: grayscale(1) brightness(1.42) contrast(1.4);
}
.brand-porsche     { --x: 43;  --y: 1164; --w: 150; --h: 22; }
.brand-bmw         { --x: 244; --y: 1150; --w: 53;  --h: 51; }
.brand-amg         { --x: 352; --y: 1163; --w: 150; --h: 24; }
.brand-lamborghini { --x: 555; --y: 1146; --w: 94;  --h: 58; }
.brand-ducati      { --x: 706; --y: 1162; --w: 100; --h: 25; }
.brand-mclaren     { --x: 850; --y: 1154; --w: 143; --h: 31; }

.art-opportunity {
    aspect-ratio: 320 / 110;
    background: linear-gradient(120deg, #393b3d, #27292b 60%, #202325);
}
.art-opportunity::before {
    mask-image: linear-gradient(120deg, transparent 0 14%, black 14.5%);
}
.art-opportunity::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, #1213149c);
}
.opportunity-ypf   { --x: 178; --y: 1278; --w: 162; --h: 72; --photo-width: 57%; }
.opportunity-tesla { --x: 509; --y: 1278; --w: 159; --h: 72; --photo-width: 57%; }
.opportunity-aca   { --x: 836; --y: 1278; --w: 164; --h: 72; --photo-width: 57%; }
.partner-ypf   { --x: 47;  --y: 1297; --w: 101; --h: 34; }
.partner-tesla { --x: 373; --y: 1297; --w: 119; --h: 26; }
.partner-aca   { --x: 706; --y: 1290; --w: 99;  --h: 42; }
