.icon-search2:before {
    content: "\e912";
}

.fx-project-gallery {
	--fx-project-gap: 1.5rem;
	--fx-project-radius: 0.5rem;
}

.fx-project-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.fx-project-gallery__filter {
	appearance: none;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	padding: 0.625rem 1rem;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fx-project-gallery__filter:hover,
.fx-project-gallery__filter:focus-visible {
	outline: none;
	border-color: #111;
    background-color: #111;
    color: #fff;
}

.fx-project-gallery__filter.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.fx-project-gallery__filter:focus,
.fx-project-gallery__filter:active {
    outline: none;
}

.fx-project-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--fx-project-gap);
}

.fx-project-gallery__item {
	display: block;
}

.fx-project-gallery__item.is-hidden,
.fx-project-gallery__item.is-filter-hidden,
.fx-project-gallery__item.is-paginated-hidden {
	display: none;
}

.fx-project-gallery__load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.fx-project-gallery__load-more {
	appearance: none;
	border: 1px solid #c5502b;
	background: transparent;
	color: #c5502b;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fx-project-gallery__load-more:hover,
.fx-project-gallery__load-more:focus-visible {
	background: #c5502b;
	border-color: #c5502b;
	color: #fff;
	outline: none;
}

.fx-project-gallery__load-more[hidden] {
	display: none;
}

.fx-project-gallery__trigger {
	display: block;
	overflow: hidden;
	border-radius: var(--fx-project-radius);
	background: #f5f5f5;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.fx-project-gallery__trigger--text {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
}

.fx-project-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.fx-project-gallery__trigger i {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(255 255 255 / 35%);
    border-radius: 100%;
	transition: background 0.3s ease;
}

.fx-project-gallery__trigger i:before {
    color: #fff;
    font-size: 1.5rem;
	transition: color 0.3s ease;
}

.fx-project-gallery__trigger:hover i {
    background: #fff;
}

.fx-project-gallery__trigger:hover i:before {
    color: #C5502B;
}

.fx-project-gallery__trigger:hover .fx-project-gallery__image,
.fx-project-gallery__trigger:focus-visible .fx-project-gallery__image {
	transform: scale(1.04);
}

.fx-project-gallery__placeholder {
	font-weight: 600;
}

.fx-project-gallery__empty {
	margin: 0;
}

.fx-project-popup {
	display: none;
    max-width: 800px;
    padding: 0;
    width: 100%;
}

.fx-project-popup__layout {
	display: grid;
	grid-template-columns: 1fr;
}

.fx-project-popup__media {
	background: #f5f5f5;
	min-height: 350px;
}

.fx-project-popup__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: contain;
	border-radius: 0;
}

.fx-project-popup__content {
	padding: 1.5rem;
}

.fx-project-popup__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.2;
}

.fx-project-popup__meta {
	margin: 0 0 1rem;
	line-height: 1.3;
}

.fx-project-popup__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
	opacity: 0.7;
}

.fx-project-popup__meta--creator .fx-project-popup__label {
    opacity: 1;
    font-size: 1rem;
}

.fx-project-popup__meta--creator .fx-project-popup__label strong {
    font-weight: 700;
}

.fx-project-popup__value,
.fx-project-popup__description .fx-project-popup__value {
	margin: 0;
}

.fx-project-popup__description {
	margin-bottom: 1rem;
}

.fx-project-popup__links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-direction: column;
}

.fx-project-popup__link {
    font-size: 1rem;
    font-weight: 600;
    color: #c5502b;
    margin-top: auto;
    align-items: center;
    gap: 8px;
    padding: 0;
    display: inline-flex;
}

.fx-project-popup__link:hover {
    color: #161616;
}

.fx-project-popup__link:active,
.fx-project-popup__link:focus {
    outline: none;
}

.fancybox__content .fx-project-popup {
	display: block;
}

.fx-project-fallback-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.fx-project-fallback-modal__overlay {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.fx-project-fallback-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 960px;
	max-height: calc(100vh - 3rem);
	margin: 1.5rem auto;
	overflow: auto;
	background: #fff;
	border-radius: 0.5rem;
}

.fx-project-fallback-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

body.fx-project-fallback-modal-open {
	overflow: hidden;
}

.has-gallery-project .f-button {
    border-radius: 4px;
    color: #fff;
    border: none;
    background: rgb(197 80 43 / 100%);
}

.has-gallery-project .f-button:active,
.has-gallery-project .f-button:focus,
.has-gallery-project .f-button:focus-visible {
    border: none;
    background: rgb(197 80 43 / 100%);
}

.has-gallery-project .f-button:hover {
    background: rgb(197 80 43 / 100%);
}

.fancybox__container {
    z-index: 9999999;
}

@media (min-width: 800px) {
	.fx-project-popup__layout {
		grid-template-columns: 1fr 1fr;
	}

	.fx-project-popup__image {
		object-fit: cover;
	}
}

@media (min-width: 1200px) {
    .has-gallery-project .f-button {
        background: rgb(197 80 43 / 35%);
    }

    .has-gallery-project .f-button:hover {
        background: rgb(197 80 43 / 100%);
    }
}

@media (max-width: 799px) {
	.fx-project-popup__media {
		height: 350px;
	}

	.has-gallery-project .fancybox__footer {
		display: none !important;
	}

	.has-gallery-project .fancybox__nav button.f-button {
		top: 30% !important;
	}
}
