body,html {
	padding:0;
	margin:0;
	font-family:"Chaparral", times, nimes-new-roman, serif;
	position:relative;
}
h1, h2, article header p{
	font-family:"Snippet",tahoma,arial,helvetica,sans-serif;
	font-weight:400;
	margin:0;
}
a {color:#000;text-decoration:none;}


main{
	position:relative;
	margin: 0 auto;
	max-width: 1300px;
	z-index:0;
	width:94%;
	padding-left:2%;
	max-width: calc(1300px - 2%);
}
main>p{
	border-left:2px solid #ccc;
	padding:80px 0 0 20px;
	font-size:22px;
	margin-bottom:0;
	overflow:hidden;
	font-style: italic;
}
p a.button{
	color:#fff;
	background:var(--ateliers);
	padding:5px 20px;
	border-radius:20px;
	transition:all .25s;
	text-decoration:none;
	white-space:nowrap;
	margin-top:10px;
	display: block;
	width:max-content;
	float:right;
	font-style: normal;
}
ol{
	list-style:none;
	border-left:2px solid #ccc;
	padding:50px 0 1px 0;
	margin-top:0px;
	max-height:10000000vh;
}
ol>li{
	padding-left:94px;
	position:relative;
	margin-bottom:60px;
	padding-top:55px;
	background:#fff;
}
ol header:not(#home){
	display: block;
	width: auto;
	padding: 0;
	color: var(--ateliers);
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
	height: auto;
	position:absolute;
	z-index:0;
	top:15px;
	bottom:0px;
	left:-8px;
}
time{
	position:sticky;
	top:70px;
	font-size:28px;
	color:var(--ateliers);
}
time:before{
	content:"";
	display:inline-block;
	border:2px solid #ccc;
	width:12px;
	height:12px;
	border-radius:10px;
	background:#fff;
	margin-right:6px;
}
ol header h2{
	position:absolute;
	top:-7px;
	width:max-content;
	left:100px;
	font-size:38px;
}
ol p{margin:5px 0;font-size:18px;}
ol ul{padding:8px 0;list-style:none;}
ul.tags{max-height:150px;}
ul.tags li{
	display:inline-block;
	padding:4px 10px 4px 8px;
	box-shadow:0 0 3px #ccc;
	background:#fff;
	color:#000;
	border-radius:6px;
	height:20px;
	line-height:24px;
	margin-right:4px;
	margin-bottom:4px;
}
ul.tags li:before{
	content:"";
	display:inline-block;
	vertical-align:top;
	margin-top:2px;
	width:16px;
	height:16px;
	margin-right:6px;
	background:url(/scripts/at_public.svg) no-repeat center;
	background-size:cover;
}
ul.tags li.temps:before, ul.tags li.medium:before, ul.tags li.lieu:before{
	background-image:url(/scripts/at_agenda.svg);
	margin-top:1px;
	width:18px;
	height:18px;
}
ul.tags li.medium:before{
	background-image:url(/scripts/at_materiel.svg);
}
ul.tags li.lieu:before{
	background-image:url(/scripts/at_lieu.svg);
	margin-left:-2px;
	margin-right:4px;
	
}
.ulgallery{position:relative;}
.ulgallery:before,.ulgallery:after{
	content:"";
	position:absolute;
	top:0;
	bottom:0;
	left:-5px;
	width:0px;
	height:100%;
	background:red;
	pointer-events:none;
	background:linear-gradient(to right, #fff 13%, transparent);
	transition:all .1s;
}
.ulgallery:after{right:-5px;left:auto;background:linear-gradient(to left, #fff 13%, transparent);width:40px;}
.ulgallery:has(ul.gallery.scrollLeft):before{width:40px;}
.ulgallery:has(ul.gallery.scrollMax):after{width:0px;}
ul.gallery{
	display:flex;
	overflow:auto;
	padding-bottom:15px;
	margin-left:-5px;
	width:calc(100% + 5px);
}
ul.gallery li{margin:0 5px;}
ul.gallery li a{
	border-radius:10px;
	overflow:hidden;
	display:block;
	height:300px;
	max-width:460px;
	box-shadow:0 0 4px #ccc;
}
ul.gallery li a img{height:100%;max-width:460px;object-fit:cover;}
.medium header h2{font-size:32px;top:-4px;}
.medium ul.gallery li a{height:200px;border-radius:8px;}
.medium ul.gallery li a:not(.free) img{max-width:280px;}
.mini header h2{font-size:26px;top:1px;}
.mini ul.gallery li a{height:100px;border-radius:6px;}

footer{
	max-height:350px;
	border-top:1px solid #ccc;
	padding-top:10px;
	overflow:hidden;
}
footer br{clear:both;display:none;}
footer a{
	display:inline-block;
	background:var(--ateliers);
	color:#fff;
	border-radius:5px;
	padding:8px 16px;
	box-shadow:0 0 3px #ccc;
	margin:0 5px 8px 0;
	font-size:18px;
}
footer a.link_blog, footer a.link_iframe{
	padding-right:18px;
	float:right;
	margin-right:0;
	margin-left:5px;
}
footer a.link_blog:after, footer a.link_iframe:after{
	display:inline-block;
	vertical-align: top;
	margin-top:5px;
	margin-left:7px;
	content:"\0025BA";
	font-size:14px;
	padding:2px ;
	height:8px;
	width:8px;
	text-align:left;
	line-height:8px;
}
footer a.dl_and, footer a.dl_win, footer a.dl_mac, footer a.link_video{
	background:var(--ateliers);
	line-height:20px;
	font-size:15px;
	padding:8px 16px 8px 12px;
	clear:both;
}
footer a.link_video:before {
	content: '';
	height:0;
	display:inline-block;
	vertical-align: top;
	margin-top:3px;
	border: 6px solid transparent;
	border-left: 10px solid white;
}
footer a.dl_and:before, footer a.dl_win:before, footer a.dl_mac:before{
	content:"";
	display:inline-block;
	vertical-align: top;
	height:18px;
	width:18px;
	background:url("https://thomas-daveluy.fr/la-galerie/img/_android.png") no-repeat center;
	background-size:contain;
	margin-right:5px;
}
footer a.dl_win:before{background-image:url("https://thomas-daveluy.fr/la-galerie/img/_windows.png");}
footer a.dl_mac:before{background-image:url("https://thomas-daveluy.fr/la-galerie/img/_mac.png");}

/*VIEWER*/
body{
	display:flex;
	flex-wrap:nowrap;
	max-width:100vw;
	overflow-x:hidden;
}
.left, #viewer, .viewer .left>header{width:100%;}
.left, #viewer, .left>header, .left header ul, .left>header p, ol, ol>li, ol>li ul.gallery li a, ol>li  footer, ol>li:after, ol:after, ol:before, ul.tags, .left>header:before, .left h2, h1 a{transition: all .3s;}
#viewer{width:0%;background:#fff;}
.viewer .left{width:29vw;margin-left:1vw}
.viewer #viewer{width:calc(75vw - 100px);margin-left:100px;}
#viewer iframe{
	border:3px solid var(--ateliers);
	border-radius:10px;
	position:sticky;
	top:70px;
	margin-left:0px;
	width:calc(70vw - 115px);
	height:calc(100vh - 85px);
	box-shadow:0 2px 6px #ccc;
}
#close{
	width:50px;
	height:50px;
	position:fixed;
	z-index:100;
	top:80px;
	right:calc(70vw - 102px);
	text-align:right;
	cursor:pointer;
}
#close:after{
	content:"\00D7";
	color:#fff;
	font-size:40px;
	text-align:center;
	line-height:38px;
	z-index:-10;
	background:var(--ateliers);
	display:inline-block;
	width:44px;
	height:44px;
	border-radius:6px 0 0 6px
}

ol:after, ol:before{
	pointer-events:none;
	content:"";
	position:absolute;
	background:linear-gradient(to bottom, #fff 10%, transparent);
	position:fixed;
	left:0;
	right:0;
	top:105px;
	height:40px;
	z-index:2;
	opacity:0;
}
ol:before{
	background:linear-gradient(to top, #fff 30%, transparent);
	bottom:0px;
	top:auto;
	height:80px;
	z-index:2;
}

ol>li:after{
	pointer-events: none;
	content:"";
	position:absolute;
	top:calc(50% - 30px);
	right:-58px;
	border:30px solid transparent;
	border-left-color:#fff;
	transform-origin: left center;
	transform: scale(0);
}
.viewer ol>li.selected:after{border-left-color:var(--ateliers);transform: scale(1);}
.viewer ol>li.selected{
	width:calc(100% - 64px);
	border-radius: 0 10px 10px 0;
	padding-right:20px;
	background:var(--ateliers);
	color:#fff;
	position : sticky;
	bottom:12px;
	top:70px;
	z-index:10;
	box-shadow:
		0px -12px 0px 0px #fff,
		0px 10px 0px 0px #fff,
		20px 12px 15px 15px #fff,
		20px -12px 15px 15px #fff;
}
.viewer ol>li.selected time{color:#fff;}
.viewer ol>li.selected ul.gallery{padding-bottom:0;}
.viewer ol>li.selected ul.gallery li{overflow:hidden;}
.viewer ol>li.selected ul.gallery li a{max-height:0px;border-radius:0px;}
.viewer ol>li.selected footer {
	max-height:0px;
	padding-top:0;
	padding-bottom:0;
	border-color:transparent;
}
.viewer .left .selected h2{
	font-size:34px;
	line-height:38px;
	top:0;
	color:#fff;
}

@media screen and (max-width:1400px){
	ul.gallery {
		display: flex;
		overflow: auto;
		padding-bottom: 15px;
		margin-left: -5px;
		width: calc(100% + 15px);
	}
	.ulgallery:after {right:-15px;}
	.viewer .left {width: calc(29vw + 45px);}
	.viewer #viewer {width: calc(75vw - 50px);margin-left: 55px;}
	.viewer ol > li.selected {width: calc(100% - 14px);padding-top:80px;}
	.viewer ol > li {padding-top:80px;}
	.viewer ol header h2 {
		white-space:nowrap;
		position: relative;
		display:block;
		left:21px;
		margin-top:5px;
		top: 0!important;
		font-size: 28px!important;
		width:calc(100% - 25px);
		overflow:hidden;
	}
	.viewer ol > li {padding-left: 15px;}
	.viewer ol header {right:0;}
	.viewer time{position:relative;display:block;top:0;}
	.viewer ul.gallery {width: calc(100% + 5px); }
	.viewer ul.gallery li a{max-height:100px;}
}

@media screen and (max-width:940px){
	main>p{padding:120px 0 0 20px;}
	.viewer #viewer {width: calc(70vw - 50px);margin-left: 50px;}
	.viewer #viewer iframe{width: calc(100% - 15px);height: calc(100vh - 114px);}
	.viewer ol > li.selected::after {transform: scale(.5);}
	.viewer ol header h2 {margin-top:3px;font-size: 24px!important;}
	#close {right: calc(70vw - 95px);top:110px;}
	#close:after {border:2px solid #fff;border-right:0;border-radius: 8px 0 0 8px;}
	.viewer ol > li.selected {top:100px;}
	#viewer iframe {top: 100px;}
}

@media screen and (max-width:760px){
	body{display:block;}
	main{display:block;overflow:hidden;overflow-x:auto;}
	main>p{padding-top:60px;font-size:16px;text-align:justify;padding-right:20px;}
	ol{margin-top:0;padding-top:0px;}
	ol>li{padding-left:25px;margin-bottom:15px;}
	ol header:not(#home){position:relative;top:0;left:-2px;}
	ol header time{top:0;margin-left:-32px;position:relative;}
	ol header time:before{margin-right:17px;}
	ol header h2{
		position:relative;
		display:block;
		margin:5px 0;
		top:0;
		left:0;
		font-size:42px;
		width:100%;
	}
	ul.gallery {margin-left: -5px;width: calc(96vw - 30px);}
	.ulgallery::after {right: -5px;}
	.medium header h2{font-size:36px;top:0px;}
	.medium ul.gallery li a{height:200px;border-radius:8px;}
	.medium ul.gallery li a:not(.free) img{max-width:280px;}
	.mini header h2{font-size:30px;top:0px;}
	.mini ul.gallery li a{height:100px;border-radius:6px;}
	.viewer .left{margin-left:0;width:100%;}
	.viewer .left header {width:0;max-height:1500px;background:none;}
	.viewer .left header p {background:none;}
	.viewer .left header ul{pointer-events:none;top:0px;opacity:0;}
	.viewer ol{border-left:0px solid #ccc;max-height:0px;overflow:hidden;}
	.viewer ol > li.selected:after{opacity:0;}
	.viewer ol > li.selected{
		position:fixed;
		bottom:auto;
		top:52px;
		left:0;
		right:0;
		z-index:100;
		padding:20px 20px 10px 20px;
		width: calc(100% - 40px);
		border-radius:0;
		overflow:hidden;
		overflow-y:auto;
	}
	.viewer ol li.selected header {width:100%;}
	.viewer ol > li.selected time{
		position: absolute;
		margin-left:0;
		font-size:0;
		top:-25px;
		pointer-events:none;
		opacity:0;
	}
	.viewer ol > li.selected h2{margin:0;left:0;font-size:36px!important;}
	.viewer ol > li.selected p{max-height:70px;overflow:hidden;overflow-y:auto;text-overflow: ellipsis;}
	.viewer ol > li.selected ul.tags, .viewer ol > li.selected ul.gallery{display:none;}
	.viewer h1 a {font-size: 18px;}
	#viewer, .viewer #viewer{
		position:fixed;
		width:100%;
		margin:2%;
		height:auto;
		pointer-events:none;
		bottom:0px;
		top:100vh;
	}
	#viewer iframe{max-height:calc(100% - 4px);opacity:0;}
	.viewer #viewer{
		height:auto;
		pointer-events:all;
		top:208px;
		z-index:10;
	}
	.viewer #viewer iframe{opacity:1;width: calc(100% - 20px);}
	#close {
		top: 184px;
		right: 24px;
		height:34px;
		width:auto;
	}
	#close:after {
		height:29px;
		line-height:30px;
		border-radius:8px 8px 0 0;
		border:3px solid #fff;
		border-bottom:0;
		content:"× FERMER";
		font-size:18px;
		padding:0 10px;
		white-space:nowrap;
		width:auto;
	}
}