/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Main blog grid */
/* Blog grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	align-items: stretch;
}


/* The article itself is the card */
.blog-grid article {
	margin: 0;
	min-width: 0;

	display: flex;
	flex-direction: column;

	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* Remove the card styling from GeneratePress's inner wrapper */
.blog-grid .inside-article {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}


/* Push the button to the bottom */
.blog-grid .blog-read-more {
	margin-top: auto;
	padding-top: 20px;
}

/* Featured image */
.blog-grid .post-image {
	margin-top: 0;
	margin-bottom: 20px;
}

.blog-grid .post-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Push Read more button to the bottom of every card */
.blog-grid article {
	position: relative;
}

/* Leave room at the bottom of the card for the button */
.blog-grid .inside-article {
	padding-bottom: 100px;
}

/* Fix the button to the bottom of each card */
.blog-grid .blog-read-more {
	position: absolute;
	left: 30px;
	bottom: 30px;
	margin: 0;
	padding: 0;
}

/* Read more button */
.blog-read-more-button {
	display: inline-block;
	padding: 10px 18px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.blog-read-more-button:hover,
.blog-read-more-button:focus {
	background: #555;
	color: #fff;
}


/* Tablet */
@media (max-width: 1024px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 25px;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
}