/*********
 Section "Main Title and Text"
**********/

.block-main-title-text {
    padding-top: 110px;
    padding-bottom: 100px;
}

.block-main-title-text h2 {
    font-weight: 400;
    margin-bottom: 25px;
}

.block-main-title-text p {
    margin-bottom: 0;
}

/*********
 Section "Teams box with hover text"
**********/

.teams-box-with-hover-text {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.teams-box-with-hover-text .col {
    padding-right: 0;
    padding-left: 0;
    position: relative;
}

.teams-box-with-hover-text .title-overlay,
.teams-box-with-hover-text .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, .01);
}

.teams-box-with-hover-text .col:hover .title-overlay,
.teams-box-with-hover-text .text-overlay {
    opacity: 0;
}

.teams-box-with-hover-text .col:hover .text-overlay {
    opacity: 1;
    width: 80%;
}

.teams-box-with-hover-text .title-overlay h3,
.teams-box-with-hover-text .title-overlay span.h3,
.teams-box-with-hover-text .text-overlay p {
    color: var(--white);
}

.teams-box-with-hover-text .title-overlay h3,
.teams-box-with-hover-text .title-overlay span.h3 {
    font-family: 'AvenirLTStd-Book';
    font-size: 20px;
}

.teams-box-with-hover-text .text-overlay p {
    font-size: 14px;
}

.teams-box-with-hover-text img {
    filter: brightness(90%);
    -moz-filter: brightness(90%);
    -o-filter: brightness(90%);
    -ms-filter: brightness(90%);
    filter: brightness(90%);
}

.teams-box-with-hover-text .col:hover img {
    -webkit-filter: brightness(35%);
    -moz-filter: brightness(35%);
    -o-filter: brightness(35%);
    -ms-filter: brightness(35%);
    filter: brightness(35%);
}


/*********
RESPONSIVE
**********/

@media screen and (min-width: 1401px) {
    /**  Section "Main Title and Text" **/
    .block-main-title-text p {
        padding-right: 8%;
        padding-left: 8%;
    }
    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 28%;
        padding-right: 28%;
    }
}

@media screen and (max-width: 1400px) {
    /**  Section "Main Title and Text" **/
    .block-main-title-text p {
        padding-right: 12%;
        padding-left: 12%;
    }
    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 25%;
        padding-right: 25%;
    }
}

@media screen and (max-width: 1199px) {
    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 24%;
        padding-right: 24%;
    }

    /** Section "Teams box with hover text" **/
    .teams-box-with-hover-text .text-overlay p {
        font-size: 12px;
    }
}

@media screen and (min-width: 992px) {
    /** Section "Teams box with hover text" **/
    .teams-box-with-hover-text {
        padding-right: 12.5%;
        padding-left: 12.5%;
    }
}

@media screen and (max-width: 991px) {
    /**  Section "Main Title and Text" **/
    .block-main-title-text p {
        padding-right: 0;
        padding-left: 0;
    }

    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 22%;
        padding-right: 22%;
    }

    /** Section "Teams box with hover text" **/
    .teams-box-with-hover-text .text-overlay p {
        font-size: 13px;
    }
}

@media screen and (max-width: 767px) {
    /** Section "Main Title and Text" **/
    .block-main-title-text h2 {
        margin-bottom: 10px;
    }
    .block-main-title-text {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    /** Section "Teams box with hover text" **/
    .teams-box-with-hover-text .title-overlay {
        top: 36%;
    }
    .teams-box-with-hover-text .text-overlay {
        position: initial;
        top: auto;
        left: auto;
        transform: initial;
        opacity: 1;
        padding: 0 15px;
    }
    .teams-box-with-hover-text .col:hover .title-overlay {
        opacity: 1;
    }
    .teams-box-with-hover-text .col:hover .text-overlay {
        width: 100%;
    }
    .teams-box-with-hover-text .col:hover img {
        -webkit-filter: brightness(90%);
        -moz-filter: brightness(90%);
        -o-filter: brightness(90%);
        -ms-filter: brightness(90%);
        filter: brightness(90%);
    }
    .teams-box-with-hover-text .text-overlay {
        margin-top: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 2px -2px #f1f1f1;
    }
    .teams-box-with-hover-text .text-overlay p {
        color: var(--black);
        font-size: 14px;
        margin-bottom: 0;
        padding-bottom: 30px;
    }
}

@media screen and (max-width: 510px) {
    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 11%;
        padding-right: 11%;
    }
}

@media screen and (max-width: 400px) {
    /** Section "Block banner with text and button" **/
    #block-banner-with-text-and-button p {
        padding-left: 20px;
        padding-right: 20px;
    }
}