@import url(root.css);

.page.blog .intro {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    overflow: visible;
    pointer-events: none;
}

/* Intro */

.page.blog .intro .blog-image {
    width: 100%;
    max-height: 500px;
    margin-top: var(--nav-height);
    background-image: url("../assets/images/blog-background-01.jpg");
    background-size: 100%;
}

/* Posts */

.page.blog .posts .title {
    font-weight: 900;
}

.page.blog .posts .posts-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    animation: resize 2000ms ease infinite alternate;
}

/* Post */
.page.blog .posts .post {
    position: relative;
    border: 1px solid var(--border-color);
}

body.dark-mode .page.blog .posts .post {
    background-color: var(--dark-color);
}

.page.blog .posts .post-content {
    padding: 1rem;
}

.page.blog .posts .post .post-title {
    font-size: 1em;
    font-weight: 900;
}

.page.blog .posts .post .post-subtitle {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--gray-0);
    font-weight: 500;
}

.page.blog .posts .post .post-text {
    margin-bottom: 30px;
    font-size: 0.8em;
    color: var(--gray-0);
    font-weight: 300;
}

.page.blog .posts .post .post-link {
    position: absolute;
    bottom: 10px;
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 500;
}

/* Post navigation */
.page.blog .posts .posts-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.page.blog .posts .posts-nav-items {
    width: 100%;
    margin-bottom: 0;
    margin-top: 20px;
    padding: 15px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: .93rem;
    font-weight: 800;
    text-align: center;
    list-style: none;
    border-top: 1px solid var(--gray-0);
    border-radius: 0;
}

.page.blog .posts .posts-nav-items > li {
    width: 60px;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.page.blog .posts .posts-nav-items > li > a:hover {
    cursor: pointer;
}

.page.blog .posts .posts-nav-items .previous i,
.page.blog .posts .posts-nav-items .next i {
    color: var(--dark-0);
}

.page.blog .posts .posts-nav-items .previous.active i,
.page.blog .posts .posts-nav-items .next.active i {
    color: var(--primary-color);
}

.page.blog .posts .posts-nav-items > li > a.active {
    color: var(--text-color);
}

.page.blog .posts .posts-nav-items > li > a.active {
    color: var(--primary-color);
}

/* ================ Media Queries =====================*/
