/* Photoreal decant vial: one studio photo, tinted per perfume with a multiply layer.
   <div class="vial" style="--liq:#C9782E"><img src=".../vial-grey.webp" alt=""><i class="liq"></i><i class="cau"></i></div>
   Fill version (.vial.fill): an empty vial with the liquid layer revealed from the bottom by --lvl (0..1). */
.vial{position:relative;aspect-ratio:4/5;isolation:isolate;overflow:hidden;background:#8d939b;max-width:100%}
.vial>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.vial .liq,.vial .cau{position:absolute;inset:0;background:var(--liq,#C9782E);mix-blend-mode:multiply;pointer-events:none;
  -webkit-mask:var(--m) 0 0/100% 100% no-repeat;mask:var(--m) 0 0/100% 100% no-repeat}
.vial .liq{--m:url(img/vial-liq.webp)}
.vial .cau{--m:url(img/vial-cau.webp)}
.vial.l .liq{--m:url(img/vial-liq-l.webp)}
.vial.l .cau{--m:url(img/vial-cau-l.webp)}
/* fill: liquid lives between 39.39% (full) and 82.44% (empty) of the frame height */
.vial.fill .full{position:absolute;inset:0;isolation:isolate;opacity:min(1,calc(var(--lvl,0) * 60));clip-path:inset(calc(39.39% + (1 - var(--lvl,0)) * 43.05%) 0 0 0)}
.vial.fill .full>img{position:absolute;inset:0;width:100%;height:100%;display:block}
.vial.fill .cau{opacity:var(--lvl,0)}
.vial.fill .meniscus{position:absolute;left:41.6%;right:41.6%;height:1.6%;top:calc(39.39% + (1 - var(--lvl,0)) * 43.05% - .8%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.75),rgba(255,255,255,.18) 60%,transparent);opacity:min(1,calc(var(--lvl,0) * 12));mix-blend-mode:screen;pointer-events:none}
