html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body.single{
	overflow-y: hidden;
}

h2 {
	color: var(--blue-color);
}

.background-pub {
	background-size: auto;
	background-repeat: no-repeat;
	background-position: center top;
	padding-top: 202px;
	z-index: -1;
}

#content {
	display: flex;
	flex-wrap: wrap;
	padding: 1.5rem 1rem;
	background-color: var(--white-color);
	max-width: var(--wrapper-width-2);
	margin: auto;
	cursor: auto;
}

#main-content {
	width: calc(70% - (1.5rem / 2));
	margin-right: 1.5rem;
}

.title-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 1.5rem;
}

.title-content h2 {
	max-width: 100%;
}

#main-content h2 {
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--blue-color);
} 

#aside-content {
	width: calc(30% - (1.5rem / 2));
}

.pub-content:not(:last-child) {
	margin-bottom: 2rem;
	user-select: none;
}

.pub-content img {
	width: 100%;
}

.content_subsite {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.title-content .category{
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	color: black;
	background: none;
}
.title-content .category select {
	color: black;
}
.title-content .category select option{
	color: black;
}

#posts-homepage {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
#posts-homepage .post-item {
	width: calc(50% - 1rem);
	margin-bottom: 2rem;
}

@media all and (max-width:964px) {
	#content {
		flex-wrap: wrap;
		padding: 3rem 1.5rem;
	}

	#main-content {
		margin-bottom: 2rem;
		margin-right: 0;
	}

	#main-content, #aside-content {
		width: 100%;
	}

	.background-pub {
		background-image: unset;
		padding-top: unset;
	}

	.swiper-pagination-fraction {
		max-width: 15%;
	}

}
/*#region modal Pop-up*/
#close-popup {
	position: absolute;
	display: flex;
	top: 0;
	right: 0;
	width: 24px;
	height: 24px;
	justify-content: center;
    	align-items: center;
}

/* The Modal (background) */
.modalPopup {
	display: flex;
	position: fixed;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content-popup {
	border-radius: 10px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	background-color: var(--white-color);
	padding: 20px;
	border: 1px solid #888;
	position: absolute;
	max-width: 80%;
}

/* The Close Button */
.close {
	color: #aaa;
	font-size: 36px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.pub {
	height: auto;
}

.pub a {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
}
/*#endregion modal Pop-up*/

@media all and (max-width:500px) {
	.title-content {
		text-align: center;
		justify-content: space-between;
		flex-direction: column;
		align-items: normal;
	}

	.title-content .category {
		margin-top: 0.5rem;
		margin-bottom: 0.5rem;
	}

}

@media screen and ( max-width: 768px ) {
	.swiper-all-current-posts {
		height: 1314px;
		width: 100%;
		padding-bottom: 5rem !important;
	}

	#posts-homepage .post-item {
		width: 100%;
		margin-bottom: 2rem;
	}

	.title-content h2 {
		margin-top: 1rem;
		font-size: 28px;
	}
}