#bg-shape {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

#content {
    max-width: 1080px;
    margin: 0 auto;
    margin-top: 128px;
}

h1 {
    font-size: 2em;
    margin-top: 32px;
}

.group-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-btn {
    padding: 32px 16px;
    width: 100%;
    height: 100px;
    font-size: 22px;

    background: #000A;
    /* border: solid 4px black; */
    /* border-radius: 8px; */

    /* outline: solid 1px white; */
    border-radius: 8px 8px 0 0;
    border-bottom: solid 1px white;
    
    font-family: 'Lato';

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    text-decoration: none;
    
    transition: all ease-in-out 0.2s;
}

.news-btn:hover {
    /* outline-offset: 8px;
    border: solid 4px white; */
    border-width: 4px;
}

.news-date {
    text-align: right;
}

.news-btn img {
    width: 32px;
    height: 32px;
    border-radius: 0;
}

.news-btn.hidden {
    opacity: 0.3;
}

#img-cursor {
    position: fixed;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    outline: solid 1px transparent;
    outline-offset: 0px;
    pointer-events: none;
    object-fit: cover;
    transition: width ease-out 0.2s,
                height ease-out 0.2s,
                outline ease-out 0.2s,
                outline-offset ease-out 0.2s;
}

#img-cursor.visible {
    width: 256px;
    height: 128px;
    outline: solid 1px white;
    outline-offset: 8px;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

#sorter {
    padding: 16px;
    border-radius: 8px;
    background: #000A;
    font-family: 'custom-megrim';

    display: flex;
    gap: 8px;
    align-items: center;
}

.sort-btn {
    padding-bottom: 2px;
    border-bottom: solid 1px white;
    cursor: pointer;
    user-select: none;
    padding: 2px 8px;
}

.sort-btn.active {
    border-width: 3px;
}

@media (orientation: portrait) {
    #content {
        margin: 82px 16px;
        margin-bottom: 0;
    }
    .news-btn {
        align-items: start;
        flex-direction: column;
        height: fit-content;
    }
    .group-container {
        display: flex;
        flex-direction: column;
    }
    #sorter {
        flex-wrap: wrap;
    }
}