/* ==========================================================================
   Pixilwebs Projects — frontend (shortcodes)
   ========================================================================== */

/* ---------- Technologies list ---------- */
.pxlwp-techs {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Manrope", sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	gap: 9px;
	color: #ffffff;
}
.pxlwp-techs__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: inherit;
	transition: color 0.2s ease;
}
.pxlwp-techs__icon {
	flex: 0 0 auto;
	font-size: 1.2em;
	line-height: 1;
	color: inherit;
	transition: color 0.2s ease;
}
.pxlwp-techs__label {
	display: inline-block;
	color: inherit;
	transition: color 0.2s ease;
}
.pxlwp-techs__item:hover,
.pxlwp-techs__item:hover .pxlwp-techs__icon,
.pxlwp-techs__item:hover .pxlwp-techs__label {
	color: #97F8F4;
}

@media (max-width: 767px) {
	.pxlwp-techs {
		font-size: 14px;
	}
}

/* ---------- Technologies (CSV inline) ---------- */
.pxlwp-techs-csv {
	font-family: "Inter Tight", sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 135% !important;
}

/* ---------- Gallery grid ---------- */
.pxlwp-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.pxlwp-gallery__item {
	margin: 0;
	display: flex;
	flex-direction: column;
}
.pxlwp-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
	cursor: zoom-in;
}
.pxlwp-gallery__link img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	transition: transform 0.4s ease;
}
.pxlwp-gallery__link:hover img,
.pxlwp-gallery__link:focus-visible img {
	transform: scale(1.02);
}

/* hover caption (centered bottom inside the image) */
.pxlwp-gallery__hover-caption {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translate(-50%, 8px);
	max-width: calc(100% - 24px);
	padding: 8px 14px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	white-space: normal;
}
.pxlwp-gallery__link:hover .pxlwp-gallery__hover-caption,
.pxlwp-gallery__link:focus-visible .pxlwp-gallery__hover-caption {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* caption shown below image in gallery view */
.pxlwp-gallery__caption {
	margin-top: 8px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: inherit;
	opacity: 0.85;
}

@media (max-width: 767px) {
	.pxlwp-gallery {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ---------- Lightbox ---------- */
.pxlwp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pxlwp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.pxlwp-lightbox__stage {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.pxlwp-lightbox__img {
	max-width: 92vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	user-select: none;
}
.pxlwp-lightbox__caption {
	margin-top: 12px;
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	max-width: 80vw;
	min-height: 1em;
}
.pxlwp-lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}
.pxlwp-lightbox__btn:hover,
.pxlwp-lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	outline: none;
}
.pxlwp-lightbox__btn--prev { left: max(16px, calc(50vw - 46vw - 56px)); }
.pxlwp-lightbox__btn--next { right: max(16px, calc(50vw - 46vw - 56px)); }
.pxlwp-lightbox__btn--close {
	top: 16px;
	right: 16px;
	transform: none;
	width: 40px;
	height: 40px;
	font-size: 20px;
}
.pxlwp-lightbox__btn[hidden] { display: none; }

@media (max-width: 767px) {
	.pxlwp-lightbox__btn--prev { left: 8px; }
	.pxlwp-lightbox__btn--next { right: 8px; }
}

/* prevent page scroll while open */
html.pxlwp-lightbox-open,
body.pxlwp-lightbox-open {
	overflow: hidden;
}
