/**
 * Video galeri (__commons/videogaleri/videogaleri.php)
 */
.vg-page {
	--vg-accent: var(--color-primary, #1a1a2e);
	--vg-muted: rgba(0, 0, 0, 0.55);
	--vg-card-bg: var(--body-bg, #fff);
	--vg-radius: 14px;
	--vg-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: inherit;
	color: inherit;
}

/* Liste sayfasÄ± tam geniÅŸlik */
.vg-page.vg-page--full {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	padding-left: clamp(12px, 2vw, 24px);
	padding-right: clamp(12px, 2vw, 24px);
}

.vg-hero {
	text-align: center;
	padding: 28px 0 28px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	margin-bottom: 28px;
}

.vg-hero-title {
	font-size: clamp(1.65rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.2;
}

.vg-hero-lead {
	margin: 0;
	font-size: 1.05rem;
	color: var(--vg-muted);
}

/* Liste (/videogaleri): tam geniÅŸlikte 3 sÃ¼tun â†’ tablet 2 â†’ mobil 1 */
.vg-page.vg-list .vg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.vg-page.vg-list .vg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vg-card {
	background: var(--vg-card-bg);
	border-radius: var(--vg-radius);
	box-shadow: var(--vg-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 44px rgba(15, 23, 42, 0.11);
}

.vg-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8ecf2;
}

.vg-card-media--empty {
	min-height: 180px;
	background: linear-gradient(135deg, #e8ecf4 0%, #dfe6f2 100%);
}

.vg-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vg-card-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.vg-card-play::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-36%, -50%);
}

.vg-card-play--sm {
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
}

.vg-card-play--sm::after {
	border-width: 8px 0 8px 14px;
}

.vg-card-title {
	font-size: 1rem;
	font-weight: 650;
	margin: 0;
	padding: 14px 16px 18px;
	line-height: 1.35;
	flex: 1;
}

.vg-card-title a {
	color: inherit;
	text-decoration: none;
}

.vg-card-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vg-empty {
	text-align: center;
	padding: 40px 16px;
	color: var(--vg-muted);
}

/* Detay */
.vg-breadcrumb {
	font-size: 0.88rem;
	margin-bottom: 18px;
	color: var(--vg-muted);
}

.vg-breadcrumb a {
	color: var(--vg-accent);
	text-decoration: none;
}

.vg-el {
	margin: 0 6px;
	opacity: 0.6;
}

.vg-detail-title {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	margin: 0 0 20px;
	line-height: 1.25;
}

/* Detay: içerik sütunu tam genişlik */
.vg-page.vg-detail {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.defaultBlockContent .vg-page.vg-detail {
	width: 100%;
	max-width: 100%;
}

/* Detay: responsive 16:9 (padding-hack; absolute iframe ile genişlik çökmez) */
.vg-page.vg-detail .vg-embed-wrap,
.vg-page.vg-detail .video-embed {
	position: relative;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 28px;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
	background: #000;
	border-radius: 12px;
	box-shadow: var(--vg-shadow);
}

.vg-page.vg-detail .vg-embed-wrap iframe,
.vg-page.vg-detail .vg-embed-wrap .vg-embed,
.vg-page.vg-detail .video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	border: 0;
}

.vg-embed-wrap {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 0 auto 28px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--vg-shadow);
}

.vg-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* DiÄŸer videolar ÅŸeridi */
.vg-more {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.vg-more-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.vg-mini-scroll {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.vg-mini-card {
	flex: 0 0 160px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	overflow: hidden;
	background: var(--vg-card-bg);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.vg-mini-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef1f6;
}

.vg-mini-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vg-mini-title {
	font-size: 0.78rem;
	font-weight: 600;
	padding: 8px 10px 10px;
	line-height: 1.3;
	color: inherit;
}

/* Ana sayfa widget */
.vg-widget {
	max-width: 1180px;
	margin: 0 auto 32px;
	padding: 0 16px;
	box-sizing: border-box;
}
.defaultBlockContent {width: 100%;}
.vg-widget-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 18px;
	margin-bottom: 18px;
}

.vg-widget-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}

.vg-widget-all {
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--vg-accent);
	flex-shrink: 0;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--proj-accent, #1a1a2e);
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
	border: 1px solid #000;
	padding: 5px 15px;
	border-radius: 5px;
}

.vg-widget-all:hover {
	text-decoration: underline;
}

/* Tam geniÅŸlik + carousel widget */
.vg-widget--full {
	max-width: none;
	width: 100%;
	margin: 0 auto 32px;
	padding: 0;
	box-sizing: border-box;
}

.vg-widget-inner {
	width: 100%;
	max-width: 100%;
	padding: 0 clamp(12px, 3vw, 24px);
	box-sizing: border-box;
}

.vg-widget--carousel .vg-widget-head {
	margin-bottom: 12px;
}

/* Ana sayfa: 2–3 video — statik kapak banner grid (detay sayfasına link) */
.vg-banner-grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	width: 100%;
	box-sizing: border-box;
}

.vg-banner-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vg-banner-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vg-banner-grid .vg-carousel-card {
	flex: none;
	width: 100%;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.vg-banner-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.vg-banner-grid--2,
	.vg-banner-grid--3 {
		grid-template-columns: 1fr;
	}
}

.vg-carousel {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.vg-carousel-scroll {
	overflow: hidden;
	padding: 8px 4px 16px;
	flex: 1;
	min-width: 0;
	position: relative;
	box-sizing: border-box;
}

.vg-carousel-track {
	display: flex;
	gap: 16px;
	width: max-content;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.vg-carousel-nav {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: var(--vg-card-bg);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.vg-carousel-nav:hover {
	background: rgba(0, 0, 0, 0.05);
}

.vg-carousel-card {
	/* Genişlik JS ile (data-slides-desktop / mobilde 2) */
	flex: 0 0 auto;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
	background: var(--vg-card-bg);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	transition: transform 0.2s ease;
}

.vg-carousel-card:hover {
	transform: translateY(-3px);
}

.vg-carousel-card-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #e8ecf2;
	overflow: hidden;
}

.vg-carousel-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vg-carousel-card-title {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 10px 10px 12px;
	line-height: 1.3;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.vg-carousel-track {
		will-change: auto;
	}
}

@media (max-width: 767px) {
	.vg-carousel {
		gap: 4px;
	}

	.vg-carousel-nav {
		display: none;
	}

	.vg-carousel-scroll {
		padding: 4px 0 12px;
	}

	.vg-carousel-track {
		gap: 12px;
	}
}

.vg-widget-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.vg-widget-card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	background: var(--vg-card-bg);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.vg-widget-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8ecf2;
}

.vg-widget-media--empty {
	min-height: 112px;
}

.vg-widget-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vg-widget-card-title {
	font-size: 0.88rem;
	font-weight: 600;
	margin: 0;
	padding: 10px 12px 14px;
	line-height: 1.35;
}

.vg-widget-card-title a {
	color: inherit;
	text-decoration: none;
}

.vg-widget-card-title a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.vg-page.vg-list .vg-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vg-card:hover {
		transform: none;
	}

	.vg-mini-card {
		flex: 0 0 min(148px, 44vw);
	}

	.vg-widget-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}
