﻿.scroll-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 45vmin;
    margin-top: 50px;
}

.card {
    flex: 1;
    transition: all 1s ease-in-out;
    height: 75vmin;
    position: relative;
}
.card.active {
    flex-grow: 3.5;
}
.card_title {
    color: #ffffff;
    transition: all 700Ms ease-in-out;
    min-width: 90%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1.5em;
}
.titlepre {
    color: #d9e8e2;
    font-size: 1em;
    padding-top: 5em;
    transition: all 0.5s ease-in-out;
}
.titlepost {
    font-size: 1.5em;
    font-weight: bold;
    transition-delay: 750ms;
    transition: all 1s ease-in-out;
}
.card.active .titlepre {
    font-size: 1.5em;
    transition: all 0.5s ease-in-out;
}
.card.active .titlepost {
    font-size: 3em;
    transition: all 750ms ease-in-out;
}


    .card.active img {
        filter: grayscale(0) brightness(60%);
        height: 100% !important;
        object-fit: none;
        overflow: hidden;
    }

    .card.active .card_title {
        text-align: center;
        top: 35%;
        /*left: 15%;*/
        /*font-size: 140%;*/

        background: rgba(0, 0, 0, 0.0);

    }

.card img {
    width: 100%;
    height: 100%;
    object-fit: none;
    transition: all 1s ease-in-out;
    filter: grayscale(100%) brightness(0.6);
}

/*.card:not(:nth-child(4)) {
    margin-right: 1em;
}*/

.tile-content {
    position: absolute;

    background: rgba(0, 0, 0, 0.0);
    width: 100%;
    padding-bottom: 2em;
    text-align: center;
    transition: all 300ms ease;
    transition-delay: 0s;

    opacity: 0;

}


    .card.active .tile-content {
        height: auto;
        opacity: 1;
        transition: all 500ms ease;
        transition-delay: 500ms;
    }

.tile-content a {
    line-height: 3em;
}
