/* Featured Image Template Styles */
.page-featured-image-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.page-featured-image {
	width: 100%;
	height: 275px;
	object-fit: cover;
	display: block;
}

.fallback-image {
  object-position: center center;
}

.feature-title-container {
	background-color: var(--color-secondary);
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 1rem 1rem;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

h1.featured-title {
	color: white;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 1000px;
	width: 100%;
	margin-block-start: 0; /* removes top margin */
	margin-block-end: 0; /* removes bottom margin */
	margin: 0 1rem;
}

/* these two rules are added to ensure the title is present when no feature image is added */
.page-featured-image-container.no-featured-image {
  height: auto;
  min-height: 60px;
}

.page-featured-image-container.no-featured-image .feature-title-container {
  position: relative;
  bottom: auto;
  left: auto;
}

@media (max-width: 768px) {
	.page-featured-image {
		height: 120px;
	}

	h1.featured-title {
		padding: 0;
		margin: 0;
	}
}
