.sc-gallery-player {
	--sc-gallery-stage-height: min(72vh, 760px);
	--sc-gallery-rail-width: 112px;
	--sc-gallery-gold: #c8a45d;
	--sc-gallery-gold-soft: #ead6a8;
	--sc-gallery-ink: #11110d;
	--sc-gallery-surface: #181813;
	--sc-gallery-surface-raised: #24231b;
	--sc-gallery-line: rgb(200 164 93 / 34%);
	--sc-gallery-muted: #b9af96;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 24px 0;
	border: 1px solid var(--sc-gallery-line);
	border-radius: 0;
	background: var(--sc-gallery-ink);
	color: #f3eee2;
	font-family: inherit;
	outline: none;
	overflow: hidden;
	overscroll-behavior: contain;
}

.sc-gallery-player *,
.sc-gallery-player *::before,
.sc-gallery-player *::after {
	box-sizing: border-box;
}

.sc-gallery-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	white-space: nowrap !important;
}

.sc-gallery-player:focus-visible {
	box-shadow: 0 0 0 3px var(--sc-gallery-gold);
}

.sc-gallery-player__body--has-thumbnails {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sc-gallery-rail-width);
	width: 100%;
}

.sc-gallery-player__body--thumbnails-left {
	grid-template-columns: var(--sc-gallery-rail-width) minmax(0, 1fr);
}

.sc-gallery-player__body--thumbnails-left .sc-gallery-player__stage {
	grid-column: 2;
}

.sc-gallery-player__body--thumbnails-left .sc-gallery-player__thumbnail-rail {
	grid-column: 1;
	grid-row: 1;
}

.sc-gallery-player__stage {
	position: relative;
	width: 100%;
	height: var(--sc-gallery-stage-height);
	min-height: 420px;
	overflow: hidden;
}

.sc-gallery-player__viewer {
	width: 100%;
	height: 100%;
	background: var(--sc-gallery-ink);
}

.sc-gallery-player__thumbnail-rail {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: var(--sc-gallery-stage-height);
	min-height: 0;
	gap: 8px;
	padding: 10px;
	border-left: 1px solid var(--sc-gallery-line);
	background: #0d0e0a;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.sc-gallery-player__body--thumbnails-left .sc-gallery-player__thumbnail-rail {
	border-right: 1px solid var(--sc-gallery-line);
	border-left: 0;
}

.sc-gallery-player__thumbnail {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 76px;
	box-sizing: border-box;
	width: 100%;
	height: 76px;
	margin: 0;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--sc-gallery-surface-raised);
	color: #f3eee2;
	cursor: pointer;
	overflow: hidden;
	opacity: 0.72;
	transition: border-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.sc-gallery-player__thumbnail:hover {
	opacity: 1;
}

.sc-gallery-player__thumbnail.is-active {
	border-color: var(--sc-gallery-gold);
	opacity: 1;
}

.sc-gallery-player__thumbnail:focus-visible {
	outline: 3px solid var(--sc-gallery-gold-soft);
	outline-offset: -5px;
	opacity: 1;
}

.sc-gallery-player__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.sc-gallery-player__toolbar {
	display: flex;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	gap: 6px;
	padding: 6px;
	border: 1px solid var(--sc-gallery-line);
	border-radius: 0;
	background: rgb(17 17 13 / 86%);
	backdrop-filter: blur(4px);
}

.sc-gallery-player__button,
.sc-gallery-player__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 42px;
	height: 42px;
	margin: 0;
	padding: 9px;
	border: 1px solid rgb(200 164 93 / 65%);
	border-radius: 0;
	background: rgb(17 17 13 / 92%);
	color: var(--sc-gallery-gold-soft);
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.sc-gallery-player__button {
	border-radius: 50%;
}

.sc-gallery-player__button:hover,
.sc-gallery-player__nav:hover {
	border-color: var(--sc-gallery-gold);
	background: var(--sc-gallery-gold);
	color: var(--sc-gallery-ink);
}

.sc-gallery-player__button:focus-visible,
.sc-gallery-player__nav:focus-visible {
	outline: 3px solid var(--sc-gallery-gold-soft);
	outline-offset: 2px;
}

.sc-gallery-player__button:disabled,
.sc-gallery-player__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

/* A sablon .scheme_default button[disabled] !important szabályának célzott felülírása. */
.sc-gallery-player .sc-gallery-player__nav:disabled {
	border-color: rgb(200 164 93 / 65%) !important;
	background: rgb(17 17 13 / 92%) !important;
	color: var(--sc-gallery-gold-soft) !important;
	opacity: 0.35 !important;
	cursor: default !important;
}

.sc-gallery-player .sc-gallery-player__nav:disabled:hover {
	border-color: rgb(200 164 93 / 65%) !important;
	background: rgb(17 17 13 / 92%) !important;
	color: var(--sc-gallery-gold-soft) !important;
}

.sc-gallery-player__button svg,
.sc-gallery-player__nav svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.sc-gallery-player__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	transform: translateY(-50%);
}

.sc-gallery-player__nav--previous {
	left: 12px;
}

.sc-gallery-player__nav--next {
	right: 12px;
}

.sc-gallery-player__counter {
	position: absolute;
	right: 50%;
	bottom: 12px;
	z-index: 3;
	min-width: 64px;
	padding: 6px 10px;
	transform: translateX(50%);
	border: 1px solid var(--sc-gallery-line);
	border-radius: 0;
	background: rgb(17 17 13 / 88%);
	color: var(--sc-gallery-gold-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
	text-align: center;
}

.sc-gallery-player__details {
	padding: 14px 18px 16px;
	border-top: 1px solid var(--sc-gallery-line);
	background: var(--sc-gallery-surface);
}

.sc-gallery-player__image-title {
	color: var(--sc-gallery-gold-soft);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.sc-gallery-player__caption {
	margin-top: 4px;
	color: var(--sc-gallery-muted);
	font-size: 14px;
	line-height: 1.5;
}

.sc-gallery-player__image-title[hidden],
.sc-gallery-player__caption[hidden],
.sc-gallery-player__details[hidden] {
	display: none;
}

.sc-gallery-player__status {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	z-index: 2;
	gap: 10px;
	padding: 20px;
	background: rgb(17 17 13 / 90%);
	text-align: center;
}

.sc-gallery-player.is-loading .sc-gallery-player__status,
.sc-gallery-player.has-error .sc-gallery-player__status {
	display: flex;
}

.sc-gallery-player__spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgb(200 164 93 / 30%);
	border-top-color: var(--sc-gallery-gold);
	border-radius: 50%;
	animation: sc-gallery-spin 800ms linear infinite;
}

.sc-gallery-player.has-error .sc-gallery-player__spinner {
	display: none;
}

.sc-gallery-player:fullscreen,
.sc-gallery-player.is-fullscreen-fallback {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	border-radius: 0;
}

.sc-gallery-player.is-fullscreen-fallback {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

html.sc-gallery-fullscreen-active,
body.sc-gallery-fullscreen-active {
	overflow: hidden;
}

html.sc-gallery-modal-open,
body.sc-gallery-modal-open {
	overflow: hidden;
}

.sc-gallery-modal {
	--sc-gallery-gold: #c8a45d;
	--sc-gallery-gold-soft: #ead6a8;
	--sc-gallery-ink: #11110d;
	--sc-gallery-surface: #181813;
	--sc-gallery-line: rgb(200 164 93 / 34%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 999990;
	box-sizing: border-box;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: rgb(9 9 6 / 91%);
	backdrop-filter: blur(5px);
	animation: sc-gallery-modal-fade 160ms ease-out;
}

.sc-gallery-modal__dialog {
	display: flex;
	flex-direction: column;
	width: min(1400px, 100%);
	max-height: 100%;
	border: 1px solid var(--sc-gallery-line);
	border-radius: 0;
	background: var(--sc-gallery-ink);
	color: #f3eee2;
	box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
	overflow: hidden;
}

.sc-gallery-modal__header {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 16px;
	min-height: 56px;
	padding: 8px 10px 8px 18px;
	border-bottom: 1px solid var(--sc-gallery-line);
	background: var(--sc-gallery-surface);
}

.sc-gallery-modal__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--sc-gallery-gold) !important;
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-gallery-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid rgb(200 164 93 / 65%);
	border-radius: 50%;
	background: var(--sc-gallery-ink);
	color: var(--sc-gallery-gold-soft);
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.sc-gallery-player__toolbar--modal-header {
	position: static;
	flex: 0 0 auto;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	backdrop-filter: none;
}

.sc-gallery-modal:fullscreen,
.sc-gallery-modal.is-fullscreen-fallback {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	padding: 0;
}

.sc-gallery-modal.is-fullscreen-fallback {
	z-index: 999999;
}

.sc-gallery-modal:fullscreen .sc-gallery-modal__dialog,
.sc-gallery-modal.is-fullscreen-fallback .sc-gallery-modal__dialog {
	width: 100%;
	height: 100%;
	max-height: none;
	border: 0;
}

.sc-gallery-modal__close:hover {
	border-color: var(--sc-gallery-gold);
	background: var(--sc-gallery-gold);
	color: var(--sc-gallery-ink);
}

.sc-gallery-modal__close:focus-visible {
	outline: 3px solid var(--sc-gallery-gold-soft);
	outline-offset: 2px;
}

.sc-gallery-modal__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

.sc-gallery-modal__content .sc-gallery-player {
	margin: 0;
}

.sc-gallery-modal--fullscreen {
	padding: 0;
}

.sc-gallery-modal--fullscreen .sc-gallery-modal__dialog {
	width: 100%;
	height: 100%;
	max-height: none;
	border: 0;
	border-radius: 0;
}

.sc-gallery-modal--fullscreen .sc-gallery-modal__content {
	overflow: hidden;
}

.sc-gallery-modal--fullscreen .sc-gallery-player {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.sc-gallery-modal--fullscreen .sc-gallery-player__body {
	flex: 1 1 auto;
	min-height: 0;
}

.sc-gallery-modal--fullscreen .sc-gallery-player__stage,
.sc-gallery-modal--fullscreen .sc-gallery-player__thumbnail-rail {
	height: 100%;
	min-height: 0;
}

.sc-gallery-modal__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(70vh, 620px);
	gap: 10px;
	padding: 24px;
}

.sc-gallery-modal__content.has-error {
	padding: 32px;
	text-align: center;
}

.sc-gallery-modal__error {
	margin: 0 0 14px;
	color: #f3eee2;
}

.sc-gallery-modal__fallback {
	color: var(--sc-gallery-gold-soft);
	text-underline-offset: 0.2em;
}

.sc-gallery-player:fullscreen .sc-gallery-player__body,
.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__body {
	flex: 1 1 auto;
	min-height: 0;
}

.sc-gallery-player:fullscreen .sc-gallery-player__stage,
.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__stage {
	height: 100%;
	min-height: 0;
	max-height: none;
}

.sc-gallery-player:fullscreen .sc-gallery-player__thumbnail-rail,
.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__thumbnail-rail {
	height: 100%;
}

.sc-gallery-player__empty {
	padding: 20px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
}

.sc-gallery-player__noscript,
.sc-gallery-player__noscript img {
	display: block;
	max-width: 100%;
	height: auto;
}

@keyframes sc-gallery-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes sc-gallery-modal-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 1100px) and (min-width: 783px) {
	.sc-gallery-player {
		--sc-gallery-stage-height: min(68vh, 680px);
		--sc-gallery-rail-width: 96px;
	}

	.sc-gallery-player__thumbnail-rail {
		gap: 7px;
		padding: 8px;
	}

	.sc-gallery-player__thumbnail {
		flex-basis: 68px;
		height: 68px;
	}
}

@media (max-width: 782px) {
	.sc-gallery-player {
		--sc-gallery-stage-height: min(62vh, 600px);
		--sc-gallery-stage-height: min(62dvh, 600px);
		margin: 16px 0;
	}

	.sc-gallery-player__body--has-thumbnails,
	.sc-gallery-player__body--thumbnails-left {
		display: flex;
		flex-direction: column;
	}

	.sc-gallery-player__stage {
		height: var(--sc-gallery-stage-height);
		min-height: min(340px, var(--sc-gallery-stage-height));
	}

	.sc-gallery-player__thumbnail-rail,
	.sc-gallery-player__body--thumbnails-left .sc-gallery-player__thumbnail-rail {
		flex-direction: row;
		width: 100%;
		height: 96px;
		gap: 8px;
		padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
		border-top: 1px solid var(--sc-gallery-line);
		border-right: 0;
		border-left: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-gutter: auto;
	}

	.sc-gallery-player__thumbnail {
		flex-basis: 76px;
		width: 76px;
		height: 76px;
	}

	.sc-gallery-player:fullscreen .sc-gallery-player__stage,
	.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__stage,
	.sc-gallery-modal--fullscreen .sc-gallery-player__stage {
		flex: 1 1 auto;
		height: auto;
	}

	.sc-gallery-player:fullscreen .sc-gallery-player__thumbnail-rail,
	.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__thumbnail-rail,
	.sc-gallery-modal--fullscreen .sc-gallery-player__thumbnail-rail {
		flex: 0 0 96px;
		height: 96px;
	}

	.sc-gallery-player__toolbar {
		top: max(8px, env(safe-area-inset-top));
		right: max(8px, env(safe-area-inset-right));
		gap: 4px;
		padding: 4px;
	}

	.sc-gallery-player__button {
		min-width: 40px;
		height: 40px;
		padding: 8px;
	}

	.sc-gallery-player__nav {
		width: 44px;
		height: 44px;
	}

	.sc-gallery-player__nav--previous {
		left: max(8px, env(safe-area-inset-left));
	}

	.sc-gallery-player__nav--next {
		right: max(8px, env(safe-area-inset-right));
	}

	.sc-gallery-player__details {
		padding: 12px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	}

	.sc-gallery-modal {
		align-items: stretch;
		padding: 0;
	}

	.sc-gallery-modal__dialog {
		width: 100%;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.sc-gallery-modal__header {
		flex-wrap: nowrap;
		gap: 8px;
		min-height: 54px;
		padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
	}

	.sc-gallery-modal__title {
		flex: 1 1 0;
		flex-basis: 0;
	}

	.sc-gallery-player__toolbar--modal-header {
		width: auto;
		justify-content: flex-end;
		padding: 0;
	}

	.sc-gallery-modal__close {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 480px) {
	.sc-gallery-player {
		--sc-gallery-stage-height: min(58vh, 520px);
		--sc-gallery-stage-height: min(58dvh, 520px);
	}

	.sc-gallery-player__stage {
		min-height: min(280px, var(--sc-gallery-stage-height));
	}

	.sc-gallery-player__toolbar {
		gap: 3px;
		padding: 4px;
	}

	.sc-gallery-player__toolbar--modal-header {
		padding: 0;
	}

	.sc-gallery-player__button {
		min-width: 38px;
		height: 38px;
		padding: 8px;
	}

	.sc-gallery-player__nav {
		width: 42px;
		height: 42px;
	}

	.sc-gallery-player__counter {
		bottom: 8px;
		padding: 5px 8px;
	}
}

@media (max-height: 600px) and (orientation: landscape) {
	.sc-gallery-player {
		--sc-gallery-stage-height: min(78vh, 460px);
		--sc-gallery-stage-height: min(78dvh, 460px);
	}

	.sc-gallery-player__stage {
		min-height: min(240px, var(--sc-gallery-stage-height));
	}

	.sc-gallery-player:fullscreen .sc-gallery-player__stage,
	.sc-gallery-player.is-fullscreen-fallback .sc-gallery-player__stage {
		min-height: 0;
	}
}

@media (pointer: coarse) {
	.sc-gallery-player__button {
		min-width: 44px;
		height: 44px;
	}

	.sc-gallery-player__nav {
		width: 48px;
		height: 48px;
	}
}

@media (prefers-contrast: more) {
	.sc-gallery-player__button,
	.sc-gallery-player__nav,
	.sc-gallery-player__thumbnail,
	.sc-gallery-modal__close {
		border-color: #fff;
	}

	.sc-gallery-player__thumbnail.is-active {
		border-width: 3px;
		border-color: var(--sc-gallery-gold-soft);
	}
}

@media (forced-colors: active) {
	.sc-gallery-player__button,
	.sc-gallery-player__nav,
	.sc-gallery-player__thumbnail,
	.sc-gallery-modal__close {
		border: 2px solid ButtonText;
		forced-color-adjust: auto;
	}

	.sc-gallery-player__thumbnail.is-active {
		border: 3px solid Highlight;
	}

	.sc-gallery-player__button:focus-visible,
	.sc-gallery-player__nav:focus-visible,
	.sc-gallery-player__thumbnail:focus-visible,
	.sc-gallery-modal__close:focus-visible {
		outline: 3px solid Highlight;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-gallery-player__spinner {
		animation-duration: 1600ms;
	}

	.sc-gallery-player__button,
	.sc-gallery-player__nav,
	.sc-gallery-player__thumbnail {
		transition: none;
	}

	.sc-gallery-modal {
		animation: none;
	}
}
