body {
    background-color: #333;
}

.header {
    z-index: 1;
}

.header a:first-child {
    color: #ffffff;
}

.header a:first-child span {
    font-size: 11px;
}

.module {
    height: 100vh; /* Use vh as a fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
    margin: 0 auto;
    max-width: 100%;
}

.module-item {
    align-items: center;
    display: flex;
    height: 25%;
    justify-content: center;
    overflow: hidden;
}

.module-item::after {
    position: absolute;
    background: #000;
    inset: 0;
    content: "";
    display: block;
    opacity: 0.6;

    transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    -o-transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
}

.module-item img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;

    transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    -o-transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
}

.module-item .title {
    font-size: 16px !important;
}

.module-item .title,
.module-item .sub-title {
    z-index: 1;

    transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    -o-transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
}

.module-item:hover::after {
    opacity: 0.3;
}

.module-item:hover:not(:hover) {
    opacity: 1;
}

.module-item .sub-title {
    opacity: 0;
}

.module-item:hover .sub-title {
    opacity: 1;
    margin-top: 3rem;
}

.module-item:hover img {
    transform: scale(1.2);
}

@media (min-width: 992px) {
    .module-item {
        height: 100vh;
    }

    .module .brand {
        width: 60px;
        height: 60px;
    }

    .module-item:hover .title {
        padding-bottom: 3rem;
    }

    .module-item:hover .sub-title {
        margin-top: 6rem !important;
    }

    .module-item .title {
        font-size: 18px !important;
    }
}

@media (min-width: 1400px) {
    .module-item:hover .sub-title {
        margin-top: 3rem;
    }
}

