/* Enhanced sidebar visibility with background image */
#header {
	background-color: #1f1815;
	background-attachment: scroll, scroll;
	background-image: url("../assets/css/images/overlay.png"), url("../images/bg3-det_OBB.jpg");
	background-position: top left, top left;
	background-repeat: repeat, no-repeat;
	background-size: auto, cover;
	padding: 1em 4em !important;
}

#header h1, #header h3 {
	background: rgba(0, 0, 0, 0.8);
	padding: 0.5em;
	border-radius: 0.35em;
	color: white !important;
}

#header h3 {
	cursor: default !important;
	pointer-events: none;
	margin-bottom: 0.5em;
}

#header ul {
	background: rgba(0, 0, 0, 0.6);
	padding: 1em;
	border-radius: 0.35em;
}

#header ul li {
	margin: 0.3em 0;
}

#header ul li a {
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none;
	padding: 0.2em 0.5em;
	border-radius: 0.25em;
	display: block;
	transition: all 0.2s ease;
}

#header ul li a:hover {
	background: rgba(73, 191, 157, 0.3);
	color: #49bf9d !important;
}

#header ul li.current-page {
	background: rgba(73, 191, 157, 0.4);
	border-radius: 0.35em;
	padding: 0.2em 0.5em;
}

#header ul li.current-page span {
	color: #49bf9d !important;
	font-weight: bold;
}

/* Compact layout for project pages */
.compact-layout #main {
	padding-bottom: 2em !important;
}

.compact-layout #project-details .container {
	max-width: 90% !important;
}

.compact-layout #project-details h3 {
	margin-bottom: 0.5em !important;
}

.compact-layout #project-details ul, 
.compact-layout #project-details p {
	margin-bottom: 1em !important;
}

/* Project image opacity */
#project-image img {
	opacity: 1 !important;
}

/* Project details section spacing */
#project-details {
	margin: 1em 0 0 0 !important;
	padding: 1em 0 0 0 !important;
}

/* External URL indicator */
.external-url::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 4px;
	background-image: url("../assets/css/images/external-URL-icon_transparent-small.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: text-top;
}

/* Project content images and captions */
.project-images {
	margin: 2em 0;
}

.image-container {
	margin: 1.5em 0;
	text-align: center;
}

.image-container.full-width {
	width: 100%;
}

.image-container.right-aligned {
	float: right;
	width: 45%;
	margin-left: 2em;
	margin-bottom: 1em;
	clear: right;
}

.image-container.left-aligned {
	float: left;
	width: 45%;
	margin-right: 2em;
	margin-bottom: 1em;
	clear: left;
}

.image-container img {
	width: 100%;
	height: auto;
	border-radius: 0.35em;
	box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
}

.image-caption {
	margin-top: 0.5em;
	font-size: 0.9em;
	color: #333333;
	font-style: italic;
	text-align: center;
	line-height: 1.4;
}

/* Clear floats after image sections */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* Ensure text flows around floated images */
.project-content {
	overflow: hidden;
}

.project-content p,
.project-content h3,
.project-content ul,
.project-content ol {
	text-align: justify;
}
/* Image size variations */
.image-container.small {
	width: 25% !important;
}

.image-container.medium {
	width: 35% !important;
}

.image-container.large {
	width: 55% !important;
}

/* For right-aligned images, adjust margins for smaller sizes */
.image-container.right-aligned.small {
	width: 25% !important;
	margin-left: 1.5em;
}

.image-container.right-aligned.medium {
	width: 35% !important;
	margin-left: 1.5em;
}

.image-container.left-aligned.small {
	width: 25% !important;
	margin-right: 1.5em;
}

.image-container.left-aligned.medium {
	width: 35% !important;
	margin-right: 1.5em;
}
/* Fit images in table - images span full table width */
table.fit-images {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border-spacing: 2px !important;
	border-collapse: separate !important;
}

table.fit-images td {
	padding: 2px !important;
	margin: 0 !important;
	width: 50% !important;
}

table.fit-images img {
	width: 100% !important;
	height: auto;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}