.epig-gallery {
	--epig-thumb-size: 74px;
	--epig-thumb-gap: 10px;
	width: 100%;
}

.epig-main-image-link,
.epig-main-image-link:hover,
.epig-main-image-link:focus {
	display: block;
	color: inherit;
	text-decoration: none;
}

.epig-lightbox-trigger {
	cursor: zoom-in;
}

.epig-main-frame {
	position: relative;
	touch-action: pan-y;
}

.epig-main-image-wrap {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f3f4f6;
}

.epig-main-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: opacity 180ms ease;
}

.epig-main-image.is-changing {
	opacity: 0.45;
}

.epig-gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 64px;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.76);
	box-shadow: none !important;
	cursor: pointer;
	opacity: 0.78;
	text-shadow: 0 1px 4px rgba(17, 24, 39, 0.72);
	appearance: none;
	-webkit-appearance: none;
	transform: translateY(-50%);
	transition:
		color 180ms ease,
		opacity 180ms ease,
		transform 180ms ease;
}

.epig-gallery-arrow--prev {
	left: 14px;
}

.epig-gallery-arrow--next {
	right: 14px;
}

.epig-gallery-arrow span {
	display: block;
	font-size: 56px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-1px);
}

.epig-gallery-arrow:hover,
.epig-gallery-arrow:focus-visible {
	color: rgba(255, 255, 255, 0.98);
	opacity: 1;
}

.epig-gallery-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.epig-thumbs {
	display: flex;
	gap: var(--epig-thumb-gap);
	margin-top: 12px;
	padding: 0 0 2px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.epig-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--epig-thumb-size);
	height: var(--epig-thumb-size);
	aspect-ratio: 1 / 1;
	flex: 0 0 var(--epig-thumb-size);
	padding: 0;
	border: 1px solid rgba(17, 24, 39, 0.22);
	border-radius: 4px;
	background-color: #f7f3ef;
	background-image: var(--epig-thumb-image) !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	opacity: 0.72;
	overflow: hidden;
	cursor: pointer;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		opacity 180ms ease,
		transform 180ms ease;
}

.epig-thumb:hover,
.epig-thumb:focus-visible {
	opacity: 1;
}

.epig-thumb:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.epig-thumb[aria-current="true"] {
	border-color: #111827;
	box-shadow: inset 0 0 0 1px currentColor;
	opacity: 1;
}

.epig-empty {
	padding: 16px;
	border: 1px dashed #cbd5e1;
	color: #64748b;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

body.epig-lightbox-open {
	overflow: hidden;
}

.epig-lightbox[hidden] {
	display: none;
}

.epig-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.88);
}

.epig-lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	touch-action: pan-y;
}

.epig-lightbox-image {
	display: block;
	max-width: min(1200px, 94vw);
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 160ms ease;
}

.epig-lightbox-image.is-changing {
	opacity: 0.42;
}

.epig-lightbox-close,
.epig-lightbox-arrow {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.84);
	box-shadow: none !important;
	cursor: pointer;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
	appearance: none;
	-webkit-appearance: none;
	transition:
		color 180ms ease,
		opacity 180ms ease;
}

.epig-lightbox-close:hover,
.epig-lightbox-close:focus-visible,
.epig-lightbox-arrow:hover,
.epig-lightbox-arrow:focus-visible {
	color: #ffffff;
}

.epig-lightbox-close:focus-visible,
.epig-lightbox-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.epig-lightbox-close {
	top: 18px;
	right: 22px;
	width: 44px;
	height: 44px;
}

.epig-lightbox-close span {
	font-size: 42px;
	font-weight: 300;
	line-height: 1;
}

.epig-lightbox-arrow {
	top: 50%;
	width: 58px;
	height: 82px;
	opacity: 0.86;
	transform: translateY(-50%);
}

.epig-lightbox-arrow--prev {
	left: 18px;
}

.epig-lightbox-arrow--next {
	right: 18px;
}

.epig-lightbox-arrow span {
	display: block;
	font-size: 68px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-2px);
}

@media (max-width: 767px) {
	.epig-lightbox {
		padding: 16px;
	}

	.epig-lightbox-image {
		max-width: 94vw;
		max-height: 82vh;
	}

	.epig-lightbox-arrow--prev {
		left: 2px;
	}

	.epig-lightbox-arrow--next {
		right: 2px;
	}
}
