/**
 * Websight — Ürün Galerisi.
 * Büyük görsel alanı + altında küçük kutucuklar. Kutucuğa tıklanınca
 * büyük alan kayarak o görsele geçer.
 */
.ws-galeri {
	--ws-galeri-vurgu: #1b2c5c;
	display: block;
	width: 100%;
}

.ws-galeri__sahne {
	position: relative;
	overflow: hidden;
	background-color: #fff;
	border-radius: 6px;
	/* Varsayilan: kare cerceve. Boylece her urun sayfasinda ayni olcu,
	   her gorsel (dikey/yatay) kirpilmadan tam gorunur. */
	aspect-ratio: 1 / 1;
}

.ws-galeri__raylar {
	display: flex;
	align-items: stretch;
	height: 100%;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.ws-galeri.is-suruklenirken .ws-galeri__raylar {
	transition: none;
}

.ws-galeri__slayt {
	flex: 0 0 100%;
	max-width: 100%;
	height: 100%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ws-galeri__slayt a {
	display: block;
	width: 100%;
	height: 100%;
}

.ws-galeri__slayt img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Ok tuşları */
.ws-galeri__ok {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.86);
	color: #1b2c5c;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.ws-galeri__ok svg {
	width: 20px;
	height: 20px;
}

.ws-galeri__ok--geri {
	left: 10px;
}

.ws-galeri__ok--ileri {
	right: 10px;
}

.ws-galeri:hover .ws-galeri__ok,
.ws-galeri__ok:focus-visible {
	opacity: 1;
}

.ws-galeri__ok:hover {
	background: #fff;
}

.ws-galeri__ok[disabled] {
	opacity: 0 !important;
	pointer-events: none;
}

/* Dokunmatik cihazda oklar hep görünür (hover yok) */
@media (hover: none) {
	.ws-galeri__ok {
		opacity: 0.9;
	}
}

/* Küçük kutucuklar */
.ws-galeri__kucukler {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.ws-galeri__kucuk {
	display: block;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.75;
}

.ws-galeri__kucuk img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ws-galeri__kucuk:hover,
.ws-galeri__kucuk:focus-visible {
	opacity: 1;
}

.ws-galeri__kucuk.is-aktif {
	border-color: var(--ws-galeri-vurgu);
	opacity: 1;
}
