/* Scope above WooCommerce's later ".woocommerce img { height: auto }" rule.
   A definite frame keeps portrait and landscape source photos equally full. */
.vfs .vfs-stage-photo,
.vfs .vfs-detail-image { position: relative; overflow: hidden; }
.vfs .vfs-stage-photo { position: absolute; inset: 10px 10px 34px; border-radius: 10px; }
.vfs .vfs-stage-photo > img,
.vfs .vfs-card-photo > img,
.vfs .vfs-detail-image > img,
.vfs .vfs-slot > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}
.vfs .vfs-slot > img { border-radius: inherit; }
.vfs .vfs-card-photo { aspect-ratio: 1; border-radius: 18px; }
.vfs .vfs-card:nth-child(n) { transform: none; }
.vfs .vfs-stage-card { border-radius: 18px; }
.vfs .vfs-stage-label svg { width: 12px; height: 12px; flex-shrink: 0; }
.vfs svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vfs .vfs-card-toggle,
.vfs .vfs-zoom-hint,
.vfs .vfs-close,
.vfs .vfs-slot button,
.vfs .vfs-stage-controls button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    text-align: center;
}
.vfs .vfs-slot button svg { width: 14px; height: 14px; }
.vfs .vfs-zoom-hint svg { width: 17px; height: 17px; }
.vfs .vfs-card-photo:hover .vfs-zoom-hint { transform: scale(1.08); }
.vfs .vfs-card-toggle:hover { transform: scale(1.08); }
.vfs .vfs-detail-image { align-self: stretch; }
.vfs .vfs-stage:not(.is-ready) .vfs-stage-card { opacity: 0; animation: none; }

/* The strip entrance is flat and shadow-free before, during and after decoding. */
.vfs--galeria .vfs-stage { transform-style: flat; }
.vfs--galeria .vfs-stage-card,
.vfs--galeria .vfs-stage-card:hover {
    border-radius: 18px;
    box-shadow: none;
    filter: none;
    transform-style: flat;
    backface-visibility: hidden;
}
.vfs--galeria .vfs-stage-photo { inset: 0; border-radius: inherit; }
.vfs--galeria .vfs-stage-card { animation-name: vfs-strip-reveal; animation-duration: .85s; }
.vfs--galeria .vfs-stage-label { background: linear-gradient(transparent, #171711b3); }
@keyframes vfs-strip-reveal {
    from { opacity: 0; translate: 0 -65px; }
    to { opacity: 1; translate: 0 0; }
}

/* Page number, sample range and a persistent progress track share one source. */
.vfs .vfs-stage-controls { gap: 22px; margin-top: 28px; }
.vfs .vfs-pagination { min-width: 150px; text-align: center; }
.vfs .vfs-pagination label {
    display: flex; gap: 6px; justify-content: center; align-items: baseline;
    font-size: 11px; font-weight: 500; margin: 0;
}


.vfs .vfs-page-track { height: 2px; background: #927e6e40; overflow: hidden; margin: 9px 0 6px; }
.vfs .vfs-page-track span { display: block; height: 100%; min-width: 4px; background: currentColor; transition: width .45s; }
.vfs .vfs-page-range { display: block; font-size: 9px; opacity: .8; font-variant-numeric: tabular-nums; }
.vfs .vfs-stage-controls button:disabled { opacity: .3; }

.vfs .vfs-stage::before { pointer-events: none; }









@media (max-width: 760px) {
    
    
    .vfs .vfs-card-photo { border-radius: 14px; }
    .vfs .vfs-stage-card { border-radius: 14px; }
    .vfs .vfs-stage-photo { inset: 6px 6px 26px; border-radius: 9px; }
    .vfs--galeria .vfs-stage-photo { inset: 0; border-radius: inherit; }
    .vfs--galeria .vfs-stage-card { animation: none; }
    
    
    
    
    .vfs .vfs-stage-controls { gap: 16px; }
    
    .vfs .vfs-detail-image { height: min(92vw,43vh); aspect-ratio: auto; }
    
    
    
    
    
    
    
    
    
    
    
    
    
}

/* The allowance is visible before checkout, without claiming every kit is free. */
.vfs-policy-copy { max-width: 58ch; margin: 0 0 20px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.vfs-kit-total .woocommerce-Price-amount { font: inherit; }

/* Expand in normal flex flow without lifting the strip away from the pointer. */
.vfs--galeria .vfs-stage-card,
.vfs--galeria .vfs-stage-card:hover,
.vfs--galeria .vfs-stage-card:focus-visible {
    flex:1;
    transform:translateY(calc((var(--i) - 3)*12px));
    overflow:visible;
    background:transparent;
    transition:flex .65s cubic-bezier(.2,.7,.1,1),height .65s cubic-bezier(.2,.7,.1,1);
}
.vfs--galeria .vfs-strip-surface {
    position:absolute; inset:0; width:100%;
    border-radius:inherit; overflow:hidden;
    pointer-events:none; background:var(--cream,#f7f3ec);
}
.vfs--galeria .vfs-stage-card:focus-visible { flex:3.8; height:103%; z-index:30!important; }
@media(hover:hover) and (pointer:fine) {
    .vfs--galeria .vfs-stage-card:hover { flex:3.8; height:103%; z-index:30!important; }
}
@media(prefers-reduced-motion:reduce) {
    .vfs--galeria .vfs-stage-card { transition:none; }
}

/* Bounded page jump control. */



.vfs .vfs-pagination { width:160px; min-width:0; }
.vfs .vfs-pagination label { align-items:center; gap:8px; }
.vfs .vfs-pagination input { box-sizing:border-box; width:64px; min-width:0; height:40px; min-height:40px; padding:6px; border:1px solid var(--vfs-line); border-radius:8px; background:#fff9; color:var(--vfs-ink); font:inherit; font-size:14px; text-align:center; font-variant-numeric:tabular-nums; }
/* Keep direct number entry without duplicating the side navigation arrows. */
.vfs .vfs-pagination input[type=number] { -moz-appearance:textfield; appearance:textfield; }
.vfs .vfs-pagination input::-webkit-inner-spin-button,
.vfs .vfs-pagination input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }


@media(max-width:760px) {
    
    
    .vfs .vfs-pagination input { font-size:16px; }
    
}

/* Start every collection on its own row, including after loading more samples. */
.vfs .vfs-grid > .vfs-collection-start { grid-column: 1; }
