.error404 header, .error404 footer:not(.no-background) {
    display: none;
}

#page-404 {
    min-height: 100vh;
    overflow: hidden;
    flex-flow: column wrap;
    position: relative;
    z-index: 2;
}

#page-404 .main-grid {
    grid-template-columns: 55% 40%;
    margin: auto 0;
}

#page-404 .not-found {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

#page-404 h1.title {
    margin: 0 0 30px;
    padding: 0;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
}

#page-404 h1.title span {
    font-size: 500%;
}

#page-404 .not-found p {
    margin-bottom: 24px;
}

#page-404 .buttons {
    margin-top: 30px;
}

#page-404 .main-grid-sidebar {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

#page-404 .widget {
    background: 0 0;
    border: 0;
}

#page-404 h2.widget-title {
    font-size: 18px;
    font-weight: 400;
}

#page-404 .widget-posts .item .info .meta .meta-info {
    color: inherit;
}

#page-404 .widget-posts .item .info .meta .meta-info .dot {
    width: 13px;
    height: 4px;
    margin-right: 8px;
    margin-left: 0;
}

#page-404 #footer.no-background {
    background: 0 0;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

#page-404 #footer .published {
    text-align: center;
    margin: 0;
    padding: 20px;
    font-size: 15px;
}

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

    #page-404 h1.title {
        font-size: 34px;
    }

    #page-404 h2.widget-title {
        font-size: 16px;
    }

}

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

    #page-404 .main-grid {
        grid-template-columns: 1fr;
    }

}

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

    #page-404 h1.title {
        font-size: 26px;
    }

    #page-404 .not-found {
        padding: 0;
    }

    #page-404 .not-found p {
        font-size: 14px;
    }

}