/* RESET & BASE */
*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:"Inter", Helvetica, Arial, sans-serif;
  font-size:16px;
  background:#f8f8f6;
  color:#111;
  font-weight:300;
  letter-spacing:0.025em;
  line-height: 1.5;
}

@font-face{
	font-family: "Inter";
	src: url("/fonts/Inter-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/* HEADER & MENU */
header{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:5vh 10vh 2vh 10vh;
  box-sizing: border-box;
}
.menu{
	display:flex;
	justify-content:flex-start;
	margin-bottom:0px;
	white-space:nowrap;
}
.filter-menu{
  display: block;
	padding-top:0;
}
.menu-toggle{
  display: none;
}

/*LINKS*/
.menu a{margin-right:20px;}
a{text-decoration:none;color:#111;opacity:0.6;}
a.active{text-decoration:line-through;cursor:default;opacity:1;}
a:hover{text-decoration:none;opacity:1;}
a.active:hover {text-decoration: line-through;}
a.reset-category, a.reset-subcategory {margin-right:5px;}
a.reset-category:hover, a.reset-subcategory:hover {text-decoration:underline;}

/*TYPO*/
.main-title{font-size:16px;cursor:default;}
.category-filter a{font-size:15px;}
.subcategory-filter a{font-size:14px;}

/*GRID*/
.grid{
  display: grid;
   grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	justify-content: start;
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
  padding: 0 10vh;
  box-sizing: border-box;
}
.grid .item{
  width:100%;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc; 
  border-radius: 4px;
}
.grid .item img {
  display: block;
  width: 100%;  
  aspect-ratio: 4 / 3; 
  min-height: 6rem;
  object-fit: cover;  
  transition: transform 0.3s ease, opacity 0.3s ease;
  }

.item  img{ filter: grayscale(1);transition: filter 0.3s ease;}
.item:hover img { filter: grayscale(0);}
/*.item.lightbox-active img { opacity:0.1;}*/


.grid > [data-title="culprit"] img {
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: 50% 20%; /* 0% = haut, 50% = milieu */
	}

.item.hidden{
	opacity:0.08;
	transform:scale(0.98);
	pointer-events:none;
	transition:opacity .25s,transform .25s;
	display:none !important;
	}
	
.about {
	width: 100%;
	overflow: hidden;
	padding:0 10vh;
	box-sizing: border-box;
}

/*LIGHTBOX*/
.lightbox{
  display:none;
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background:rgba(0,0,0,.98);
  z-index:9999;
  overflow: hidden;
  padding: 5vh 10vh;
  margin:0;
   box-sizing: border-box;
}
.lightbox-content{
	display: grid;
	grid-template-columns: 60% 35%;
	/*grid-template-columns: minmax(20rem, 60%) minmax(0, 35%);*/
	grid-template-rows: auto 1fr;
	column-gap: 5%;
	width: 100%;
	height: 100%;
	
	box-sizing: border-box;
	overflow: hidden;
}
.lightbox-breadcrumb{
	grid-column: 1;
	grid-row: 1;
	position: static;
	width: 100%;
	padding-bottom: 2vh;
	font-size: 15px;
	color:white;
}
.lightbox-breadcrumb span {
    color:white;
    opacity:0.6;
    margin:0;
    white-space: nowrap;
    display: inline-block;
     cursor: default;
}


.lightbox-breadcrumb .separator {
		white-space: nowrap;
		display: inline-block;
    margin: 0 0.4em;
    opacity: 0.5;
}

.lightbox-images{
	grid-column: 1;
	grid-row: 2;
	display: flex;
  flex-direction: column;
	width: auto;
	min-height: 0;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 0;
	padding-right: 2vh;
}

.lightbox .preview {
	width: 100%;   
	flex: none;
	height:auto;
	
	overflow: hidden;
}
	
.lightbox .preview img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10; 
	min-height: 10rem;
	object-fit:cover;
	object-position: 50% 25%;
}

.thumbnails {
	width: 100%;
	flex-shrink: 0;
	padding: 2vh 0 0 0;
	overflow-x: auto;
	white-space: nowrap;
}
	
.thumbnails img {
	display: inline-block;
	width: auto;
	height: 10vh;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-right: 0.5rem;
	cursor: pointer;
	vertical-align: top;
}
.thumbnails.panorama img {
	aspect-ratio: auto;
    object-fit: contain;
	margin-right: 0;
}
.lightbox-text{
	grid-column: 2;
	grid-row: 2;
	align-self: stretch;
	width: 100%;
	min-height: 0;
	overflow-y: auto;
	padding: 0;
	padding-right: 2vh;
	margin:0;
	color: white;
	box-sizing: border-box;
}
.thumbnails img.active-thumb {opacity: 0.5;}
.lightbox-text h2.lb-title{font-weight:normal;margin-top: 0;margin-bottom:1rem;line-height:0.8;}
.lightbox-text p {margin: 0.5rem 0;line-height: 1.4;}
.lightbox-text a {color:#ffee00;}
.lb-description-short p {display: inline;}
.lb-description-short p + p::before {content: ", ";}

/* CLOSE & ARROWS */

.close, .prev, .next {
	position: fixed;
	font-weight:100;
	font-size: 5vh;
	color: #fff;
	text-shadow: 0 0 5px rgba(0,0,0,.8);
	cursor: pointer;
	user-select: none;
	z-index: 10000;
}
.close {
	top: 5vh; /*Vpadding lightbox-content*/
	right: 5vh; /*1/2 Hpadding lightbox-content*/
	transform: translate(50%,-50%);
	font-weight:300;
}
.prev, .next {
	font-weight: 200;
	top:50%;
	}
.prev { 
	left: 5vh; 
	transform: translate(-50%, -50%);
}
.next {
	right: 5vh; 
	transform: translate(50%, -50%);
}

/*PAGE ABOUT*/
.about {
	padding: 0 10vh;
	cursor:default;
}
.about-block {
	display: flex;
	gap: 4rem;
	margin-bottom: 2.5rem;
}
.about-titre {
	font-size: 15px;
	color: #111;
	min-width: 120px;
	letter-spacing: 0;
	flex-shrink: 0;
	opacity: 1;
}
.about-liste {
	font-size: 14px;
	line-height: 1.6;
	color: #111;
	opacity: 0.8;
}
.about-liste a{
	opacity:0.5;
	text-decoration:none;
}
.about-liste a:hover{
	opacity:0.7;
	}
	
/*ScrollBars*/

.lightbox-images,
.lightbox-text,
.lightbox-content {
	scrollbar-width: auto;
	scrollbar-color: #fff #222;
	}

.lightbox-images::-webkit-scrollbar,
.lightbox-text::-webkit-scrollbar,
.lightbox-content::-webkit-scrollbar {
	width: 10px;
	}

.lightbox-images::-webkit-scrollbar-track,
.lightbox-text::-webkit-scrollbar-track,
.lightbox-content::-webkit-scrollbar-track {
	background: #222;
	}

.lightbox-images::-webkit-scrollbar-thumb,
.lightbox-text::-webkit-scrollbar-thumb,
.lightbox-content::-webkit-scrollbar-thumb {
	background: #fff;
	border-radius: 2px;
	}

/* MEDIA QUERIES */
@media (max-width: 768px) {

.lightbox-content {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 2vh 5vh;
	overflow-y: auto;
}
.lightbox-breadcrumb {
	position: static;
	width: 100%;
	padding-bottom:1vh;
}
.lightbox-images {
	position: static;
	width: 100%;
	height: auto;
	min-height: auto;
	overflow: visible;
	flex-shrink: 0;
}
.thumbnails {
	padding:1vh 0;
}
.thumbnails img {
	height:7.5vh;
}
.lightbox-text {
	position: static;
	width: 100%;
	height: auto;
	min-height: auto;
	padding: 2vh 0;
	overflow: visible;
	flex-shrink: 0;
}

.prev, .next, .close {
	font-size: 3vh;
	font-weight:100;
}
	
.close {
    top: 3vh;
    right: 2.5vh;
    transform: translate(50%, -50%);
    font-size: 4vh;
}
	
.prev {left: 2.5vh;transform: translate(-50%, -50%);}
.next {right: 2.5vh; transform: translate(50%, -50%);}
} 

@media (max-width: 600px) {

header {
	position: relative;
	padding:2vh 5vh;
}
.grid {
	padding: 0 5vh;
	grid-template-columns: minmax(0, 1fr);
	min-width: 12rem;
}
.grid .item {
	width: 100%;
	min-width: 0;
	max-width: none;
}
.menu-toggle {
	display: block;
	position: absolute;
	top: 1.5vh;
	right: 5vh;
	border: 0;
	padding: 0;
	background: none;
	font: inherit;
	font-size: 1.5rem;
	color: #111;
	cursor: pointer;
}
.filter-menu {
	display: none;
}
.filter-menu.open {
	display: block;
	width: 100%;
}
.filter-menu .menu a {
    margin-right: 10px;
}
.filter-menu .menu a.reset-category,
.filter-menu .menu a.reset-subcategory,
.filter-menu .menu a.reset-type {
	margin-right:2.5px;
}
.thumbnails img {
	height:5vh;
	}
} 


