/**
 * Split screen (V10) styles.
 *
 * @package Tobalt_Renginiai
 * @author  Tobalt — https://tobalt.lt
 */

.tr-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	align-items: start;
}

/* ── Gallery ──────────────────────────────────────────────── */

.tr-split__gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tr-split__gallery-main {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.tr-split__gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease;
}

.tr-split__gallery-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.tr-split__gallery-thumbs::-webkit-scrollbar {
	display: none;
}

.tr-split__gallery-thumb {
	flex: 0 0 72px;
	height: 54px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	background: none;
	transition: border-color 0.2s ease;
}

.tr-split__gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tr-split__gallery-thumb--active {
	border-color: #2563eb;
}

.tr-split__gallery-placeholder {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* ── Details ──────────────────────────────────────────────── */

.tr-split__details {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tr-split__title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.tr-split__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tr-split__content {
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
}

.tr-split__content > *:first-child {
	margin-top: 0;
}

.tr-split__content > *:last-child {
	margin-bottom: 0;
}

.tr-split__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

@media ( max-width: 768px ) {
	.tr-split {
		grid-template-columns: 1fr;
	}
}
