.cks-quick-gallery-open {
	overflow: hidden;
}

.cks-quick-gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.cks-quick-gallery-modal.is-open {
	display: flex;
}

.cks-quick-gallery-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
}

.cks-quick-gallery-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 900px);
	height: min(92vh, 900px);
	display: flex;
	flex-direction: column;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.cks-quick-gallery-swiper {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	height: 100%;
}

.cks-quick-gallery-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.cks-quick-gallery-image,
.cks-quick-gallery-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cks-quick-gallery-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.cks-quick-gallery-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.cks-quick-gallery-footer {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: #111;
}

.cks-quick-gallery-counter {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.cks-quick-gallery-whatsapp {
	min-width: 130px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
}

.cks-quick-gallery-whatsapp:hover {
	filter: brightness(0.94);
}

.cks-quick-gallery-swiper .swiper-button-prev,
.cks-quick-gallery-swiper .swiper-button-next {
	color: #fff;
}

.cks-quick-gallery-swiper .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.55;
}

.cks-quick-gallery-swiper .swiper-pagination-bullet-active {
	opacity: 1;
}

@media (max-width: 782px) {
	.cks-quick-gallery-modal {
		padding: 0;
	}

	.cks-quick-gallery-dialog {
		width: 100%;
		height: 100dvh;
		border-radius: 0;
	}

	.cks-quick-gallery-footer {
		padding-bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.cks-quick-gallery-whatsapp {
		min-width: 120px;
	}
}