/* Project Gallery Cards
 * Measured from the maisonaec.com design.
 * Desktop (above 1480): 3 columns, 1320px wide, 20px gap.
 * Laptop (1025 to 1480): 3 columns, 1080px wide.
 * Tablet (768 to 1024): 3 columns, 600px wide.
 * Mobile (up to 767): 1 column.
 * Colors are variables below.
 */
.pgc-wrap {
	--pgc-title: #27444a;
	--pgc-accent: #fc632a;
	--pgc-card-bg: #ffffff;
	--pgc-line: #ececec;
	--pgc-radius: 20px;
	--pgc-gap: 20px;
	--pgc-pad: 15px;
	--pgc-title-size: 22px;
	--pgc-title-lh: 1.1;
	--pgc-link-size: 17px;
	--pgc-thumb-h: 291px;
	font-family: "Poppins", sans-serif;
	box-sizing: border-box;
	/* Width is set from the screen, never from the content (some Elementor containers
	   shrink their children to fit the text, which made cards depend on the title). */
	--pgc-max: 1320px;
	--pgc-gutter: 40px;
	width: min(var(--pgc-max), calc(100vw - var(--pgc-gutter)));
	max-width: 100%;
	margin: 0 auto;
}
.pgc-wrap *,
.pgc-modal * { box-sizing: border-box; }

.pgc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pgc-gap);
}

.pgc-card {
	background: var(--pgc-card-bg);
	border-radius: var(--pgc-radius);
	padding: var(--pgc-pad);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pgc-title {
	margin: 0;
	padding: 20px 0 21px;
	text-align: center;
	font-family: inherit;
	font-weight: 600;
	font-size: var(--pgc-title-size);
	line-height: var(--pgc-title-lh);
	color: var(--pgc-title);
	border-bottom: 1px solid var(--pgc-line);
}

.pgc-linkrow { text-align: center; padding: 10px 0 28px; }

.pgc-view {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--pgc-link-size);
	font-weight: 400;
	line-height: 25px;
	color: var(--pgc-accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: none;
	text-transform: none;
	transition: opacity .2s ease;
}
.pgc-arrow { flex: none; }

.pgc-thumb {
	position: relative;
	width: 100%;
	height: var(--pgc-thumb-h);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	margin-top: auto;
}
.pgc-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}
.pgc-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, .66) 100%);
	pointer-events: none;
}
.pgc-caption {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 30px;
	z-index: 2;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 25px;
}

/* Laptop */
@media (max-width: 1480px) {
	.pgc-wrap {
		--pgc-max: 1080px;
		--pgc-title-size: 24px;
		--pgc-title-lh: 1.05;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.pgc-wrap {
		--pgc-max: 600px;
		--pgc-pad: 20px;
		--pgc-title-size: 22px;
		--pgc-title-lh: 1.1;
		--pgc-thumb-h: 244px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.pgc-wrap {
		--pgc-max: 9999px;
		--pgc-gutter: 32px;
		--pgc-title-size: 20px;
		--pgc-thumb-h: 244px;
	}
	.pgc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Popup */
.pgc-lock { overflow: hidden; }

.pgc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: "Poppins", sans-serif;
}
.pgc-modal.is-open { display: flex; }
.pgc-overlay { position: absolute; inset: 0; background: rgba(20, 30, 31, .7); }

.pgc-box {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	padding: 28px 28px 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.pgc-close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #27444a;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}

.pgc-modal-title {
	margin: 0 0 16px;
	padding: 0 30px 14px;
	text-align: center;
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	color: #27444a;
	border-bottom: 1px solid #ececec;
}
.pgc-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 120px;
}
.pgc-slider { position: relative; }
.pgc-stage { position: relative; }
.pgc-viewport {
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid #ececec;
	background: #fff;
	min-height: 140px;
	transition: height .25s ease;
}
.pgc-track { display: flex; align-items: flex-start; transition: transform .35s ease; will-change: transform; }
.pgc-slide {
	flex: 0 0 100%;
	min-width: 0;
	display: flex;
	justify-content: center;
}
.pgc-modal-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: max(220px, calc(100vh - 340px));
	user-select: none;
}
.pgc-counter {
	margin-top: 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: #27444a;
}
.pgc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	z-index: 2;
}
.pgc-nav-prev { left: 12px; }
.pgc-nav-next { right: 12px; }
.pgc-loading,
.pgc-empty { margin: 30px 0; text-align: center; color: #5b6b6c; }

.pgc-modal-foot { padding-top: 18px; text-align: center; }
.pgc-lead {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	line-height: 1.3;
	appearance: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #fc632a;
	padding: 13px 30px;
	border-radius: 999px;
	transition: background .2s ease;
}

@media (max-width: 767px) {
	.pgc-modal { padding: 10px; }
	.pgc-box { padding: 22px 16px 16px; border-radius: 18px; }
	.pgc-modal-title { font-size: 18px; }
	.pgc-lead { display: block; width: 100%; }
}

/* Button states. The theme (Hello Elementor) paints buttons with its own hover color
 * on hover and focus, so every state is set explicitly here and forced. */
.pgc-wrap .pgc-view,
.pgc-wrap .pgc-view:hover,
.pgc-wrap .pgc-view:focus,
.pgc-wrap .pgc-view:active {
	background: transparent !important;
	background-color: transparent !important;
	color: #fc632a !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}
.pgc-wrap .pgc-view:hover,
.pgc-wrap .pgc-view:focus-visible { text-decoration: underline; }

.pgc-modal a.pgc-lead,
.pgc-modal a.pgc-lead:link,
.pgc-modal a.pgc-lead:visited {
	background: #fc632a !important;
	background-color: #fc632a !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
.pgc-modal a.pgc-lead:hover,
.pgc-modal a.pgc-lead:focus,
.pgc-modal a.pgc-lead:active {
	background: #254449 !important;
	background-color: #254449 !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.pgc-modal .pgc-close,
.pgc-modal .pgc-close:focus,
.pgc-modal .pgc-close:active {
	background: transparent !important;
	color: #27444a !important;
	border: 0 !important;
	box-shadow: none !important;
}
.pgc-modal .pgc-close:hover {
	background: #f1f1f1 !important;
	color: #27444a !important;
	border: 0 !important;
}

.pgc-modal .pgc-nav,
.pgc-modal .pgc-nav:focus,
.pgc-modal .pgc-nav:active {
	background: #254449 !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}
.pgc-modal .pgc-nav:hover {
	background: #fc632a !important;
	color: #fff !important;
	border: 0 !important;
}
@media (max-width: 767px) {
	.pgc-nav { width: 38px; height: 38px; }
	.pgc-nav-prev { left: 8px; }
	.pgc-nav-next { right: 8px; }
}

/* Titles: theme and Elementor kit heading sizes (h1 to h3) must not leak in. */
.pgc-wrap .pgc-card .pgc-title {
	font-size: var(--pgc-title-size) !important;
	line-height: var(--pgc-title-lh) !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 !important;
	color: var(--pgc-title) !important;
}
.pgc-modal .pgc-box .pgc-modal-title {
	font-size: 22px !important;
	line-height: 1.2 !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #27444a !important;
}
@media (max-width: 767px) {
	.pgc-modal .pgc-box .pgc-modal-title { font-size: 18px !important; }
}
