/**
 * Diaporama.
 *
 */
#diaporama
{
	--control-bar-height: 32px;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	color: white;
	width: 100%;
	height: 100%;
	background: black;
	z-index: 10000;
	justify-content: center;

	a
	{
		outline: none;
	}
}
#diaporama_inner
{
	margin-right: auto;
	touch-action: none;
}

/* Barres de contrôle */
#diaporama_top,
#diaporama_bottom
{
	position: absolute;
	left: 0;
	width: 100%;
	background: #404040;
	font-size: 130%;
	display: flex;
	align-items: center;
	z-index: 5;
	height: var(--control-bar-height);
}
#diaporama_top
{
	top: 0;
}
#diaporama_bottom
{
	bottom: 0;
	padding: 0 15px;
	box-sizing: border-box;
}
#diaporama_position,
#diaporama_auto_mode
{
	width: 15%;
}

/* Fil d'Ariane */
#diaporama_breadcrumb
{
	display: flex;
	flex: 1;
	line-height: 1.7em;
	height: 1.7em;
	overflow: hidden;
	margin-left: 5px;

	a
	{
		color: white;
		border-color: white;

		&:focus-visible
		{
			border-width: 2px;
			margin-bottom: 0;
			outline: none;
		}
	}
	& > span span
	{
		margin: 0 5px;
	}
}
#diaporama_breadcrumb_parents
{
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;

	span:first-child
	{
		margin-left: 0;
	}
}
#diaporama_breadcrumb_item
{
	flex: 1;
	white-space: nowrap;
	max-width: 30em;

	a
	{
		font-weight: bold;
	}
}

/* Message du mode automatique */
#diaporama_auto_message
{
	position: absolute;
	top: calc(var(--control-bar-height) + 21px);
	left: 20px;
	display: none;
	z-index: 1;
	padding: 10px;
	font-size: 200%;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .05em;
	background: var(--color);
	text-align: center;
	line-height: 3em;
	width: 3em;
	height: 3em;
	border-radius: 50%;
	box-shadow: 0 0 20px #2E2E2E;
}

/* Icônes */
#diaporama_home
{
	display: none;
}
.diaporama_icon
{
	position: relative;
	display: block;
	border: 0;
	padding: 0;
	margin: 0;
	width: 2.55em;
	height: var(--control-bar-height);
	overflow: hidden;
	font-family: "IcoMoon";

	&::after
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: white;
	}
	&:hover::before,
	&:focus-visible::before
	{
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: white;
		opacity: 0.15;
	}
	&[data-name="home"]::after
	{
		content: '\e906';
		font-size: 170%;
	}
	&[data-name="download"]::after
	{
		content: '\e9c7';
		font-size: 160%;
	}
	&[data-name="selection"]::after
	{
		content: '\ea52';
		font-size: 140%;
	}
	&[data-name="favorite"]::after
	{
		content: '\e910';
		font-size: 175%;
	}
	&[data-name="edit"]::after
	{
		content: '\e962';
		font-size: 140%;
	}
	&[data-name="exif"]::after
	{
		content: '\e903';
		font-size: 175%;
	}
	&[data-name="geolocation"]::after
	{
		content: '\e94b';
		font-size: 150%;
	}
	&[data-name="informations"]::after
	{
		content: '\f05a';
		font-size: 160%;
	}
	&[data-name="votes"]::after
	{
		content: '\e9d9';
		font-size: 160%;
		top: -.025em;
	}
	&[data-name="settings"]::after
	{
		content: '\f013';
		font-size: 160%;
	}
	&[data-name="close"]::after
	{
		content: '\ea0f';
		font-size: 130%;
	}
	&[data-name="first"]::after
	{
		content: '\f104\f104';
		font-size: 190%;
		top: -.025em;
	}
	&[data-name="prev"]::after
	{
		content: '\f104';
		font-size: 190%;
		top: -.025em;
	}
	&[data-name="next"]::after
	{
		content: '\f105';
		font-size: 190%;
		top: -.025em;
	}
	&[data-name="last"]::after
	{
		content: '\f105\f105';
		font-size: 190%;
		top: -.025em;
	}
	&[data-status="start"]::after
	{
		content: '\f04b';
		font-size: 140%;
	}
	&[data-status="stop"]::after
	{
		content: '\f04d';
		font-size: 140%;
	}
	&[data-name="minus"]::after
	{
		content: '\f068';
		font-size: 160%;
	}
	&[data-name="plus"]::after
	{
		content: '\f067';
		font-size: 160%;
	}
}
.diaporama_icon span
{
	display: none;
}

/* Icônes d'outils */
#diaporama_tools
{
	display: flex;
	align-items: center;
	margin-left: 15px;

	a
	{
		margin-top: 0;
		margin-bottom: 0;
	}
	a.diaporama_sidebar_icon.active
	{
		&, &:hover::before
		{
			background: #C0C0C0;
		}
		&::after
		{
			color: #404040;
		}
		&:focus-visible
		{
			background: none;
		}
		&:focus-visible::after
		{
			color: white;
		}
	}
}

/* Icônes du mode auto */
#diaporama_auto_mode
{
	display: flex;
	align-items: center;
	justify-content: flex-end;

	& > *:nth-last-child(-n+3)
	{
		display: none;
	}
}
#diaporama_auto_duration
{
	margin: 0 5px;
}

/* Icônes de navigation */
#diaporama_navigation
{
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: -1px;

	a
	{
		margin: 0 .25em;

		&:not(#diaporama_switch)
		{
			transform: scale(1.25, 1.0);
			width: 2.35em;
		}

		@media (max-width: 450px)
		{
			&:first-child, &:last-child
			{
				display: none;
			}
		}
	}
}

/* Bouton de switch */
#diaporama_navigation a#diaporama_switch
{
	position: relative;
	padding: 0;
	border: 0;
	margin: 0;
	align-items: center;
	justify-content: center;
	width: 3em;
	cursor: pointer;

	&::after
	{
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		display: block;
		width: 11px;
		height: 11px;
		margin: -5.5px 0 0 -5.5px;
		background: #fff;
		border-radius: 50%;
	}
	&.fullsize::after
	{
		width: 15px;
		height: 15px;
		margin: -7.5px 0 0 -7.5px;
	}
	&:hover::after
	{
		background: #dcdcdc;
	}
}

/* Boutons désactivés */
.diaporama_icon.disabled,
#diaporama_navigation a#diaporama_switch.disabled
{
	cursor: default;
}
.diaporama_icon.disabled
{
	&::after, &:hover::before
	{
		color: #858585;
		background: none;
	}
}
#diaporama_navigation a#diaporama_switch.disabled::after
{
	background: #858585;
}

/* Icône de chargement */
#diaporama_loading
{
	position: absolute;
	top: 0;
	left: 0;

	&::before
	{
		content: '';
		background: #aaa;
		position: absolute;
		top: 50%;
		left: 50%;
		width: 80px;
		height: 80px;
		margin: -40px 0 0 -40px;
		border-radius: 50%;
		transform: scale(0);
		opacity: 1;
		animation: diaporama-loading 0.8s ease-out infinite;
	}
}
@keyframes diaporama-loading
{
	100%
	{
		transform: scale(1.0);
		opacity: 0;
	}
}

/* Texte affiché sur l'image */
#diaporama_text
{
	position: absolute;
	z-index: 1;
	bottom: 140px;
	display: none;
	max-width: 100%;
}
#diaporama_text_inner
{
	display: flex;
	flex-direction: column;
}
#diaporama_text p
{
	display: inline-block;
	max-width: 850px;
	margin: 0 auto;
	padding: 5px 8px;
	line-height: 1.5em;
	color: #eee;
	background: rgba(17,17,17,0.9);
}
#diaporama_title
{
	overflow: hidden;
	text-align: center;
	font-size: 140%;
	max-height: 3em;
}
#diaporama_description
{
	overflow-y: auto;
	scrollbar-width: thin;
	padding-right: 10px;
	font-size: 110%;
	max-height: 6em;
	color-scheme: dark;
}

/* Fil d'Ariane */
#diaporama_breadcrumb a
{
	border-width: 0;

	&:hover
	{
		border-width: 2px;
	}
}

/* Fichier */
#diaporama_item
{
	flex: 1;

	img, video
	{
		position: absolute;
	}
	img:not([data-type="image/jpeg"])
	{
		background: white;
	}
}

/* Sidebars */
.diaporama_sidebar
{
	display: none;
	position: absolute;
	top: var(--control-bar-height);
	right: 0;
	width: 100%;
	height: calc(100% - 56px);
	background: #C0C0C0;
	color: black;
	z-index: 4;
	box-sizing: border-box;

	h1
	{
		color: #C0C0C0;
		font-weight: bold;
		background: #404040;
		margin: 10px 8px 20px;
		padding: 3px 10px 4px 0;
		font-size: 125%;
		letter-spacing: .05em;
		text-align: right;
		border-radius: 12px;
		position: relative;
	}
}
.diaporama_sidebar_inner
{
	padding: 0 15px 15px;
	height: calc(100% - 70px);
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Sidebars sans barres de contrôle */
#diaporama.nocontrols
{
	.diaporama_sidebar
	{
		top: 0;
		height: 100%;
	}
	#diaporama_carousel
	{
		bottom: 0;
	}
	#diaporama_auto_message
	{
		top: 21px;
	}
	#diaporama_favorite.in::before,
	#diaporama_selection.in::before
	{
		top: 16px;
	}
	#diaporama_favorite.in + #diaporama_selection.in::before
	{
		top: 78px;
	}
}

/* Sidebars : bouton de fermeture */
.diaporama_sidebar_close
{
	position: absolute;
	display: flex;
	height: 100%;
	width: 32px;
	top: 0;
	left: 0;
	cursor: pointer;
	z-index: 1;
}
.diaporama_sidebar_close_icon
{
	position: absolute;
	display: inline-block;
	height: 0;
	width: 0;
	top: 50%;
	left: 18px;
	margin-top: -7px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 12px solid #C0C0C0;

	&::before
	{
		content: '';
		position: absolute;
		background: #C0C0C0;
		width: 18px;
		height: 4px;
		margin-top: -2px;
		top: 50%;
		left: -30px;
	}
}

/* Sidebars : contenu */
.diaporama_sidebar h2
{
	position: relative;
	margin-bottom: 15px;
	font-weight: bold;
	font-size: 120%;
	color: #333;
}
.diaporama_sidebar[data-name="informations"] h2::before
{
	content: '';
	position: absolute;
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #333;
	left: -12px;
	top: calc(50% - 2px);
}
.diaporama_sidebar[data-name="exif"]
{
	ul
	{
		margin: 0;
	}
	li
	{
		font-weight: bold;
		color: #333;
		padding: 3px 0;
	}
	li span
	{
		font-weight: normal;
		color: black;
	}
}
.diaporama_sidebar h2 span
{
	cursor: pointer;
}
.diaporama_sidebar a
{
	color: black;

	&:hover
	{
		border-color: #555;
	}
	&:focus-visible
	{
		border-bottom: 2px solid #555;
		margin-bottom: 0;
	}
}
.diaporama_sidebar_inner > ul
{
	margin-left: 10px;
	color: #333;
}
#diaporama
{
	input[type="text"], select, textarea
	{
		background: #eee;
		border: 1px solid #777;

		&:focus
		{
			background: #fff;
		}
	}
}
.diaporama_sidebar_content
{
	padding-bottom: 25px;

	li
	{
		padding: 3px 0;
		font-weight: bold;
		color: #333;
	}
	li span
	{
		font-weight: normal;
		color: black;
	}
}
#diaporama_sidebar_desc .diaporama_sidebar_content
{
	line-height: 1.5em;

	li
	{
		font-weight: normal;
		padding: 1px 0 2px;
	}
	.emoji
	{
		font-size: 130%;
	}
}

/* Messages d'information */
.diaporama_info p
{
	margin-left: 1.7em;
	font-size: 120%;
	position: relative;
	display: inline-block;
	line-height: 1.5em;

	&::before
	{
		content: '\f06a';
		font-family: "IcoMoon";
		font-size: 150%;
		color: #555;
		position: absolute;
		display: inline-block;
		margin-left: -1.2em;
	}
}

/* Sidebars : cases à cocher */
#diaporama input:is([type="checkbox"], [type="radio"])
{
	filter: grayscale(1);
}

/* Sidebars : note */
#diaporama_sidebar_stats_rating
{
	position: relative;

	span
	{
		font-family: "IcoMoon";
		font-size: 110%;
		color: #555;
		position: absolute;
		top: 1px;
	}
}
#diaporama_sidebar_stats_rating span
{
	&:nth-child(1)
	{
		margin-left: .2em;
	}
	&:nth-child(2)
	{
		margin-left: 1.2em;
	}
	&:nth-child(3)
	{
		margin-left: 2.2em;
	}
	&:nth-child(4)
	{
		margin-left: 3.2em;
	}
	&:nth-child(5)
	{
		margin-left: 4.2em;
	}
}

/* Sidebars : ajout d'une note */
#diaporama_note
{
	margin: 0 0 20px;
}
#diaporama_note_formated
{
	font-size: 110%;
	margin-left: 3px;
	position: relative;
	top: -2px;
	color: #333;

	&::before
	{
		content: '(';
	}
	&::after
	{
		content: ')';
	}
}
#diaporama_note > span,
#diaporama_user_note > span
{
	font-weight: bold;
	color: #333;
	display: inline-block;
}
#diaporama_note_rating
{
	margin-top: 5px;
	display: inline-block;
	font-family: "IcoMoon";
	font-size: 160%;
	color: #555;
}
#diaporama_user_note a
{
	border: 0;
	margin: 0;
	padding: 0 2px;
	color: #555;
	font-family: "IcoMoon";
	font-size: 200%;

	&:focus-visible
	{
		outline: 2px solid #777;
	}
}
#diaporama_user_note_rating
{
	display: inline-flex;
	cursor: pointer;
	margin: 4px 0 0 -4px;
}
#diaporama_user_note #diaporama_user_note_delete
{
	font-size: 260%;
	margin-left: 10px;
	position: relative;
	top: .15em;
}

/* Sidebars : utilisateur */
#diaporama_sidebar_user .diaporama_sidebar_content
{
	display: flex;

	& > a
	{
		border: 0;
		margin: 0;
		display: inline-block;
	}
	img
	{
		object-fit: cover;
		margin: 0;
		border-radius: 50%;
		background: #eee;
	}
	& > p
	{
		line-height: 1.8em;
	}
	& > p a
	{
		color: black;
	}
}
#diaporama_user_avatar
{
	margin-right: 10px;
}
#diaporama_user_name
{
	&, & a
	{
		color: #333;
	}
}

/* Sidebars : tags */
#diaporama_sidebar_tags ul li
{
	display: inline-block;
	margin: 5px 10px 5px 0;

	a
	{
		display: inline-block;
		padding: 8px 10px;
		border: 0;
		border-radius: 6px;
		font-size: 110%;
		border: 1px solid silver;
		margin: 0;
		background: #555;
		color: white;

		&:hover, &:focus-visible
		{
			background: #777;
		}
	}
}

/* Sidebars : géolocalisation */
#diaporama_geolocation_map
{
	background: #555;
	width: 100%;
	height: 500px;
	max-height: 50vh;
	margin-bottom: 15px;

	a
	{
		border: none;
		padding: 0;
		margin: 0;
	}
}
#diaporama_geolocation_coords p
{
	position: relative;
	padding-left: 1.8em;
	height: 2em;
	display: inline-flex;
	align-items: center;

	&::before
	{
		content: '\e914';
		font-family: "IcoMoon";
		font-size: 180%;
		color: #404040;
		position: absolute;
		z-index: -1;
		display: flex;
		align-items: center;
		top: 0;
		left: -5px;
		width: 1em;
		height: 100%;
	}
}

/* Sidebars : édition */
.diaporama_sidebar[data-name="edit"]
{
	p.field:first-child
	{
		margin-top: 0;
	}
	.large
	{
		margin-top: 2px;
	}
	input[type="text"], textarea
	{
		width: 96%;
		min-width: 96%;
		max-width: 96%;
	}
}

/* Sidebars : bouton submit */
.diaporama_buttons
{
	margin-top: 30px;
	display: flex;
	align-items: center;
	position: relative;
}
.diaporama_buttons input[type="submit"]
{
	background: #404040;
	color: white;
	padding: 6px 10px;
	border: none;
	font-size: 120%;
	border: 1px solid #C0C0C0;
	cursor: pointer;

	&:not([disabled]):focus
	{
		outline: 1px solid #404040;
		outline-offset: 1px;
	}
	&:not([disabled]):active
	{
		padding: 7px 9px 5px 11px;
	}
	&:not([disabled]):is(:hover, :focus)
	{
		background: #353535;
	}
	&[disabled]
	{
		cursor: default;
		background: #aaa;
		color: #656565;
	}
}

/* Sidebars : icône de chargement */
#diaporama_edit_loading
{
	margin: 0 0 0 10px;
	width: 24px;
	height: 24px;

	&::after
	{
		content: '';
		background: #404040;
		position: absolute;
		width: 26px;
		height: 26px;
		border-radius: 50%;
		transform: scale(0);
		opacity: 1;
		animation: diaporama-edit-loading 0.8s ease-out infinite;
	}
}
@keyframes diaporama-edit-loading
{
	100%
	{
		transform: scale(1.0);
		opacity: 0;
	}
}

/* Sidebars : messages de rapport */
*[class^="diaporama_report_"]
{
	font-size: 120%;
	display: inline-block;
	line-height: 1.5em;
	color: #333;
	position: absolute;
	top: 0;
	left: 2em;

	span
	{
		font-family: "IcoMoon";
		font-size: 150%;
		position: relative;
		display: inline-block;
		text-align: right;
		width: 1.5em;
		margin-left: -1.9em;
		padding-right: 0.4em;
		top: 4px;
	}
}

/* Sidebars : options */
.diaporama_sidebar[data-name="settings"]
{
	*[data-mobile="0"]
	{
		display: none;
	}
	input[type="text"]
	{
		display: block;
	}
	div div
	{
		margin-bottom: 30px;
	}
	h2
	{
		font-size: 110%;
		font-weight: bold;
	}
}
#diaporama_transitions_effect
{
	display: block;
}

/* Durée d'affichage des fichiers (sur mobile) */
#diaporama_auto_duration_option
{
	display: flex;
	margin: 10px 0;

	span
	{
		font-size: 180%;
		font-weight: bold;
		margin-left: 15px;
		color: #646464;
		white-space: nowrap;
		margin-top: -1px;
		width: 4em;
		text-align: right;
	}
}
.diaporama_sidebar input[type="range"]
{
	&, &:hover
	{
		--range-thumb-color: #646464;
		--range-track-color: #646464;
		--range-thumb-size: 24px;
	}
	&:focus-visible
	{
		outline: 2px solid #555;
	}
}

/* Carrousel */
#diaporama_carousel
{
	position: absolute;
	display: none;
	left: 0;
	bottom: var(--control-bar-height);
	overflow: hidden;
	z-index: 1;
	width: 20000px;
	background: black url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAaUlEQVQ4ja3VORLAMAhDUSrd/8akcOKMxxsgFWpfqW8AHICbGbXPAeCmBl9PC9LoBqyjB7CGXsA8GgBzaBCMowkwhibBO1oAz2gR3KMEuEZJcEYF4IiKwB8Vgg0Vg+2kpeAKZcGeE3WnHgcNvrlq9x8vAAAAAElFTkSuQmCC);
}
#diaporama_carousel_thumbs
{
	border-top: 2px solid #111;
	padding: 0 0 0 38px;
	height: 100%;
}
#diaporama_carousel > a
{
	width: 32px;
	height: calc(100% - 2px);
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 250%;
	font-family: "IcoMoon";
	background: black;
	color: white;
	border: 2px solid #111;
	position: absolute;
	left: 0;
	bottom: -2px;
	z-index: 2;
	cursor: pointer;

	&:first-child
	{
		border-left: 0;
	}
	&:last-child::after
	{
		content: '';
		position: absolute;
		top: -2px;
		right: -802px;
		height: calc(100% + 2px);
		width: 800px;
		background: black;
	}
	& span
	{
		transform: scale(1.0, 2.0);
		margin-top: -5px;
	}
	&.disabled
	{
		color: #525252;
		cursor: default;
	}
}

/* Carrousel : vignettes */
#diaporama_carousel dl
{
	display: block;
	float: left;
    vertical-align: top;
	margin: 8px 4px;
	padding: 0;
	border: 1px solid #646464;
	background: #151515;
	border-radius: 3px;
	cursor: pointer;

	&:hover, &.current:hover
	{
		border-color: white;
	}
	&.current
	{
		position: relative;
		border: 2px solid white;
		margin: 7px 3px;
	}
}
#diaporama_carousel dt
{
    position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;

	a, a:hover
	{
		border: 0;
		padding: 0;
		margin: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	a img
	{
		margin: 0;
		padding: 0;
		border: 0;
		max-width: 100%;
		max-height: 100%;
	}
}
#diaporama_carousel .duration
{
	position: absolute;
	z-index: 1;
	bottom: 5px;
	right: 0;
	display: flex;
	align-items: center;
	padding: 2px 5px;
	background: #222;
	color: #fff;
	opacity: 0.8;
}

/* Position dans la série */
#diaporama_position
{
	display: flex;
	align-items: center;

	span
	{
		padding: 0 5px;
		white-space: nowrap;
		font-size: 80%;
	}
}

/* Favori et sélection */
#diaporama_favorite,
#diaporama_selection
{
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;

	&::before
	{
		font-family: "IcoMoon";
		position: absolute;
		top: calc(var(--control-bar-height) + 16px);
		right: 20px;
		color: white;
		background: var(--color);
		z-index: 1;
		border-radius: 50%;
		width: 50px;
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0.9;
	}
}
#diaporama_favorite.in::before
{
	content: '\e910';
	font-size: 200%;
}
#diaporama_selection.in::before
{
	content: '\ea52';
	font-size: 170%;
}
#diaporama_favorite.in + #diaporama_selection.in::before
{
	top: calc(var(--control-bar-height) + 78px);
}

/* Touches pour le contrôle au clavier */
#diaporama_keyboard_k p
{
	line-height: 1.8em;
}
#diaporama_keyboard_k kbd
{
	padding: 3px 6px;
	border: 1px solid #555;
	border-width: 1px 1px 3px 1px;
	border-radius: 3px;
	font-size: 130%;
}
#diaporama_keyboard
{
	position: absolute;
	display: none;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: rgba(50,50,50,0.5);
	z-index: 5;

	h1
	{
		font-size: 160%;
		font-weight: bold;
		padding: 15px 20px 10px;
		display: flex;
		align-items: center;
		border-bottom: 1px solid #eee;

		span:first-child
		{
			margin: -10px 15px 0 0;
			font-family: "IcoMoon";
			font-size: 250%;
			font-weight: normal;
		}
	}
	h2
	{
		font-size: 140%;
		font-weight: normal;
		letter-spacing: .05em;
		margin: 0 25px 15px 25px;
	}
	ul
	{
		margin: 20px 25px;
	}
	li
	{
		margin-top: 10px;
		line-height: 1.5em;
		color: #eee;
		font-size: 110%;
	}
	kbd
	{
		display: inline-block;
		margin: 0 5px 5px 0;
		padding: 5px 10px;
		border: 1px solid silver;
		border-width: 1px 1px 3px 1px;
		border-radius: 4px;
		font-size: 150%;
		white-space: nowrap;
		background: #111;
	}
}
#diaporama_keyboard_inner
{
	background: rgba(17,17,17,0.9);
	max-height: 100%;
	overflow: auto;
	scrollbar-width: thin;
	color-scheme: dark;
}
#diaporama_keyboard_keys
{
	display: grid;
	grid-template-areas: "nav" "infos" "auto" "carousel" "other" "special";
	padding-top: 20px;

	@media (min-width: 1000px)
	{
		& { grid-template-areas: "nav infos" "auto carousel" "other special"; }
	}
	@media (min-width: 1400px)
	{
		& { grid-template-areas: "nav infos other" "auto carousel special"; }
	}

	div
	{
		&:nth-child(1) { grid-area: nav; }
		&:nth-child(2) { grid-area: auto; }
		&:nth-child(3) { grid-area: infos; }
		&:nth-child(4) { grid-area: carousel; }
		&:nth-child(5) { grid-area: other; }
		&:nth-child(6) { grid-area: special; }
	}
}



@media (min-width: 600px)
{
	#diaporama
	{
		--control-bar-height: 28px;
	}
	#diaporama_breadcrumb
	{
		margin-left: 0;
	}
	#diaporama_position,
	#diaporama_auto_mode
	{
		display: flex;
		width: 30%;
	}
	#diaporama_position span
	{
		font-size: 100%;
	}
	#diaporama_auto_mode > *:nth-last-child(-n+3)
	{
		display: inline;
	}
	#diaporama_auto_message
	{
		top: calc(var(--control-bar-height) + 50px);
		left: 50px;
		padding: 20px;
		font-size: 350%;
		width: 3em;
		height: 3em;
	}

	/* Icônes */
	#diaporama_home
	{
		display: flex;
	}

	/* Hauteurs des barres de contrôle */
	#diaporama_top,
	#diaporama_bottom
	{
		height: var(--control-bar-height);
		font-size: 110%;
		padding: 0;
	}
	#diaporama_carousel
	{
		bottom: 28px;
	}
	.diaporama_sidebar
	{
		top: var(--control-bar-height);
		border-left: 5px solid #404040;
	}

	/* Favori et sélection */
	#diaporama_favorite.in::before,
	#diaporama_selection.in::before
	{
		top: calc(var(--control-bar-height) + 30px);
		right: 30px;
		width: 74px;
		height: 74px;
	}
	#diaporama_favorite.in::before
	{
		font-size: 300%;
	}
	#diaporama_selection.in::before
	{
		font-size: 240%;
	}
	#diaporama_favorite.in + #diaporama_selection.in::before
	{
		top: calc(var(--control-bar-height) + 126px);
	}

	/* Texte affiché sur l'image */
	#diaporama_title
	{
		font-size: 160%;
	}
	#diaporama_description
	{
		font-size: 130%;
	}

	/* Sidebars */
	.diaporama_sidebar
	{
		width: 350px;

		&[data-name="settings"]
		{
			*[data-mobile="0"]
			{
				display: block;
			}
			*[data-mobile="1"]
			{
				display: none;
			}
		}
	}

	/* Sidebars sans barres de contrôle */
	#diaporama.nocontrols
	{
		#diaporama_auto_message
		{
			top: 50px;
		}
		#diaporama_favorite.in::before,
		#diaporama_selection.in::before
		{
			top: 30px;
		}
		#diaporama_favorite.in + #diaporama_selection.in::before
		{
			top: 126px;
		}
	}
}