.quote-box-container {
    display: flex;
    justify-content: center;
    margin: 50px 50px 50px 0;
}

.quote-box {
    width: 605px;
    height: 205px;
    position: relative;
    cursor: pointer;
    perspective: 1000px; /* needed for 3D flip */
    border-radius: 10px;
}

.quote-box-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

/* Flip behavior */
.quote-box:hover .quote-box-inner,
.quote-box.flipped .quote-box-inner {
    transform: rotateX(180deg);
}

/* Main faces */
.quote-box-front,
.quote-box-back {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #fff;
    backface-visibility: hidden;
    z-index: 2;
}

.quote-box-back {
    transform: rotateX(180deg);
    /* Let clicks pass through when flipped */
    pointer-events: none;
}

/* Front face with bottom + left edges */
.quote-box-front {
    background: var(--global-palette7);
    box-shadow: -5px 5px 0px 5px var(--global-palette9);
    background-image: url("https://mattsu.co.uk/wp-content/uploads/2022/01/vadim-bogulov-Bl9waY12tguUk-unsplash-15.24.23.jpg");
    background-size: cover;
    background-position: bottom;
}

.quote-box-inner p {
    z-index: 2;
}

/* Back face */
.quote-box-back {
    background: var(--global-palette7);
    transform: rotateX(180deg);
    border-radius: 10px;
    box-shadow: -5px 5px 0px 5px var(--global-palette9);
    background-image: url("https://mattsu.co.uk/wp-content/uploads/2022/01/vadim-bogulov-Bl9waY12tguUk-unsplash-15.24.23.jpg");
    background-size: cover;
    background-position: bottom;
}

.blur {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
  .quote-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }
}


/* Hide plugin output on mobile devices */
/* @media (max-width: 767px) {
  .quote-box-container { 
    display: none !important; 
  }
}

