:root {
	--hc-gallery-navy: #17283c;
	--hc-gallery-lime: #d3fa13;
	--hc-gallery-white: #fff;
	--hc-gallery-muted: #a8b4c3;
}

.elementor-widget-shortcode:has(.hc-imagin-gallery),
.elementor-widget-shortcode:has(.hc-imagin-gallery) > .elementor-widget-container,
.elementor-widget-shortcode:has(.hc-imagin-gallery) .elementor-shortcode,
.hc-imagin-gallery {
	width: 100%;
	min-width: 0;
}

.hc-imagin-gallery {
	position: relative;
	background: transparent;
}

.hc-imagin-gallery__viewer {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	align-items: center;
	width: 100%;
	min-height: clamp(290px, 35vw, 520px);
}

.hc-imagin-gallery__stage {
	display: grid;
	place-items: center;
	width: 100%;
	min-width: 0;
	min-height: inherit;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: zoom-in;
}

.hc-imagin-gallery__stage:only-child {
	grid-column: 1 / -1;
}

.hc-imagin-gallery__stage:hover,
.hc-imagin-gallery__stage:focus,
.hc-imagin-gallery__stage:focus-visible {
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
}

.hc-imagin-gallery__stage img {
	display: block;
	width: 100%;
	height: clamp(290px, 35vw, 520px);
	object-fit: contain;
	object-position: center;
}

.hc-imagin-gallery__arrow {
	z-index: 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 76px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hc-gallery-navy);
	font-family: "Open Sans", sans-serif !important;
	font-size: 56px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}

.hc-imagin-gallery__arrow:hover,
.hc-imagin-gallery__arrow:focus,
.hc-imagin-gallery__arrow:focus-visible {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hc-gallery-navy);
	outline: 0;
	opacity: .65;
}

.hc-imagin-gallery__arrow--prev:hover { transform: translateX(-2px); }
.hc-imagin-gallery__arrow--next:hover { transform: translateX(2px); }

.hc-imagin-gallery__thumbs {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.25vw, 16px);
	width: 100%;
	margin: 0;
	padding: 14px 0 4px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	background: var(--hc-gallery-white);
	scrollbar-width: thin;
}

.hc-imagin-gallery__thumb {
	flex: 0 0 clamp(88px, 12vw, 130px);
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 0;
	overflow: hidden;
	scroll-snap-align: start;
	border: 0;
	border-radius: 0;
	background: var(--hc-gallery-white);
	box-shadow: none;
	cursor: zoom-in;
	opacity: .58;
	transition: opacity .18s ease;
}

.hc-imagin-gallery__thumb:hover,
.hc-imagin-gallery__thumb:focus,
.hc-imagin-gallery__thumb:focus-visible,
.hc-imagin-gallery__thumb.is-active {
	border: 0;
	background: var(--hc-gallery-white);
	box-shadow: none;
	outline: 0;
	opacity: 1;
}

.hc-imagin-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hc-imagin-modal[hidden] {
	display: none;
}

.hc-imagin-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: rgba(7, 17, 31, .97);
	color: var(--hc-gallery-white);
}

.hc-imagin-modal__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
	padding: 12px clamp(18px, 3vw, 42px);
}

.hc-imagin-modal__topbar strong {
	overflow: hidden;
	font: 700 clamp(17px, 2vw, 24px)/1.2 "Ubuntu", sans-serif;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hc-imagin-modal__close,
.hc-imagin-modal__arrow {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hc-gallery-white);
	cursor: pointer;
}

.hc-imagin-modal__close:hover,
.hc-imagin-modal__close:focus,
.hc-imagin-modal__close:focus-visible,
.hc-imagin-modal__arrow:hover,
.hc-imagin-modal__arrow:focus,
.hc-imagin-modal__arrow:focus-visible {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hc-gallery-white);
	outline: 0;
	opacity: .7;
}

.hc-imagin-modal__close {
	width: 48px;
	height: 48px;
	font: 300 42px/1 "Open Sans", sans-serif;
}

.hc-imagin-modal__media {
	position: relative;
	display: grid;
	grid-template-columns: clamp(48px, 6vw, 82px) minmax(0, 1fr) clamp(48px, 6vw, 82px);
	place-items: center;
	min-height: 0;
	padding: 8px;
	touch-action: pan-y;
}

.hc-imagin-modal__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 1500px;
	max-height: calc(100vh - 190px);
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.hc-imagin-modal__arrow {
	width: 100%;
	height: 100%;
	min-width: 56px;
	font-family: "Open Sans", sans-serif !important;
	font-size: clamp(58px, 7vw, 88px) !important;
	font-weight: 300 !important;
	line-height: 1 !important;
}

.hc-imagin-modal__count {
	position: absolute;
	right: clamp(18px, 3vw, 42px);
	bottom: 8px;
	color: rgba(255, 255, 255, .8);
	font: 600 13px/1.2 "Open Sans", sans-serif;
}

.hc-imagin-modal__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 5vw, 68px);
	min-height: 94px;
	padding: 14px clamp(18px, 3vw, 42px) max(14px, env(safe-area-inset-bottom));
	background: var(--hc-gallery-navy);
}

.hc-imagin-modal__offer > span {
	display: block;
	margin-bottom: 3px;
	color: var(--hc-gallery-muted);
	font: 700 11px/1.2 "Open Sans", sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.hc-imagin-modal__price {
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.hc-imagin-modal__price strong {
	font: 700 clamp(24px, 3vw, 36px)/1 "Ubuntu", sans-serif;
}

.hc-imagin-modal__price small {
	color: var(--hc-gallery-muted);
	font: 600 12px/1.2 "Open Sans", sans-serif;
}

.hc-imagin-modal__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--hc-gallery-lime);
	color: var(--hc-gallery-navy);
	font: 700 14px/1.2 "Open Sans", sans-serif;
	text-decoration: none;
}

.hc-imagin-modal__call:hover,
.hc-imagin-modal__call:focus {
	background: #c5eb00;
	color: var(--hc-gallery-navy);
	text-decoration: none;
}

/* Keep theme and Elementor button presets from styling the gallery controls. */
.hc-imagin-gallery button.hc-imagin-gallery__stage,
.hc-imagin-gallery button.hc-imagin-gallery__arrow,
.hc-imagin-modal button.hc-imagin-modal__close,
.hc-imagin-modal button.hc-imagin-modal__arrow {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.hc-imagin-gallery button.hc-imagin-gallery__thumb,
.hc-imagin-gallery button.hc-imagin-gallery__thumb:hover,
.hc-imagin-gallery button.hc-imagin-gallery__thumb:focus,
.hc-imagin-gallery button.hc-imagin-gallery__thumb.is-active {
	border: 0 !important;
	background: var(--hc-gallery-white) !important;
	box-shadow: none !important;
}

body.hc-imagin-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.hc-imagin-gallery__viewer {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		min-height: 250px;
	}

	.hc-imagin-gallery__stage img {
		height: 250px;
	}

	.hc-imagin-gallery__arrow {
		width: 44px;
		height: 60px;
		font-size: 46px !important;
	}

	.hc-imagin-gallery__thumbs {
		gap: 8px;
		padding-top: 10px;
	}

	.hc-imagin-gallery__thumb {
		flex-basis: 82px;
	}

	.hc-imagin-modal__topbar {
		min-height: 58px;
		padding: 8px 14px;
	}

	.hc-imagin-modal__media {
		grid-template-columns: 48px minmax(0, 1fr) 48px;
		padding: 0;
	}

	.hc-imagin-modal__image {
		max-height: calc(100vh - 220px);
	}

	.hc-imagin-modal__arrow {
		min-width: 48px;
		font-size: 56px !important;
	}

	.hc-imagin-modal__count {
		right: 14px;
		bottom: 6px;
	}

	.hc-imagin-modal__cta {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
		min-height: 148px;
		padding: 12px 14px max(12px, env(safe-area-inset-bottom));
	}

	.hc-imagin-modal__offer {
		text-align: center;
	}

	.hc-imagin-modal__price {
		justify-content: center;
	}

	.hc-imagin-modal__call {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hc-imagin-gallery__arrow,
	.hc-imagin-gallery__thumb {
		transition: none;
	}
}
