/**
 * Post gallery grid: compact row height + click-to-enlarge lightbox.
 */

.gt-news-single__gallery-nav {
	display: none;
}

.gt-news-single__gallery-item[hidden] {
	display: block !important;
}

.gt-news-single__gallery-track {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.gt-news-single__gallery-item {
	display: block;
	height: 500px;
	margin: 0;
	overflow: hidden;
	border-radius: 5px;
}

.gt-news-single__gallery-open {
	position: relative;
	display: block;
	width: 100%;
	height: 500px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	overflow: hidden;
}

.gt-news-single__gallery-open:focus-visible {
	outline: 2px solid #00aaef;
	outline-offset: 2px;
}

.gt-news-single__gallery .gt-news-single__gallery-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 640px) {
	.gt-news-single__gallery-track {
		gap: 0.75rem;
	}
}

/* Lightbox */
.ckg-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgb(0 0 0 / 0.88);
}

.ckg-gallery-lightbox[hidden] {
	display: none;
}

.ckg-gallery-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	margin: 0;
}

.ckg-gallery-lightbox__stage img {
	display: block;
	max-width: 100%;
	max-height: 92vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ckg-gallery-lightbox__close,
.ckg-gallery-lightbox__prev,
.ckg-gallery-lightbox__next {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	cursor: pointer;
}

.ckg-gallery-lightbox__close {
	top: 1rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 4px;
	font-size: 1.75rem;
	line-height: 1;
}

.ckg-gallery-lightbox__prev,
.ckg-gallery-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 4px;
	font-size: 1.5rem;
	line-height: 1;
}

.ckg-gallery-lightbox__prev {
	left: 1rem;
}

.ckg-gallery-lightbox__next {
	right: 1rem;
}

.ckg-gallery-lightbox__close:hover,
.ckg-gallery-lightbox__prev:hover,
.ckg-gallery-lightbox__next:hover,
.ckg-gallery-lightbox__close:focus-visible,
.ckg-gallery-lightbox__prev:focus-visible,
.ckg-gallery-lightbox__next:focus-visible {
	background: rgb(255 255 255 / 0.22);
	outline: none;
}

.ckg-gallery-lightbox__prev:disabled,
.ckg-gallery-lightbox__next:disabled {
	opacity: 0.35;
	cursor: default;
}

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