/* Posts */
#blog-grid {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-grid-item {
    grid-column: span 1;
}

.post-card {
    max-width: 400px;
    outline: 2px black solid;

}

.post-card h2 {
    margin-top: 10px;
    margin-bottom: 0;
}

.post-card, .post-card .text {
    display: flex;
    flex-direction: column;
}

.post-card .text {
    flex-grow: 1;
    padding: 0 10px 0 10px;
}
.post-card a {
    text-decoration: none;
    color: initial;
}
.post-card p {
    margin-top: auto;
}

.post-card .image {
    object-fit: cover;
    width: 100%;
    margin-bottom: 5px;
}

.post-card:hover {
    box-shadow: 0 0 7px 3px black;
}
.post-card a:focus {
    text-decoration: underline;
}
.post-card:focus-within {
    box-shadow: 0 0 0 0.25rem;
}
.post-card:focus-within a:focus {
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

section.post {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

section.post img {
    /*border-radius: 8px;*/
    flex-basis: 50%;
    max-width: 100%;
}

/* Admin */

.admin-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    background:grey;
}

.admin-post-body {
    display: flex;
    flex-direction: row;
    flex: 4;
}

.admin-post-settings {
    display: flex;
    flex-direction: column;
    flex: 1;
}
