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

.the7-cpg {
	--cpg-gap: 50px;
	--cpg-bg: #fff;
	--cpg-text: #111;
	--cpg-overlay: rgba(0, 0, 0, .68);

	width: 100%;
}

/* =========================================================
   FILTER
   ========================================================= */

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

.the7-cpg-filter-button {
	position: relative;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 0 8px 0;
	margin: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	color: #231f20;
	font-family: Poppins !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition:
		color .45s ease,
		background-color .25s ease,
		border-color .25s ease;
}
.the7-cpg-filter-button::before{
	position: absolute;
	content: '';
	left: 50%;
	right: 50%;
	bottom: -4px;
	height: 1px;
	background-color: #0aaeeb;
	transition: all .5s;
	opacity: 0;
}
.the7-cpg-filter-button:first-child{
	margin-left: 0 !important;
}

.the7-cpg-filter-button:hover,
.the7-cpg-filter-button:focus-visible,
.the7-cpg-filter-button.is-active {
	color: #0aaeeb;
	outline: none;
}
.the7-cpg-filter-button.is-active::before{
	left: 0;
	right: 0;
	opacity: 1;
}

/* =========================================================
   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 .2s ease;
}

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

/*
 * 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;
}

/*
 * Important:
 * Smart items are converted by JS into either
 * .is-half or .is-full.
 */
.the7-cpg-item {
	border-radius: 24px;
	overflow: hidden;
	min-width: 0;
	/* transform: translate(30px, 10px); */
}
.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: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
}

.the7-cpg-image-wrap {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: #f3f3f3;
}

.the7-cpg-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 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: flex-end;
	padding: 32px;
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, .75) 5%,
			rgba(0, 0, 0, .35) 15%,
			rgba(0, 0, 0, 0) 35%
		);
	color: #fff;
	transition: opacity .3s ease;
}
.the7-cpg-open{
	position: absolute;
	width: clamp(55px, 5vw, 96px);
	height: calc(clamp(55px, 5vw, 96px) - 2px);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.4);
	border-radius: 6px;
	background-color: #00aeef;
	background-image: url(../images/open-image.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 35%;
	opacity: 0;
	transition: all .3s;
}
.the7-cpg-category{
	font-size: 18px;
	position: absolute;
	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{
	font-family: Poppins !important;
	font-weight: normal;
	font-size: 17px;
	display: block;
	max-width: 600px;
	line-height: 1.2;
}
.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: 17px 160px 17px 28px;
	border: 0 !important;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font-family: Poppins !important;
	font-size: 17px;
	font-weight: 600;
	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: #0aaeeb;
}

.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: 6px;
	background: #00AEEF;
	transition: all 0.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 0.5s;
	 background-image: url(../images/arrow-next-black.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 0.5s;
	 transform: translateX(-50%);
    opacity: 0;
    background-image: url(../images/arrow-next-blue.svg);
}
.the7-cpg-load-more:hover .the7-cpg-icon{
	background: #fff;
}
.the7-cpg-load-more:hover .the7-cpg-icon::before{
	opacity: 0;
    transform: translateX(10px);
}
.the7-cpg-load-more:hover .the7-cpg-icon::after{
	opacity: 1;
    transform: translateX(0px);
}

/* =========================================================
   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: 7px;
	height: 7px;
	border-radius: 50%;
	background: #111;
	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[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: 24px;
	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: 40px !important;
	height: 40px !important;
	border-radius: 6px;
	overflow: hidden;
	background: #0aaeeb;
	backdrop-filter: blur(10px);
	transition: all 0.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: 16px;
    transition: all 0.5s;
}

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

.the7-cpg-lightbox-next::after{
	opacity: 0;
	transform: translateX(-10px);
	background-image: url(../images/arrow-next-blue.svg);
}
.the7-cpg-lightbox-prev::after{
	opacity: 0;
	transform: translateX(10px);
	background-image: url(../images/arrow-prev-blue.svg);
}
.the7-cpg-lightbox-next:hover,
.the7-cpg-lightbox-prev:hover{
	background: #ffffff;
}
.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-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: 6px;
	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;
}

.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;
}

@media (max-width: 1400px) {
	.the7-cpg-excerpt{
		font-size: 16px;
	}
}

@media (max-width: 1200px) {
	.the7-cpg{
		--cpg-gap: 30px;
	}
	.the7-cpg-title {
		font-size: 22px;
	}
}
@media (max-width: 1000px) {
	.the7-cpg-filter {
		gap: 45px;
	}
	.the7-cpg-title {
		font-size: 21px;
	}
}
@media (min-width: 768px) and (max-width: 1000px){
	.the7-cpg-excerpt{
		font-size: 16px;
	}
}

/* =========================================================
   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;
	}

	.the7-cpg-filter {
		margin-bottom: 45px;
		gap: 20px;
	}

	.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;
	}

}



.card-content {
  position: absolute;
  bottom: 24px;
  transform: translateY(var(--subheading-height));
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.the7-cpg-excerpt {
  margin: 10px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.35s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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