.hq-gallery-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 40px;
}

.hq-gallery-slider__viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: transparent;
}

.hq-gallery-slider__track {
	display: flex;
	transition: transform 0.4s ease;
}

.hq-gallery-slider__slide {
	flex: 0 0 100%;
	width: 100%;
}

.hq-gallery-slider__slide-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 600px;
}

.hq-gallery-slider__slide-trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: zoom-in;
}

.hq-gallery-slider__slide img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
	pointer-events: none;
}

.hq-gallery-slider__caption {
	text-align: center;
	font-size: 13px;
	color: #666;
	padding: 8px 12px 0;
}

@media ( max-width: 782px ) {
	.hq-gallery-slider__slide-inner {
		height: 300px;
	}
}

.hq-gallery-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	background: transparent;
	border: none;
	color: #333;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.hq-gallery-slider__nav:hover {
	opacity: 1;
}

.hq-gallery-slider__nav--prev {
	left: 4px;
}

.hq-gallery-slider__nav--next {
	right: 4px;
}

@media ( max-width: 600px ) {
	.hq-gallery-slider__nav--prev {
		left: -4px;
	}

	.hq-gallery-slider__nav--next {
		right: -4px;
	}
}

.hq-gallery-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.hq-gallery-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: #d4d4d4;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hq-gallery-slider__dot.is-active {
	background: #1a1a1a;
	transform: scale( 1.15 );
}

/* Lightbox */

body.hq-gallery-lightbox-open {
	overflow: hidden;
}

.hq-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
}

.hq-gallery-lightbox.is-open {
	display: flex;
}

.hq-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.9 );
}

.hq-gallery-lightbox__content {
	position: relative;
	z-index: 1;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hq-gallery-lightbox__image {
	display: block;
	max-width: 92vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.hq-gallery-lightbox__caption {
	color: #f2f2f2;
	font-size: 14px;
	text-align: center;
	margin-top: 14px;
	max-width: 80vw;
}

.hq-gallery-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	padding: 6px;
}

.hq-gallery-lightbox__close:hover {
	opacity: 1;
}

.hq-gallery-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.75;
	padding: 10px;
}

.hq-gallery-lightbox__nav:hover {
	opacity: 1;
}

.hq-gallery-lightbox__nav--prev {
	left: 12px;
}

.hq-gallery-lightbox__nav--next {
	right: 12px;
}

@media ( max-width: 600px ) {
	.hq-gallery-lightbox__nav--prev {
		left: 4px;
	}

	.hq-gallery-lightbox__nav--next {
		right: 4px;
	}
}
