.box {
    background-size: cover;
    position:relative;
    height: 100%;
    flex-direction:column;
}

.boxUtvalda {
    flex-direction: inherit;
}

.box:hover img {
    scale: 1.05;
}

.box img {
    transition: all 0.5s;
    scale: 1;
}

.box-with-bg-image {
    height: 679px;
}

.box:hover .hidden {
    display:block;
}

.box-size-3 {
    grid-column: 1 / -1;
    flex-direction: row;
}

.box-size-3 > div {
    width: 50%;
}

.box-size-3 .box-text {
    width: 75%;
}

.box-size-2 {
    grid-column: span 2;
}

.listPagesBox {
    height: 621px;
    width: 100%;
    background-size: cover;
}

.listPagesBox * {
    color: var(--white);
    text-decoration: none;
}

.listPagesBox:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.5s;
}

.listPagesAsBoxes a > div > div {
    transition: background-color 0.5s;
}

.listPagesAsBoxes a:hover > div > div {
    background-color: var(--white);
}

.extraBoxes .extraBox {
    position:relative;
    background-position: center;
    background-size: cover;
    padding: 5rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.extraBoxes .extraBox:after {
    content: "";
    position:absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.extraBoxes .extraBox > div {
    position:relative;
    z-index: 1;
}

.extraBox a:after {
    content: url(/icons/roundArrow.svg);
    border: none;
    top: 6px;
    position:relative;
    margin-left: 1rem;
}

.branschBox:hover > div img {
    scale: 1.05;
}

.branschBox img {
    scale: 1;
    transition: all 0.5s;
}

.branschBox:hover * {
    /* color: var(--white) !important; */
}

@media (max-width:820px) {
    
    .box {
        height: 144px;
        margin-bottom: 1rem;
        background-position: center;
        height: auto !important;
    }
    
    .listPagesAsBoxes p.small {
            display: none;
    }
    
    .listPagesAsBoxes > a > div {
        display:flex;
    }
    
    .listPagesAsBoxes > a > div > div {
        width: 30px !important;
        height: 30px !important;
        margin-right: 0 !important;
        padding: 0.8rem !important;
    }
    
    .listPagesAsBoxes > a > div > div  svg {
        width: 15px !important;
    }
    
    .listPagesBox {
        height: 400px;
    }

    .box-size-3 {
        display: block !important;
    }

    .box-size-3 > div {
        width: 100%;
    }
}