.works-hero {
	height: calc(100vh - 100px);
	background-position: center center !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	width: 100%;
	position: relative;
}

/* Transform the image into a background image */
.fields-container .field-entry.image {
	position: relative;
	margin-top: -60px;
	width: 100%;
	height: calc(100vh - 100px);
	overflow: hidden;
}

ul.fields-container {
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

.com-content-article__body {
	margin-top: -120px;
	z-index: 9;
	position: relative;
	width: 100%;
	max-width: 100%;
	transition: all 0.3s ease;
	background: transparent;
}

.com-content-article__body.fixed {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 1000 !important;
	background: white !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-top: 0 !important;
}

.com-content-article__body.fixed .article-data {
	background-color: transparent !important;
	color: black !important;
}

.com-content-article__body.fixed .article-navigation {
	background: transparent !important;
}

.com-content-article__body.fixed .article-navigation .back-link,
.com-content-article__body.fixed .article-navigation .nav-link {
	color: black !important;
}

.article-placeholder {
	display: block;
	width: 50%;
	float: right;
}

.article-navigation {
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 40px;
	width: 100%;
	transition: width 0.3s ease, padding 0.3s ease;
}

.gallery-data .article-navigation {
	background: transparent;
}

.gallery-data .article-navigation .back-link,
.gallery-data .article-navigation .nav-link {
	color: black;
	text-decoration: none;
}

.gallery-data .article-navigation .nav-link {
	margin-right: 20px;
}

.article-navigation .nav-left,
.article-navigation .nav-right {
	display: flex;
	align-items: center;
}

.article-navigation .nav-right {
	width: 50%;
	justify-content: flex-end;
}

.article-navigation .back-link {
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
}

.article-navigation .back-link span {
	margin-right: 10px;
}

.article-navigation .nav-link {
	color: #fff;
	text-decoration: none;
	margin-right: 20px;
}

.article-navigation .nav-link:last-child {
	margin-right: 0;
}

.gallery-data {
	position: relative;
	width: 100%;
	left: 0;
	right: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
}

.gallery-text {
	margin-top: -120px;
	position: sticky;
	top: 210px;
	width: 100%;
	max-width: 100%;
	z-index: 2;
}

.fields-container .field-entry.image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.fields-container .field-entry.image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--bg-image);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.informatione {
	border-bottom: 1px solid #493021;
}

/* Ensure the background image container is visible */
.com-content-article .works-hero {
	display: block !important;
}

.page-header {
	padding-bottom: 0 !important;
}

.com-content-article.item-page ul {
	list-style: none;
	padding: 0;
}

main#sp-component {
	padding: 0;
}

li.field-entry.image_gallery {
	width: 50%;
	margin-top: 3rem;
}

.field-entry.image_gallery img {
	margin-bottom: 50px;
	width: 100%;
}

#sp-main-body {
	padding: 0 !important;
}

.article-bc-section {
	display: flex;
	justify-content: flex-end;
	height: 120px;
	position: relative;
}

.field-entry.image {
	height: calc(100vh - 100px);
}

.article-data {
	background-color: rgb(73 48 33 / 62%);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	color: white;
	width: 50%;
	position: absolute;
	bottom: 0;
	right: 0;
	transition: all 0.3s ease;
	padding: 20px;
}

.article-data.fixed {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	width: 50% !important;
	z-index: 1000 !important;
	background: transparent !important;
	color: black !important;
}

@media (min-width: 1024px) {
	.gallery-text-content .article-data {
		background-color: transparent;
		color: black;
	}
}

@media (max-width: 1023px) {
	.gallery-text-content .article-data {
		display: none !important;
	}
}

.bc-title {
	font-size: 50px;
	margin: 0;
	padding: 15px 20px 0;
	line-height: 1;
}

@media (max-width: 991px) {
	.bc-title {
		font-size: 1.2rem;
	}

	.ext {
		font-size: 1rem;
		font-weight: 400;
		padding: 10px 20px 0;
	}
}

@media (min-width: 992px) {
	.ext {
		font-size: 20px;
		font-weight: 400;
		padding: 10px 20px 0;
	}
}

.works-nav {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 100%;
}

.gallery-text-content {
	width: 100%;
	max-width: 100%;
}

.com-content-article.item-page {
	width: 100%;
	max-width: 100%;
	position: relative;
}

.article-data .content,
.gallery-text-content .article-data .content {
	margin-top: auto;
	transition: margin-top 0.3s ease;
}

@media (min-width: 1024px) {
	.gallery-secondary-text {
		position: absolute;
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		overflow-y: auto;
		max-height: 60vh;
	}
}

@media (max-width: 1023px) {
	.gallery-secondary-text {
		max-height: 100%;
	}
}

.secondary-field {
	width: 50%;
	padding: 0 40px;
	margin-top: 3rem;
	text-align: justify;
}

.gallery-secondary-text .gallery-text-content {
	width: 100%;
	max-width: 100%;
}

.gallery-secondary-text .article-data {
	background-color: transparent;
	color: black;
	width: 50%;
	position: absolute;
	right: 0;
	padding: 20px;
}

.gallery-secondary-text .article-data .content {
	margin-top: auto;
	padding: 0 20px;
	max-width: 800px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.gallery-secondary-text .content p {
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 1023px) {
	.gallery-secondary-text .content p {
		margin-bottom: 2rem;
		margin-top: 1rem;
	}
}

.gallery-secondary-text .content p:last-child {
	margin-bottom: 0;
}

/* Adjust gap when text wraps */
@media (max-width: 768px) {
	.gallery-secondary-text {
		padding: 1.5rem;
		margin-bottom: 1.5rem;
	}
}

/* Adjust gap for very small screens */
@media (max-width: 480px) {
	.gallery-secondary-text {
		padding: 1rem;
		margin-bottom: 1rem;
	}

	.gallery-secondary-text .content p {
		margin-bottom: 0.75rem;
	}
}

/* RESPONSIVE */

@media (max-width: 1023px) {
	.field-entry.hero_image {
		margin-top: 84px;
	}

	.works-nav {
		display: none;
	}

	.article-bc-section {
		height: auto;
		min-height: 120px;
	}

	.article-navigation,
	.gallery-data .article-navigation {
		width: 100%;
		padding: 0 20px;
	}

	.article-data,
	.gallery-text-content .article-data {
		width: 100%;
		position: absolute;
	}

	.article-data .content,
	.gallery-text-content .article-data .content {
		margin-top: auto;
	}

	.gallery-data {
		position: relative;
	}

	.gallery-secondary-text {
		position: relative;
		width: 100%;
	}

	li.field-entry.image_gallery {
		width: 100%
	}

	.gallery-secondary-text .article-data {
		width: 100%;
		position: relative;
	}

	.article-data {
		position: absolute !important;
		padding: 0;
	}

	.secondary-field {
		width: 100%;
		padding: 0;
		margin-top: 0;
		text-align: left;
	}

	#sp-footer {
		background: transparent !important;
		position: absolute !important;
		bottom: 0 !important;
		padding: 0 !important;
		height: 50px;
	}
}

#sp-footer {
	background: transparent;
	width: 100%;
	padding: 0 80px;
	bottom: 0;
}
