/* =========================================================
   THE7 CUSTOM PROJECT GALLERY — V2
   ========================================================= */

.the7-cpg{
	--cpg-gap: 50px;
	--cpg-bg: #fff;
	--cpg-text: #111;
	--cpg-overlay: rgba(0, 0, 0, .68);
	--cpg-overlay-padding: 40px 35px 20px 36px;
	width: 100%;
}

/* =========================================================
   CATEGORY FILTER — CUSTOM DROPDOWN
   ========================================================= */

.the7-cpg-filter {
	display: flex;
	align-items: center;
	justify-content: end;
	gap: 16px;
	margin: 0 0 65px;
	padding: 0;
}

.the7-cpg-filter-label {
	flex: 0 0 auto;
	margin: 0;
	color: #231f20;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.the7-cpg-dropdown {
	position: relative;
	z-index: 5;
	width: min(100%, 420px);
	font-family: 'PPFormula', sans-serif;
}

.the7-cpg-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 6px 8px 6px 18px;
	border: 1px solid #dedede !important;
	border-radius: 10px;
	background: #fff !important;
	color: #676F53 !important;
	font-family: 'PPFormula', sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.the7-cpg-dropdown-current{
	padding-top: 5px;
}

.the7-cpg-dropdown-toggle:hover,
.the7-cpg-dropdown.is-open .the7-cpg-dropdown-toggle {
	border-color: #676F53 !important;
	box-shadow: 0 6px 22px rgba(17, 35, 48, .08);
}

.the7-cpg-dropdown-toggle:focus-visible,
.the7-cpg-dropdown-option:focus-visible {
	outline: 1px solid #676F53;
	outline-offset: 3px;
}

.the7-cpg-dropdown-chevron{
	position: relative;
	flex: 0 0 16px;
	width: 36px;
	height: 36px;
	aspect-ratio: 1;
	background-color: #676F53;
	border-radius: 10px;
	border: 0;
	transition: transform .28s cubic-bezier(.2, .75, .25, 1);
}
.the7-cpg-dropdown-chevron::after,
.the7-cpg-dropdown-chevron::before{
	position: absolute;
	content: '';
	display: block;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 40%;
	transition: all 0.3s;
}
.the7-cpg-dropdown-chevron::before{
	background-image: url(../images/arrow-down-white.svg);
}

.the7-cpg-dropdown.is-open .the7-cpg-dropdown-chevron {
	transform: rotate(180deg);
}

.the7-cpg-dropdown-menu {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	z-index: 20;
	width: 100%;
	/* max-height: min(320px, 55vh); */
	overflow-y: auto;
	padding: 7px;
	border: 1px solid rgba(20, 28, 35, .08);
	border-radius: 10px;
	background: rgb(103 111 83 / 60%);
	backdrop-filter: blur(12px);
	box-shadow: 0 16px 42px rgb(103 111 83 / 24%);
	transform-origin: top center;
	box-sizing: border-box;
	animation: cpg-dropdown-open .22s cubic-bezier(.2, .75, .25, 1) both;
}

.the7-cpg-dropdown-menu[hidden] {
	display: none !important;
}

.the7-cpg-dropdown-option {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0 0 5px 0;
	padding: 14px 12px 10px 12px;
	border: 0 !important;
	border-radius: 6px;
	background: transparent !important;
	color: #ffffff !important;
	font-family: 'PPFormula', sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}

.the7-cpg-dropdown-option:hover,
.the7-cpg-dropdown-option.is-selected {
	background: #E6DCD1 !important;
	color: #676F53 !important;
}

.the7-cpg-dropdown-option:hover {
	padding-left: 16px;
}

@keyframes cpg-dropdown-open {
	from {
		opacity: 0;
		transform: translateY(-7px) scale(.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.the7-cpg-dropdown-toggle,
	.the7-cpg-dropdown-chevron,
	.the7-cpg-dropdown-option {
		transition: none !important;
	}

	.the7-cpg-dropdown-menu {
		animation: none !important;
	}
}

/* =========================================================
   GRID
   ========================================================= */

.the7-cpg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--cpg-gap);
	align-items: start;
	width: 100%;
	transition: opacity .5s ease;
}

.the7-cpg-grid.is-loading {
	opacity: .45;
}

.the7-cpg-grid.is-filtering {
	transform: translateY(5px);
}

.the7-cpg-item.cpg-filter-enter {
	animation: cpg-filter-item-in .98s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes cpg-filter-item-in {
	from {
		opacity: 0;
		transform: translateY(48px) scale(.9);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.the7-cpg-grid,
	.the7-cpg-item.cpg-filter-enter {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

/* Full-width item. */
.the7-cpg-item.is-full {
	grid-column: 1 / -1;
}

/* Explicit half-width item. */
.the7-cpg-item.is-half {
	grid-column: span 1;
}

/*
 * Smart items are converted by JS into either
 * .is-half or .is-full.
 */
.the7-cpg-item {
	/* border-radius: 10px; */
	overflow: hidden;
	min-width: 0;
	/* transform: translate(30px, 10px); */
}
.the7-cpg-item h3{
	margin-top: 42px;
	font-family: 'PPFormula', sans-serif;
	font-weight: 500;
	font-size: 25px;
	line-height: 1.2;
}

.the7-cpg-item.view {
	opacity: 1;
	transform: translate(0, 0);
}

/* =========================================================
   PROJECT CARD
   ========================================================= */

.the7-cpg-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
}
.the7-cpg-card::before{
	position: absolute;
	content: '';
	display: block;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgb(103, 111, 83, 0.85);
	z-index: 1;
	transition: all .5s;
	opacity: 0;
}
.the7-cpg-image-wrap {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: #f3f3f3;
	min-height: 340px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
.the7-cpg-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	opacity: 0;
	transform: scale(1);
	transition: transform .8s cubic-bezier(.2, .65, .3, 1);
}

.the7-cpg-card:hover .the7-cpg-image,
.the7-cpg-card:focus-visible .the7-cpg-image {
	transform: scale(1.025);
}

/* =========================================================
   OVERLAY
   ========================================================= */

.the7-cpg-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: initial;
	/* padding: 40px 35px 20px 36px; */
	padding: var(--cpg-overlay-padding);
	gap: 22px;
	color: #fff;
	transition: opacity .3s ease;
	z-index: 2;
}

.the7-cpg-open {
	display: none !important;
	position: absolute;
	width: clamp(55px, 5vw, 96px);
	height: calc(clamp(55px, 5vw, 96px) - 2px);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(.4);
	border-radius: 6px;
	background-color: #676f53;
	background-image: url(../images/zoom_out.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 35%;
	opacity: 0;
	transition: all .3s;
}

.the7-cpg-category {
	font-size: 18px;
	top: 32px;
	left: 32px;
	border-radius: 10px;
	padding: 10px 22px;
	color: #fff;
	background-color: rgb(0 0 0 / 50%);
}

.the7-cpg-card:hover .the7-cpg-overlay,
.the7-cpg-card:focus-visible .the7-cpg-overlay {
	opacity: 1;
}

.the7-cpg-card:hover .the7-cpg-open {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.the7-cpg-title {
	font-family: Poppins !important;
	font-weight: 500;
	display: block;
	font-size: 25px;
	line-height: 1.25;
	margin-bottom: 15px;
}

.the7-cpg-excerpt {
	display: block;
}

.the7-cpg-count {
	display: none;
	margin-top: 7px;
	font-size: 12px;
	line-height: 1.3;
	opacity: .75;
}

/* =========================================================
   LOAD MORE
   ========================================================= */

.the7-cpg-load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: clamp(75px, 5.5vw, 100px);
}

.the7-cpg-load-more {
	position: relative;
	appearance: none;
	min-width: 150px;
	min-height: 54px;
	padding: 20px 160px 17px 28px;
	border: 0 !important;
	border-radius: 10px;
	background: #676F53;
	color: #fff;
	font-family: 'PPFormula', sans-serif;
	font-size: 20px;
	font-weight: normal;
	overflow: hidden;
	line-height: 1.2;
	cursor: pointer;
	transition: color .35s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease;
}

.the7-cpg-load-more:hover:not(:disabled),
.the7-cpg-load-more:focus-visible:not(:disabled) {
	color: #E6DCD1;
}

.the7-cpg-load-more:focus-visible {
	outline: none;
}

.the7-cpg-load-more:disabled {
	cursor: wait;
	opacity: .45;
}

.the7-cpg-load-more .the7-cpg-icon {
	position: absolute;
	aspect-ratio: 1 / 1;
	top: 8px;
	right: 10px;
	bottom: 8px;
	border-radius: 10px;
	background: #ffffff;
	transition: all .5s;
	overflow: hidden;
}

.the7-cpg-load-more .the7-cpg-icon::before {
	position: absolute;
	content: "" !important;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px;
	transition: all .5s;
	background-image: url(../images/arrow-down.svg);
}

.the7-cpg-load-more .the7-cpg-icon::after {
	position: absolute;
	content: "" !important;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px;
	transition: all .3s;
	transform: translateY(-50%);
	opacity: 0;
	background-image: url(../images/arrow-down.svg);
}

.the7-cpg-load-more:hover .the7-cpg-icon {
	background: #fff;
}

.the7-cpg-load-more:hover .the7-cpg-icon::before {
	opacity: 0;
	transform: translateY(10px);
}

.the7-cpg-load-more:hover .the7-cpg-icon::after {
	opacity: 1;
	transform: translateY(0);
}

/* =========================================================
   LOADER
   ========================================================= */

.the7-cpg-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 70px;
}

.the7-cpg-loader[hidden] {
	display: none;
}

.the7-cpg-loader span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #676F53;
	animation: the7-cpg-loader-animation .9s infinite ease-in-out;
}

.the7-cpg-loader span:nth-child(2) {
	animation-delay: .12s;
}

.the7-cpg-loader span:nth-child(3) {
	animation-delay: .24s;
}

@keyframes the7-cpg-loader-animation {
	0%,
	80%,
	100% {
		transform: scale(.55);
		opacity: .3;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* =========================================================
   EMPTY
   ========================================================= */

.the7-cpg-empty {
	padding: 60px 20px;
	color: #777;
	font-size: 14px;
	text-align: center;
}

.the7-cpg-empty[hidden] {
	display: none;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.the7-cpg-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .96);
}
.the7-cpg-lightbox-title{
	font-family: 'PPFormula', sans-serif;
	font-weight: 500;
	color: #ffffff;
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
}
.the7-cpg-lightbox-title span{
	font-weight: 400;
	display: block;
	font-size: 13px;
	margin-top: 5px;
	color: #a1a1a1;
}
.the7-cpg-lightbox[hidden] {
	display: none;
}

.the7-cpg-lightbox-backdrop {
	position: absolute;
	inset: 0;
}

.the7-cpg-lightbox-dialog {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: 1800px;
}

.the7-cpg-lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 140px);
	height: calc(100% - 80px);
}

.the7-cpg-lightbox-image {
	border-radius: 10px;
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity .22s ease;
}

.the7-cpg-lightbox-image.is-loaded {
	opacity: 1;
}

/* =========================================================
   LIGHTBOX CONTROLS
   ========================================================= */

.the7-cpg-lightbox-close,
.the7-cpg-lightbox-prev,
.the7-cpg-lightbox-next {
	position: absolute;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	padding: 10px;
	border: 0;
	color: #fff;
	cursor: pointer;
	opacity: .9;
	width: 42px !important;
	height: 42px !important;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	backdrop-filter: blur(10px);
	transition: all .5s;
	outline: none !important;
}

.the7-cpg-lightbox-prev span,
.the7-cpg-lightbox-next span {
	display: none;
}

.the7-cpg-lightbox-prev::after,
.the7-cpg-lightbox-next::after,
.the7-cpg-lightbox-prev::before,
.the7-cpg-lightbox-next::before {
	position: absolute;
	content: '';
	display: block;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	border-radius: 6px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px;
	transition: all .5s;
}

.the7-cpg-lightbox-next::before {
	background-image: url(../images/arrow-next-olive-gray.svg);
}

.the7-cpg-lightbox-prev::before {
	background-image: url(../images/arrow-prev-olive-gray.svg);
}

.the7-cpg-lightbox-next::after {
	opacity: 0;
	transform: translateX(-10px);
	background-image: url(../images/arrow-next-olive-gray.svg);
}

.the7-cpg-lightbox-prev::after {
	opacity: 0;
	transform: translateX(10px);
	background-image: url(../images/arrow-prev-olive-gray.svg);
}

.the7-cpg-lightbox-next:hover,
.the7-cpg-lightbox-prev:hover {
	background: #fff;
}

.the7-cpg-lightbox-next:hover::after {
	opacity: 1;
	transform: translateX(0);
}

.the7-cpg-lightbox-next:hover::before {
	opacity: 0;
	transform: translateX(10px);
}

.the7-cpg-lightbox-prev:hover::after {
	opacity: 1;
	transform: translateX(0);
}

.the7-cpg-lightbox-prev:hover::before {
	opacity: 0;
	transform: translateX(-10px);
}

.the7-cpg-lightbox-close:hover,
.the7-cpg-lightbox-prev:hover,
.the7-cpg-lightbox-next:hover {
	/* opacity: .55; */
}

.the7-cpg-lightbox-close:focus-visible,
.the7-cpg-lightbox-prev:focus-visible,
.the7-cpg-lightbox-next:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

.the7-cpg-lightbox-close {
	top: 4px;
	right: 4px;
	font-size: 42px;
	font-weight: 200;
	line-height: 1;
}
.the7-cpg-lightbox-close span{
	color: #676F53;
}

.the7-cpg-lightbox-prev,
.the7-cpg-lightbox-next {
	top: 50%;
	width: 60px;
	height: 80px;
	transform: translateY(-50%);
	font-size: 62px;
	font-weight: 200;
	line-height: 1;
}

.the7-cpg-lightbox-prev {
	left: 0;
}

.the7-cpg-lightbox-next {
	right: 0;
}

/* =========================================================
   LIGHTBOX FOOTER
   ========================================================= */

.the7-cpg-lightbox-footer {
	position: absolute;
	left: 50%;
	bottom: -12px;
	display: flex;
	align-items: center;
	font-family: Poppins !important;
	gap: 16px;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	align-items: baseline;
}

.the7-cpg-lightbox-counter {
	opacity: .6;
}

/* =========================================================
   LIGHTBOX LOADING
   ========================================================= */

.the7-cpg-lightbox-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	transform: translate(-50%, -50%);
}

.the7-cpg-lightbox-loading.is-active {
	display: block;
}

.the7-cpg-lightbox-loading span {
	display: block;
	width: 32px;
	height: 32px;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: the7-cpg-spin .7s linear infinite;
}

@keyframes the7-cpg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================================================
   BODY LOCK
   ========================================================= */

body.the7-cpg-lightbox-open {
	overflow: hidden;
}

/* =========================================================
   CARD CONTENT ANIMATION
   ========================================================= */

.card-content {
	/* position: absolute; */
	font-family: 'PPFormula', sans-serif;
	font-weight: normal;
	font-size: 15px;
	bottom: 24px;
	line-height: 24px;

	/*
	transform: translateY(var(--subheading-height));
	transition: opacity .35s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
	*/
}
.card-content ul{
	margin-bottom: 25px;
}
.card-content strong{
	font-size: 18px;
	display: block;
}
.card-content-header{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 30px;
	border-bottom: 1px solid #ffffff;
	padding-bottom: 18px;
	opacity: 0;
	transition: all .4s;
	transform: translateY(10px) scale(0.96);
}
.card-content-header .open-gallery{
	height: 54px;
	display: inline-block;
	aspect-ratio: 1;
	border-radius: 10px;
	background-color: #ffffff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 45%;
	background-image: url(../images/zoom_out.svg);
}
.card-content-category{
	font-family: 'PPFormula', sans-serif;
	font-weight: bold;
	font-size: 16px;
	color: #676F53;
	background-color: #ffffff;
	border-radius: 10px;
	padding: 11px 10px 7px 10px;
	display: inline-block;
}
.card-content-location{
	display: block;
	font-family: 'PPFormula', sans-serif;
	font-weight: bold;
	font-size: 15px;
	color: #ffffff;
	margin-top: 12px;
}

.the7-cpg-excerpt {
	margin: 10px 0 0;
	opacity: 0;
	/* transform: translateY(var(--subheading-height)); */
	transform: translateY(10px);
	transition: opacity .35s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.the7-cpg-card.is-hovered .card-content-header{
	opacity: 1;
	transform: translateY(0) scale(1);
}
.the7-cpg-card.is-hovered .card-content {
	transform: translateY(0);
	opacity: 1;
}
.the7-cpg-card.is-hovered::before{
	opacity: 1;
}

.the7-cpg-card.is-hovered .the7-cpg-excerpt {
	opacity: 1;
	transform: translateY(0);
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1420px) {
	.the7-cpg{
		--cpg-overlay-padding: 20px 10px 10px 15px;
	}
	.card-content{
		line-height: 20px;
	}
	.the7-cpg-overlay{
		gap: 10px;
	}
	.the7-cpg-excerpt {
		font-size: 14px;
	}
	.card-content strong{
		font-size: 16px;
	}
	.card-content ul{
		margin-bottom: 15px;
	}
	.card-content-category{
		font-size: 15px;
		padding: 8px 10px 5px 10px;
	}
}

@media (max-width: 1200px) {
	.the7-cpg {
		--cpg-gap: 30px;
	}

	.the7-cpg-excerpt {
		font-size: 13px;
	}
	.card-content strong{
		font-size: 14px;
	}
	.card-content{
		line-height: 17px;
	}

	.the7-cpg-title {
		font-size: 22px;
	}
}

@media (max-width: 1100px) {
	.the7-cpg-filter {
		gap: 14px;
		margin-bottom: 45px;
	}
	.card-content-location,
	.card-content-category{
		font-size: 13px;
	}
	.card-content{
		line-height: 15px;
	}
	.the7-cpg-excerpt{
		font-size: 12px;
	}
}

@media (min-width: 768px) and (max-width: 1000px) {
	.the7-cpg-excerpt {
		
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
	.the7-cpg-grid {
		grid-template-columns: 1fr;
	}

	.the7-cpg-item.is-half,
	.the7-cpg-item.is-full {
		grid-column: 1;
	}
	.card-content-header .open-gallery{
		height: 46px;
	}
	.the7-cpg-filter {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
		margin-bottom: 35px;
	}

	.the7-cpg-dropdown {
		width: 100%;
	}

	.the7-cpg-dropdown-toggle {
		min-height: 50px;
	}

	.the7-cpg-overlay {
		padding: 20px;
		opacity: 1;
	}

	.the7-cpg-title {
		font-size: 18px;
	}

	.the7-cpg-load-more-wrap {
		margin-top: 55px;
	}

	.the7-cpg-lightbox {
		padding: 8px;
	}

	.the7-cpg-lightbox-stage {
		width: calc(100% - 70px);
		height: calc(100% - 100px);
	}

	.the7-cpg-lightbox-prev,
	.the7-cpg-lightbox-next {
		width: 36px;
		font-size: 44px;
	}

	.the7-cpg-lightbox-close {
		top: 0;
		right: 0;
		font-size: 34px;
	}

	.the7-cpg-lightbox-footer {
		bottom: 15px;
	}
}