.branches-container {
    background: rgb(16,73,114);
    background: linear-gradient(0deg, rgba(16,73,114,1) 0%, rgba(18,99,109,1) 100%);
}

.branches-inner {
    padding: 30px 90px;
}

.branches-inner h3 {
    color: #FFF;
    text-align: center;
}

.branches-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px 0;
}

.branches-single {
    display: flex;
    flex: 0 1 calc(100% / 3);
    justify-content: center;
    max-width: calc(100% / 3);
    min-height: 350px;
    position: relative;
}

.branches-single.uni a {
    height: 90%;
    margin: auto;
    width: 95%;
}

.branches-single.branch a,
.branches-single.branch .branch-foreground {
    height: 100%;
    width: 100%;
}

.branches-single.branch:hover a .branch-background img {
    transform: scale(1.1);
}

.branches-single.branch:hover a .branch-foreground::before {
    opacity: 0;
}

.branch-image-only {
    background: #FFF;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: auto;
    padding: 50px;
    width: 100%;
}

.branches-single.uni img {
    -o-object-fit: contain;
    object-fit: contain;
    margin: auto;
    width: 100%;
}

.branch-image-only .gmk-picture {
    height: initial;
    width: initial;
}

.branches-single.branch .branch-background {
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1
}

.branches-single.branch .branch-foreground {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    position: relative;
    width: 100%;
    z-index: 2;
}

.branch-foreground svg {
    height: auto;
    max-width: 100px;
}

.branches-single.branch .branch-foreground::before {
    background: rgba(0,0,0,0.4);
    content: "";
    height: 100%;
    left: 0;
    opacity: 1;
    position: absolute;
    top: 0;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    width: 100%;
    z-index: -1;
}

.branch-background img {
    height: 100%;
    object-fit: cover;
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    width: 100%;
}

.branch-title {
    color: #F7F431;
    font-size: 24px;
    letter-spacing: 2.4px;
    margin: 0;
    text-transform: uppercase;
}

.branches-single.branch {
    border: 1px solid transparent;
}

@media screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {

    .branches-wrap {
        flex-direction: row!important;
    }

    .branches-single {
        flex: 0 1 calc(100% / 2 - 15px)!important;
        max-width: calc(100% / 2 - 15px)!important;
    }

}

@media screen and (max-width: 950px) and (orientation: landscape) {

    .branches-wrap {
        gap: 15px;
    }

    .branches-single.uni a {
        height: initial;
        margin: initial;
        width: 100%;
    }

    .branches-single.branch {
        border: none;
    }

}

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

    .branches-inner {
        padding: 30px;
    }

    .branches-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .branches-single {
        flex: initial;
        max-width: 100%;
    }

    .branches-single.uni {
        background-color: #FFF;
    }

    .branch-image-only {
        display: flex;
        height: 100%;
        padding: 25px;
        width: 100%;
    }

    .branches-single.uni img {
        height: auto;
        -o-object-fit: contain;
        object-fit: cover;
        margin: auto;
        max-width: 100%;
        width: initial;
    }

    .branches-single.branch a {
        height: initial;
    }

}
