@import "reset.css";
@import "root.css";

.main-wrapper {
    margin: 0 auto 150px auto;
    max-width: 1750px;
    display: flex;
    flex-direction: column;
}

.title-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}


.title-wrapper h1 {
    font-size: 2rem;
    text-align: center;
}

.articles-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.post {
    display: flex;
    flex-direction: column;
    flex-basis: 30%;
    background-color: white;
    border-radius: 6px;
    position: relative;
}

.post a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none;
    z-index: 1;
    opacity: 0;
}

.post .title {
    padding: 30px 0 8px 0;
    font-weight: 900;
    font-size: var(--font-content-title-h2);
}

.post .preview {
    word-break: break-word;
    line-height: 30px;
}

.post img.mini {
    height: 296px;
    object-position: center center;
    object-fit: cover;
}

.hide-in-desktop {
    display: none;
}

@media (min-width: 993px) {
    .hide-in-s-l-screens {
        display: none !important;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 0.857rem;
        line-height: 1.2;
    }

    .main-wrapper {
        margin: 0 0 80px 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        font-size: var(--font-content-mobile);
    }

    .articles-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: none;
        gap: 10px;
    }

    .post {
        padding: 5px 30px;
    }

    .post .title {
        font-size: var(--font-title-h2-mobile);
    }

    .hide-inMobile {
        display: none !important;
    }
}
