.hg-home-hero {
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--gotham);
	margin: 0 auto;
	padding: 30px 0;
	width: 100%;
}

@media (max-width: 576px) {
    .hg-home-hero {
        padding: 30px 15px !important;
    }
}

.hg-home-hero__grid {
	border-radius: 10px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	overflow: hidden;
}

.hg-home-hero__card {
	align-items: center;
	aspect-ratio: 1.91 / 1;
	box-sizing: border-box;
	color: var(--wp--preset--color--base);
	display: flex;
	isolation: isolate;
	justify-content: center;
	overflow: hidden;
	padding: 4em 2em;
	position: relative;
	text-align: center;
	text-decoration: none;
}

.hg-home-hero__image,
.hg-home-hero__overlay {
	inset: 0;
	position: absolute;
}

.hg-home-hero__image {
	height: 100%;
	object-fit: cover;
	transition: filter 350ms ease, transform 500ms ease;
	width: 100%;
	z-index: -2;
}

.hg-home-hero__overlay {
	background: rgba(0, 0, 0, 0.5);
	transition: background-color 300ms ease;
	z-index: -1;
}

.hg-home-hero__category {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--base);
	font-size: 1.6rem;
	font-weight: 800;
	left: 0;
	line-height: 1.5;
	padding: 0.25em 15px;
	position: absolute;
	top: 15px;
}

.hg-home-hero__card:nth-child(odd) .hg-home-hero__category {
	border-radius: 0 5px 5px 0;
	left: 0;
	right: auto;
}

.hg-home-hero__card:nth-child(even) .hg-home-hero__category {
	border-radius: 5px 0 0 5px;
	left: auto;
	right: 0;
}

.hg-home-hero__title {
	color: inherit;
	font-size: 1.4rem;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	max-width: 100%;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.hg-home-hero__title:hover,
.hg-home-hero__title:focus-visible {
	outline: none;
	text-decoration: none;
}

.hg-home-hero__card:hover,
.hg-home-hero__card:focus-visible {
	color: var(--wp--preset--color--base);
	outline: none;
	text-decoration: none;
}

.hg-home-hero__card:hover .hg-home-hero__image,
.hg-home-hero__card:focus-visible .hg-home-hero__image {
	filter: saturate(1.08);
	transform: scale(1.035);
}

.hg-home-hero__card:hover .hg-home-hero__overlay,
.hg-home-hero__card:focus-visible .hg-home-hero__overlay {
	background: rgba(0, 0, 0, 0.25);
}

.hg-home-hero__card.is-image-loaded .hg-home-hero__image {
	animation: hg-home-hero-image-in 450ms ease-out both;
}

@keyframes hg-home-hero-image-in {
	from {
		opacity: 0.65;
	}

	to {
		opacity: 1;
	}
}

.hg-homepage-main {
	box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--column-gap);
	grid-template-areas:
		"feed sidebar"
		"cats cats";
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--page-gutter) var(--wp--preset--spacing--page-gutter-inline);
	width: 100%;
}

.hg-homepage-main.is-layout-flow > * + *,
.hg-homepage-main.is-layout-constrained > * + * {
	margin-block-start: 0;
}

.hg-homepage-feed {
	grid-area: feed;
	min-width: 0;
}

.hg-homepage-main > .hg-sidebar {
	align-self: start;
	grid-area: sidebar;
	height: auto;
	min-width: 0;
}

.hg-homepage-main > .hg-featured-categories {
	grid-area: cats;
	width: 100%;
}

.hg-homepage-main .wp-block-columns {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--column-gap);
}

.hg-homepage-main .wp-block-column:last-child {
	align-self: flex-start;
	height: auto;
}

.hg-homepage-main .hg-sidebar {
	background: var(--wp--preset--color--accent-5);
	border-radius: 10px;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--gotham);
	margin: 0;
	padding: var(--wp--preset--spacing--sidebar-padding);
}

.hg-homepage-main .hg-sidebar .wp-block-search,
.hg-homepage-main .hg-sidebar .wp-block-latest-posts {
	background: transparent;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

.hg-homepage-main .hg-sidebar .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	height: 0;
	margin: 1em 0;
	width: 100%;
}

.hg-homepage-main .hg-sidebar .wp-block-search__label,
.hg-homepage-main .hg-sidebar .hg-sidebar-section-title {
	color: var(--wp--preset--color--blue-sidebar);
	display: block;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 14px;
}

.hg-homepage-main .hg-sidebar .wp-block-search__label {
	font-size: 1.25rem;
}

.hg-homepage-main .hg-sidebar .hg-sidebar-section-title {
	font-size: var(--wp--preset--font-size--lg) !important;
}

.hg-homepage-main .hg-sidebar .hg-sidebar-section-title.wp-block-heading {
	margin-top: 0;
}

.hg-homepage-main .hg-sidebar .wp-block-search__inside-wrapper {
	display: grid !important;
	flex: none !important;
	flex-wrap: unset !important;
	gap: 8px;
	max-width: 100% !important;
}

.hg-homepage-main .hg-sidebar .wp-block-search__input {
	background: var(--wp--preset--color--base) !important;
	border: 1px solid var(--wp--preset--color--gray-input) !important;
	border-radius: 2px !important;
	box-sizing: border-box;
	flex-basis: auto !important;
	min-width: 0;
	padding: var(--wp--preset--spacing--input-padding) !important;
	width: 100% !important;
}

.hg-homepage-main .hg-sidebar .wp-block-search__button {
	background: var(--wp--preset--gradient--orange-cta) !important;
	border: 1px solid var(--wp--preset--color--orange-dark) !important;
	border-radius: 3px !important;
	box-sizing: border-box;
	color: var(--wp--preset--color--base) !important;
	cursor: pointer;
	font: 800 1rem/1 inherit;
	margin-left: 0 !important;
	padding: var(--wp--preset--spacing--btn-padding) !important;
	width: 100%;
}

.hg-homepage-main .hg-sidebar .wp-block-search__button:hover,
.hg-homepage-main .hg-sidebar .wp-block-search__button:focus-visible {
	background: var(--wp--preset--color--accent-1) !important;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts,
.hg-homepage-main .hg-sidebar .wp-block-latest-posts__list {
	display: block;
	height: auto;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts li {
	height: auto;
	margin: 0 0 0.75em;
	min-height: 0;
	padding: 0;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts li:last-child {
	margin-bottom: 0;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-title {
	color: var(--wp--preset--color--accent-1) !important;
	display: block;
	font-size: 0.9rem;
	font-weight: 800 !important;
	line-height: 1.3;
	text-decoration: none !important;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-title:hover,
.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-title:focus-visible {
	color: var(--wp--preset--color--orange-hover-dark) !important;
	outline: none;
	text-decoration: underline !important;
}

.hg-homepage-main .hg-sidebar .hg-latest-posts__meta {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 22px;
}

.hg-homepage-main .hg-sidebar .hg-latest-posts__categories {
	display: inline;
}

.hg-homepage-main .hg-sidebar .hg-latest-posts__categories a {
	border-right: 1px solid var(--wp--preset--color--accent-4);
	color: var(--wp--preset--color--accent-3) !important;
	font: 300 1.2rem var(--wp--preset--font-family--gotham);
	margin-right: 0.5em;
	padding-right: 0.5em;
	text-decoration: none !important;
}

.hg-homepage-main .hg-sidebar .hg-latest-posts__categories a:hover,
.hg-homepage-main .hg-sidebar .hg-latest-posts__categories a:focus-visible {
	color: var(--wp--preset--color--accent-1) !important;
	text-decoration: underline !important;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-date,
.hg-homepage-main .hg-sidebar .hg-latest-posts__date,
.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-author {
	color: var(--wp--preset--color--accent-4);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 22px;
}

.hg-homepage-main .hg-sidebar .wp-block-latest-posts__post-date,
.hg-homepage-main .hg-sidebar .hg-latest-posts__date {
	color: var(--wp--preset--color--accent-4) !important;
	display: inline;
}

.hg-home-feed-query {
	box-sizing: border-box;
}

.hg-home-feed-query .hg-home-posts {
	display: grid;
	gap: var(--wp--preset--spacing--card-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-home-feed-query .hg-home-posts > li {
	margin: 0;
}

.hg-home-post-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--gray-card);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(18, 35, 58, 0.05);
	margin: 0;
	overflow: hidden;
	transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hg-home-post-card:hover,
.hg-home-post-card:focus {
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.125), 0 10px 10px rgba(0, 0, 0, 0.11);
	outline: none;
	transform: scale(1.03);
}

.hg-home-post-card__image-link,
.hg-home-post-card .wp-block-post-featured-image {
	display: block;
	margin: 0;
	overflow: hidden;
}

.hg-home-post-card__image,
.hg-home-post-card .wp-block-post-featured-image img {
	aspect-ratio: 1.92 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform 350ms ease;
	width: 100%;
}

.hg-home-post-card__image-link:hover .hg-home-post-card__image,
.hg-home-post-card .wp-block-post-featured-image a:hover img {
	transform: scale(1.02);
}

.hg-home-post-card__body {
	margin: 0;
	padding: 20px 15px;
}

.hg-home-post-card__title,
.hg-home-post-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--hero-lg);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 10px;
}

.hg-home-post-card__title a,
.hg-home-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--blue-sidebar);
	font-size: 2.4rem;
	text-decoration: none;
}

.hg-home-post-card__title a:hover,
.hg-home-post-card__title a:focus,
.hg-home-post-card__title a:focus-visible,
.hg-home-post-card .wp-block-post-title a:hover,
.hg-home-post-card .wp-block-post-title a:focus-visible {
	outline: none;
	text-decoration: none;
	text-underline-offset: 0.15em;
}

.hg-home-post-card__meta {
	color: var(--wp--preset--color--accent-4);
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 1.2rem;
	gap: 6px 12px;
	margin-bottom: 20px;
}

.hg-home-post-card__meta time:hover {
	text-decoration: underline;
}

.hg-home-post-card__categories {
	font: 700 var(--wp--preset--font-size--base) var(--wp--preset--font-family--gotham);
}

.hg-home-post-card__meta .wp-block-post-date {
	color: inherit;
	font-size: inherit;
}

.hg-home-post-card__categories a,
.hg-home-post-card .wp-block-post-terms a {
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
	text-decoration: none;
}

.hg-home-post-card__categories a:focus,
.hg-home-post-card__categories a:focus-visible,
.hg-home-post-card .wp-block-post-terms a:hover,
.hg-home-post-card .wp-block-post-terms a:focus-visible,
.hg-home-post-card__title a:focus,
.hg-home-post-card .wp-block-post-title a:focus {
	outline: none;
}

.hg-home-post-card__excerpt,
.hg-home-post-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--gray-excerpt);
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0;
}

.hg-home-feed-query .wp-block-buttons {
	margin-top: 24px;
}

.hg-home-feed-query .hg-home-load-more,
.hg-home-feed-query .hg-home-load-more-btn .wp-block-button__link {
	font-weight: 800;
	min-width: 140px;
	transition: background-color 200ms ease, transform 200ms ease;
}

.hg-home-feed-query .hg-home-load-more:hover,
.hg-home-feed-query .hg-home-load-more:focus,
.hg-home-feed-query .hg-home-load-more-btn .wp-block-button__link:hover,
.hg-home-feed-query .hg-home-load-more-btn .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--orange-hover);
	border: 1px solid var(--wp--preset--color--orange-dark);
	outline: none;
}

.hg-home-feed-query .hg-home-load-more:disabled,
.hg-home-feed-query .hg-home-load-more-btn .wp-block-button__link:disabled {
	cursor: wait;
	opacity: 0.7;
	transform: none;
}

.hg-home-load-more__status {
	color: var(--wp--preset--color--error);
	font-size: 0.875rem;
	margin: 8px 0 0;
	min-height: 1.4em;
}

.hg-featured-categories {
	box-sizing: border-box;
	margin: 0;
	padding: clamp(24px, 4vw, 56px) 0 0;
	text-align: center;
	width: 100%;
}

.hg-featured-categories__subtitle {
	color: var(--wp--preset--color--gray-body);
	font-size: var(--wp--preset--font-size--hero-sm);
	margin: 0 0 clamp(30px, 4vw, 48px);
}

.hg-featured-categories__list.wp-block-columns {
	align-items: start !important;
	display: grid !important;
	flex-wrap: unset;
	gap: clamp(20px, 4vw, 46px) !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
}

.hg-featured-categories__item {
	flex-basis: auto !important;
	min-width: 0;
}

.hg-featured-categories__label,
.hg-featured-categories__label a {
	color: var(--wp--preset--color--gray-label);
	font-size: 1.6rem;
	line-height: 1.2;
	text-decoration: none;
}

.hg-featured-categories__image,
.hg-featured-categories__image img {
	border-radius: 50%;
	height: auto;
	margin: 0 auto 14px;
	max-width: 150px;
	transition: transform 250ms ease, filter 250ms ease;
	width: 100%;
}

.hg-featured-categories__item:hover .hg-featured-categories__image img,
.hg-featured-categories__item:focus-within .hg-featured-categories__image img {
	filter: saturate(1.08);
	transform: translateY(-4px);
}

.hg-featured-categories__label a:focus-visible,
.hg-featured-categories__image a:focus-visible {
	border-radius: 4px;
	outline: none;
}

@media (min-width: 768px) {
	.hg-home-hero__title {
		font-size: 1.5rem;
	}

	.hg-home-post-card__title a,
	.hg-home-post-card .wp-block-post-title a {
		font-size: 3.2rem;
		font-weight: 300;
	}

	.hg-home-post-card__title a:hover,
	.hg-home-post-card .wp-block-post-title a:hover {
		color: var(--wp--preset--color--blue-hover);
	}

	.hg-home-post-card__categories a {
		font-size: 1.6rem;
		line-height: 1.5;
	}

	.hg-home-post-card__categories a:hover {
		text-decoration: underline;
	}

	.hg-homepage-main .hg-sidebar .wp-block-search__button {
		width: 140px;
	}
}

@media (min-width: 1200px) {
	.hg-home-hero__title {
		font-size: 2.9rem;
	}
}

@media (max-width: 767.98px) {
	.hg-home-hero__grid {
		grid-template-columns: 1fr;
	}

	.hg-home-hero__card {
		aspect-ratio: auto;
		min-height: calc((100vw - 30px) / 1.91);
		padding: 3em 1.5em;
	}

	.hg-home-hero__category {
		padding: 2px 3px;
		top: 10px;
	}
}

@media (max-width: 781px) {
	.hg-homepage-main {
		grid-template-areas:
			"feed"
			"cats"
			"sidebar";
		grid-template-columns: minmax(0, 1fr);
	}

	.hg-featured-categories__list.wp-block-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.hg-featured-categories__list.wp-block-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hg-featured-categories__item:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		max-width: 50%;
	}

	.hg-featured-categories__image,
	.hg-featured-categories__image img {
		max-width: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-home-hero__image,
	.hg-home-hero__overlay,
	.hg-featured-categories__image,
	.hg-home-post-card__image,
	.hg-home-post-card .wp-block-post-featured-image img {
		animation: none !important;
		transition: none;
	}
}
