/* viktor.olkha.com — публичные стили */

* { box-sizing: border-box; }

:root {
	--ink: #171715;
	--muted: #77736c;
	--line: #ddd9d1;
	--paper: #f7f5f1;
	--surface: #ebe8e1;
	--mainPad: clamp(24px, 3.35vw, 48px);
	--siteMax: 1400px;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

.skipLink {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 200;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	transform: translateY(-150%);
}

.skipLink:focus { transform: translateY(0); }

/* Шапка */

/* Шапка липнет к верху: наверху страницы выглядит как раньше, ниже — ужимается и выпускает ленту альбомов */
.siteHeader {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--siteMax);
	margin: 0 auto;
	padding: 30px var(--mainPad);
	transition: padding 200ms ease, background-color 200ms ease;
}

.siteHeaderTop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.siteHeaderScrolled {
	padding-top: 14px;
	padding-bottom: 14px;
	background: rgba(247, 245, 241, 0.92);
	backdrop-filter: blur(16px);
}

.siteAlbums {
	display: flex;
	gap: 20px;
	max-height: 0;
	margin-top: 0;
	opacity: 0;
	overflow-x: auto;
	transform: translateY(-6px);
	transition: max-height 220ms ease, margin-top 220ms ease, opacity 220ms ease, transform 220ms ease;
	scrollbar-width: none;
}

.siteAlbums::-webkit-scrollbar { display: none; }

.siteHeaderScrolled .siteAlbums {
	max-height: 40px;
	margin-top: 12px;
	opacity: 1;
	transform: translateY(0);
}

.siteAlbums a {
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--muted);
}

.siteAlbums a:hover, .siteAlbums a[aria-current="page"] { color: var(--ink); }

.siteLogo {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.siteNav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.siteNav a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--muted);
}

.siteNav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.siteNav a:hover, .siteNav a[aria-current="page"] { color: var(--ink); }

.siteNav a:hover::after, .siteNav a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Контент */

.siteMain {
	width: 100%;
	max-width: var(--siteMax);
	flex: 1 0 auto;
	margin: 0 auto;
	padding: 0 var(--mainPad) clamp(72px, 9vw, 128px);
}

.homeIntro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"kicker link"
		"heading heading";
	gap: 22px 32px;
	padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
	border-bottom: 1px solid var(--line);
}

.homeKicker {
	grid-area: kicker;
	align-self: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.homeHeading {
	grid-area: heading;
	min-width: 0;
	max-width: 1080px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(54px, 7.2vw, 104px);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.homeAboutLink {
	grid-area: link;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	font-size: 14px;
	text-decoration: none;
	color: var(--muted);
}

.homeAboutLink span {
	font-size: 20px;
	transition: transform 180ms ease;
}

.homeAboutLink:hover { color: var(--ink); }

.homeAboutLink:hover span { transform: translateX(5px); }

.sectionHeading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin: clamp(72px, 8vw, 112px) 0 24px;
	padding-bottom: 13px;
	border-bottom: 1px solid var(--line);
}

.sectionHeadingFirst { margin-top: clamp(48px, 6vw, 80px); }

.sectionHeading h2, .sectionTitle {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.sectionHeading > span {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	color: var(--muted);
}

.sectionTitle { margin: 56px 0 20px; }

/* Сетка фото (masonry колонками) */

.photosGrid {
	columns: 3;
	column-gap: 12px;
}

.photoCard {
	position: relative;
	margin: 0 0 12px;
	break-inside: avoid;
}

.photoCard img {
	width: 100%;
	object-fit: cover;
	cursor: zoom-in;
	background: var(--surface);
}

.photoCard img:focus-visible { outline-offset: -4px; }

/* Правка на месте (видит только вошедший в админку): кнопка на фото и её меню */

.photoEditButton {
	position: absolute;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(23, 23, 21, 0.6);
	color: #fff;
	cursor: pointer;
}

/* Размер и место кнопки задаются отдельно для ленты и для просмотра — иначе мобильное правило
   для плитки сажает кнопку просмотра прямо на крестик */
.photoCard .photoEditButton {
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	font-size: 17px;
	line-height: 30px;
}

.photoEditButton:hover { background: rgba(23, 23, 21, 0.88); }

/* В просмотре кнопка встаёт в один ряд с полноэкранным режимом и крестиком */
.viewerEditButton {
	top: calc(9px + env(safe-area-inset-top));
	right: calc(106px + env(safe-area-inset-right));
	z-index: 4;
	width: 44px;
	height: 44px;
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-size: 22px;
	line-height: 44px;
	text-align: center;
}

.viewerEditButton:hover {
	background: transparent;
	color: #fff;
}

.photoEditMenu {
	position: fixed;
	z-index: 120;
	min-width: 224px;
	max-width: min(300px, calc(100vw - 16px));
	max-height: 62vh;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--line);
	background: var(--paper);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.photoEditMenu button {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 9px 10px;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.photoEditMenu button:hover { background: var(--surface); }

.photoEditMenu button.danger {
	background: #b3261e;
	color: #fff;
}

.photoEditMenuBack {
	margin-bottom: 4px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}

.photoEditMenuNote {
	display: block;
	padding: 2px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.photoEditMenuEmpty { padding: 9px 10px; }

/* Ответ на действие — поверх всего: в полноэкранном просмотре подсказки под заголовком не видно */
.photoEditToast {
	position: fixed;
	left: 50%;
	bottom: calc(26px + env(safe-area-inset-bottom));
	z-index: 130;
	transform: translateX(-50%);
	max-width: calc(100vw - 32px);
	padding: 10px 16px;
	background: rgba(23, 23, 21, 0.92);
	color: #fff;
	font-size: 14px;
}

.photoEditToast[hidden] { display: none; }

.downloadAllButton {
	display: inline-block;
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-size: 14px;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.downloadAllButton:hover { background: #333; }

/* Карточки альбомов */

.albumsGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 1.8vw, 24px);
}

.albumCard {
	text-decoration: none;
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.albumCardMedia {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--surface);
}

.albumCard img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--surface);
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.albumCardEmptyCover {
	width: 100%;
	height: 100%;
	background: var(--surface);
}

.albumCardInfo {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-top: 13px;
}

.albumCardTitle {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.albumCardQty, .albumCardArrow {
	font-size: 13px;
	color: var(--muted);
}

.albumCardArrow {
	font-size: 19px;
	line-height: 1;
	transition: transform 180ms ease;
}

@media (hover: hover) {
	.albumCard:hover img { transform: scale(1.025); }
	.albumCard:hover .albumCardArrow { transform: translate(3px, -3px); }
}

/* Страница альбома / обо мне */

.pageHeading {
	max-width: 980px;
	margin: clamp(36px, 4vw, 64px) 0 clamp(24px, 3vw, 44px);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 5.5vw, 76px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.045em;
}

.pageSubtext {
	max-width: 680px;
	margin: -20px 0 36px;
	font-size: 17px;
	color: var(--muted);
}

.aboutLayout {
	display: grid;
	grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: start;
}

.aboutPhoto {
	overflow: hidden;
	background: var(--surface);
}

.aboutPhoto img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.aboutContent { padding-top: 8px; }

.aboutText {
	max-width: 680px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.45;
	white-space: pre-line;
}

.aboutContacts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-width: 680px;
	margin-top: 36px;
}

.aboutContacts a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 180ms ease, background 180ms ease;
}

.aboutContacts a:hover {
	border-color: var(--ink);
	background: rgba(255, 255, 255, 0.35);
}

/* QR на главную: показывается в натуральную величину (qr.php подбирает размер модуля),
   ужимаем только если экран уже картинки */
.aboutQr {
	display: grid;
	grid-template-columns: minmax(120px, 176px) minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	max-width: 680px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.aboutQr img {
	width: 100%;
	height: auto;
	image-rendering: pixelated;
}

.aboutQrCaption {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--muted);
	font-size: 14px;
}

.aboutQrCaption strong {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

/* Футер */

.siteFooter {
	border-top: 1px solid var(--line);
	width: 100%;
	max-width: var(--siteMax);
	margin: 0 auto;
	padding: 28px var(--mainPad) 36px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.footerContacts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }

.footerContacts a { color: var(--muted); text-decoration: none; }

.footerContacts a:hover { color: var(--ink); }

.footerCopyright { font-size: 13px; color: var(--muted); }

/* Лайтбокс */

#lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.97);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Бокс кадра считается из пропорций фото (--photoAspect ставит gallery.js) и вьюпорта, а не из
   натурального размера файла: превью 640px сразу растягивается в полный размер, и подмена на
   веб-версию 1920 размер не меняет — иначе кадр прыгал, пока грузится крупная версия */
#lightbox img {
	/* 1920px — длинная сторона веб-версии: крупнее натурального размера не растягиваем, как и раньше */
	width: min(calc(100vw - 96px), calc((100vh - 80px) * var(--photoAspect, 1.5)), 1920px, calc(1920px * var(--photoAspect, 1.5)));
	height: min(calc(100vh - 80px), calc((100vw - 96px) / var(--photoAspect, 1.5)), calc(1920px / var(--photoAspect, 1.5)), 1920px);
	object-fit: contain;
}

#lightboxBar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 56px 24px calc(18px + env(safe-area-inset-bottom));
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	pointer-events: none;
}

#lightboxCaption {
	max-width: 760px;
	color: #bbb;
	font-size: 14px;
}

#lightboxOriginal {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 13px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	pointer-events: auto;
}

.lightboxArrow {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 25%;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	font-size: 36px;
	transition: color 180ms ease;
}

.lightboxArrow:hover { color: rgba(255, 255, 255, 0.7); }

#lightboxPrev { left: 0; }

#lightboxNext { right: 0; }

.fullscreenButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.fullscreenButton[hidden] { display: none; }

.fullscreenButton svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fullscreenExitIcon { display: none; }

.fullscreenButton.isFullscreen .fullscreenEnterIcon { display: none; }

.fullscreenButton.isFullscreen .fullscreenExitIcon { display: block; }

.siteFullscreen {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	color: var(--muted);
}

.siteFullscreen:hover { color: var(--ink); }

.viewerFullscreen {
	position: absolute;
	top: calc(9px + env(safe-area-inset-top));
	right: calc(58px + env(safe-area-inset-right));
	z-index: 4;
	width: 44px;
	height: 44px;
	color: rgba(255, 255, 255, 0.7);
}

.viewerFullscreen:hover { color: #fff; }

#lightboxClose {
	position: absolute;
	top: calc(8px + env(safe-area-inset-top));
	right: calc(10px + env(safe-area-inset-right));
	z-index: 4;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-size: 32px;
	line-height: 1;
	padding: 10px;
	cursor: pointer;
}

/* Адаптив */

@media (max-width: 900px) {
	.photosGrid { columns: 2; }
	.aboutLayout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.aboutPhoto { width: min(100%, 620px); }
}

/* Мобайл: умная плитка как у Яндекс.Диска — edge-to-edge мозаика на CSS grid,
   паттерн-классы (2x2 / 2x1 / 1x1) назначает gallery.js, без подписей */
@media (max-width: 760px) {
	.homeIntro { padding-top: 34px; }
	.sectionHeading { margin-top: 64px; }
	.sectionHeadingFirst { margin-top: 44px; }
	.photosGrid {
		columns: auto;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: calc((100vw - 6px) / 3);
		/* dense: ячейки слева от tileBigRight закрываются следующими однушками,
		   без него курсор авторазмещения оставляет их дырами и сетка дрейфует */
		grid-auto-flow: dense;
		gap: 3px;
		margin: 0 calc(0px - var(--mainPad));
	}
	.photoCard { margin: 0; overflow: hidden; }
	.photoCard .photoEditButton {
		top: 4px;
		right: 4px;
		width: 26px;
		height: 26px;
		font-size: 15px;
		line-height: 26px;
	}
	.photoCard img { width: 100%; height: 100%; object-fit: cover; }
	.photoCard.tileBig { grid-column: span 2; grid-row: span 2; }
	.photoCard.tileBigRight { grid-column: 2 / span 2; grid-row: span 2; }
	.photoCard.tileWide { grid-column: span 2; }
}

@media (max-width: 560px) {
	body { --mainPad: 16px; }
	.siteHeader {
		padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
		border-bottom: 1px solid rgba(221, 217, 209, 0.85);
		background: rgba(247, 245, 241, 0.9);
		backdrop-filter: blur(16px);
	}
	.siteHeaderTop { gap: 12px; }
	.siteHeaderScrolled {
		padding-top: calc(8px + env(safe-area-inset-top));
		padding-bottom: 8px;
	}
	.siteAlbums { gap: 14px; }
	.siteHeaderScrolled .siteAlbums {
		max-height: 30px;
		margin-top: 8px;
	}
	.siteAlbums a { font-size: 11px; letter-spacing: 0.08em; }
	.siteLogo {
		font-size: 13px;
		letter-spacing: 0.1em;
	}
	.siteNav { gap: 2px; }
	.siteNav a {
		padding: 0 7px;
		font-size: 11px;
		letter-spacing: 0.08em;
	}
	.siteNav a::after { left: 7px; right: 7px; bottom: 4px; }
	.siteMain { padding-bottom: 64px; }
	.homeIntro {
		grid-template-columns: 1fr;
		grid-template-areas:
			"kicker"
			"heading"
			"link";
		gap: 17px;
		padding: 36px 0 52px;
	}
	.homeHeading {
		font-size: clamp(44px, 14vw, 62px);
		line-height: 0.96;
	}
	.homeAboutLink { width: fit-content; }
	.sectionHeading { margin-top: 58px; }
	.sectionHeadingFirst { margin-top: 38px; }
	.albumsGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 10px;
	}
	.albumCardFeatured { grid-column: 1 / -1; }
	.albumCardFeatured .albumCardMedia { aspect-ratio: 16 / 10; }
	.albumCard:not(.albumCardFeatured) .albumCardMedia { aspect-ratio: 1 / 1; }
	.albumCardInfo { gap: 8px; padding-top: 10px; }
	.albumCardTitle { font-size: 15px; }
	.albumCardArrow { display: none; }
	.pageHeading { margin-top: 34px; font-size: clamp(42px, 13vw, 58px); }
	.pageSubtext { margin-top: -14px; font-size: 16px; }
	.aboutLayout { gap: 30px; }
	.aboutPhoto { width: 100%; }
	.aboutContent { padding-top: 0; }
	.aboutContacts { grid-template-columns: 1fr; margin-top: 30px; }
	.aboutQr {
		grid-template-columns: minmax(108px, 138px) minmax(0, 1fr);
		gap: 16px;
		margin-top: 32px;
		padding-top: 24px;
	}
	.siteFooter { padding: 24px var(--mainPad) calc(28px + env(safe-area-inset-bottom)); }
	#lightbox img {
		width: min(100vw, calc((100vh - 60px) * var(--photoAspect, 1.5)), 1920px, calc(1920px * var(--photoAspect, 1.5)));
		height: min(calc(100vh - 60px), calc(100vw / var(--photoAspect, 1.5)), calc(1920px / var(--photoAspect, 1.5)), 1920px);
	}
}

@media (max-width: 400px) {
	.siteHeader { gap: 6px; padding-left: 12px; padding-right: 12px; }
	.siteLogo { font-size: 12px; letter-spacing: 0.06em; }
	.siteNav a { padding: 0 5px; font-size: 10px; }
	.siteNav a::after { left: 5px; right: 5px; }
	.homeHeading { font-size: clamp(42px, 14vw, 54px); overflow-wrap: break-word; }
}

/* Карусель (мобильный просмотр): вертикальный scroll-snap, скроллспай-счётчик */

#carousel {
	position: fixed;
	inset: 0;
	z-index: 110;
	background: #0c0c0c;
	height: 100vh;
	height: 100dvh;
}

/* Вертикальный свайп как в тиктоке: флик — один кадр (snap-stop always) */
.carouselTrack {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.carouselTrack::-webkit-scrollbar { display: none; }

.carouselSlide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Тот же принцип, что у #lightbox img: бокс из пропорций кадра, файл внутри него подменяется без прыжка.
   dvh-строка перекрывает vh там, где dvh понимают; где нет — остаётся vh */
.carouselSlide img {
	width: min(100vw, calc(100vh * var(--photoAspect, 1.5)));
	width: min(100vw, calc(100dvh * var(--photoAspect, 1.5)));
	height: min(100vh, calc(100vw / var(--photoAspect, 1.5)));
	height: min(100dvh, calc(100vw / var(--photoAspect, 1.5)));
	object-fit: contain;
}

#carouselCounter {
	position: absolute;
	top: calc(14px + env(safe-area-inset-top));
	left: calc(16px + env(safe-area-inset-left));
	color: #ddd;
	font-size: 14px;
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

#carouselClose {
	position: absolute;
	top: calc(2px + env(safe-area-inset-top));
	right: calc(6px + env(safe-area-inset-right));
	z-index: 4;
	border: 0;
	background: transparent;
	color: #ddd;
	font-size: 30px;
	line-height: 1;
	padding: 10px;
	cursor: pointer;
}

#carouselBar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 28px calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	color: #ccc;
	font-size: 13px;
}

#carouselBar a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
