/* Auto-rotating portfolio: turn any core Gallery inside .hhi-portfolio into a fading slideshow.
   The owner just edits the Gallery block (add/remove images) in the editor. */
.hhi-portfolio .wp-block-gallery {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 520px;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.hhi-portfolio figure.wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .9s ease-in-out;
	pointer-events: none;
}
.hhi-portfolio figure.wp-block-image.hhi-active {
	opacity: 1;
	pointer-events: auto;
}
.hhi-portfolio figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Before JS runs, show the first image so there's no blank flash. */
.hhi-portfolio:not(.hhi-ready) figure.wp-block-image:first-child {
	opacity: 1;
}
