/*
 * TR temasında header.php / front-page.php içine satır içi eklenmiş düzeltmeler
 * buraya taşındı; artık her dilde ve her sayfada aynı şekilde yüklenir.
 */

/* Menü dropdown ve mobil/offcanvas menü, slider oklarının üstünde kalsın. */
.header-area .main-menu ul,
.vektor-menu-area,
.offcanvas-wrap,
.off-canvas-content {
	position: relative;
	z-index: 9999;
}

/* Marka slider'ı: logolar (inc/brands.php kenar boşluğunu kırpar) aynı kutuda, aynı hizada. */
.project-slider-wrap .project-item .project-img {
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
}

.project-slider-wrap .project-item .project-img a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.project-slider-wrap .project-item .project-img img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
	margin: 0 auto;
	transform: none;
}

/* Anasayfa videoları: kapak tıklanana kadar iframe gizli. */
.video-container .youtube-frame:not([src]) {
	display: none;
}

/* Anasayfa slider: sabit 500px yükseklik banner'ların kenarlarını (marka logolarını) kesiyordu.
   Yükseklik görsel oranından gelir: masaüstü 1900×500, mobil 1080×1080. */
#firmatemasi-slider .carousel-item img {
	height: auto;
	aspect-ratio: 1900 / 500;
	object-fit: cover;
}

#firmatemasi-slider-mobile .carousel-item img {
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Markalar sayfası logo ızgarası ([brands_grid]); eskiden sayfa içine yazılmıştı.
   Son satırdaki logolar kendiliğinden ortalanır, marka sayısı değişince CSS değiştirmek gerekmez. */
.classcnc-logo-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	max-width: 1200px;
	margin: 30px auto;
}

.classcnc-logo-item {
	flex: 0 0 calc((100% - 48px) / 3);
	height: 170px;
	padding: 15px;
	box-sizing: border-box;
	overflow: hidden;
}

.classcnc-logo-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.classcnc-logo-item img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
}

@media (max-width: 900px) {
	.classcnc-logo-grid { gap: 16px; }
	.classcnc-logo-item { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 600px) {
	.classcnc-logo-grid { gap: 10px; }
	.classcnc-logo-item { flex-basis: calc((100% - 10px) / 2); height: 130px; padding: 10px; }
	.classcnc-logo-item img { max-height: 60px; }
}

/* Haber kapak görselleri. İdeal yükleme ölçüsü: 1200×800 px (3:2), JPG/WebP, ~300 KB altı. */
/* Detay sayfası: görselin tamamı görünür, kırpılmaz (eski kural 267 px yükseklikte kesiyordu). */
.single-post .blog-post-area .post-thumb img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 80vh;
	margin: 0 auto;
	object-fit: contain;
}

/* Liste ve anasayfa kartları: hepsi aynı 3:2 çerçevede, ortadan hizalı. */
.blog .blog-post-area .post-thumb img,
.archive .blog-post-area .post-thumb img,
.recent-post-thumb-wrap .thumb img {
	/* !important: responsive.css'teki eski sabit 320 px yükseklik kurallarını ezer. */
	width: 100% !important;
	height: auto !important;
	max-height: none;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center;
}

.recent-post-thumb-wrap .thumb,
.recent-post-thumb-wrap .thumb a {
	display: block;
	width: 100%;
}
