/* Croosswood Itinerary Gallery Section */

.cigs-wrapper {
	width: 100%;
	box-sizing: border-box;
}
.cigs-wrapper *,
.cigs-wrapper *::before,
.cigs-wrapper *::after {
	box-sizing: border-box;
}

/* ---------- Grid Layout ---------- */
.cigs-grid {
	display: grid;
	grid-template-columns: 66% 1fr;
	column-gap: 16px;
	width: 100%;
	height: 520px;
}

.cigs-hero,
.cigs-thumb {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.cigs-hero img,
.cigs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.cigs-wrapper.cigs-zoom .cigs-hero:hover img,
.cigs-wrapper.cigs-zoom .cigs-thumb:hover img {
	transform: scale(1.06);
}

.cigs-thumbs {
	display: flex;
	flex-direction: column;
	row-gap: 16px;
	height: 100%;
	width: 100%;
}

.cigs-thumbs .cigs-thumb {
	flex: 1 1 0;
	min-height: 0;
}

/* ---------- Gallery / Video Action Buttons ---------- */
.cigs-actions {
	--cigs-btn-offset: 16px;
	position: absolute;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	z-index: 3;
}

.cigs-actions-bottom-right {
	right: var(--cigs-btn-offset);
	bottom: var(--cigs-btn-offset);
	justify-content: flex-end;
}
.cigs-actions-bottom-left {
	left: var(--cigs-btn-offset);
	bottom: var(--cigs-btn-offset);
}
.cigs-actions-bottom-center {
	left: 50%;
	bottom: var(--cigs-btn-offset);
	transform: translateX(-50%);
}
.cigs-actions-top-right {
	right: var(--cigs-btn-offset);
	top: var(--cigs-btn-offset);
	justify-content: flex-end;
}
.cigs-actions-top-left {
	left: var(--cigs-btn-offset);
	top: var(--cigs-btn-offset);
}

.cigs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	color: #1b1b1b;
	border: none;
	padding: 10px 18px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
	white-space: nowrap;
}
.cigs-btn:hover {
	background: #1b1b1b;
	color: #ffffff;
	transform: translateY(-2px);
}
.cigs-btn i,
.cigs-btn svg {
	font-size: 14px;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ---------- Lightbox / Slider Popup ---------- */
.cigs-lightbox {
	position: fixed;
	inset: 0;
	background-color: rgba(10, 10, 10, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.cigs-lightbox.cigs-active {
	display: flex;
	opacity: 1;
}

.cigs-lightbox-stage {
	position: relative;
	width: 90vw;
	height: 84vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cigs-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
	display: block;
}

.cigs-lightbox-video,
.cigs-lightbox-iframe {
	width: 100%;
	height: 100%;
	max-width: 1100px;
	max-height: 100%;
	border: none;
	border-radius: 6px;
	background: #000;
}

.cigs-lightbox-close {
	position: absolute;
	top: 22px;
	right: 26px;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.cigs-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 2px solid #ffffff;
	color: #ffffff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	cursor: pointer;
	z-index: 2;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}
.cigs-lightbox-arrow:hover {
	background-color: rgba(255, 255, 255, 0.15);
}
.cigs-lightbox-prev {
	left: 20px;
}
.cigs-lightbox-next {
	right: 20px;
}
.cigs-lightbox-arrow.cigs-hidden {
	display: none;
}

.cigs-lightbox-counter {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	color: #ffffff;
	font-size: 14px;
	letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cigs-grid {
		grid-template-columns: 1fr !important;
		grid-auto-rows: auto;
		height: auto !important;
		row-gap: 16px;
	}
	.cigs-hero {
		height: 380px;
	}
	.cigs-thumbs {
		flex-direction: row;
		height: auto;
	}
	.cigs-thumbs .cigs-thumb {
		height: 220px;
	}
}

@media (max-width: 767px) {
	.cigs-thumbs {
		flex-direction: column;
	}
	.cigs-hero {
		height: 300px;
	}
	.cigs-thumbs .cigs-thumb {
		height: 180px;
	}
	.cigs-btn {
		padding: 8px 14px;
		font-size: 12px;
	}
	.cigs-lightbox-arrow {
		width: 38px;
		height: 38px;
	}
	.cigs-lightbox-close {
		top: 14px;
		right: 16px;
		font-size: 30px;
	}
}
