.rse-widget,
.rse-widget * {
	box-sizing: border-box;
}

.rse-widget {
	--rse-accent: #111111;
	--rse-gallery-width: 52%;
	--rse-gallery-gap: 10px;
	font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: #111111;
	width: 100%;
}

.rse-widget button,
.rse-widget input,
.rse-widget textarea,
.rse-widget select {
	font: inherit;
}

.rse-widget button {
	-webkit-tap-highlight-color: transparent;
}

.rse-widget-inner {
	width: min(100%, 1450px);
	margin-inline: auto;
}

.rse-section-header {
	max-width: 840px;
	margin-bottom: 24px;
}

.rse-section-title {
	margin: 0;
	font-size: clamp(30px, 4vw, 54px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.035em;
}

.rse-section-description {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.75;
	font-weight: 400;
}

.rse-gallery-image:focus-visible,
.rse-lightbox button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--rse-accent), transparent 65%);
	outline-offset: 3px;
}

.rse-event-panels {
	display: grid;
	gap: 32px;
}

.rse-event-panel {
	display: grid;
	grid-template-columns: minmax(0, var(--rse-gallery-width)) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
	background: #ffffff;
	border: 1px solid #ececec;
	position: relative;
	overflow: clip;
}


.rse-gallery {
	--rse-main-ratio: 1.08;
	min-width: 0;
}

.rse-main-image-wrap {
	margin-bottom: var(--rse-gallery-gap);
}

.rse-thumbnails {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rse-gallery-gap);
}

.rse-gallery-image {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	overflow: hidden;
	background: #f2f2f2;
	color: inherit;
	isolation: isolate;
}

.rse-gallery-image:not(:disabled) {
	cursor: zoom-in;
}

.rse-gallery-image:disabled {
	cursor: default;
}

.rse-main-image {
	aspect-ratio: 16 / 10;
}

.rse-thumbnail {
	aspect-ratio: 4 / 3;
}

.rse-gallery-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .35s ease;
}

.rse-gallery-image:not(:disabled):hover img {
	transform: scale(1.025);
}

.rse-zoom-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(17, 17, 17, .74);
	color: #ffffff;
	font-size: 14px;
	backdrop-filter: blur(6px);
	transition: transform .2s ease, background-color .2s ease;
}

.rse-gallery-image:hover .rse-zoom-icon {
	transform: translateY(-1px);
	background: rgba(17, 17, 17, .9);
}

.rse-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	min-height: 86px;
	padding: 16px;
	color: #9a9a9a;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
}

.rse-placeholder svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
	opacity: .78;
}

.rse-main-image .rse-placeholder svg {
	width: 48px;
	height: 48px;
}

.rse-event-content {
	min-width: 0;
	padding-right: clamp(0px, 1vw, 14px);
}

.rse-event-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 14px;
}

.rse-event-category,
.rse-event-date {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.rse-event-category {
	background: var(--rse-accent);
	color: #ffffff;
}

.rse-event-date {
	background: #f2f2f2;
	color: #525252;
}

.rse-event-title {
	margin: 0;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.rse-event-description {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.75;
	font-weight: 400;
}

.rse-event-description > :first-child {
	margin-top: 0;
}

.rse-event-description > :last-child {
	margin-bottom: 0;
}

body.rse-no-scroll {
	overflow: hidden !important;
}

.rse-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(0, 0, 0, .88);
	backdrop-filter: blur(10px);
}

.rse-lightbox[hidden] {
	display: none !important;
}

.rse-lightbox-shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
	width: min(1500px, 96vw);
	height: min(880px, 92vh);
	min-height: 420px;
	background: #101010;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.rse-lightbox-toolbar {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	display: flex;
	gap: 8px;
}

.rse-lightbox-toolbar button,
.rse-lightbox-arrow {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(0, 0, 0, .55);
	color: #ffffff;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.rse-lightbox-toolbar button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 23px;
	line-height: 1;
}

.rse-lightbox-media {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
	padding: 26px 66px;
	background: #080808;
}

.rse-lightbox-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	user-select: none;
}

.rse-lightbox-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 36px;
	line-height: 1;
}

.rse-lightbox-prev {
	left: 14px;
}

.rse-lightbox-next {
	right: 14px;
}

.rse-lightbox-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 72px 32px 30px;
	background: #ffffff;
	color: #111111;
	overflow-y: auto;
}

.rse-lightbox-meta {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: #6a6a6a;
}

.rse-lightbox-title {
	margin: 10px 0 0;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.rse-lightbox-description {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.72;
	color: #4b4b4b;
}

.rse-lightbox-description > :first-child {
	margin-top: 0;
}

.rse-lightbox-counter {
	margin-top: auto;
	padding-top: 26px;
	font-size: 12px;
	font-weight: 500;
	color: #777777;
}

@media (max-width: 1024px) {
	.rse-event-panel {
		grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
		gap: 28px;
	}

	.rse-lightbox-shell {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

@media (max-width: 767px) {
	.rse-widget-inner {
		width: 100%;
	}

	.rse-section-header {
		margin-bottom: 18px;
	}

	.rse-section-title {
		font-size: clamp(28px, 9vw, 40px);
	}

	.rse-section-description {
		font-size: 14px;
		line-height: 1.65;
	}


	.rse-event-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		padding: 14px !important;
	}

	.rse-event-content {
		padding: 0 4px 6px;
	}

	.rse-event-title {
		font-size: clamp(30px, 10vw, 42px);
	}

	.rse-event-description {
		font-size: 14px;
		line-height: 1.68;
	}

	.rse-lightbox {
		padding: 0;
		background: #080808;
	}

	.rse-lightbox-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(52vh, 1fr) auto;
		width: 100vw;
		height: 100dvh;
		min-height: 0;
		border: 0;
		border-radius: 0;
	}

	.rse-lightbox-toolbar {
		top: 10px;
		right: 10px;
	}

	.rse-lightbox-toolbar button {
		width: 40px;
		height: 40px;
	}

	.rse-lightbox-media {
		padding: 56px 46px 18px;
	}

	.rse-lightbox-arrow {
		width: 38px;
		height: 38px;
		font-size: 30px;
	}

	.rse-lightbox-prev {
		left: 6px;
	}

	.rse-lightbox-next {
		right: 6px;
	}

	.rse-lightbox-content {
		max-height: 42vh;
		padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
	}

	.rse-lightbox-title {
		font-size: 28px;
	}

	.rse-lightbox-description {
		font-size: 13px;
	}

	.rse-lightbox-counter {
		margin-top: 0;
		padding-top: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rse-widget *,
	.rse-widget *::before,
	.rse-widget *::after {
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Tek ana görsel düzeni */
.rse-gallery.is-single .rse-main-image-wrap {
	margin-bottom: 0;
}

.rse-event-panel.rse-layout-single .rse-main-image {
	aspect-ratio: 16 / 10;
}

.rse-lightbox-arrow:disabled {
	opacity: 0;
	pointer-events: none;
}
