/* Offsets follow the photographed bottle, including any space around it in the original. */
:is(.n365-retail,.nc360-order-photos) img[src$="/mencia.webp"]{--bottle-zoom:1.055;--bottle-x:-50.45%;--bottle-y:-50.95%}
:is(.n365-retail,.nc360-order-photos) img[src$="/arraiano-branco.webp"]{--bottle-clip:inset(0 35.5%)}
:is(.n365-retail,.nc360-order-photos) img[src$="/colleita.webp"]{--bottle-zoom:1.15;--bottle-x:-50.35%;--bottle-y:-50.45%}
:is(.n365-retail,.nc360-order-photos) img[src$="/arraiano-tinto.webp"]{--bottle-zoom:1.29;--bottle-y:-50.25%;--bottle-clip:inset(11% 34% 10.5% 34%)}
:is(.n365-retail,.nc360-order-photos) img[src$="/el-portillo.webp"]{--bottle-zoom:1.25;--bottle-x:-49.5%;--bottle-y:-50.25%}
:is(.n365-retail,.nc360-order-photos) img[src$="/tiempo-del-sur-blanco.webp"]{
    --bottle-zoom:1.55;--bottle-x:-49.4%;--bottle-y:-52.6%;
    --bottle-clip:polygon(45.5% 21.8%,46.2% 20.8%,49% 20.4%,51.6% 20.8%,52.3% 21.7%,52.2% 25%,52.2% 31%,52.9% 36.9%,54.3% 41.8%,56.1% 46%,57.6% 50.5%,58.6% 55.5%,59.3% 62.5%,59.5% 77.7%,58.6% 81.6%,56.3% 83.9%,53% 84.5%,46.1% 84.5%,42.2% 83.8%,39.9% 81.9%,38.9% 79.2%,39% 59.2%,39.7% 53.2%,41.3% 46.8%,43.2% 42.2%,44.7% 37.1%,45.2% 32%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/lechucilla.webp"]{
    --bottle-zoom:1.54;--bottle-x:-50.3%;--bottle-y:-52.9%;
    --bottle-clip:polygon(46.9% 21.7%,47.6% 20.8%,50.3% 20.4%,52.9% 20.9%,54% 22.2%,54.1% 25%,54.2% 32.1%,54.9% 37.2%,56.6% 42.3%,58.7% 47%,60.3% 51.6%,61.1% 57%,61.2% 78.7%,60.2% 81.9%,58.3% 83.9%,55.5% 84.7%,46.7% 84.7%,42.8% 84.2%,40.6% 82.2%,39.6% 79.7%,39.6% 57.5%,40.6% 52.2%,42.3% 47.3%,44.1% 42.6%,45.8% 37.5%,46.6% 32.1%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/pumpkin-nat-rosado.webp"]{
    --bottle-zoom:1.60;--bottle-x:-44.5%;--bottle-y:-51.5%;
    --bottle-clip:polygon(41.1% 22.4%,41.9% 21%,44.4% 20.5%,47.2% 20.8%,48.7% 21.6%,49% 24%,48.3% 26%,48.3% 33%,49.4% 38.7%,51.3% 44.9%,53% 50.9%,54.5% 57%,54.9% 65%,54.7% 77.4%,53.8% 80.4%,51.4% 81.5%,47% 82.2%,41.6% 82.2%,37.6% 81.5%,34.8% 80.2%,33.7% 77.1%,33.7% 60.8%,34.4% 54.8%,36.2% 48.2%,38.6% 42.6%,40.4% 36.8%,41.6% 30.3%,41.6% 26%,41% 24%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/dos-canotos.webp"]{
    --bottle-zoom:1.29;--bottle-y:-55%;
    --bottle-clip:polygon(46.7% 17%,47.4% 16.2%,49.5% 15.9%,52.3% 16.2%,53.5% 17%,53.7% 20.5%,53.6% 25.5%,53.6% 31.6%,54.5% 36.7%,56.1% 42%,58% 49%,59.5% 54.8%,60% 62%,60.3% 87.3%,59.2% 90.2%,56.6% 92.9%,53.8% 93.6%,46.5% 93.6%,43.4% 92.9%,41.4% 91%,40.1% 87.4%,40.2% 61.5%,41% 55.2%,42.6% 48.6%,44.4% 42.5%,45.7% 36.3%,46.2% 31.6%,46.1% 22%);
}

/* Full bottle silhouettes from the original French product photographs. */
:is(.n365-retail,.nc360-order-photos) img[src$="/expression.webp"]{
    --bottle-zoom:1.925;--bottle-x:-74.03%;--bottle-y:-49.86%;
    --bottle-clip:polygon(73.70% 23.89%,75.28% 24.10%,76.20% 24.44%,77.13% 25.35%,77.50% 27.08%,77.87% 29.86%,77.22% 31.39%,77.04% 33.33%,77.50% 36.81%,78.15% 40.28%,79.35% 43.75%,80.93% 47.22%,82.04% 50.00%,82.96% 53.82%,83.15% 57.29%,83.15% 71.18%,83.06% 73.26%,82.59% 74.38%,81.30% 75.14%,78.98% 75.62%,75.09% 75.83%,73.89% 75.83%,69.91% 75.62%,67.31% 75.14%,65.83% 74.38%,65.09% 73.26%,64.91% 71.18%,64.91% 57.29%,65.00% 53.82%,65.93% 50.00%,67.04% 47.22%,68.52% 43.75%,69.63% 40.28%,70.28% 36.81%,70.65% 33.33%,70.65% 31.39%,70.00% 29.86%,70.09% 27.08%,70.37% 25.35%,71.30% 24.44%,72.13% 24.10%,73.61% 23.89%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/grossot-chablis.webp"]{
    --bottle-zoom:1.722;--bottle-x:-74.03%;--bottle-y:-48.06%;
    --bottle-clip:polygon(74.81% 19.03%,77.31% 19.17%,77.96% 19.72%,78.06% 20.62%,78.15% 22.15%,78.15% 23.47%,78.06% 27.29%,78.15% 29.86%,78.43% 33.33%,79.26% 36.81%,80.56% 40.28%,81.94% 43.75%,82.87% 47.29%,83.33% 51.81%,83.33% 60.76%,83.24% 71.88%,83.15% 74.31%,82.78% 75.76%,81.85% 76.60%,79.91% 77.01%,76.02% 77.08%,72.22% 77.08%,68.70% 77.01%,66.57% 76.60%,65.28% 75.76%,64.81% 74.31%,64.72% 71.88%,65.00% 60.76%,65.09% 51.81%,65.56% 47.29%,66.48% 43.75%,68.06% 40.28%,69.44% 36.81%,70.37% 33.33%,70.93% 29.86%,71.11% 27.29%,71.11% 23.47%,71.11% 22.15%,71.11% 20.62%,71.30% 19.72%,72.22% 19.17%,74.44% 19.03%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/fourchaume.webp"]{
    --bottle-zoom:1.722;--bottle-x:-74.03%;--bottle-y:-48.06%;
    --bottle-clip:polygon(74.81% 19.03%,76.48% 19.17%,77.50% 19.72%,77.78% 20.62%,77.87% 22.15%,77.87% 23.47%,77.87% 27.29%,77.96% 29.86%,78.33% 33.33%,79.26% 36.81%,80.74% 40.28%,82.04% 43.75%,82.96% 47.29%,83.43% 51.81%,83.43% 60.76%,83.33% 71.88%,83.15% 74.31%,82.50% 75.69%,81.67% 76.53%,79.91% 77.01%,76.02% 77.08%,72.13% 77.08%,68.70% 77.01%,66.85% 76.53%,65.65% 75.69%,64.81% 74.31%,64.63% 71.88%,64.81% 60.76%,64.81% 51.81%,65.28% 47.29%,66.30% 43.75%,67.87% 40.28%,69.35% 36.81%,70.28% 33.33%,70.74% 29.86%,70.83% 27.29%,70.93% 23.47%,70.74% 22.15%,70.93% 20.62%,71.11% 19.72%,72.31% 19.17%,74.07% 19.03%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/mont-de-milieu.webp"]{
    --bottle-zoom:1.708;--bottle-x:-74.03%;--bottle-y:-48.30%;
    --bottle-clip:polygon(74.63% 19.03%,76.02% 19.17%,77.31% 19.72%,77.59% 20.62%,77.69% 22.15%,77.59% 23.47%,77.69% 27.29%,77.78% 29.86%,78.06% 33.33%,78.89% 36.81%,80.37% 40.28%,81.85% 43.75%,82.87% 47.29%,83.24% 51.81%,83.33% 60.76%,83.33% 71.88%,83.24% 74.31%,82.59% 75.69%,81.76% 76.46%,80.28% 77.08%,77.41% 77.57%,72.04% 77.57%,68.80% 77.08%,66.85% 76.46%,65.65% 75.69%,64.91% 74.31%,64.72% 71.88%,64.81% 60.76%,64.81% 51.81%,65.28% 47.29%,66.20% 43.75%,67.69% 40.28%,69.07% 36.81%,70.00% 33.33%,70.37% 29.86%,70.56% 27.29%,70.56% 23.47%,70.46% 22.15%,70.65% 20.62%,70.93% 19.72%,72.41% 19.17%,73.80% 19.03%);
}
:is(.n365-retail,.nc360-order-photos) img[src$="/vaucoupin.webp"]{
    --bottle-zoom:1.694;--bottle-x:-73.98%;--bottle-y:-48.06%;
    --bottle-clip:polygon(74.81% 18.54%,76.11% 18.68%,77.59% 19.17%,77.96% 20.49%,77.96% 22.15%,77.87% 23.47%,77.96% 27.29%,77.96% 29.86%,78.43% 33.33%,79.35% 36.81%,80.93% 40.28%,82.31% 43.75%,83.33% 47.29%,83.70% 51.81%,83.70% 60.76%,83.70% 71.88%,83.70% 74.38%,82.96% 75.76%,82.04% 76.67%,80.09% 77.22%,77.31% 77.57%,72.13% 77.57%,68.70% 77.22%,66.30% 76.67%,65.00% 75.76%,64.35% 74.38%,64.26% 71.88%,64.35% 60.76%,64.35% 51.81%,64.81% 47.29%,65.83% 43.75%,67.41% 40.28%,68.89% 36.81%,69.81% 33.33%,70.37% 29.86%,70.46% 27.29%,70.56% 23.47%,70.56% 22.15%,70.56% 20.49%,70.83% 19.17%,72.41% 18.68%,73.98% 18.54%);
}

/* Show the original Ribera bottles at the same visual height across Retail. */
:is(.n365-retail,.nc360-order-photos) img[src$="/fuentenebro-tinto.webp"]{
    --bottle-zoom:1.754;--bottle-x:-73.61%;--bottle-y:-46.08%;
    --bottle-clip:polygon(
        70.46% 74.58%,67.31% 74.24%,65.28% 73.82%,64.35% 72.57%,63.80% 70.76%,63.61% 66.18%,
        63.33% 60.42%,63.43% 53.82%,63.43% 49.31%,63.89% 46.18%,64.91% 43.75%,66.67% 40.97%,
        68.15% 38.19%,69.44% 35.07%,69.91% 32.64%,70.19% 29.24%,70.28% 22.57%,69.91% 20.21%,
        69.91% 18.89%,70.56% 18.12%,71.30% 17.78%,72.59% 17.57%,75.28% 17.57%,76.30% 17.78%,
        76.94% 18.12%,77.31% 18.89%,77.31% 20.21%,76.94% 22.57%,77.22% 29.24%,77.50% 32.64%,
        77.87% 35.07%,79.26% 38.19%,80.93% 40.97%,82.50% 43.75%,83.33% 46.18%,83.98% 49.31%,
        83.89% 53.82%,83.89% 60.42%,83.61% 66.18%,83.33% 70.76%,83.06% 72.57%,82.13% 73.82%,
        80.09% 74.24%,77.04% 74.58%
    );
}
:is(.n365-retail,.nc360-order-photos) img[src$="/fuentenebro-blanco.webp"]{
    --bottle-zoom:1.756;--bottle-x:-73.61%;--bottle-y:-46.04%;
    --bottle-clip:polygon(
        70.93% 74.51%,67.69% 74.24%,65.37% 73.75%,64.26% 72.64%,63.80% 70.76%,63.43% 65.97%,
        63.33% 60.07%,63.15% 54.86%,63.15% 49.31%,63.70% 45.97%,64.63% 43.75%,66.30% 40.97%,
        67.96% 38.26%,69.07% 35.49%,69.81% 32.71%,70.09% 29.44%,70.19% 22.71%,69.81% 20.35%,
        69.72% 18.96%,70.28% 18.19%,71.30% 17.78%,72.69% 17.57%,75.56% 17.57%,76.67% 17.78%,
        77.41% 18.19%,77.69% 18.96%,77.69% 20.35%,77.31% 22.71%,77.31% 29.44%,77.59% 32.71%,
        78.43% 35.49%,79.44% 38.26%,81.11% 40.97%,82.96% 43.75%,83.80% 45.97%,84.07% 49.31%,
        83.98% 54.86%,83.80% 60.07%,83.61% 65.97%,83.43% 70.76%,82.69% 72.64%,81.48% 73.75%,
        79.35% 74.24%,76.67% 74.51%
    );
}
:is(.n365-retail,.nc360-order-photos) img[src$="/matadiablos.webp"]{
    --bottle-zoom:1.787;--bottle-x:-73.89%;--bottle-y:-46.60%;
    --bottle-clip:polygon(
        69.91% 74.58%,65.46% 74.10%,63.80% 73.54%,63.33% 72.71%,63.06% 70.49%,63.06% 60.76%,
        63.06% 54.10%,63.24% 50.00%,63.70% 47.22%,64.63% 44.10%,66.20% 40.97%,67.41% 38.19%,
        68.80% 35.07%,69.54% 32.43%,70.00% 29.17%,70.19% 23.26%,69.81% 22.22%,69.72% 21.04%,
        70.09% 20.07%,70.28% 19.17%,71.02% 18.82%,72.59% 18.61%,75.28% 18.61%,76.67% 18.82%,
        77.22% 19.17%,77.59% 20.07%,77.78% 21.04%,77.78% 22.22%,77.69% 23.26%,77.78% 29.17%,
        77.96% 32.43%,78.52% 35.07%,79.91% 38.19%,81.11% 40.97%,82.50% 44.10%,83.52% 47.22%,
        83.98% 50.00%,84.17% 54.10%,84.26% 60.76%,84.17% 70.49%,83.98% 72.71%,83.33% 73.54%,
        82.04% 74.10%,77.50% 74.58%
    );
}
:is(.n365-retail,.nc360-order-photos) img[src$="/la-nava.webp"]{
    --bottle-zoom:1.787;--bottle-x:-73.70%;--bottle-y:-46.53%;
    --bottle-clip:polygon(
        68.80% 74.51%,65.65% 74.17%,63.89% 73.61%,63.33% 72.64%,63.06% 70.42%,63.06% 60.21%,
        63.06% 54.10%,63.33% 50.00%,63.70% 47.22%,64.54% 44.10%,66.20% 40.97%,67.41% 38.19%,
        68.61% 35.07%,69.44% 32.50%,69.63% 29.17%,69.72% 23.12%,69.44% 21.88%,69.35% 20.90%,
        69.63% 20.21%,69.91% 19.10%,70.65% 18.75%,72.22% 18.54%,75.19% 18.54%,76.30% 18.75%,
        76.94% 19.10%,77.31% 20.21%,77.50% 20.90%,77.41% 21.88%,77.31% 23.12%,77.31% 29.17%,
        77.78% 32.50%,78.33% 35.07%,79.91% 38.19%,81.11% 40.97%,82.50% 44.10%,83.52% 47.22%,
        83.98% 50.00%,84.17% 54.10%,84.26% 60.21%,84.17% 70.42%,83.89% 72.64%,83.24% 73.61%,
        81.30% 74.17%,77.96% 74.51%
    );
}
:is(.n365-retail,.nc360-order-photos) img[src$="/matallana-vino.webp"]{
    --bottle-zoom:1.720;--bottle-x:-74.17%;--bottle-y:-48.16%;
    --bottle-clip:polygon(
        72.13% 77.22%,69.54% 77.01%,67.31% 76.74%,65.83% 76.11%,64.91% 75.21%,64.54% 73.75%,
        64.54% 69.79%,64.54% 56.94%,64.54% 43.96%,64.54% 41.25%,64.91% 39.38%,65.46% 37.85%,
        66.57% 36.32%,68.06% 35.00%,69.54% 33.96%,70.37% 32.78%,70.46% 30.56%,70.46% 24.58%,
        70.46% 22.50%,70.28% 21.74%,70.28% 20.69%,70.56% 20.35%,70.74% 19.58%,71.76% 19.31%,
        73.15% 19.10%,75.19% 19.10%,76.67% 19.31%,77.31% 19.58%,77.59% 20.35%,77.78% 20.69%,
        77.96% 21.74%,77.87% 22.50%,78.06% 24.58%,78.43% 30.56%,78.61% 32.78%,79.17% 33.96%,
        80.65% 35.00%,81.85% 36.32%,82.96% 37.85%,83.52% 39.38%,83.80% 41.25%,83.80% 43.96%,
        83.80% 56.94%,83.80% 69.79%,83.70% 73.75%,83.33% 75.21%,82.69% 76.11%,81.30% 76.74%,
        79.07% 77.01%,76.67% 77.22%
    );
}

/* Presentation shared by the shop and commercial order list. */
.nc360-order-photos article{grid-template-columns:58px minmax(0,1fr) auto;min-width:0}
.nc360-order-photos article>div:nth-child(2){min-width:0;overflow-wrap:anywhere}
.nc360-order-photos .thumbnail{position:relative;isolation:isolate;width:58px;height:68px;overflow:hidden;border:1px solid #e8dfcd;border-radius:4px;background:#f8f4eb}
.nc360-order-photos .thumbnail>img{display:block;width:100%;height:84%;object-fit:contain;mix-blend-mode:multiply;margin:0}
.nc360-order-photos .thumbnail>img:is([src*="/retail/fotos/"],[src*="/portafolio/assets/"]){
    position:absolute;inset:50% auto auto 50%;width:auto;max-width:none;height:calc(84% * var(--bottle-zoom,1));max-height:none;
    transform:translate(var(--bottle-x,-50%),var(--bottle-y,-50%));clip-path:var(--bottle-clip,none)
}
@media(max-width:540px){
    .nc360-order-photos article{grid-template-columns:44px minmax(0,1fr) auto}
    .nc360-order-photos .thumbnail{width:44px;height:60px}
}

/* Use the original Atlas images without the framing values for the old retail cards. */
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"]:is(
 [src$="/arraiano-branco.webp"],[src$="/arraiano-tinto.webp"],[src$="/dos-canotos.webp"],[src$="/el-portillo.webp"],
 [src$="/matadiablos.webp"],[src$="/la-nava.webp"],[src$="/grossot-chablis.webp"],[src$="/fourchaume.webp"],
 [src$="/mont-de-milieu.webp"],[src$="/vaucoupin.webp"],[src$="/matallana-vino.webp"]){
 --bottle-zoom:1;--bottle-x:-50%;--bottle-y:-50%;--bottle-clip:none
}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/arraiano-tinto.webp"]{--bottle-zoom:1.1513;--bottle-x:-50.2%;--bottle-y:-50.57%}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/matadiablos.webp"]{--bottle-zoom:1.2773;--bottle-x:-50.2%;--bottle-y:-49.49%}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/la-nava.webp"]{--bottle-zoom:1.2448;--bottle-x:-49.4%;--bottle-y:-51.28%}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/el-portillo.webp"]{--bottle-zoom:1.2476;--bottle-x:-49.53%;--bottle-y:-50.91%;--bottle-clip:polygon(45.5% 10.1%,53.1% 10.1%,56.5% 10.6%,57.8% 12.9%,57.2% 20.3%,57.2% 24.9%,57.9% 29.8%,59% 32.6%,60.5% 35.9%,64.1% 41.8%,66.4% 45.7%,68.2% 49.6%,69.3% 54.2%,70% 58%,70.2% 65%,70.2% 77%,69.9% 86.5%,69.4% 88.7%,68.7% 89.2%,65.8% 89.9%,59% 90.4%,41.8% 90.4%,34.4% 89.9%,30.6% 89.2%,29.4% 88.6%,28.9% 86.5%,28.9% 77%,28.9% 68%,29.1% 61.3%,29.4% 58%,29.8% 54.2%,31.2% 49.6%,33.1% 45.7%,35.4% 41.8%,39.3% 35.9%,41% 32.6%,42% 29.8%,42.7% 24.9%,43% 17%,42.4% 13%,43.1% 11%,44% 10.4%)}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/vaucoupin.webp"]{--bottle-zoom:1.1211;--bottle-y:-49.38%}
:is(.n365-retail,.nc360-order-photos) img[src*="/portafolio/assets/"][src$="/dos-canotos.webp"]{--bottle-zoom:1.2838;--bottle-y:-55%;--bottle-clip:polygon(49.08% 16.05%,47.5% 16.32%,46.84% 16.97%,46.84% 18.42%,46.45% 19.21%,46.45% 20.53%,46.58% 21.71%,46.32% 26.32%,46.32% 29.61%,46.05% 32.11%,45.66% 34.74%,45.26% 37.11%,44.47% 40%,43.42% 43.29%,42.37% 46.32%,41.32% 49.61%,40.66% 52.89%,40.13% 55.92%,39.87% 59.34%,39.61% 63.03%,39.61% 83.82%,39.74% 87.76%,40.13% 89.61%,41.18% 91.05%,42.89% 92.37%,44.74% 93.16%,46.84% 93.68%,49.61% 93.95%,50.92% 93.95%,52.76% 93.68%,54.74% 93.16%,56.18% 92.37%,57.89% 91.05%,58.82% 89.61%,59.34% 87.76%,59.61% 83.82%,59.74% 77.63%,59.87% 71.05%,59.87% 59.34%,59.61% 55.92%,59.21% 52.89%,58.42% 49.61%,57.37% 46.32%,56.45% 43.29%,55.39% 40%,54.61% 37.11%,54.21% 34.74%,53.82% 32.11%,53.29% 29.61%,53.29% 21.71%,53.42% 20.53%,53.68% 19.21%,53.55% 18.42%,53.29% 16.97%,52.76% 16.32%,50.39% 16.05%)}
:is(.n365-retail,.nc360-order-photos) img[src$="/colleita-pendiente.svg"]{--bottle-zoom:.95;max-width:100%;object-fit:contain}
.nc360-order-photos .thumbnail>img[src$="/colleita-pendiente.svg"]{width:100%;max-width:100%}

