.main-page {
    margin: auto;
    max-width: 1280px;
}

.news-block {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.news-item {
    width: 300px;
    height: 500px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-item-date {
    font-weight: bold;
    padding-bottom: 5px;
}

.news-item-title {
    font-size: 28px;
}

.news-item-intro {
    flex: auto;
    overflow: hidden;
    max-height: 388px;
    margin-bottom: 10px;
}


.news-index {
    margin: auto;
    display: flex;
    margin-bottom: 30px;
    justify-content: center;
}

.news-index-block {
}

.news-item-foto {

}

.news-item-foto-img {
   
}

.news-item-foto-preview {
}

.news-item-foto-img-preview {
    max-width: 300px;
    max-height: 300px;
}


.news-index-link {
    padding: 5px;
    border: 1px solid #000;
    margin: 5px;
}

/*mobile only*/
@media (max-width: 1200px) {
    .news-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .news-block {
        grid-template-columns: repeat(1, 1fr);
    }
}
