main {
    grid-area: main;
    z-index: 0;
}

#header {}

#main-content {
    display: grid;
    margin: 3vh 3vw;
    grid-template-rows: repeat(4, auto);
}

#news-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
    margin: 0 10%;
}

#news-anons {
    font-size: 1.4em;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

#news-date {
    margin: 0 10%;
}

#main-content span {
    color: black; /*#9D9EA6;*/
    font-size: 1.2em;
    font-style: normal;
    font-weight: 700;
}

#main-content .overlay span {
    color: #9D9EA6;
}

a{
    text-decoration: none;
}

li{
    margin-left: 15px;
    padding-left: 10px;
}

h2{
    padding-top: 15px;
    padding-bottom: 15px;
}

#news-content {
    line-height: 2em;
    margin: 0 10%;
}

#news-page-date {
    color: #9D9EA6;
}

/* -------------------------------------------- */
/* --- Костыль для ссылок на другие новости --- */
/* -------------------------------------------- */


.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 32%);
    grid-template-rows: auto;
    gap: 30px 15px;

}

@media(max-width: 1024px) {

    .footer-links {
        grid-template-columns: repeat(2, 50%);

    }

}

@media(max-width: 700px) {
    .footer-links {
        grid-template-columns: repeat(1, 100%);

    }

    .overlay {
        width: 100%;
        height: 40px;
        opacity: 1;
        border-radius: 15px;
        background-color: rgba(0, 0, 0, 0.6);

    }

    .footer-links__image:hover .overlay {
        height: 40px;
    }

    .footer-links__image img {
        border-radius: 15px;

    }
}

.footer-links__item {
    height: auto;
    display: grid;
    grid-template-rows: 35vh auto auto;
    /*temp fix*/
    display: block;
}



.footer-links__item h2 {
    position: relative;
    display: inline-block;
    color: black;
}

.footer-links__item h2 span a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: lighter;
    line-height: 10px;
}

.footer-links__item h2 a,
.footer-links__item h2 a span {
    color: black !important;
    text-decoration: none;
    font-size: 18px !important;
    font-weight: lighter;
    line-height: 10px;
}

.footer-links__image {
    position: relative;
    display: inline-block;
}

.footer-links__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;


}

.footer-links__text {
    display: none;
    grid-area: text;
    /*temp fix*/
    display: block;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay a:hover {
    color: rgb(255, 255, 255);

}

.footer-links__image:hover .overlay {
    opacity: 1;
    height: 100%;


}

.footer-links__image:hover .overlay a {
    animation: bounce 0.8s forwards;
    animation-delay: 0.2s;
}

.overlay {
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    transform: translate3d(0, 0, 0);
    transform: translateZ(0);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: height 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay a {

    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;

}

/* -------------------------------------------- */
/* ------------------- END -------------------- */
/* -------------------------------------------- */

#news-content p {
    text-align: justify;
}

#news-content .p-img {
    text-align: center;

}

#news-content .p-img img {
    max-width: 60vw;
    margin: 10px auto 5px auto;

}

@media(max-width: 700px) {

    #news-content {
        margin: 0 5px;
    }

    #news-content p img {
        height: auto;
        max-width: 80vw;
        margin: 20px auto 20px auto;
    }
}