/*-------------------------
Large devices
--------------------------*/
@media (max-width: 1024px) {
    /* Footer Grid */
    .digi-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    /* Footer Branding */
    .digi-footer-branding {
        width: 360px;
    }

    /* Footer Products */
    .digi-footer-products {
        width: 284px;
    }

    /* Align */
    body
        .alignfull.digi-layout-constrained
        > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 90%;
    }
}

/*-------------------------
Tablets
--------------------------*/
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    /* Blog */
    .digi-posts-grid {
        grid-template-columns: 1fr;
    }

    /* 404 Error Page */
    .digi-error-title {
        font-size: 8rem;
    }

    .digi-error-message {
        font-size: 1.875rem;
    }

    /* Featured Images */
    .digi-featured-image {
        height: 370px;
    }

    .digi-post-thumbnail-single {
        height: 570px;
    }

    /* Comment Form */
    .digi-comment-list {
        border-radius: 8px;

        .comment {
            &.depth-2 {
                margin-left: 20px;
            }

            .comment-body {
                padding: 16px;

                .comment-meta {
                    .comment-author {
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 8px;

                        .avatar {
                            width: 40px;
                            height: 40px;
                        }
                    }

                    .comment-metadata {
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 8px;
                    }
                }

                .reply {
                    text-align: left;

                    .comment-reply-link {
                        padding: 6px 12px;
                        font-size: 12px;
                    }
                }
            }

            .children {
                .comment {
                    .comment-body {
                        padding: 12px 16px;
                    }
                }
            }
        }
    }

    /* Page Header */
    .digi-page-title {
        font-size: 2.5rem;
    }

    /* Related Posts */
    .digi-related-grid {
        grid-template-columns: 1fr;
    }

    .digi-related-thumbnail {
        height: 370px;
    }

    /* Single Article */
    .digi-single-article,
    .digi-comments-wrapper {
        max-width: 818px;
    }

    /* Post Share */
    .digi-post-share {
        margin-bottom: 4rem;
    }

    /* Post Content */
    .digi-post-content-single {
        padding-bottom: 6rem;
    }

    /* Related Posts */
    .digi-related-posts {
        padding-bottom: 6rem;
        padding-top: 4rem;
    }
}

/*-------------------------
Medium devices
--------------------------*/
@media (max-width: 640px) {
    /* Comments */
    .digi-comment-submit {
        flex-direction: row;
    }

    /* Comment list */
    .digi-comment-list {
        margin: 4rem 0;
    }

    /* Footer Copyright */
    .digi-copyright {
        flex-direction: row;
    }
}

/*-------------------------
  Small devices
--------------------------*/
@media (max-width: 576px) {
    /* Author Box */
    .digi-author-box {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }

    .digi-author-content {
        margin-top: 0;
    }

    .digi-comment-list {
        padding: 12px;

        .comment {
            &.depth-2 {
                margin-left: 0;
                margin-top: 12px;
            }

            .comment-body {
                padding: 12px;

                .comment-meta {
                    .comment-author {
                        .avatar {
                            width: 36px;
                            height: 36px;
                        }

                        .fn {
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}
