.flip-card {
    background-color: transparent;
    -webkit-perspective: 800px;
    perspective: 800px;
    height: 80vh;
    width: 500px;
    min-width: 400px;
    margin: 25px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: -webkit-transform 0.8s;
    transition: -webkit-transform 0.8s;
    -o-transition: transform 0.8s;
    transition: transform 0.8s;
    transition: transform 0.8s, -webkit-transform 0.8s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    -webkit-box-shadow: 4px 8px 16px rgb(25,25,25);
    box-shadow: 4px 8px 16px rgb(25,25,25);
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

.flip-card-front {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #FFFFFF;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.flip-card-front h3 {
    color: var(--light);
    font-size: 54px;
    font-weight: 700;
    line-height: 64px;
    text-shadow: 1px 1px 10px black;
}

.flip-card-back {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #FFFFFF;
    color: black;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 15px 30px;
}

.flip-card-back p {
    font-size: 18px;
    color: rgb(50,50,50);
}


.exhibit-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 6px;
    -webkit-box-shadow: 3px 6px 10px var(--color-dark);
    box-shadow: 3px 6px 10px var(--color-dark);
    min-height: 500px;
    width: 100%;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.exhibit-card:hover {
    -webkit-box-shadow: 5px 9px 15px var(--color-dark);
    box-shadow: 5px 9px 15px var(--color-dark);
    -webkit-filter: sepia(0.7);
    filter: sepia(0.7);
    -webkit-transition: -webkit-box-shadow 400ms, -webkit-filter 400ms;
    transition: -webkit-box-shadow 400ms, -webkit-filter 400ms;
    -o-transition: box-shadow 400ms, filter 400ms;
    transition: box-shadow 400ms, filter 400ms;
    transition: box-shadow 400ms, filter 400ms, -webkit-box-shadow 400ms, -webkit-filter 400ms;
}

.exhibit-card h2 {
    color: var(--light);
    font-size: 48px;
    line-height: 54px;
    font-weight: 700;
    text-align: center;
    margin: 5px 10px;
}

.featured-exhibits-link {
    margin: 10px auto 10px auto;
    background: transparent;
    border: 2px solid var(--peach);
    border-radius: 50px;
    font-size: 16px;
    color: var(--peach);
    padding: 8px 26px 5px 26px;
    font-weight: 600;
    text-decoration: none !important;
}


.featured-exhibits-link:hover {
    background: var(--peach);
    color: var(--light);
    border: 2px solid var(--peach);
    -webkit-transition: background 300ms, color 300ms, border 300ms;
    -o-transition: background 300ms, color 300ms, border 300ms;
    transition: background 300ms, color 300ms, border 300ms;
}



@media only screen and (max-width: 1280px) {
    .flip-card {
        width: 400px;
        min-width: 380px;
        margin: 25px;
    }

    .exhibit-card h2 {
        font-size: 42px;
        line-height: 50px;
    }
}

@media only screen and (max-width: 1150px) {
    .exhibit-card h2 {
        font-size: 36px;
        line-height: 42px;
    }

    .flip-card {
        width: 29%;
        min-width: 29%;
        margin: 2%;
    }

    .flip-card-front h3 {
        font-size: 36px;
        font-weight: 700;
        line-height: 42px;
        text-shadow: 1px 1px 10px black;
    }

    .flip-card-back p {
        font-size: 16px;
    }
}


@media only screen and (max-width: 920px) {
    .flip-card {
        width: 300px;
        min-width: 300px;
        height: 500px;
        margin: 15px;
    }
}


@media only screen and (max-width: 820px) {
    .flip-card-back p {
        font-size: 14px;
        line-height: 18px;
    }
}
