.images__grids.justified-gallery {
	padding:5px;
}
.images__grids.justified-gallery > a,
.images__grids.justified-gallery > div,
.images__grids.justified-gallery > figure {
	margin:5px;
}
.category__section_wrapper {
	display: flex;
}
.category__sidebar {
	max-width: 250px;
	width: 100%;
	flex: 1 0 250px;
	padding-right: 15px;
	/*padding-top: 5px;*/
}

.category__sidebar h2 {
	font-size: 22px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	font-weight: 500;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category__list {
	margin-bottom: 30px;
	background: var(--bg-color-secondary);
	border-radius: var(--radius-lg);
	padding: 10px;
}
.category__list .category__item {
	margin-bottom: 10px;
}
.category__list .category__item:last-child {
	margin-bottom: 0;
}
.category__list .category__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px;
	color: var(--white);
	border-radius: var(--radius-lg);
}
body.light__mode .category__list .category__item a {
	color: var(--white);
}
.category__list .category__item img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 100%;
}

.category__item.active a,
.category__item a:hover {
	background: var(--hover-color);
	color: var(--text-color);
}

body.light__mode .category__item.active a,
body.light__mode .category__item a:hover {
	background: var(--hover-color);
	color: var(--text-color);
}

.category__images {
	width: 100%;
}
.images__grid {
	width: 100%;
}
.images__grid:not(.category__masonry) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}
.image__item {
	overflow: hidden;
	border-radius: var(--radius-lg);
	position: relative;
}
.category__masonry.justified-gallery .image__item {
	box-shadow: 0px 0px 6px 1px rgb(0 0 0 / 65%);
}
body.light__mode .category__masonry.justified-gallery .image__item {
	box-shadow: 0px 0px 5px 1px rgb(0 0 0 / 40%);
}
/*.category__masonry.justified-gallery .image__item:hover,
body.light__mode .category__masonry.justified-gallery .image__item:hover {
box-shadow: 0px 0px 6px 1px rgb(255 144 45 / 65%);
}*/

.image__item .image__link {
}
.image__item .image__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.image__item_info {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 7px 10px 8px 10px;
	background: rgba(0, 0, 0, 0.5);
	color: var(--white);
	opacity: 0;
	text-align: center;
	transition: opacity 0.3s ease-in-out;
}
.image__item_info p {
	line-height: 1;
	margin: 0;
}
.image__item_info .category_title a {
	color: #fff;
	font-size: 13px;
	line-height: 1;
	font-weight:400;
}
.image__item_info .category_title a:hover {
	color: var(--hover-color);
}
.image__item_info .image_caption {
	font-size: 12px;
	padding-top: 3px;
	font-weight:400;
	color:#b8b7b7;
}
.image__item:hover .image__item_info {
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

.categories__list_btn,
.resolutions__list_btn {
	display: none;
}

.category__toolbar {
	display: flex;
	align-items: flex-end;
	padding-bottom: 10px;
}
body.photos__page  .category__toolbar {
	/*padding-bottom: 5px;*/
}
.category__images_toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	gap: 15px;

	z-index: 9;
}
.category__images_switcher {
	display: flex;
	align-items: center;
	gap: 5px;
}
.category__images_switcher button,
.category__images_switcher a {
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	padding: 3px 5px;
	background: var(--bg-color);
	gap: 3px;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}
.category__images_switcher a.events-none {
	pointer-events:none;
	cursor:default;
	opacity:0.4;
}
.category__images_switcher button span,
.category__images_switcher a span {
	font-size: 12px;
	font-weight:400;
}
.category__images_switcher button.active,
.category__images_switcher button:hover,
.category__images_switcher a.active,
.category__images_switcher a:hover {
	color: var(--text-color);
	background: var(--white);
	border: 1px solid var(--white);
	transition: all 0.3s ease;
}

.category__images_switcher button svg,
.category__images_switcher a svg {
	width: 20px;
	height: 20px;
}
body.light__mode .category__images_switcher button,
body.light__mode .category__images_switcher a {
	background: var(--white);
	color: var(--text-color);
	border: 1px solid rgb(0 0 0 / 20%);
}
body.light__mode .category__images_switcher button.active,
body.light__mode .category__images_switcher button:hover,
body.light__mode .category__images_switcher a.active,
body.light__mode .category__images_switcher a:hover {
	color: var(--white);
	background: var(--bg-color-secondary);
	border: 1px solid var(--bg-color-secondary);
}

.category__subcategories {
	min-width: 0;
	flex: 1 1 auto;
	position: relative;
	padding-left:5px;
}

.category__subcategories .swiper-scrollbar {
	background-color: rgb(255 144 45 / 25%);
	bottom: -10px;
	left: 0;
	right: 0;
	width: 100%;
}
.category__subcategories .swiper-scrollbar-drag {
	background-color: var(--hover-color);
	cursor: pointer;
}
.category__subcategories_list:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: 10px;
}

.category__list::-webkit-scrollbar-track {
	background-color: transparent;
}
.category__list::-webkit-scrollbar {
	width: 3px;
	background-color: rgb(255 144 45 / 30%);
}
.category__list::-webkit-scrollbar-thumb {
	background-color: var(--hover-color);
}

.category__subcategories_list li {
	flex: 0 0 fit-content;
	min-width: fit-content;
}
.category__subcategories_list li a {
	display: flex;
	align-items: center;
	color: var(--white);
	gap: 8px;
	font-size: 13px;
	padding: 4.5px 8px 5px 8px;
	border-radius: 4px;
	border: 1px solid var(--hover-light-color);
}

.category__subcategories_list li a img {
	width: 22px;
	height: 22px;
	object-fit: cover;
	border-radius: 100%;
}
body.light__mode .category__subcategories_list li a {
	border: 1px solid var(--hover-color);
	color: var(--text-color);
	background: var(--white);
}

.category__images_actions--wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	min-height: 34px;
	position: relative;
	justify-content: flex-end;
}
.category__images_actions {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
	justify-content: flex-end;

}
.category__images_actions button {
	color: var(--white);
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}
body.light__mode .category__images_actions button {
	color: var(--text-color);
}
.category__images_actions button.active,
.category__images_actions button.selected,
body.light__mode .category__images_actions button.active,
body.light__mode .category__images_actions button.selected {
	color: var(--hover-color);
}

.category__images_sort,
.category__images_resolutions {
	position: relative;
}

.category__images_sort--wrapper {
	display: none;
	position: absolute;
	left: 50%;
	top: 35px;
	min-width: max-content;
	background: #fff;
	z-index: 9;
	border-radius: 6px;
	transform: translateX(-50%);
}

.category__images_resolutions--wrapper {
	display: none;
	position: absolute;
	right: -30px;
	top: 35px;
	min-width: max-content;
	background: #fff;
	z-index: 9;
	border-radius: var(--radius-lg);
}

.category__images_sort--list {
	display: flex;
	flex-direction: column;
	border-radius: 4px;
}
body.light__mode .category__images_sort--list{
	border: 1px solid rgb(0 0 0 / 20%);
}
.category__images_sort--list li {
	color: var(--text-color);
	line-height: 1.4;
}
.category__images_sort--list li a {
	font-size: 14px;
	color: var(--text-color);
	line-height: 1;
	display: block;
	padding: 10px;
}

.category__images_sort--list li:first-child a {
	border-top-left-radius: var(--radius-lg);
	border-top-right-radius: var(--radius-lg);
}
.category__images_sort--list li:last-child a {
	border-bottom-left-radius: var(--radius-lg);
	border-bottom-right-radius: var(--radius-lg);
}

.category__images_sort--list li a.active,
.category__images_sort--list li a:hover,
.category__images_resolutions--wrapper .resolutions__list a:hover {
	color: var(--white);
	background-color: var(--hover-color);
}

.category__images_resolutions--wrapper .resolutions__list {
	display: grid;
	grid-template-columns: repeat(2, auto);
}
.category__images_resolutions--wrapper .resolutions__list li {
	color: var(--bg-color);
	transition: all 0.3s;
	padding: 10px;
}
.category__images_resolutions--wrapper .resolutions__list li:first-child {
	padding-right: 5px;
}
.category__images_resolutions--wrapper .resolutions__list li:last-child {
	padding-left: 5px;
}
.category__images_resolutions--wrapper .resolutions__list li:hover,
.category__images_resolutions--wrapper .resolutions__list li.active {
	color: var(--hover-color);
	transition: all 0.3s;
}
.category__images_resolutions--wrapper .resolutions__list li svg {
	width: 24px;
	height: auto;
}

.category__images_resolutions--wrapper .resolutions__list a:after {
	content: "";
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	height: 1px;
	background-image: linear-gradient(var(--hover-color), var(--hover-color));
	background-size: 0% 1px;
	background-position-y: 100%;
	background-position-x: 50%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease-in-out;
}

.category__images_resolutions--wrapper .resolutions__list a:hover:after {
	background-size: 100% 1px;
}

.category__images_search_form {
	transform: translateY(-150%);
	opacity: 0;
	display: flex;

	transition:
		transform 0.3s,
		opacity 0.3s;
}

.category__images_search_form input {
	display: none;
}
.category__images_search_form.active {
	transform: translateY(0);
	opacity: 1;
	min-width: 200px;
}

.category__images_search_form.active input {
	display: block;
}

.category__images_search_form input {
	width: 100%;
	padding: 5px 8px;
	border-radius: 6px;
	height: 27px;
	font-size: 12px;
}
body.light__mode .category__images_search_form input {
	border: 1px solid rgb(0 0 0 / 20%);
}
.category__images_search_form input:focus,
body.light__mode .category__images_search_form input:focus {
	border-color: var(--hover-light-color);
}

.category__sidebar .resolutions__list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	background-color: var(--bg-color-secondary);
	border-radius: var(--radius-lg);
	padding: 10px;
}
.category__sidebar .resolutions__list a {
	color: var(--white);
	border: 1px solid var(--hover-light-color);
	padding: 4px 7px;
	border-radius: 4px;
	font-size: 14px;
}
body.light__mode .category__sidebar .resolutions__list a {
	color: var(--white);
}
.category__sidebar .resolutions__list a:hover,
body.light__mode .category__sidebar .resolutions__list a:hover {
	background-color: var(--hover-color);
	color: var(--text-color);
}
.category__toolbar .category__title {
	font-size: 16px;
	padding-right: 20px;
	max-width: 250px;
	width: 100%;
	flex: 1 0 250px;
}
.category__toolbar .category__title,
.category__sidebar .resolution__title {
	font-size: 16px;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
}
.category__sidebar .resolution__title {
	margin-bottom: 10px;
	display: none;
}
.category__albums {
	width: 100%;
}
.category__albums .last__albums_body {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(1, 1fr);
	width: 100%;
}

.album__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
}
.album__pagination:not(:empty) {
	margin-top: 40px;
}


@media (min-width: 768px) {
	.categories__list_btns {
		display: none;
	}
	.category__albums .last__albums_body {
		grid-template-columns: repeat(2, 1fr);
	}
	body.tag__page .category__sidebar,
	body.tag__page .category__toolbar .category__title,
	body.photos__page .category__sidebar,
	body.photos__page .category__toolbar .category__title,
	body.albums__page:not(.category__page--albums) .category__sidebar,
	body.albums__page:not(.category__page--albums) .category__toolbar .category__title,
	body.search-results__page .category__sidebar,
	body.search-results__page .category__toolbar .category__title {
		display: none;
	}
	body.tag__page .page_section.images__list_section,
	body.photos__page .page_section.images__list_section,
	body.albums__page .page_section.images__list_section,
	body.search-results__page .page_section.images__list_section {
		padding-top: 0;
	}

	.category__subcategories_list li a {
		font-size: 13px;
	}
	.category__subcategories_list li a img {
		width: 24px;
		height: 24px;
	}
	.category__list {
		max-height: 600px;
		overflow-y: auto;
	}
	.image__item .image__link img {
		transform: scale(1.01);
		transition: transform 3s;
	}
	.image__item .image__link:hover img {
		transform: scale(1.15);
		transition: transform 3s;
	}
}

@media (min-width: 1199.99px) {
	.category__sidebar .category__scrollbar {
		position: sticky;
		top: 70px;
	}
	.category__toolbar .category__title,
	.category__sidebar .resolution__title {
		display: block;
		align-self: flex-end;
	}

	.category__albums .last__albums_body {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.category__toolbar {
		align-items: center;
	}
	body:not(.category__photo_page, .tag__page) .category__images_toolbar:not(.categories--hidden) {
		max-width: calc(100% - 250px);
	}
	.category__images_actions--wrapper {
		flex-grow: 1;
		flex-shrink: 0;
		min-width: max-content;
	}
}

@media (min-width: 1024px) and (max-width: 1300px) {
	.blog__posts_list .blog__post_item .blog__post_excerpt {
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
	}
}
@media (min-width: 1024px) and (max-width: 1200px) {
	.category__images_actions {
		position: unset;
	}
}
@media (min-width: 767.98px) and (max-width: 1023.98px) {
	.category__images_toolbar {
		align-items: flex-end;
		gap: 10px;
		margin-left: auto;
		max-width: calc(100% - 200px);
		flex-direction: column-reverse;
	}

	.category__subcategories {
		max-width: 100%;
		width: 100%;
	}
	.category__sidebar,
	.category__toolbar .category__title {
		max-width: 200px;
		flex: 1 0 200px;
	}
	.category__images_actions--wrapper {
		width: 100%;
		gap: 10px;
	}

	.category__images_search_form.active {
		min-width: unset;
		width: 100%;
	}
	.category__images_toolbar {
		max-width: calc(100% - 200px);
	}
	.category__list .category__item img {
		width:32px;
		height:32px;
	}
	.category__list .category__item a {
		font-size:14px;
	}
}

@media (max-width: 767.98px) {
	.image__item_info {
		display:none !important
	}
	
	body.category__photo_page.category__page--albums .page_section.images__list_section {
		padding-top: 60px;
	}
	.category__section_wrapper {
		flex-direction: column;
		position: relative;
	}

	.category__images_search_form {
		order: 2;
		width: 100%;
	}
	.category__images_search_form.active {
		margin-top: 10px;
	}
	.category__sidebar,
	body.light__mode .category__sidebar {
		max-width: 100%;
		flex: 0 1 100%;
		border: none;
		margin: 0;
		padding: 0;
	}
	.images__grid:not(.category__masonry) {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 10px;
	}
	.categories__list_btns {
		display: flex;
		align-items: center;
		gap: 5px;
		width: 100%;
	}
	.categories__list_btn,
	.resolutions__list_btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		background: var(--hover-color);;
		border-radius: 6px;
		padding: 5px;
		font-size: 16px;
		line-height: 1;
		gap: 3px;
		font-size: 14px;
		border: 1px solid rgb(0 0 0 / 20%);
		min-width: 145px;
		height: 35px;
		text-transform: uppercase;
	}
	.categories__list_btn svg,
	.resolutions__list_btn svg {
		width: 16px;
	}

	.category__list,
	.category__sidebar .resolutions__list--wrapper {
		display: none;
		position: absolute;
		top: 0px;
		left: 0px;
		z-index: 9999;
		background: var(--bg-color);
		right: -1px;
	}
	.category__list {
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.category__images_toolbar {
		align-items: center;
		justify-content: space-between;
		margin-bottom: 15px;
		position: relative;
		flex-wrap: wrap;
	}
	body.search-results__page .category__images_toolbar {
		align-items: center;
	}
	.category__images_actions {
		position: unset;
		gap: 10px;
		margin-left: auto;
	}
	body.search-results__page .category__images_actions {
		justify-content: flex-start;
	}

	.category__toolbar .category__title {
		display: none;
	}

	.category__images_toolbar .categories__list_btns {
		order: 1;
		width: auto;
	}
	.category__images_actions--wrapper {
		order: 2;
		gap: 0 10px;
		justify-content: space-between;
		width: min-content;
		flex: 0 1 auto;
		min-width: unset;
		flex-wrap: wrap;
	}
	.category__images_toolbar .category__subcategories {
		order: 3;
		width: 100%;
	}

	body.search-results__page .category__images_toolbar .category__images_actions--wrapper {
		order: 1;
	}

	.categories__list_btn.active,
	.resolutions__list_btn.active {
		background-color: var(--hover-color);
	}
	body.tag__page .categories_show,
	body.photos__page .categories_show,
	body.search-results__page .categories_show {
		display: none;
	}

	.category__sidebar .resolutions__list {
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		background: var(--bg-color);
	}

	.category__images_actions button {
		position: relative;
	}
	.category__images_actions button.categories_show {
		display: none !important;
	}
	.category__images_sort--list li a {
		font-size: 12px;
		padding: 6px 8px;
	}

	.category__toolbar {
		padding-bottom: 0;
		/*padding-top: 15px;*/
	}

	.category__images_sort--list {
		gap:3px;
	}
	
	body.photos__page .category__sidebar .category__scrollbar .category__list {
		left:5px;
		right:5px;
	}
	body.photos__page .category__images_toolbar {
		margin-bottom:10px;
	}
}
@media (min-width: 600px) {
	.category__images_actions--wrapper {
		padding-right:5px;
	}
}

@media (min-width: 600px) and (max-width: 767.98px) {

	.category__images_toolbar {
		/*flex-wrap:nowrap;*/
	}
	.category__images_actions--wrapper {

		flex-wrap:nowrap;
		flex-grow: 1;
	}
	.category__images_search_form {

		order:1;
	}
	.category__images_search_form.active {
		margin-top:0;
		min-width:0;
	}
	.category__images_actions {
		order:2
	}
	.category__images_switcher {
		order:3;
	}
}
@media (max-width: 599.98px) {
	.category__images_toolbar .categories__list_btns {
		order: 2;
		width: auto;
		flex-grow: 1;
	}
	.category__images_actions--wrapper {
		order: 1;
		flex-wrap: wrap;
		width: 100%;
		margin-bottom: -5px;
	}

	body.search-results__page .category__images_toolbar .category__images_actions--wrapper {
		flex: 0 1 100%;
		width: 100%;
		align-items: flex-start;
		flex-wrap: wrap;
		justify-content: center;
	}
	.category__images_toolbar .categories__list_btns {
		width: 100%;
	}

	.category__list,
	.category__sidebar .resolutions__list--wrapper {
		top: 0;
	}

	body.search-results__page .categories--hidden .category__images_search_form {
		max-width: 100%;
	}
	body.photos__page .category__toolbar {
		padding-left:5px;
		padding-right:5px;
	}
	
}

@media (max-width: 374.99px) {
	.category__images_search_form.active {
		margin-bottom:5px;
	}
	.category__images_actions button {
		width: 22px;
		height: 22px;
	}
	.category__images_switcher button svg, 
	.category__images_switcher a svg{
		width: 16px;
		height: 16px;
	}
	.category__images_switcher button svg {
		width: 16px;
		height: 16px;
	}

}
@media (max-width: 349.99px) {
	.category__images_switcher button span, 
	.category__images_switcher a span {
		font-size: 11px;
	}
	.category__images_switcher button svg {
		width: 14px;
		height: 14px;
	}

	.category__images_actions {
		gap: 5px;
	}
}
