/* WShowcase Portfolio templates: archive, taxonomy, single. */

.wsp-archive,
.wsp-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.25rem 5rem;
	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
	color: #1a1a1a;
}

.wsp-back {
	margin: 0 0 1.5rem;
}
.wsp-back__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #1a1a1a;
	background: #f3f1ed;
	border: 1px solid #e3dfd6;
	text-decoration: none;
	padding: 0.55rem 1.1rem 0.55rem 0.9rem;
	border-radius: 999px;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.wsp-back__link:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
	transform: translateX(-2px);
}
.wsp-back__link:focus-visible {
	outline: 2px solid #146EF5;
	outline-offset: 2px;
}

.wsp-breadcrumbs {
	font-size: 0.85rem;
	color: #555;
	margin-bottom: 0.75rem;
}
.wsp-breadcrumbs a {
	color: #555;
	text-decoration: none;
}
.wsp-breadcrumbs a:hover {
	color: #146EF5;
}
.wsp-breadcrumbs__sep {
	margin: 0 0.4rem;
	color: #aaa;
}

.wsp-archive__header,
.wsp-single__header {
	margin-bottom: 2.5rem;
}
.wsp-archive__title,
.wsp-single__title {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: clamp(1.85rem, 4vw, 3rem);
	margin: 0.4rem 0 0.6rem;
	line-height: 1.15;
}
.wsp-archive__intro,
.wsp-single__excerpt {
	font-size: 1.05rem;
	max-width: 650px;
	color: #444;
	line-height: 1.6;
}

.wsp-single__category {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 0.5rem;
}
.wsp-single__client {
	color: #777;
	font-size: 0.95rem;
	margin-top: 0.25rem;
}

.wsp-single__body {
	max-width: 720px;
	margin-bottom: 3rem;
	line-height: 1.7;
}

/* Filter bar */
.wsp-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.75rem;
}
.wsp-filter__btn {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 0.9rem;
	color: #333;
	text-decoration: none;
	background: #fff;
	transition: all 0.2s;
}
.wsp-filter__btn:hover {
	border-color: #1a1a1a;
}
.wsp-filter__btn.is-active {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

/* Grid */
.wsp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.wsp-grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 2rem;
	}
}

/* Card */
.wsp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: transform 0.25s, box-shadow 0.25s;
}
.wsp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.wsp-card__image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f3f3f3;
}
.wsp-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}
.wsp-card:hover .wsp-card__image img {
	transform: scale(1.04);
}
.wsp-card__body {
	padding: 1.1rem 1.25rem 1.4rem;
}
.wsp-card__category {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #777;
	margin-bottom: 0.35rem;
}
.wsp-card__title {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}
.wsp-card__desc {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 0.75rem;
}
.wsp-card__cta {
	color: #146EF5;
	font-size: 0.92rem;
	font-weight: 500;
}

/* Gallery on single — CSS-columns masonry preserves natural orientation. */
.wsp-gallery-grid {
	column-count: 2;
	column-gap: 0.75rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) {
	.wsp-gallery-grid {
		column-count: 3;
		column-gap: 1rem;
	}
}
@media (min-width: 1024px) {
	.wsp-gallery-grid {
		column-count: 4;
	}
}
.wsp-gallery-item {
	display: block;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 0.75rem;
	overflow: hidden;
	border-radius: 6px;
	background: #f3f3f3;
}
@media (min-width: 640px) {
	.wsp-gallery-item {
		margin-bottom: 1rem;
	}
}
.wsp-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s, opacity 0.3s;
}
.wsp-gallery-item:hover img {
	transform: scale(1.03);
	opacity: 0.95;
}

/* CTA */
.wsp-cta {
	margin: 3.5rem 0;
	padding: 2.25rem 1.5rem;
	background: #f8f7f4;
	border-radius: 10px;
	text-align: center;
}
.wsp-cta__text {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	margin: 0 0 1rem;
}
.wsp-cta__btn {
	display: inline-block;
	padding: 0.8rem 1.75rem;
	background: #146EF5;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: background 0.2s;
}
.wsp-cta__btn:hover {
	background: #0a4fc4;
}

/* Related */
.wsp-related {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid #eee;
}
.wsp-related__title {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	margin: 0 0 1.5rem;
}

.wsp-single__back {
	margin-top: 3rem;
}
.wsp-single__back a {
	color: #555;
	text-decoration: none;
	font-size: 0.95rem;
}
.wsp-single__back a:hover {
	color: #146EF5;
}

.wsp-archive__empty {
	color: #777;
	font-style: italic;
}

.wsp-pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.wsp-pagination a,
.wsp-pagination span {
	padding: 0.5rem 0.85rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 0.9rem;
}
.wsp-pagination .current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
