@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,800);

.leaders_in_section {
    margin: 10vh 0 0 0;
    height: 100%;
    display: flex;
    flex-flow: wrap;
    flex-direction: column;
}

.leaders_in_heading {
    text-align: center;
    font-size: 4rem;
    color: var(--blue-color-logo);
    font-weight: 700;
    /*    margin-left: 7.5vw;*/
    font-family: haha, regular;
}

.leaders_in {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 7vh 0 0 0;
    height: 100%;
    /*    height: 60dvh;*/
    /*    flex-wrap: wrap;*/
    align-content: flex-start;

    & figure.snip1200 {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        position: relative;
        overflow: hidden;
        margin: 10px;
        min-width: 220px;
        max-width: max(calc(100dvw*0.197), 310px);
        max-height: 65dvh;
        width: 100%;
        background: #000000;
        color: #ffffff;
        text-align: center;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
        font-size: 16px;
        border-radius: 5rem;
    }

    & figure.snip1200 * {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all 0.45s ease-in-out;
        transition: all 0.45s ease-in-out;
    }

    & figure.snip1200 img {
        max-width: 100%;
        height: 450px;
        position: relative;
        opacity: 0.7;
        object-fit: cover;

        display: block;
        margin: 0 auto;
    }

    & figure.snip1200 figcaption {
        position: absolute;
        top: 45%;
        left: 7%;
        right: 7%;
        bottom: 45%;
        border: 1px solid white;
        border-width: 1px 1px 0;
    }

    & figure.snip1200 .heading {
        overflow: hidden;
        -webkit-transform: translateY(50%);
        transform: translateY(50%);
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    & figure.snip1200 h2 {
        display: table;
        margin: 0 auto;
        padding: 0 10px;
        position: relative;
        text-align: center;
        width: auto;
        text-transform: uppercase;
        font-weight: 400;
    }

    & figure.snip1200 h2 span {
        font-size: 1.5rem;
        font-weight: 800;
    }

    & figure.snip1200 h2:before,
    & figure.snip1200 h2:after {
        position: absolute;
        display: block;
        width: 1000%;
        height: 1px;
        content: '';
        background: white;
        top: 50%;
    }

    & figure.snip1200 h2:before {
        left: -1000%;
    }

    & figure.snip1200 h2:after {
        right: -1000%;
    }

    & figure.snip1200 p {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        /*        padding: 0 20px;*/
        margin: 0;
        opacity: 0;
        line-height: 1.6em;
        font-size: 1.25em;
    }

    & figure.snip1200 h {
        font-size: 2rem;
        font-weight: 800;
        opacity: 0;
    }

    .figure_p {
        padding: 4em 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between
    }

    & figure.snip1200 a {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        z-index: 1;
    }

    & figure.snip1200:hover img,
    & figure.snip1200.hover img {
        opacity: 0.25;
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    & figure.snip1200:hover figcaption,
    & figure.snip1200.hover figcaption {
        top: 7%;
        bottom: 7%;
    }

    & figure.snip1200:hover p,
    & figure.snip1200.hover p {
        opacity: 1;
        -webkit-transition-delay: 0.35s;
        transition-delay: 0.35s;
    }

    & figure.snip1200:hover h,
    & figure.snip1200.hover h {
        opacity: 1;
        -webkit-transition-delay: 0.35s;
        transition-delay: 0.35s;
    }
}

@media(max-width: 1500px) {
    .leaders_in {
        flex-wrap: wrap;
        margin: 7vh 5vw 0 0;
    }
}

@media(max-width: 700px) {
    .leaders_in {
        height: 100%;
        margin: 0 0 10vh 0;
    }

    .leaders_in_heading {
        padding: 10vh 0 7vh 0;
        font-size: 2.3rem;
        font-weight: 500;

    }

    .leaders_in_section {
        margin: 0;
    }

    .leaders_in {
        & figure.snip1200 {
            max-width: 90vw;
        }
    }
}