.gsap-flip-box-container {
    width: 100%;
    height: 300px; /* Default height */
    perspective: 1000px; /* Essential for 3D effect */
    cursor: pointer;
}

.gsap-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d; /* Keep 3D context */
}

.gsap-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back when flipped */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gsap-face-inner {
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Front Specifics */
.gsap-flip-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
}
.gsap-flip-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back Specifics */
.gsap-back {
    background: #333;
    color: #fff;
}
.gsap-back h4 { color: #fff; }
.gsap-back .back-thumb {
    width: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.gsap-flip-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}
.gsap-flip-btn:hover {
    background: #ddd;
}