/* Croosswood Adventure Gallery */

.cag-section {
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.cag-wrapper {
	display: grid;
	grid-template-columns: 65% 1fr;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.cag-gallery-col,
.cag-content-col {
	min-width: 0;
	box-sizing: border-box;
}

/* ---------- Gallery column ---------- */
.cag-gallery-col {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	grid-auto-rows: 1fr;
	box-sizing: border-box;
}

.cag-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	text-decoration: none;
}

.cag-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.cag-gallery-item:hover img {
	transform: scale(1.04);
}

.cag-item-hero {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.cag-item-thumb:nth-of-type(2) {
	grid-column: 2;
	grid-row: 1;
}

.cag-item-thumb:nth-of-type(3) {
	grid-column: 2;
	grid-row: 2;
}

/* extra thumbnails beyond the 3rd simply flow to new rows in column 2 */
.cag-item-thumb {
	grid-column: 2;
}

/* ---------- Caption overlay ---------- */
.cag-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	pointer-events: none;
}

.cag-overlay-caption {
	font-family: inherit;
	line-height: 1.15;
	white-space: pre-line;
}

.cag-pos-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
	text-align: right;
}

.cag-pos-bottom-left {
	align-items: flex-end;
	justify-content: flex-start;
	text-align: left;
}

.cag-pos-bottom-center {
	align-items: flex-end;
	justify-content: center;
	text-align: center;
}

.cag-pos-center {
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* ---------- Content column ---------- */
.cag-content-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.cag-badge {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cag-badge-dash {
	display: inline-block;
	height: 2px;
	background-color: #B15A3E;
}

.cag-badge-text {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	font-size: 13px;
}

.cag-heading {
	margin: 0;
	font-weight: 500;
	line-height: 1.15;
}

.cag-description {
	line-height: 1.6;
}

/* ---------- Features ---------- */
.cag-features {
	display: flex;
	flex-direction: column;
}

.cag-feature-item {
	display: flex;
	align-items: flex-start;
}

.cag-feature-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cag-feature-icon i,
.cag-feature-icon svg {
	line-height: 1;
}

.cag-feature-text {
	flex: 1;
	min-width: 0;
}

.cag-feature-title {
	font-weight: 600;
	line-height: 1.3;
}

.cag-feature-desc {
	line-height: 1.5;
}

/* ---------- Responsive: stack everything on tablet/mobile ---------- */
@media (max-width: 1024px) {
	.cag-wrapper {
		grid-template-columns: 1fr !important;
	}

	.cag-gallery-col,
	.cag-content-col {
		width: 100% !important;
	}
}

@media (max-width: 767px) {
	.cag-gallery-col {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.cag-item-hero,
	.cag-item-thumb,
	.cag-item-thumb:nth-of-type(2),
	.cag-item-thumb:nth-of-type(3) {
		grid-column: 1;
		grid-row: auto;
	}
}
