.hfr-gallery-backdrop {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.72);
	display: none;
}

.hfr-gallery-backdrop.hfr-gallery-open {
	display: block;
}

.hfr-gallery-frame {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 92vw;
	max-height: 92vh;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
	padding: 16px 16px 12px;
	box-sizing: border-box;
}

.hfr-gallery-close {
	position: absolute;
	right: 8px;
	top: 4px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 4px 10px;
	z-index: 2;
}

.hfr-gallery-main {
	position: relative;
	text-align: center;
	margin: 8px 0 12px;
	max-height: calc(92vh - 120px);
	overflow: visible;
	min-height: 120px;
}

.hfr-gallery-main img {
	max-width: 100%;
	max-height: calc(92vh - 120px);
	height: auto;
	width: auto;
	vertical-align: middle;
}

.hfr-gallery-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.hfr-gallery-strip.hfr-gallery-strip-single {
	display: none;
}

.hfr-gallery-nav {
	position: static;
	transform: none;
	flex: 0 0 auto;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #71797E;
	color: #fff;
	font-size: 30px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hfr-gallery-nav.hfr-gallery-nav-hidden {
	display: none;
}

.hfr-gallery-nav:hover,
.hfr-gallery-nav:focus {
	background: #5a6268;
	color: #fff;
	outline: 2px solid #c60;
	outline-offset: 2px;
}

.hfr-gallery-prev {
	left: auto;
}

.hfr-gallery-next {
	right: auto;
}

.hfr-gallery-thumbs {
	text-align: center;
	white-space: normal;
	flex: 1 1 auto;
	min-width: 0;
}

.hfr-gallery-thumbs.hfr-gallery-thumbs-single {
	display: none;
}

.hfr-gallery-thumb {
	display: inline-block;
	margin: 2px 4px;
	border: 2px solid transparent;
	cursor: pointer;
	vertical-align: middle;
	line-height: 0;
	box-sizing: border-box;
}

.hfr-gallery-thumb img {
	display: block;
	max-width: 56px;
	max-height: 56px;
	border: none;
}

.hfr-gallery-thumb.hfr-gallery-thumb-active {
	border-color: #c60;
}
