#posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 30px;
}

#index-title {
    text-align: justify;
    margin-left: 50px;
    margin-bottom: 0px;
}

.post{
    border: black solid 1px;
    max-height: 700px;
    overflow: hidden;
    color: black;
    transition: transform 0.1s ease-in-out;
    font-size: 18px;
}

.post:hover {
    box-shadow: gray 8px 8px 8px;
    transform: scale(1.01) translatey(-5px);
}

.post-div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}

.post-image-container {
    max-height: 300px;
    overflow: hidden;
    grid-row: 1/2;
}

.post-image {
    width: 100%;
    height: 100%;
    object-position: center;
}

.post-details {
    grid-row: 2/3;
    padding: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
}

.post-top-details {
    display: flex;
    justify-content: space-between;
}

.post-index-subcategory {
    font-weight: bold;
}

.post-subtitle {
    overflow-wrap: break-word;
    font-weight: normal;
    overflow: hidden;
}
