.clg-gallery {
	display: flex;
	gap: 8px;
}

.clg-gallery.clg-pos-bottom {
	flex-direction: column;
}

.clg-gallery.clg-pos-left {
	flex-direction: row-reverse;
}

.clg-gallery.clg-pos-right {
	flex-direction: row;
}

.clg-main {
	flex: 1 1 auto;
	min-width: 0;
}

.clg-main-img {
	width: 100%;
	height: auto;
	display: block;
}

.clg-lightbox-trigger {
	display: block;
	cursor: zoom-in;
}

.clg-thumbs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.clg-pos-left .clg-thumbs,
.clg-pos-right .clg-thumbs {
	flex-direction: column;
	flex-wrap: nowrap;
	flex: 0 0 auto;
}

.clg-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 2px;
	transition: border-color 0.15s ease;
}

.clg-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	cursor: zoom-out;
}

.clg-lightbox-overlay img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
}

.clg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
