.tilfy-galeri {
	--tilfy-galeri-muted: color-mix(in srgb, currentColor 62%, transparent);
	--tilfy-galeri-border: color-mix(in srgb, currentColor 24%, transparent);
	--tilfy-galeri-surface: color-mix(in srgb, currentColor 7%, transparent);
	--tilfy-galeri-surface-hover: color-mix(in srgb, currentColor 11%, transparent);
	max-width: 48rem;
	margin: 0 auto 2rem;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.tilfy-galeri *,
.tilfy-galeri *::before,
.tilfy-galeri *::after {
	box-sizing: border-box;
}

.tilfy-galeri__filtreler {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	align-items: end;
}

@media (min-width: 640px) {
	.tilfy-galeri__filtreler {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}

.tilfy-galeri__filtre {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	margin: 0;
}

.tilfy-galeri__filtre--arama {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.tilfy-galeri__filtre--arama {
		grid-column: auto;
	}
}

.tilfy-galeri__filtre-etiket {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tilfy-galeri-muted);
	line-height: 1.2;
}

.tilfy-galeri__kontrol,
.tilfy-galeri__arama,
.tilfy-galeri__tarih,
.tilfy-galeri__medya,
.tilfy-galeri__sira {
	display: block;
	width: 100%;
	min-height: 2.5rem;
	margin: 0;
	padding: 0.45em 0.65em;
	border: 1px solid var(--tilfy-galeri-border);
	border-radius: 0.35em;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
}

.tilfy-galeri__medya,
.tilfy-galeri__sira {
	padding-right: 1.75rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.tilfy-galeri__kontrol:focus,
.tilfy-galeri__arama:focus,
.tilfy-galeri__tarih:focus,
.tilfy-galeri__medya:focus,
.tilfy-galeri__sira:focus {
	outline: 2px solid color-mix(in srgb, currentColor 45%, transparent);
	outline-offset: 1px;
}

.tilfy-galeri__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tilfy-galeri__oge {
	margin: 0;
}

.tilfy-galeri__oge-tetik {
	width: 100%;
	display: block;
	text-align: left;
	padding: 0.85em 1em;
	border: 1px solid var(--tilfy-galeri-border);
	border-radius: 0.4em;
	background: var(--tilfy-galeri-surface);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tilfy-galeri__oge-tetik:hover,
.tilfy-galeri__oge-tetik:focus {
	background: var(--tilfy-galeri-surface-hover);
	border-color: color-mix(in srgb, currentColor 38%, transparent);
	outline: none;
}

.tilfy-galeri__oge-baslik {
	display: block;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.2em;
}

.tilfy-galeri__oge-meta {
	display: block;
	font-size: 0.8125rem;
	color: var(--tilfy-galeri-muted);
}

.tilfy-galeri__oge.is-gizli {
	display: none;
}

.tilfy-galeri__bos-liste {
	padding: 0.85em 1em;
	text-align: center;
	color: var(--tilfy-galeri-muted);
	font-size: 0.9375rem;
}

.tilfy-galeri__bos {
	text-align: center;
	color: var(--tilfy-galeri-muted);
	margin: 1rem 0 0;
}

.tilfy-galeri__sayfalama {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tilfy-galeri-border);
	font-size: 0.9375rem;
}

.tilfy-galeri__sayfa-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tilfy-galeri__sayfa-link:hover,
.tilfy-galeri__sayfa-link:focus {
	opacity: 0.85;
}

.tilfy-galeri__sayfa-durum {
	color: var(--tilfy-galeri-muted);
}

.tilfy-galeri-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tilfy-galeri-modal.is-acik {
	display: flex;
}

.tilfy-galeri-modal[hidden] {
	display: none !important;
}

.tilfy-galeri-modal__arka {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.tilfy-galeri-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	max-height: min(90vh, 640px);
	overflow: auto;
	background: Canvas;
	color: CanvasText;
	border-radius: 0.75rem;
	padding: 1.25rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tilfy-galeri-modal__kapat {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, CanvasText 10%, Canvas);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.tilfy-galeri-modal__kapak-wrap {
	margin-bottom: 14px;
	border-radius: 0.5rem;
	overflow: hidden;
	background: color-mix(in srgb, CanvasText 8%, Canvas);
}

.tilfy-galeri-modal__kapak {
	display: block;
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: cover;
}

.tilfy-galeri-modal__baslik {
	margin: 0 32px 8px 0;
	font-size: 1.125rem;
	line-height: 1.35;
}

.tilfy-galeri-modal__meta {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	opacity: 0.75;
}

.tilfy-galeri-modal__aciklama,
.tilfy-galeri-modal__istatistik,
.tilfy-galeri-modal__durum {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.tilfy-galeri-modal__durum {
	opacity: 0.75;
	font-style: italic;
}

.tilfy-galeri-modal__kaynak {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.625rem;
	padding: 0 1.125rem;
	border-radius: 0.35em;
	background: CanvasText;
	color: Canvas !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.875rem;
}

.tilfy-galeri-modal__kaynak:hover,
.tilfy-galeri-modal__kaynak:focus {
	opacity: 0.9;
	color: Canvas !important;
}

.tilfy-galeri-modal__kaynak--gizli {
	display: none !important;
}

body.tilfy-galeri-modal-acik {
	overflow: hidden;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.tilfy-galeri {
		--tilfy-galeri-muted: inherit;
		--tilfy-galeri-border: currentColor;
		--tilfy-galeri-surface: transparent;
		--tilfy-galeri-surface-hover: transparent;
	}

	.tilfy-galeri__filtre-etiket,
	.tilfy-galeri__oge-meta,
	.tilfy-galeri__bos-liste,
	.tilfy-galeri__bos,
	.tilfy-galeri__sayfa-durum {
		opacity: 0.72;
	}

	.tilfy-galeri__kontrol,
	.tilfy-galeri__oge-tetik {
		border-color: currentColor;
	}
}
