@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');

@font-face {
    font-family: 'Commune_Nuit_Debout';
    src:    url('../polices/NuitDebout/Commune-Nuit_Debout_web.eot');
    src:    url('../polices/NuitDebout/Commune-Nuit_Debout_web.eot?#iefix') format('embedded-opentype'),
            url('../polices/NuitDebout/Commune-Nuit_Debout_web.woff') format('woff'),
            url('../polices/NuitDebout/Commune-Nuit_Debout_web.woff2') format('woff2'),
            url('../polices/NuitDebout/Commune-Nuit_Debout_web.ttf') format('truetype'),
            url('../polices/NuitDebout/Commune-Nuit_Debout_web.svg#svgFontName') format('svg');
    font-weight: normal;
}

*{
	box-sizing: border-box;
}	

body{
	padding: 20px;
	font-family: "Palatino Linotype", serif;
}

h2 {
	display:none;
}

.layout{
	max-width: 1000px;
	margin: auto;
}

main {
    margin-bottom: 50px;
    position: relative;
}

header {
    text-align: center;
    margin: 50px 5vw;
    overflow: hidden;
    padding-bottom: 10px;
}

header a {
    color: #202020;
	font-size: 16px;
    /* font-size: clamp(1rem, 1.7vw, 1.5rem); */
    text-transform: uppercase;
    padding: 5px 0 12px 0;
    margin: 0 20px;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    position: relative;
    visibility: hidden;
}

header a::after,
header a.is-active span {
    display: block;
    content: ' ';
    background-color: #e8e8e8;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

header a.is-active span {
    background-color: #202020;
    z-index: 1;
}

header .text {
    position: relative;
    visibility: hidden;
    margin-bottom: 10px;
    /* font-size: clamp(0.7rem, 1.4vw, 1.2rem); */
    font-size: 14px;
}

header .text span:hover {
    cursor: pointer;
}

header .text span#arrow {
    display: inline-block;
}

header .text [data-arrow=""] span#arrow {
    visibility: hidden;
}


.text-overlay {
    position: absolute;
    padding: 5%;
    z-index: 1;
    background-color: rgba(47, 47, 47, 0.8);
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease-out;
    color: white;
}
.text-overlay:hover {
    cursor: pointer;
}
.text-overlay.active {
    opacity: 1;
    transform: translateX(0%);
}
.text-overlay .texte.poesie{
    margin: auto;
    width: fit-content;
}
.text-overlay .citation {
    padding-left: 50%;
    padding-bottom: 50px;
}
.text-overlay .titre {
    font-weight: bold;
    margin-bottom: 1.6em;
    text-transform: uppercase;
}
.text-overlay span.blank{
    display: inline-block;
    width: 3.6em;
}

.project-gallery{
    display:flex;
	width: 100%;
    gap: 20px;
}

.column,
.column-project{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.project,
.miniature {
    position: relative;
    overflow: hidden;
    visibility: hidden;
    max-height: 85vh;
}

@media (hover:hover) {
    .project:hover {
        cursor: pointer;
    }
    .project:hover .overlay {
        transform: translateX(0%);
        opacity: 1;
    }
}

@media (hover:none) {
    .project .overlay.show {
        transform: translateX(0%);
        opacity: 1;
    }
}


.project img,
.miniature img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
}

.project img:hover,
.miniature img:hover{
    cursor: pointer;
}

.project .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(77, 76, 76, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-101%);
    opacity: .2;
    transition: all .4s ease-in-out;
}

.project .overlay span {
    display: inline-block;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 21px;
    text-transform: uppercase;
    text-align: center;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: none;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
    /*
    padding: 4px;
    background-color: black;
    border: 2px solid white;
    */
}

/* NAV BUTTON */
nav{
	position: fixed;
	top:0;
	left:0;
	font-family: "Commune_Nuit_Debout";
	font-size:30px;
	z-index:2;
}
nav a{
	color:#404245;
	text-decoration:none;
	transition-delay: 2s;
	background-color:white;
}
nav ul{
	padding:0px;
	margin:20px;
}
nav li{
	list-style: none;
	margin:20px;
	opacity: 0;
}
.bouton{
	border-bottom:solid transparent 1px;
	display: inline;
	transition-duration:500ms;
}
.bouton:hover{
	border-bottom: solid black 1px;
	transition-delay: 100ms;
	transition-duration:500ms;
}

@media (max-width:768px){
    .project-gallery{
        flex-direction: column;
    }
    .text-overlay .citation {
        padding-left: 30%;
    }
}

@media (max-width:568px){
    .text-overlay .citation {
        padding-left: 10%;
    }
}
