/**
 * LH Image Gallery photo page. Layout only: colours and type come from the theme.
 */

@view-transition {
	navigation: auto;
}

@media (prefers-reduced-motion: reduce) {

	@view-transition {
		navigation: none;
	}
}

.wp-block-lh-image-gallery-photo__figure {
	margin: 0;
	text-align: center;
}

.wp-block-lh-image-gallery-photo__figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 80vh;
	margin: 0 auto;
	view-transition-name: lh-image-gallery-photo;
}

.wp-block-lh-image-gallery-photo__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-top: 1em;
}

.wp-block-lh-image-gallery-photo__prev,
.wp-block-lh-image-gallery-photo__next {
	flex: 1;
}

.wp-block-lh-image-gallery-photo__next {
	text-align: right;
}

.wp-block-lh-image-gallery-photo__heading {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wp-block-lh-image-gallery-photo__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em 1.5em;
}
