.atc-expand-gallery {
	--atc-expand-gallery-height: 640px;
	--atc-expand-gallery-thumb-height: 124px;
	--atc-expand-gallery-thumb-active-color: #ffffff;
	position: relative;
	width: 100%;
}

.atc-expand-gallery__stage {
	position: relative;
}

.atc-expand-gallery__main {
	position: relative;
	overflow: hidden;
	background: #181510;
}

.atc-expand-gallery__figure {
	position: relative;
	display: block;
	margin: 0;
}

.atc-expand-gallery__main-action {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: none;
}

.atc-expand-gallery__main-action--expand {
	cursor: zoom-in;
}

.atc-expand-gallery__image {
	display: block;
	width: 100%;
	height: var(--atc-expand-gallery-height);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.atc-expand-gallery__thumb-panel {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 4;
	padding: 18px 26px 22px;
	background: rgba(23, 18, 14, 0.58);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.atc-expand-gallery__thumbs {
	overflow: hidden;
}

.atc-expand-gallery__thumb-slide {
	padding: 0;
}

.atc-expand-gallery__thumb-button {
	display: block;
	width: 100%;
	height: var(--atc-expand-gallery-thumb-height);
	padding: 0;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.atc-expand-gallery__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.78;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.atc-expand-gallery__thumb-slide.swiper-slide-thumb-active .atc-expand-gallery__thumb-button,
.atc-expand-gallery__thumb-button.is-active {
	border-color: var(--atc-expand-gallery-thumb-active-color);
	transform: translateY(-2px);
}

.atc-expand-gallery__thumb-slide.swiper-slide-thumb-active .atc-expand-gallery__thumb-image,
.atc-expand-gallery__thumb-button.is-active .atc-expand-gallery__thumb-image,
.atc-expand-gallery__thumb-button:hover .atc-expand-gallery__thumb-image,
.atc-expand-gallery__thumb-button:focus .atc-expand-gallery__thumb-image {
	opacity: 1;
	transform: scale(1.02);
}

.atc-expand-gallery .elementor-swiper-button {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 0;
	border-radius: 999px;
	background: rgba(20, 17, 13, 0.48);
	color: #ffffff;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.atc-expand-gallery .elementor-swiper-button:hover,
.atc-expand-gallery .elementor-swiper-button:focus {
	background: rgba(20, 17, 13, 0.72);
	outline: none;
}

.atc-expand-gallery .elementor-swiper-button-prev {
	left: 20px;
}

.atc-expand-gallery .elementor-swiper-button-next {
	right: 20px;
}

.elementor-arrows-position-outside .atc-expand-gallery .elementor-swiper-button-prev {
	left: -18px;
}

.elementor-arrows-position-outside .atc-expand-gallery .elementor-swiper-button-next {
	right: -18px;
}

.atc-expand-gallery .swiper-pagination {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	z-index: 5;
}

.atc-expand-gallery--has-thumbs .swiper-pagination {
	bottom: calc(var(--atc-expand-gallery-thumb-height) + 38px);
}

.atc-expand-gallery .swiper-pagination-bullet {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.atc-expand-gallery .elementor-image-carousel-caption {
	position: absolute;
	left: 24px;
	bottom: calc(var(--atc-expand-gallery-thumb-height) + 36px);
	z-index: 4;
	max-width: min(60%, 520px);
	margin: 0;
	padding: 14px 18px;
	background: rgba(17, 17, 17, 0.38);
	color: #ffffff;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.atc-expand-gallery__dialog[hidden] {
	display: none;
}

.atc-expand-gallery__dialog {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	background: rgba(8, 8, 8, 0.92);
}

.atc-expand-gallery__dialog-shell {
	position: relative;
	width: min(1440px, 100%);
	max-height: 100%;
}

.atc-expand-gallery__dialog-surface {
	position: relative;
}

.atc-expand-gallery__dialog .atc-expand-gallery__main {
	border-radius: 16px;
}

.atc-expand-gallery__dialog .atc-expand-gallery__image {
	height: min(78vh, calc(var(--atc-expand-gallery-height) + 120px));
}

.atc-expand-gallery__dialog-close {
	position: absolute;
	top: -14px;
	right: 0;
	z-index: 7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.atc-expand-gallery__dialog-close:hover,
.atc-expand-gallery__dialog-close:focus {
	background: rgba(255, 255, 255, 0.2);
	outline: none;
}

body.atc-expand-gallery-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.atc-expand-gallery {
		--atc-expand-gallery-height: 520px;
		--atc-expand-gallery-thumb-height: 100px;
	}

	.elementor-arrows-position-outside .atc-expand-gallery .elementor-swiper-button-prev {
		left: 12px;
	}

	.elementor-arrows-position-outside .atc-expand-gallery .elementor-swiper-button-next {
		right: 12px;
	}

	.atc-expand-gallery .elementor-image-carousel-caption {
		max-width: calc(100% - 48px);
	}
}

@media (max-width: 767px) {
	.atc-expand-gallery {
		--atc-expand-gallery-height: 320px;
		--atc-expand-gallery-thumb-height: 70px;
	}

	.atc-expand-gallery__thumb-panel {
		padding: 12px 14px 14px;
	}

	.atc-expand-gallery .elementor-swiper-button {
		width: 38px;
		height: 38px;
	}

	.atc-expand-gallery .elementor-swiper-button-prev {
		left: 10px;
	}

	.atc-expand-gallery .elementor-swiper-button-next {
		right: 10px;
	}

	.atc-expand-gallery .elementor-image-carousel-caption {
		left: 12px;
		right: 12px;
		bottom: calc(var(--atc-expand-gallery-thumb-height) + 20px);
		max-width: none;
		padding: 10px 12px;
		font-size: 13px;
	}

	.atc-expand-gallery__dialog {
		padding: 18px 12px;
	}

	.atc-expand-gallery__dialog-close {
		top: -8px;
		right: 8px;
	}

	.atc-expand-gallery__dialog .atc-expand-gallery__image {
		height: min(62vh, 440px);
	}
}
