.ecpg,
.ecpg *,
.ecpg-lightbox,
.ecpg-lightbox * {
	box-sizing: border-box;
}

.elementor-widget-ecpg-gallery {
	min-width: 0;
	max-width: 100%;
}

.ecpg {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: var(--ecpg-nav, #111);
}

.ecpg-stage {
	position: relative;
	background: var(--ecpg-stage-bg, #f6f6f6);
	border-radius: var(--ecpg-radius, 0px);
	overflow: hidden;
	aspect-ratio: var(--ecpg-ratio, 4 / 3);
}

.ecpg--ratio-auto .ecpg-stage {
	aspect-ratio: auto;
}

.elementor .ecpg-stage__frame,
.elementor .ecpg-stage__img,
.ecpg-stage__frame,
.ecpg-stage__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

.elementor .ecpg--ratio-auto .ecpg-stage__frame,
.elementor .ecpg--ratio-auto .ecpg-stage__img,
.ecpg--ratio-auto .ecpg-stage__frame,
.ecpg--ratio-auto .ecpg-stage__img {
	position: static;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: none;
}

.ecpg-stage__img {
	object-fit: var(--ecpg-fit, contain);
	object-position: center;
	transition: opacity 0.28s ease;
	background: var(--ecpg-stage-bg, #f6f6f6);
}

.ecpg-stage.is-swapping .ecpg-stage__img {
	opacity: 0.35;
}

.ecpg-stage__hit {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	touch-action: manipulation;
}

.ecpg.is-video .ecpg-stage__hit {
	cursor: pointer;
}

.ecpg-stage__hit:focus-visible {
	outline: 2px solid var(--ecpg-active, #111);
	outline-offset: -3px;
}

.ecpg-stage__zoom,
.ecpg-stage__badge {
	position: absolute;
	z-index: 3;
	display: grid;
	place-items: center;
	pointer-events: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

.ecpg-stage__zoom {
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
}

.ecpg-stage__badge {
	display: none;
	left: 50%;
	top: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
}

.ecpg.is-video .ecpg-stage__badge {
	display: grid;
}

.ecpg.is-video .ecpg-stage__zoom {
	display: none;
}

.ecpg-carousel {
	margin-top: var(--ecpg-stage-gap, 14px);
}

.ecpg--single .ecpg-carousel,
.ecpg--no-arrows .ecpg-nav,
.ecpg--no-dots .ecpg-dots {
	display: none;
}

.ecpg-carousel__frame {
	position: relative;
}

.ecpg-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

.ecpg-viewport::-webkit-scrollbar {
	display: none;
}

.ecpg-track {
	position: relative;
	display: flex;
	gap: var(--ecpg-gap, 12px);
	margin: 0;
	padding: 0;
}

.ecpg-thumb {
	position: relative;
	flex: 0 0 calc((100% - (var(--ecpg-thumbs, 1.35) - 1) * var(--ecpg-gap, 12px)) / var(--ecpg-thumbs, 1.35));
	width: calc((100% - (var(--ecpg-thumbs, 1.35) - 1) * var(--ecpg-gap, 12px)) / var(--ecpg-thumbs, 1.35));
	aspect-ratio: var(--ecpg-thumb-ratio, 1 / 1);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--ecpg-radius, 0px);
	overflow: hidden;
	background: var(--ecpg-stage-bg, #f6f6f6);
	color: #fff;
	cursor: pointer;
	scroll-snap-align: start;
	box-shadow: inset 0 0 0 1px transparent;
	touch-action: manipulation;
}

.elementor .ecpg-thumb img,
.ecpg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--ecpg-thumb-fit, cover);
	object-position: center;
	pointer-events: none;
}

.ecpg-thumb.is-active {
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--ecpg-active, #111);
}

.ecpg-thumb:focus-visible {
	outline: 2px solid var(--ecpg-active, #111);
	outline-offset: 2px;
}

.ecpg-thumb__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	transform: translate(-50%, -50%);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.ecpg-thumb.is-video:not(:has(img)) {
	background: #161616;
}

.ecpg-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ecpg-nav, #111);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
	transform: translateY(-50%);
	cursor: pointer;
	touch-action: manipulation;
}

.ecpg-nav--prev {
	left: 8px;
}

.ecpg-nav--next {
	right: 8px;
}

.ecpg-nav:focus-visible {
	outline: 2px solid var(--ecpg-active, #111);
	outline-offset: 2px;
}

.ecpg-nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

.ecpg-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	min-height: 22px;
	margin-top: 10px;
}

.ecpg-dot {
	width: 7px;
	height: 7px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.28);
	background: color-mix(in srgb, var(--ecpg-nav, #111) 28%, transparent);
	cursor: pointer;
	touch-action: manipulation;
}

.ecpg-dot.is-active {
	background: var(--ecpg-nav, #111);
}

.ecpg-dot:focus-visible {
	outline: 2px solid var(--ecpg-active, #111);
	outline-offset: 3px;
}

.ecpg-empty {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 8px;
	min-height: 280px;
	padding: 28px 20px;
	border: 1px dashed #cfcfcf;
	background: #fafafa;
	text-align: center;
	color: #444;
}

.ecpg-empty strong {
	font-size: 16px;
	font-weight: 600;
	color: #111;
}

.ecpg-empty span {
	max-width: 36ch;
	font-size: 14px;
	line-height: 1.45;
}

.ecpg-style-source {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ecpg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	background: var(--ecpg-popup-bg, #fff);
	color: #161616;
	overscroll-behavior: contain;
}

.ecpg-lightbox[hidden] {
	display: none !important;
}

.ecpg-lightbox__dialog {
	position: relative;
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
	min-height: 0;
	min-width: 0;
}

.ecpg-lightbox__stage {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	align-items: center;
	justify-content: center;
		padding: max(56px, calc(env(safe-area-inset-top) + 40px)) 16px 32px;
}

.ecpg-lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.elementor .ecpg-lightbox__media img,
.elementor .ecpg-lightbox__thumb img,
.ecpg-lightbox__media img,
.ecpg-lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.ecpg-lightbox__media video,
.ecpg-lightbox__media iframe {
	width: min(100%, 960px);
	height: min(100%, 72vh);
	max-width: 100%;
	border: 0;
	background: #000;
}

.ecpg-lightbox__caption {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 14px;
	margin: 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	color: #666;
}

.ecpg-lightbox__panel {
	display: flex;
	flex-direction: column;
	flex: 0 0 320px;
	width: 320px;
	max-width: 34vw;
	min-height: 0;
	overflow: hidden;
	padding: max(64px, calc(env(safe-area-inset-top) + 48px)) 22px 24px 8px;
	border-left: 1px solid #ececec;
	-webkit-overflow-scrolling: touch;
}

.ecpg-lightbox__copy {
	flex: 0 0 auto;
	margin-bottom: 16px;
}

.ecpg-lightbox__count {
	margin: 0 0 8px;
	font-family: "NeueHaasGroteskDisp", Raleway, "Helvetica Neue", Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.ecpg-lightbox__title {
	margin: 0 0 8px;
	font-family: "Crete Round", Georgia, "Times New Roman", serif;
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 400;
	line-height: 1.25;
	color: #161616;
	overflow-wrap: anywhere;
}

.ecpg-lightbox__text {
	font-family: "NeueHaasGroteskDisp", Raleway, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #3a3a3a;
	overflow-wrap: anywhere;
}

.ecpg-lightbox__text p {
	margin: 0 0 8px;
}

.ecpg-lightbox__text p:last-child {
	margin-bottom: 0;
}

.ecpg-lightbox__thumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-content: start;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding-bottom: 8px;
}

.ecpg-lightbox__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: #f6f6f6;
	cursor: pointer;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px #e6e6e6;
	touch-action: manipulation;
}

.ecpg-lightbox__thumb img,
.elementor .ecpg-lightbox__thumb img {
	object-fit: cover;
}

.ecpg-lightbox__thumb.is-active {
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--ecpg-active, #111);
}

.ecpg-lightbox__thumb:focus-visible,
.ecpg-lightbox__close:focus-visible,
.ecpg-lightbox__arrow:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.ecpg-lightbox__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	transform: translate(-50%, -50%);
}

.ecpg-lightbox__close,
.ecpg-lightbox__arrow {
	position: absolute;
	z-index: 4;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
	cursor: pointer;
	touch-action: manipulation;
}

.ecpg-lightbox__close {
	top: max(12px, env(safe-area-inset-top));
	right: max(12px, env(safe-area-inset-right));
	width: 44px;
	height: 44px;
}

.ecpg-lightbox__arrow {
	top: 50%;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
}

.ecpg-lightbox__arrow--prev {
	left: max(12px, env(safe-area-inset-left));
}

.ecpg-lightbox__arrow--next {
	right: max(12px, env(safe-area-inset-right));
}

.ecpg-lightbox__panel:not(:has(.ecpg-lightbox__copy)) .ecpg-lightbox__thumbs,
.ecpg-lightbox__copy:empty {
	margin: 0;
}

@media (max-width: 900px) {
	.ecpg-lightbox__dialog {
		flex-direction: column;
	}

	.ecpg-lightbox__stage {
		flex: 1 1 0;
		min-height: 220px;
		padding: max(56px, calc(env(safe-area-inset-top) + 40px)) 8px 8px;
	}

	.ecpg-lightbox__media video,
	.ecpg-lightbox__media iframe {
		width: 100%;
		height: 100%;
	}

	.ecpg-lightbox__panel {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: none;
		overflow: visible;
		border-left: 0;
		border-top: 1px solid #ececec;
		padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	}

	.ecpg-lightbox__copy {
		flex: 0 1 auto;
		max-height: 22vh;
		min-height: 0;
		overflow: auto;
		margin-bottom: 10px;
	}

	.ecpg-lightbox__thumbs {
		display: flex;
		flex: 0 0 auto;
		flex-direction: row;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.ecpg-lightbox__thumbs::-webkit-scrollbar {
		display: none;
	}

	.ecpg-lightbox__thumb {
		flex: 0 0 76px;
		width: 76px;
		height: 76px;
		scroll-snap-align: start;
	}

	.ecpg-lightbox__arrow--next {
		right: max(8px, env(safe-area-inset-right));
	}
}

@media (max-width: 767px) {
	.ecpg-nav {
		width: 34px;
		height: 34px;
	}

	.ecpg-nav--prev {
		left: 6px;
	}

	.ecpg-nav--next {
		right: 6px;
	}

	.ecpg-stage__zoom {
		width: 32px;
		height: 32px;
		right: 8px;
		bottom: 8px;
	}

	.ecpg-lightbox__title {
		font-size: 18px;
	}

	.ecpg-lightbox__text {
		font-size: 13px;
	}
}

@media (max-height: 500px) and (orientation: landscape) {
	.ecpg-lightbox__dialog {
		flex-direction: row;
	}

	.ecpg-lightbox__stage {
		flex: 1 1 58%;
		height: 100%;
		max-height: none;
		padding: 48px 48px 12px;
	}

	.ecpg-lightbox__panel {
		flex: 0 0 42%;
		width: 42%;
		max-width: 42%;
		max-height: none;
		height: 100%;
		border-top: 0;
		border-left: 1px solid #ececec;
		padding-top: 52px;
	}

	.ecpg-lightbox__thumbs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
	}

	.ecpg-lightbox__thumb {
		width: 100%;
		height: auto;
		flex: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecpg-viewport {
		scroll-behavior: auto;
	}

	.ecpg-stage__img {
		transition: none;
	}
}
