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

.oberty-gallery--columns-1 {
	grid-template-columns: 1fr;
}

.oberty-gallery--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oberty-gallery--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oberty-gallery__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	background: #eeeae3;
}

.oberty-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.oberty-gallery__item:hover img {
	transform: scale(1.035);
}

.oberty-gallery--masonry {
	display: block;
	columns: 3;
	column-gap: 8px;
}

.oberty-gallery--masonry.oberty-gallery--columns-2 {
	columns: 2;
}

.oberty-gallery--masonry.oberty-gallery--columns-4 {
	columns: 4;
}

.oberty-gallery--masonry .oberty-gallery__item {
	display: inline-block;
	width: 100%;
	margin: 0 0 8px;
	aspect-ratio: auto;
	break-inside: avoid;
}

.oberty-gallery--masonry .oberty-gallery__item img {
	width: 100%;
	height: auto;
}

.oberty-gallery-button {
	padding: 16px 32px;
	border-radius: 3px;
	background: #dedede;
	text-align: center;
}

.oberty-gallery-button__trigger {
	display: inline-block;
	min-width: 240px;
	padding: 15px 24px;
	border-radius: 2px;
	background: #000;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

.oberty-gallery-button__trigger:hover {
	background: #222;
}

.oberty-gallery-button__hidden {
	display: none;
}

.oberty-dynamic-field {
	--oberty-front-ink: #17252f;
	--oberty-front-gold: #b9935a;
	--oberty-front-cream: #f7f4ee;
	margin: 0;
	color: var(--oberty-front-ink);
}

.oberty-dynamic-field__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
	color: var(--oberty-front-ink);
	font-family: inherit;
	font-size: clamp(17px, 1.7vw, 22px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.oberty-dynamic-field__title::before {
	flex: 0 0 28px;
	width: 28px;
	height: 1px;
	background: var(--oberty-front-gold);
	content: "";
}

.oberty-dynamic-field__title::after {
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(185, 147, 90, .55), rgba(185, 147, 90, 0));
	content: "";
}

.oberty-dynamic-field__content {
	color: #303a40;
	font-size: 16px;
	line-height: 1.75;
}

.oberty-dynamic-field__content > :first-child {
	margin-top: 0;
}

.oberty-dynamic-field__content > :last-child {
	margin-bottom: 0;
}

.oberty-dynamic-field--localisation_texte .oberty-dynamic-field__title,
.oberty-dynamic-field--ville .oberty-dynamic-field__title,
.oberty-dynamic-field--gain_surface .oberty-dynamic-field__title,
.oberty-dynamic-field--surface_avant .oberty-dynamic-field__title,
.oberty-dynamic-field--surface_apres .oberty-dynamic-field__title {
	margin-bottom: 8px;
	font-size: 14px;
	letter-spacing: .08em;
}

.oberty-dynamic-field--localisation_texte .oberty-dynamic-field__content,
.oberty-dynamic-field--ville .oberty-dynamic-field__content,
.oberty-dynamic-field--gain_surface .oberty-dynamic-field__content,
.oberty-dynamic-field--surface_avant .oberty-dynamic-field__content,
.oberty-dynamic-field--surface_apres .oberty-dynamic-field__content {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.oberty-dynamic-field--astuce {
	position: relative;
	padding: 30px 34px;
	border-top: 1px solid rgba(185, 147, 90, .55);
	border-bottom: 1px solid rgba(185, 147, 90, .55);
	background: linear-gradient(135deg, #faf8f3 0%, var(--oberty-front-cream) 100%);
}

.oberty-dynamic-field--astuce .oberty-dynamic-field__title {
	margin-bottom: 14px;
	padding-left: 0;
	color: var(--oberty-front-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .14em;
}

.oberty-dynamic-field--astuce .oberty-dynamic-field__title::before {
	flex-basis: 20px;
	width: 20px;
}

.oberty-dynamic-field--astuce .oberty-dynamic-field__title::after {
	max-width: 90px;
}

.oberty-dynamic-field--astuce .oberty-dynamic-field__content {
	color: #3e474d;
	font-size: 16px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.8;
}

.oberty-project-navigation {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: stretch;
	margin-top: 56px;
	border-top: 1px solid #ded8ce;
	border-bottom: 1px solid #ded8ce;
	background: #fff;
}

.oberty-project-navigation__side {
	min-width: 0;
}

.oberty-project-navigation__side a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 118px;
	padding: 24px 30px;
	color: var(--oberty-front-ink);
	text-decoration: none !important;
	transition: background-color .2s ease;
}

.oberty-project-navigation__side a:hover {
	background: var(--oberty-front-cream);
}

.oberty-project-navigation__side--next {
	text-align: right;
}

.oberty-project-navigation__direction {
	margin-bottom: 9px;
	color: var(--oberty-front-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.oberty-project-navigation__side strong {
	overflow: hidden;
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oberty-project-navigation__all,
.oberty-project-navigation__mark {
	align-self: center;
	margin: 0 20px;
}

.oberty-project-navigation__all {
	padding: 10px 15px;
	border: 1px solid #d5cec2;
	color: var(--oberty-front-ink);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: border-color .2s ease, background-color .2s ease;
}

.oberty-project-navigation__all:hover {
	border-color: var(--oberty-front-gold);
	background: var(--oberty-front-cream);
}

.oberty-project-navigation__mark {
	width: 6px;
	height: 6px;
	border: 1px solid var(--oberty-front-gold);
	transform: rotate(45deg);
}

.oberty-project-subtitle {
	max-width: 900px;
	margin: 0 auto 34px;
	color: #303a40;
	font-family: inherit;
	font-size: clamp(18px, 2vw, 25px);
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode:empty) {
	display: none;
}

.oberty-project-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid #ded8ce;
	border-bottom: 1px solid #ded8ce;
}

.oberty-project-facts__item {
	padding: 22px 20px;
	border-right: 1px solid #ded8ce;
}

.oberty-project-facts__item:last-child {
	border-right: 0;
}

.oberty-project-facts__item span,
.oberty-project-facts__item strong {
	display: block;
}

.oberty-project-facts__item span {
	margin-bottom: 7px;
	color: #757575;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.oberty-project-facts__item strong {
	color: #17252f;
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 600;
}

@media (max-width: 767px) {
	.oberty-gallery,
	.oberty-gallery--columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.oberty-gallery--masonry,
	.oberty-gallery--masonry.oberty-gallery--columns-4 {
		columns: 2;
	}

	.oberty-project-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oberty-project-facts__item:nth-child(2) {
		border-right: 0;
	}

	.oberty-dynamic-field--astuce {
		padding: 24px 20px;
	}

	.oberty-dynamic-field__title {
		gap: 10px;
		font-size: 16px;
	}

	.oberty-dynamic-field__title::before {
		flex-basis: 18px;
		width: 18px;
	}

	.oberty-project-navigation {
		grid-template-columns: 1fr 1fr;
		margin-top: 38px;
	}

	.oberty-project-navigation__side a {
		min-height: 100px;
		padding: 18px 15px;
	}

	.oberty-project-navigation__all,
	.oberty-project-navigation__mark {
		display: none;
	}

	.oberty-project-navigation__side strong {
		display: -webkit-box;
		overflow: hidden;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.oberty-project-subtitle {
		margin-bottom: 24px;
		font-size: 18px;
	}
}
