.fhk-gallery-explorer {
	margin-top: 24px;
}

.fhk-gallery-explorer__tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	border-bottom: 1px solid rgba(31, 74, 56, 0.2);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.fhk-gallery-explorer__tabs button {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: var(--fhk-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
}

.fhk-gallery-explorer__tabs button::after {
	position: absolute;
	right: 12px;
	bottom: -1px;
	left: 12px;
	height: 2px;
	background: transparent;
	content: "";
}

.fhk-gallery-explorer__tabs button[aria-selected="true"] {
	color: var(--fhk-forest);
}

.fhk-gallery-explorer__tabs button[aria-selected="true"]::after {
	background: var(--fhk-gold);
}

.fhk-gallery-explorer__tabs small {
	margin-left: 7px;
	color: var(--fhk-gold);
	font-size: 11px;
	font-weight: 800;
}

.fhk-gallery-explorer__stage {
	margin: 18px 0 0;
}

.fhk-gallery-explorer__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--fhk-radius-lg);
	background: var(--fhk-forest);
	box-shadow: var(--fhk-shadow);
	touch-action: pan-y;
}

.fhk-gallery-explorer__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 160ms ease;
}

.fhk-gallery-explorer__media > img.is-loading {
	opacity: 0.55;
}

.fhk-gallery-explorer__stage-actions {
	position: absolute;
	top: 14px;
	right: 14px;
}

.fhk-gallery-explorer__stage figcaption {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	min-height: 50px;
	padding: 13px 2px 0;
	color: var(--fhk-charcoal);
	font-size: 14px;
}

.fhk-gallery-explorer__stage figcaption span:first-child {
	min-width: 0;
	font-weight: 650;
}

.fhk-gallery-explorer__stage figcaption span:last-child {
	flex: 0 0 auto;
	color: var(--fhk-muted);
	font-variant-numeric: tabular-nums;
}

.fhk-gallery-explorer__navigation {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
}

.fhk-gallery-explorer__panels,
.fhk-gallery-explorer__panel {
	min-width: 0;
}

.fhk-gallery-explorer__panel[hidden] {
	display: none;
}

.fhk-gallery-explorer__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px;
	scroll-behavior: smooth;
	scroll-padding-inline: 4px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.fhk-gallery-explorer__thumb {
	position: relative;
	flex: 0 0 96px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--fhk-radius);
	background: var(--fhk-mist);
	cursor: pointer;
	scroll-snap-align: start;
}

.fhk-gallery-explorer__thumb span,
.fhk-gallery-explorer__thumb img {
	display: block;
	width: 100%;
	height: 100%;
}

.fhk-gallery-explorer__thumb img {
	object-fit: cover;
}

.fhk-gallery-explorer__thumb.is-active {
	border-color: var(--fhk-gold);
}

.fhk-gallery-explorer__thumb.is-active::after {
	position: absolute;
	inset: 3px;
	border: 1px solid rgba(255, 250, 240, 0.9);
	border-radius: calc(var(--fhk-radius) - 2px);
	content: "";
	pointer-events: none;
}

.fhk-gallery-explorer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(31, 74, 56, 0.2);
	border-radius: 50%;
	background: var(--fhk-linen);
	color: var(--fhk-forest);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.fhk-gallery-explorer__stage-actions .fhk-gallery-explorer__icon {
	border-color: rgba(255, 250, 240, 0.5);
	background: rgba(15, 47, 37, 0.82);
	color: var(--fhk-linen);
	backdrop-filter: blur(8px);
}

.fhk-gallery-explorer__icon:disabled {
	cursor: default;
	opacity: 0.38;
}

.fhk-gallery-explorer__dialog {
	width: min(94vw, 1280px);
	max-width: none;
	max-height: 94vh;
	padding: 0;
	border: 1px solid rgba(255, 250, 240, 0.18);
	border-radius: var(--fhk-radius-lg);
	background: var(--fhk-forest);
	color: var(--fhk-linen);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.fhk-gallery-explorer__dialog::backdrop {
	background: rgba(12, 20, 17, 0.86);
	backdrop-filter: blur(4px);
}

.fhk-gallery-explorer__dialog-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	padding: 7px 12px 7px 20px;
	border-bottom: 1px solid rgba(255, 250, 240, 0.14);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.fhk-gallery-explorer__dialog .fhk-gallery-explorer__icon {
	border-color: rgba(255, 250, 240, 0.32);
	background: transparent;
	color: var(--fhk-linen);
}

.fhk-gallery-explorer__dialog-media {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 240px;
	background: #091c16;
}

.fhk-gallery-explorer__dialog-media img {
	width: 100%;
	max-height: calc(94vh - 130px);
	object-fit: contain;
}

.fhk-gallery-explorer__dialog-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 250, 240, 0.4);
	border-radius: 50%;
	background: rgba(15, 47, 37, 0.78);
	color: var(--fhk-linen);
	font-size: 20px;
	transform: translateY(-50%);
	cursor: pointer;
}

.fhk-gallery-explorer__dialog-nav.is-previous {
	left: 16px;
}

.fhk-gallery-explorer__dialog-nav.is-next {
	right: 16px;
}

.fhk-gallery-explorer__dialog > p {
	min-height: 52px;
	margin: 0;
	padding: 14px 20px;
	color: rgba(255, 250, 240, 0.84);
	font-size: 14px;
}

.fhk-gallery-explorer__fallback {
	margin-top: 18px;
}

.fhk-gallery-explorer__fallback details {
	padding: 10px 0;
	border-bottom: 1px solid rgba(31, 74, 56, 0.16);
}

.fhk-gallery-explorer__fallback summary {
	font-weight: 750;
	cursor: pointer;
}

@media (min-width: 768px) {
	.fhk-gallery-explorer {
		margin-top: 28px;
	}

	.fhk-gallery-explorer__tabs button {
		min-height: 52px;
		padding-inline: 22px;
		font-size: 15px;
	}

	.fhk-gallery-explorer__thumb {
		flex-basis: 116px;
	}

	.fhk-gallery-explorer__navigation {
		grid-template-columns: 48px minmax(0, 1fr) 48px;
		gap: 14px;
	}

	.fhk-gallery-explorer__navigation > .fhk-gallery-explorer__icon {
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 639px) {
	.fhk-gallery-explorer__tabs {
		margin-inline: -20px;
		padding-inline: 8px;
	}

	.fhk-gallery-explorer__tabs button {
		padding-inline: 12px;
		font-size: 13px;
	}

	.fhk-gallery-explorer__stage figcaption {
		min-height: 46px;
		font-size: 13px;
	}

	.fhk-gallery-explorer__navigation {
		grid-template-columns: 40px minmax(0, 1fr) 40px;
		gap: 6px;
	}

	.fhk-gallery-explorer__navigation > .fhk-gallery-explorer__icon {
		width: 40px;
		height: 40px;
	}

	.fhk-gallery-explorer__thumb {
		flex-basis: 82px;
	}

	.fhk-gallery-explorer__dialog {
		width: 100vw;
		max-height: 100vh;
		border: 0;
		border-radius: 0;
	}

	.fhk-gallery-explorer__dialog-media img {
		max-height: calc(100vh - 126px);
	}

	.fhk-gallery-explorer__dialog-nav {
		width: 44px;
		height: 44px;
	}

	.fhk-gallery-explorer__dialog-nav.is-previous {
		left: 10px;
	}

	.fhk-gallery-explorer__dialog-nav.is-next {
		right: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fhk-gallery-explorer__media > img,
	.fhk-gallery-explorer__thumbs {
		scroll-behavior: auto;
		transition: none;
	}
}
