/* Flip cards (replaces jquery.flip + the JS that set height = width) */
.flip-container {
    height: auto;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
}

.flip-space {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.flip-container:hover .flip-space,
.flip-container:focus-within .flip-space {
    transform: rotateY(180deg);
}

.flip-space .front,
.flip-space .back {
    position: absolute;
    inset: 0;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-space .back {
    transform: rotateY(180deg);
}

/* "Where is my VIN" popup (replaces jQuery fadeIn/fadeOut) */
.vin-location.open {
    display: block;
}

/* Theme's negative margin made the next row overlap the last line of text */
.content-s-1 .section p:last-child {
    margin-bottom: 0;
}
