/* Fotoğraf & Video Galeri — responsive grid + lightbox/modal */
.kn-gallery-section {
	padding: 80px 0;
	background: #f7f8fb;
}

.kn-gallery-intro {
	max-width: 900px;
	margin: 15px auto 0;
}

.kn-gallery-grid {
	margin-top: 2rem;
}

.kn-photo-card,
.kn-video-card {
	position: relative;
	display: block;
	border: none;
	padding: 0;
	width: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	text-align: left;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kn-photo-card:hover,
.kn-video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.kn-photo-card:focus-visible,
.kn-video-card:focus-visible {
	outline: 3px solid var(--kn-accent, #fa3b0e);
	outline-offset: 2px;
}

.kn-gallery-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9ecef;
}

.kn-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.kn-photo-card:hover .kn-gallery-thumb img,
.kn-video-card:hover .kn-gallery-thumb img {
	transform: scale(1.05);
}

.kn-gallery-body {
	padding: 1rem 1.25rem 1.25rem;
}

.kn-gallery-body h3 {
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0 0 0.35rem;
	color: var(--kn-heading, #1a1a2e);
}

.kn-gallery-body p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--kn-text-muted, #6c757d);
	line-height: 1.5;
}

.kn-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.25s ease;
}

.kn-video-card:hover .kn-video-play {
	background: rgba(0, 0, 0, 0.35);
}

.kn-video-play-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(250, 59, 14, 0.95);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kn-gallery-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Lightbox / Modal */
.kn-gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.88);
}

.kn-gallery-modal.is-open {
	display: flex;
}

.kn-gallery-modal-inner {
	position: relative;
	width: 100%;
	max-width: 1100px;
	max-height: 90vh;
}

.kn-gallery-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.kn-gallery-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.kn-gallery-modal-media {
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.kn-gallery-modal-media img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.kn-gallery-modal-media iframe,
.kn-gallery-modal-media video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	border: none;
	background: #000;
}

.kn-gallery-modal-caption {
	color: #fff;
	text-align: center;
	margin-top: 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	padding: 0 1rem;
}

@media (max-width: 767px) {
	.kn-gallery-section {
		padding: 50px 0;
	}

	.kn-gallery-intro {
		font-size: 0.95rem;
	}

	.kn-video-play-icon {
		width: 52px;
		height: 52px;
		font-size: 1.1rem;
	}

	.kn-gallery-modal {
		padding: 0.75rem;
	}

	.kn-gallery-modal-close {
		top: -38px;
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 575px) {
	.kn-gallery-body {
		padding: 0.85rem 1rem 1rem;
	}

	.kn-gallery-body h3 {
		font-size: 0.98rem;
	}
}
