@media (max-width: 1600px) {
	html {
		font-size: 55%;
	}
}

@media (max-width: 1366px) {
	html {
		font-size: 50%;
	}

    .list-containers .article-list {
        max-width: 80rem;
    }

    .list-containers .gallery-list {
        max-width: 90rem;
    }
}

@media (max-width: 1000px) {
	.featured-card {
		max-width: 100vw;
		padding: 4rem 6rem;
	}

    .featured-post-image {
        width: 30rem;
        max-width: 30rem;
    }

	.article-list {
		grid-template-columns: 1fr 1fr;
        justify-items: stretch;
		gap: 2rem;
	}

    .list-content {
        position: relative;
        bottom: 0;
    }

    .list-containers {
        flex-direction: column;
        width: auto;
        justify-content: center;
        padding: 0 2rem;
        gap: 2rem;
    }

	.gallery-list {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
		padding: 0 2rem;
	}

	.post-container {
		max-width: 100vw;
		margin: 10vh 5vw;
	}
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: unset !important;
    }

    .footer {
        flex-direction: column;
        gap: 4rem;
    }

	.article-list {
		grid-template-columns: 1fr;
		gap: 2rem;
        padding-top: 0;
	}

    .article-container {
        margin: 0 auto;
    }

	.gallery-list {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 0 2rem;
	}

    .e404-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .e404-left {
        img {
            width: 100%;
            height: auto;
        }
    }

    .list-containers {
        flex-direction: column;
        justify-content: flex-start;
    }

    .homepage-header {
        padding: 10rem 2rem;
    }
    
	.post-related {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 650px) {

    .masthead {
        padding: 2rem;
        font-size: 1.4rem;
    }

    .homepage-header {
        padding: 10rem 1rem;
        align-items: center;
    }


	.homepage-header h1 {
		font-size: 5.2rem;
	}

    .post-title {
        font-size: 4.6rem;
    }

	.homepage-header p {
		font-size: 2rem;
	}
}

@media (max-width: 500px) {
	.featured-card {
		flex-direction: column;
	}
	.featured-post-image {
		width: 100%;
        max-width: 100%;
		height: 25rem;
	}

	.gallery-card {
		min-height: 0;
		min-width: 0;
	}

	.post-container {
		margin: 5vh 0;
		padding: 3rem 2rem;
	}

    .list-containers {
        padding: 0 0.5rem;
    }

    .article-list {
        padding: 0.5rem;
        margin: 0;
    }
}
