

/* =========================================
   Card flip base layout 
========================================= */


.pcf-card-wrapper {
    display: inline-block;
    perspective: 1000px; /* gives 3D effect */
}

.pcf-card {
    position: relative;
    width: 200px;   /* overridden by Elementor controls */
    height: 300px;  /* overridden by Elementor controls */
}

/* Inner container that flips */
.pcf-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    transform: rotateY(0deg); /* default: not flipped */
}

/* Both card faces fill the same space */
.pcf-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.pcf-card-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'contain' if you prefer padding */
}

/* Initial state: front visible, back hidden */
.pcf-card-front {
    transform: rotateY(0deg);
}

.pcf-card-back {
    transform: rotateY(180deg);
}

/* When flipped, rotate the inner card & swap faces */
.pcf-card.is-flipped .pcf-card-inner {
    transform: rotateY(180deg);
}

/* Optional: keyboard focus outline */
.pcf-card:focus {
    outline: 2px solid #000;
    outline-offset: 4px;
}

