/* Σελίδα έργου (Nterliki Έργα). Ουδέτερα χρώματα: ταιριάζει σε σκούρο (Designexo) και ανοιχτό θέμα. */

.nt-erga,
.nt-cat {
	--nt-line: rgba(128, 128, 128, 0.35);
	--nt-accent: #8b47b2;
	margin: 0 0 40px;
}

.nt-erga__facts {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 30px;
	padding: 0;
	border: 1px solid var(--nt-line);
}

.nt-erga__facts > div {
	flex: 1 1 160px;
	padding: 14px 20px;
	border-right: 1px solid var(--nt-line);
}

.nt-erga__facts > div:last-child {
	border-right: 0;
}

.nt-erga__facts dt {
	margin: 0 0 2px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--nt-accent);
	font-weight: 400;
}

.nt-erga__facts dd {
	margin: 0;
}

.nt-erga__text {
	max-width: 820px;
	margin: 0 0 30px;
}

.nt-erga__group + .nt-erga__group {
	margin-top: 50px;
}

.nt-erga__label {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--nt-line);
	text-transform: uppercase;
	letter-spacing: 3px;
}

.nt-erga__grid {
	columns: 3;
	column-gap: 12px;
}

.nt-erga__group--before .nt-erga__grid {
	columns: 4;
}

@media (max-width: 991px) {
	.nt-erga__grid,
	.nt-erga__group--before .nt-erga__grid {
		columns: 2;
	}
}

@media (max-width: 575px) {
	.nt-erga__grid {
		columns: 1;
	}
}

.nt-erga__item {
	position: relative;
	margin: 0 0 12px;
	break-inside: avoid;
	overflow: hidden;
	background: rgba(128, 128, 128, 0.15);
}

.nt-erga__item a {
	display: block;
	cursor: zoom-in;
}

.nt-erga__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.5s ease, opacity 0.3s;
}

.nt-erga__item a:hover img {
	transform: scale(1.04);
	opacity: 0.85;
}

.nt-erga__item a:focus-visible {
	outline: 2px solid var(--nt-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.nt-erga__item img {
		transition: none;
	}

	.nt-erga__item a:hover img {
		transform: none;
	}
}

/* Lightbox (μόνο αν το θέμα δεν έχει δικό του) */

.nt-lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.94);
	color: #fff;
}

.nt-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.94);
}

.nt-lightbox[open] {
	display: grid;
	place-items: center;
}

.nt-lightbox img {
	max-width: calc(100vw - 140px);
	max-height: calc(100dvh - 100px);
	width: auto;
	height: auto;
	border: 4px solid #fff;
}

.nt-lightbox button {
	position: absolute;
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.nt-lightbox .nt-prev {
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.nt-lightbox .nt-next {
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.nt-lightbox .nt-close {
	right: 10px;
	top: 6px;
}

@media (max-width: 640px) {
	.nt-lightbox img {
		max-width: 96vw;
		border-width: 2px;
	}

	.nt-lightbox .nt-prev,
	.nt-lightbox .nt-next {
		top: auto;
		bottom: 12px;
		transform: none;
	}
}

/* Σελίδα κατηγορίας */

.nt-cat {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 24px;
	margin: 0 0 40px;
}

@media (max-width: 991px) {
	.nt-cat {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.nt-cat {
		grid-template-columns: 1fr;
	}
}

.nt-cat__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.nt-cat__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(128, 128, 128, 0.15);
	margin-bottom: 14px;
}

.nt-cat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nt-cat__link:hover .nt-cat__media img {
	transform: scale(1.04);
}

.nt-cat__title {
	display: block;
	font-size: 17px;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.nt-cat__link:hover .nt-cat__title {
	color: var(--nt-accent, #8b47b2);
}

@media (prefers-reduced-motion: reduce) {
	.nt-cat__media img {
		transition: none;
	}

	.nt-cat__link:hover .nt-cat__media img {
		transform: none;
	}
}

/* Το Designexo υπογραμμίζει τους συνδέσμους μέσα στο κείμενο της σελίδας· όχι στις κάρτες. */
.nt-cat a,
.nt-erga a {
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
