div.cc-box {
    display: flex;
    position: relative;
    list-style: none;
    text-align: center;
    margin: 0;
}

.cc-box-mobile-description {
    display: none;
    border: 1px solid #CDCDCD;
    border-radius: 5px;
    padding: 15px 30px;
    margin-top: -10px;
}

.cc-box .figcaption i {
    border: 2px solid #ffffff !important;
}

.cc-box .figcaption i:before,
.cc-box .figcaption i:after {
    background-color: #ffffff !important;
}

.cc-box-description {
    min-height: 100px;
    margin: 0 auto;
    width: 50%;
    padding-top: 50px;
}

.cc-box-description > div > h3 {
    font-size: 28px !important;
    line-height: 38px !important;
    font-weight: 600 !important;
}

.cc-box-description button {
    cursor: pointer;
}

.cc-box-element {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.cc-box-element a {
    border: 2px solid rgba(0, 0, 0, 0.75);
    border-radius: 4px !important;
    box-shadow: none;
    padding: 13px 35px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    transition: none !important;
}

.cc-box-element a:hover, .cc-box-element a:focus {
    border-color: #de1125 !important;
    background-color: #de1125 !important;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16) !important;
    transform: translateY(-3px);
    color: #ffffff;
}

.cc-box-element a.box-link {
    font-weight: 500;
    font-size: 18px;
    line-height: 23px;
    color: #000000;
}

.cc-box-element p {
    margin-bottom: 25px;
}

.cc-box-element h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 31px;
    padding-bottom: 20px;
}

/* Common style */
.cc-box .figure {
    position: relative;
    float: left;
    overflow: hidden;
    min-width: 320px;
    max-height: 360px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
}

div.cc-box .figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 1;
}

.cc-box .figure .figcaption {
    padding: 2em;
    color: #fff;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cc-box .figure .figcaption::before,
.cc-box .figure .figcaption::after {
    pointer-events: none;
}

.cc-box .figure .figcaption,
.cc-box .figure .figcaption > a.box-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.cc-box .figure .figcaption > a.box-link {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.cc-box .figure h3 {
    color: white;
    word-spacing: -0.15em;
    font-weight: 700;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.cc-box .figure h3 span {
    font-weight: 800;
}

.cc-box .figure h2,
.cc-box .figure p {
    margin: 0;
}

.cc-box .figure p {
    letter-spacing: 1px;
    font-size: 68.5%;
}

/* Individual effects */

.cc-box::after {
    content: "";
    height: 10px;
    width: 90%;
    border: solid #DE1125 3px;
    border-radius: 9px;
    position: absolute;
    left: 4.5%;
    bottom: -30px;
    transition: background-color 0.2s ease-in-out;
}

.cc-box.active::after {
    background-color: #DE1125;
    height: 15px;
    bottom: -32px;
}

.figure.effect-sarah {
    background: rgba(222, 17, 37, 1) 60%;
}

.cc-box .figure.effect-sarah img {
    max-width: none;
    width: -webkit-calc(100% + 20px);
    width: calc(100% + 20px) !important;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    margin-bottom: 0;
}

.figure.effect-sarah:hover img, .figure.effect-sarah:focus img, .cc-box.active .figure.effect-sarah img {
    opacity: 0.4;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.figure.effect-sarah:hover .figcaption, .figure.effect-sarah:focus .figcaption, .cc-box.active .figure.effect-sarah .figcaption {
    justify-content: center;
}

.figure.effect-sarah .figcaption {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
}

.figure.effect-sarah h3 {
    position: absolute;
    bottom: 15px;
    overflow: hidden;
    padding: 0.5em 40px 0.5em 0;
    color: white;
}

.figure.effect-sarah .box-button {
    padding: 10px 22px;
    background-color: #de1125;
    color: white;
    display: inline;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
}

.figure.effect-sarah:hover h3, .figure.effect-sarah:focus h3, .cc-box.active .figure.effect-sarah h3 {
    opacity: 0;
}

.figure.effect-sarah:hover .box-button, .figure.effect-sarah:focus .box-button, .cc-box.active .figure.effect-sarah .box-button {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

@media only screen and (max-width: 1000px) {
    .figure.effect-sarah:hover .figcaption, .figure.effect-sarah:focus .figcaption {
        justify-content: unset;
    }

    .figure.effect-sarah[data-open="2"] img {
        -webkit-transform: translate3d(-10px, -87px, 0);
        transform: translate3d(-10px, -87px, 0);
    }

    .figure.effect-sarah[data-open="3"] img {
        -webkit-transform: translate3d(-10px, -94px, 0);
        transform: translate3d(-10px, -94px, 0);
    }

    .cc-box::after {
        content: none;
    }

    .cc-box .figure {
        max-height: 170px;
    }

    .cc-box .figure.effect-sarah h3 {
        position: relative;
        bottom: unset;
        width: 50%;
        opacity: 1;
    }

    .cc-box-description {
        display: none !important;
    }

    .figure.effect-sarah .box-button {
        opacity: 1;
    }
}

@media only screen and (max-width: 480px) {

    .cc-box .figure.effect-sarah img {
        filter: brightness(50%) !important;
    }

    .figure.effect-sarah h3 {
        padding: 0 !important;
        font-size: 14px;
        line-height: 18px;
    }

    .cc-box .figure .figcaption {
        padding: 1em !important;
        border-radius: 5px !important;
    }

    .cc-box .figure {
        max-height: 90px !important;
        border-radius: 5px !important;
    }

    .figure.effect-sarah .box-button {
        padding: 5px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 5px !important;
    }

    .cc-box .figure.effect-sarah img,
    div.cc-box .figure img,
    .figure.effect-sarah .figcaption,
    .figure.effect-sarah,
    div.cc-box {
        border-radius: 5px !important;
    }
}