/* Works (tbvh_work): archive + single */

.tbvh-works,
.tbvh-work {
	padding: 40px 0;
}

.tbvh-works__header,
.tbvh-work__header {
	text-align: center;
	margin-bottom: 22px;
}

.tbvh-works__title,
.tbvh-work__title {
	margin: 0;
	font-size: 2rem;
}

.tbvh-works__lead {
	margin: 10px 0 0;
	opacity: 0.85;
}

.tbvh-works-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.tbvh-work-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tbvh-work-card__link {
	display: grid;
	grid-template-rows: auto 1fr;
	color: inherit;
	text-decoration: none;
}

.tbvh-work-card__thumb img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* Mini thumbs (before/after) */
.tbvh-work-card__mini {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 10px 12px 0;
}

.tbvh-work-card__mini-item {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #f2f2f2;
}

.tbvh-work-card__mini-item img {
	width: 100%;
	height: 96px;
	object-fit: cover;
	display: block;
}

.tbvh-work-card__mini-label {
	position: absolute;
	left: 8px;
	top: 8px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-weight: 900;
	font-size: 0.85rem;
	padding: 4px 8px;
	border-radius: 999px;
}

.tbvh-work-card__thumb--placeholder {
	height: 220px;
	display: grid;
	place-items: center;
	background: #f2f2f2;
	color: #666;
}

.tbvh-work-card__body {
	padding: 14px 14px 16px;
}

.tbvh-work-card__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	line-height: 1.35;
}

.tbvh-work-card__meta {
	margin: 0;
	font-size: 0.95rem;
}

.tbvh-meta-row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 8px;
	padding: 6px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.tbvh-meta-row dt {
	font-weight: 700;
	opacity: 0.9;
}

.tbvh-meta-row dd {
	margin: 0;
}

.tbvh-work-card__cta {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	color: var(--accent);
}

.tbvh-works__pagination {
	margin-top: 22px;
	display: flex;
	justify-content: center;
}

/* Single */
.tbvh-work__breadcrumb {
	margin: 0 0 10px;
	font-size: 0.95rem;
	opacity: 0.85;
}

.tbvh-work-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: start;
}

/* Slider (before/after multiple photos) */
.tbvh-works-slider {
	position: relative;
	overflow: hidden;
	background: #f2f2f2;
}

.tbvh-works-slide {
	/*
	  Use normal flow for slides so the slider keeps its height even when
	  only one image exists (or JS doesn't run). Active slide will be faded in.
	*/
	position: relative;
	display: none;
	opacity: 0;
	transition: opacity 600ms ease;
}

.tbvh-works-slide.active {
	display: block;
	opacity: 1;
}

.tbvh-works-slider img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.tbvh-works-slider figcaption {
	position: absolute;
	left: 10px;
	top: 10px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	padding: 6px 10px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.9rem;
}

.tbvh-work-photo {
	margin: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tbvh-work-photo figcaption {
	padding: 10px 12px;
	font-weight: 800;
	background: rgba(0,0,0,0.03);
}

/* Keep legacy single-image blocks (fallback) */
.tbvh-work-photo img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.tbvh-work-photo__placeholder {
	height: 420px;
	display: grid;
	place-items: center;
	background: #f2f2f2;
	color: #666;
}

.tbvh-work__info {
	margin-top: 18px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.tbvh-work-spec {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tbvh-work-spec h2 {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.tbvh-work-spec__dl {
	margin: 0;
}

/* Attachments (PDF, etc.) */
.tbvh-work-attachments {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tbvh-work-attachments h2 {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.tbvh-work-attachments ul {
	margin: 0;
	padding-left: 18px;
}

.tbvh-work-attachments a {
	font-weight: 700;
}

.tbvh-work-body {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tbvh-work__footer {
	margin-top: 18px;
	text-align: center;
}

.tbvh-work__back {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
}

@media (max-width: 900px) {
	.tbvh-works-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tbvh-work-compare {
		grid-template-columns: 1fr;
	}
	.tbvh-work-photo img,
	.tbvh-work-photo__placeholder {
		height: 360px;
	}
	.tbvh-works-slider img {
		height: 360px;
	}
}

@media (max-width: 560px) {
	.tbvh-works-grid {
		grid-template-columns: 1fr;
	}
	.tbvh-meta-row {
		grid-template-columns: 84px 1fr;
	}
}
