/* ================= Before/After deck galeri (gdeck) ================= */

.gdeck-sec {
	background: #0d0a03;
	color: #f5f2e9;
	padding: 72px 20px 64px;
	overflow: hidden;
	/* Tam sayfa genisligi (Elementor container yani bozmadan) */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: auto;
	max-width: none;
}
/* 50vw scrollbar genisligini de kapsadigindan yatay tasma riski — klipsle */
body:has(.gdeck-sec) {
	overflow-x: clip;
}

/* Elementor sarmiyayicilarindeki varsayilan genislik/dolgulari sifirla */
.elementor-section:has(.gdeck-sec) .elementor-widget-container,
.elementor-section:has(.gdeck-sec) .elementor-widget-wrap {
	padding: 0 !important;
}
.elementor-section:has(.gdeck-sec) > .elementor-container {
	max-width: none !important;
	padding: 0 !important;
}
/* Referans icindeki bolum sarmalayicilari (.bas) icin aynisi */
.elementor-section:has(.bas) .elementor-widget-container,
.elementor-section:has(.bas) > .elementor-container,
.elementor-section:has(.bas) .elementor-widget-wrap {
	padding: 0 !important;
}
.elementor-section:has(.bas) > .elementor-container {
	max-width: none !important;
}

.gdeck__h { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.gdeck__s { margin: 0 0 10px; color: #b9b4a4; font-size: 15px; }

.gdeck { max-width: 1400px; margin: 0 auto; }

.gdeck__stage {
	position: relative;
	height: clamp(460px, 62vw, 640px);
	perspective: 1200px;
}

.gdeck__item {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: 0;
	width: min(380px, 42vw);
	transition: transform .45s cubic-bezier(.22,.8,.3,1), opacity .35s ease, filter .35s ease;
	will-change: transform;
}
.gdeck__item img {
	width: 100%;
	aspect-ratio: 1024 / 1536; /* 1-1.png boyutu (2:3 dikey) */
	object-fit: cover;
	border-radius: 18px;
	display: block;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.gdeck__cap {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	background: rgba(13, 10, 3, .78);
	border: 1px solid rgba(212, 175, 55, .35);
	border-radius: 12px;
	padding: 8px 10px;
	line-height: 1.35;
	opacity: 0;
	transition: opacity .3s ease;
}
.gdeck__cap b { display: block; color: #DDC46A; font-size: 14px; }
.gdeck__cap span { display: block; color: #b9b4a4; font-size: 12px; }

/* Desktop: yan yana 2 buyuk kart; arkada kucuk yiginlar */
.gdeck__item.p0  { transform: translate(calc(-50% - 205px), -50%); z-index: 5; opacity: 1; }
.gdeck__item.p1  { transform: translate(calc(-50% + 205px), -50%); z-index: 5; opacity: 1; }
.gdeck__item.p0 .gdeck__cap,
.gdeck__item.p1 .gdeck__cap { opacity: 1; }
.gdeck__item.pm1 { transform: translate(calc(-50% - 500px), -50%) scale(.72); z-index: 3; opacity: .5; }
.gdeck__item.p2  { transform: translate(calc(-50% + 500px), -50%) scale(.72); z-index: 3; opacity: .5; }
.gdeck__item.pm2,
.gdeck__item.ph  { transform: translate(-50%, -50%) scale(.4); z-index: 0; opacity: 0; pointer-events: none; }

/* Kontroller */
.gdeck__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 8px;
}
.gdeck__btn {
	width: 46px;
	height: 46px;
	border: 0;
	background: transparent;
	color: #DDC46A;
	font-size: 20px;
	cursor: pointer;
	transition: transform .2s ease, color .2s ease;
}
.gdeck__btn:hover { color: #fff; transform: scale(1.15); }
.gdeck__count { color: #b9b4a4; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }

.gdeck-sec .gdeck__h::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin: 14px auto 0;
	background: linear-gradient(90deg, #b4872a, #f2d268);
}

/* Lightbox */
.gdeck__lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .88);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
	cursor: zoom-out;
}
.gdeck__lb.is-open { display: flex; }
.gdeck__lb img {
	max-width: min(90vw, 900px);
	max-height: 88vh;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
}

/* Mobil (<760px): tek buyuk merkez kart + sagda kucuk sonraki */@media (max-width: 760px) {
	.gdeck__item { width: min(300px, 74vw); }
	.gdeck__stage { height: clamp(440px, 96vw, 560px); }
	.gdeck__item.p0 { transform: translate(-50%, -50%) scale(1); }
	.gdeck__item.p1 { transform: translate(calc(50% + 34vw), -50%) scale(.55); opacity: .6; }
	.gdeck__item.pm1,
	.gdeck__item.p2,
	.gdeck__item.pm2 { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
	.gdeck__item.p0 .gdeck__cap { opacity: 1; }
	.gdeck__item.p1 .gdeck__cap { opacity: 0; }
}
