@font-face {
  font-family: police1;
  src: url(fonts/HealTheWebA-Regular.otf);
}

@font-face {
  font-family: police2;
  src: url(fonts/WorkSans-Regular.ttf);
}

@font-face {
  font-family: police3;
  src: url(fonts/Pixelta.ttf);
}

@font-face {
  font-family: police4;
  src: url(fonts/Khand-Medium.otf);
}

p {
  margin-left: 20px;
}

h1{
  font-family: police3;
  font-size: 70px;
}

h2 {
  font-family: police4;
}
h1, h2 {
 margin: 20px;
}

main{
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

body {
  margin: 0px;    
  font-family: police2; 
  background-color: black;
  color: rgb(0, 0, 0);
}

.gallery-container {
}

.gallery-title {  
}

a img:hover {
  filter: grayscale(3);
}

#entete {
  display: flex;
  justify-content: space-between;
  vertical-align: middle;
}

h2 {
  width: 60%;
}

h3 {
  width: 20%; 
  margin-left: 10%;
}

h4 {
  margin: 20px;
}

/*************************************** CSS SCROLL HORIZONTAL GALLERY *************************/

.scroll-gallery {
  display: none;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;         
  flex-wrap: nowrap;
}

.scroll-gallery img {
  display: block;
  height: 300px;
  width: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.scroll-gallery::-webkit-scrollbar {
  height: 8px;
  display: none;
}

.image-box {
  flex: 0 0 auto;
  scroll-snap-align: start;
  overflow: hidden;
}

.infos {
  display: flex;
  justify-content: space-between;
  border-bottom: solid rgb(0, 0, 0) 3px;
  cursor: pointer; 
}

/*************************************** CSS POPUP *************************/

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
}

#popup img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:80%;
  height: 80%;
  object-fit: contain;
}

#popup p {
  color: aqua;
  text-decoration:underline;
  cursor: pointer;
}

/*********************************************************************************************************************/

/* SMARTPHONE MODE PORTRAIT */
@media screen and (orientation: portrait) {

  .scroll-gallery img {
    display: block;
    height: 150px;
    width: auto; 
    object-fit: cover;
  } 

}
