/*
 * Video + metin (home-3): solda 739×468 kapak görseli ve ortasında 104px oynat dairesi, sağda 328px sütunda büyük harf başlık
 * ve metin. Görselin linki video adresidir; tıklanınca behaviors/video-lightbox.js <dialog>'da oynatır.
 */
:where(.rt-video-feature) {
	color: var(--rt-video-feature-ink);
}

.rt-video-feature {
	display: grid;
	grid-template-columns: minmax(0, 46.1875rem) minmax(0, 20.5rem);
	justify-content: center;
	align-items: start;
	column-gap: 4.5625rem;
	box-sizing: border-box;
	max-width: var(--rt-layout-content, 71.25rem);
	margin-inline: auto;
}

.rt-video-feature .rt-video-feature__media {
	margin: 0;
	padding-top: 0.1875rem;
}

.rt-video-feature__media a {
	position: relative;
	display: block;
	aspect-ratio: 739 / 468;
	overflow: hidden;
}

.rt-video-feature .rt-video-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Oynat dairesi: 104px beyaz daire + siyah üçgen; hover'da hafif büyür */
.rt-video-feature__media a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6.5rem;
	height: 6.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 104'%3E%3Ccircle cx='52' cy='52' r='52' fill='%23fff'/%3E%3Cpath d='M45 41v22l18-11z' fill='%23000'/%3E%3C/svg%3E") 50% 50% / contain no-repeat;
	translate: -50% -50%;
	transition: scale 0.25s ease;
}

.rt-video-feature__media a:hover::after,
.rt-video-feature__media a:focus-visible::after {
	scale: 1.08;
}

.rt-video-feature__media a:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 3px;
}

.rt-video-feature__title {
	margin: 0;
	color: inherit;
	font-family: var(--rt-font-family-heading);
	font-size: var(--rt-font-size-large-plus);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.3462;
}

.rt-video-feature__text {
	margin: 0;
	padding-top: 1.8125rem;
	font-size: var(--rt-font-size-base-plus);
	line-height: 1.6111;
}

.rt-video-feature__title + .rt-video-feature__text {
	padding-top: 2.875rem;
}

/*
 * Band (about-1): a 694×325 grey band behind the text, starting 117px above the section and 250px left of the text
 * column, running 116px past the section's right edge (kept inside the viewport). It does not change the layout.
 */
.rt-video-feature.rt-video-feature--band {
	position: relative;
	isolation: isolate;
}

.rt-video-feature--band::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -7.3125rem;
	right: max(-7.25rem, (100% - 100vw) / 2 + var(--rt-spacing-30));
	width: 43.375rem;
	height: 20.3125rem;
	background-color: var(--rt-video-feature-band);
}

/* Band (about-1, the original theme's video-feature-split-band): on the wide column, the text in a 356px column; the title
   dark and semibold in the Frame left heading style, the text in the warm grey */
.rt-video-feature.rt-video-feature--band {
	grid-template-columns: minmax(0, 1fr) minmax(0, 22.25rem);
	max-width: var(--rt-layout-wide, 76.25rem);
}

.rt-video-feature--band .rt-video-feature__text {
	color: var(--rt-color-warm);
}

/* Under 782px the band's columns stack, the image first (core/columns) */
@media (width < 782px) {
	.rt-video-feature.rt-video-feature--band {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--rt-spacing-50-fluid, var(--rt-spacing-50));
		/* already inside the wide section's root padding */
		padding-inline: 0;
	}
}

/* framed: the title in the Frame left heading style (as section-heading's half frame on the left) */
.rt-video-feature .rt-video-feature__title--framed {
	position: relative;
	padding: 1.25rem 0 1.125rem 1.625rem;
	color: var(--rt-color-contrast);
	font-weight: var(--rt-font-weight-semibold);
}

.rt-video-feature__title--framed::before,
.rt-video-feature__title--framed::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	height: 50%;
	border: 0 solid var(--rt-color-accent);
	border-inline-start-width: var(--rt-border-width-frame, 3px);
}

.rt-video-feature__title--framed::before {
	top: 0;
	width: 4.6875rem;
	border-top-width: var(--rt-border-width-frame, 3px);
	border-start-start-radius: var(--rt-radius-frame, 23px);
}

.rt-video-feature__title--framed::after {
	bottom: 0;
	width: 7.0625rem;
	border-bottom-width: var(--rt-border-width-frame, 3px);
	border-end-start-radius: var(--rt-radius-frame, 23px);
}

/* Lightbox: ekranı kaplayan koyu zemin, 16:9 oynatıcı, sağ üstte kapat */
.rt-video-lightbox {
	box-sizing: border-box;
	width: min(70rem, 100vw - 2rem);
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.rt-video-lightbox::backdrop {
	background-color: rgb(0 0 0 / 85%);
}

.rt-video-lightbox__frame {
	aspect-ratio: 16 / 9;
	background-color: var(--rt-color-contrast);
}

.rt-video-lightbox__frame iframe,
.rt-video-lightbox__frame video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.rt-video-lightbox__close {
	position: absolute;
	top: -2.75rem;
	right: 0;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background-color: var(--rt-color-base);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 11.8l6.1-6.3-1.1-1-6.1 6.2-6.1-6.2-1.1 1 6.1 6.3-6.5 6.7 1.1 1 6.5-6.6 6.5 6.6 1.1-1z'/%3E%3C/svg%3E") 50% 50% / 1.75rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 11.8l6.1-6.3-1.1-1-6.1 6.2-6.1-6.2-1.1 1 6.1 6.3-6.5 6.7 1.1 1 6.5-6.6 6.5 6.6 1.1-1z'/%3E%3C/svg%3E") 50% 50% / 1.75rem no-repeat;
	cursor: pointer;
}

.rt-video-lightbox__close:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.rt-video-feature__media a::after {
		transition: none;
	}
}

/* Tablet ve mobil: görsel üstte, metin altında */
@media (max-width: 64rem) {
	.rt-video-feature {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--rt-spacing-50);
		padding-inline: var(--rt-spacing-40);
	}

	.rt-video-feature__content {
		max-width: 40rem;
	}

	/* Band: behind the image's top right corner, from the viewport edge */
	.rt-video-feature--band::before {
		top: calc(-1 * var(--rt-spacing-50));
		right: calc(-1 * var(--rt-spacing-40));
		width: 75%;
		height: 12.5rem;
	}
}

@media (max-width: 37.5rem) {
	.rt-video-feature__media a::after {
		width: 4.5rem;
		height: 4.5rem;
	}

	.rt-video-feature__title {
		font-size: var(--rt-font-size-large);
	}

	.rt-video-feature__text {
		font-size: var(--rt-font-size-base);
	}
}
