.ctkc-gallery {
	--ctkc-blue: #087bcd;
	--ctkc-navy: #0a2b61;
	--ctkc-cyan: #35bce5;
	--ctkc-light: #f5f9fc;
	--ctkc-border: #dfe9ef;
	position: relative;
	width: 100%;
}

.ctkc-gallery,
.ctkc-gallery * {
	box-sizing: border-box;
}

.ctkc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ctkc-item {
	position: relative;
	overflow: hidden;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--ctkc-border);
	border-radius: 20px;
	background: var(--ctkc-light);
	transition:
		transform .35s ease,
		border-color .35s ease,
		box-shadow .35s ease;
}

.ctkc-item:hover {
	border-color: rgba(8, 123, 205, .32);
	box-shadow: 0 18px 38px rgba(10, 43, 97, .10);
	transform: translateY(-6px);
}

.ctkc-gallery.ctkc-reveal-ready .ctkc-item[data-ctkc-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity .6s ease,
		transform .6s ease,
		border-color .35s ease,
		box-shadow .35s ease;
}

.ctkc-gallery.ctkc-reveal-ready .ctkc-item[data-ctkc-reveal].ctkc-visible {
	opacity: 1;
	transform: translateY(0);
}

.ctkc-gallery.ctkc-reveal-ready .ctkc-item[data-ctkc-reveal].ctkc-visible:hover {
	transform: translateY(-6px);
}

.ctkc-open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.ctkc-thumbnail {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	transition: transform .65s cubic-bezier(.22, .8, .3, 1);
}

.ctkc-item:hover .ctkc-thumbnail,
.ctkc-open:focus-visible .ctkc-thumbnail {
	transform: scale(1.055);
}

.ctkc-hover {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, rgba(10, 43, 97, .02), rgba(10, 43, 97, .34));
	opacity: 0;
	transition: opacity .35s ease;
}

.ctkc-item:hover .ctkc-hover,
.ctkc-open:focus-visible .ctkc-hover {
	opacity: 1;
}

.ctkc-zoom-icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 17px;
	color: #fff;
	background: rgba(8, 123, 205, .88);
	box-shadow: 0 12px 30px rgba(10, 43, 97, .22);
	opacity: 0;
	transform: scale(.72) rotate(-7deg);
	transition:
		opacity .35s ease,
		transform .4s cubic-bezier(.22, .8, .3, 1);
}

.ctkc-item:hover .ctkc-zoom-icon,
.ctkc-open:focus-visible .ctkc-zoom-icon {
	opacity: 1;
	transform: scale(1) rotate(0);
}

.ctkc-zoom-icon svg {
	width: 27px;
	height: 27px;
}

.ctkc-open:focus-visible {
	outline: 3px solid var(--ctkc-cyan);
	outline-offset: 3px;
}

/* LIGHTBOX */

.ctkc-lightbox {
	--ctkc-blue: #087bcd;
	--ctkc-navy: #0a2b61;
	--ctkc-cyan: #35bce5;
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	visibility: hidden;
	place-items: center;
	opacity: 0;
	transition:
		visibility 0s linear .35s,
		opacity .35s ease;
}

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

.ctkc-lightbox.is-open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.ctkc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 18, 42, .93);
	backdrop-filter: blur(9px);
	-webkit-backdrop-filter: blur(9px);
}

.ctkc-lightbox-shell {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 58px;
	align-items: center;
	gap: 22px;
	width: min(94vw, 1480px);
	height: min(90vh, 940px);
	height: min(90dvh, 940px);
	transform: translateY(18px) scale(.96);
	transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}

.ctkc-lightbox.is-open .ctkc-lightbox-shell {
	transform: translateY(0) scale(1);
}

.ctkc-stage {
	display: flex;
	min-width: 0;
	min-height: 0;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.ctkc-lightbox-image {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: calc(100% - 58px) !important;
	margin: auto;
	border-radius: 16px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, .34);
	object-fit: contain !important;
	object-position: center !important;
	opacity: 1;
	transform: translateX(0) scale(1);
	transition:
		opacity .18s ease,
		transform .22s ease;
}

.ctkc-lightbox-image.is-changing-next {
	opacity: 0;
	transform: translateX(-22px) scale(.985);
}

.ctkc-lightbox-image.is-changing-prev {
	opacity: 0;
	transform: translateX(22px) scale(.985);
}

.ctkc-lightbox-footer {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	padding: 12px 3px 0;
	color: #d7e3ef;
}

.ctkc-caption {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.ctkc-caption:empty {
	display: none;
}

.ctkc-counter {
	margin-left: auto;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	white-space: nowrap;
}

.ctkc-nav,
.ctkc-close {
	display: grid;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	background: rgba(255, 255, 255, .09);
	cursor: pointer;
	transition:
		border-color .25s ease,
		background-color .25s ease,
		transform .25s ease;
}

.ctkc-nav {
	width: 58px;
	height: 58px;
	border-radius: 17px;
}

.ctkc-nav:hover,
.ctkc-close:hover,
.ctkc-nav:focus-visible,
.ctkc-close:focus-visible {
	border-color: var(--ctkc-cyan);
	background: var(--ctkc-blue);
	outline: none;
	transform: scale(1.06);
}

.ctkc-nav svg {
	width: 24px;
	height: 24px;
}

.ctkc-close {
	position: absolute;
	z-index: 4;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	border-radius: 14px;
}

.ctkc-close svg {
	width: 22px;
	height: 22px;
}

body.ctkc-lightbox-open {
	overflow: hidden !important;
}

.ctkc-empty-front {
	padding: 18px;
	border: 1px dashed #dfe9ef;
	border-radius: 13px;
	color: #5e6b79;
	background: #f5f9fc;
	font-size: 14px;
}

@media (max-width: 900px) {
	.ctkc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ctkc-lightbox-shell {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		gap: 13px;
		width: 96vw;
	}

	.ctkc-nav {
		width: 52px;
		height: 52px;
	}
}

@media (max-width: 600px) {
	.ctkc-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.ctkc-item {
		border-radius: 17px;
	}

	.ctkc-lightbox-shell {
		display: block;
		width: 100%;
		height: 100%;
		padding: max(70px, env(safe-area-inset-top)) 15px max(78px, env(safe-area-inset-bottom));
	}

	.ctkc-stage {
		height: 100%;
	}

	.ctkc-lightbox-image {
		max-width: 100% !important;
		max-height: calc(100% - 55px) !important;
		border-radius: 12px;
	}

	.ctkc-close {
		top: 14px;
		right: 14px;
	}

	.ctkc-nav {
		position: absolute;
		bottom: 17px;
		width: 48px;
		height: 48px;
	}

	.ctkc-prev {
		left: calc(50% - 56px);
	}

	.ctkc-next {
		right: calc(50% - 56px);
	}

	.ctkc-lightbox-footer {
		padding-top: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ctkc-item,
	.ctkc-thumbnail,
	.ctkc-hover,
	.ctkc-zoom-icon,
	.ctkc-lightbox,
	.ctkc-lightbox-shell,
	.ctkc-lightbox-image,
	.ctkc-nav,
	.ctkc-close {
		transition: none !important;
	}

	.ctkc-gallery.ctkc-reveal-ready .ctkc-item[data-ctkc-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}
