/* Portfolio "Load More" (homepage grid gallery) */

/* Items beyond the first batch, hidden until Isotope takes over. */
.gallery-wrap .dynamic-frame > .pf-lm-pre {
	display: none !important;
}

/* Reserve each card's image space before it loads. The theme sets
   ".gridimg-wrap img { width:auto; height:auto }", so an image that has not
   loaded yet (lazy loading) has no height, and Isotope would stack the cards
   as thin overlapping strips. All portfolio thumbnails are 3:2. */
body.home .gallery-wrap.grid-gallery .gridimg-wrap .img img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.pf-load-more {
	clear: both;
	width: 100%;
	margin: 30px 0 10px;
	text-align: center;
}

/* Matches the site's red call-to-action button (.btn-primary.more-info). */
.pf-load-more .pf-load-more-btn {
	display: inline-block;
	min-width: 200px;
	padding: 14px 40px;
	border: 2px solid #f9303b;
	border-radius: 30px;
	background-color: #f9303b;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.5px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pf-load-more .pf-load-more-btn:hover {
	background-color: #fff;
	color: #f9303b;
}

.pf-load-more .pf-load-more-btn:focus-visible {
	outline: 2px solid #f9303b;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.pf-load-more {
		margin-top: 20px;
	}

	.pf-load-more .pf-load-more-btn {
		width: 100%;
		max-width: 320px;
	}
}
