@import url("https://fonts.googleapis.com/css2?family=Nerko+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap');



html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nerko One", cursive;
  font-weight: 400;
  font-size: 25px;
  font-style: normal;
  background-color: #cca888;
  color: #d4ccd2;
}


body:has(> #lightbox.active) {
  overflow-y: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: #262929;
}

h2 {
  font-size: 55px;
}

h3 {
  font-family: "Noto Sans Mono", monospace;
  font-size: 25px;
  color: #d4ccd2;
}

.p2 {
  color: #545a6b;
  font-family: "Noto Sans Mono", monospace;
}

.p2:hover {
  color: #262929;
  transition: color 0.5s ease;
}

a.mail:hover {
  color: #6495ED;
  font-size: 1.2em;
}

p {
  font-family: "Noto Sans Mono", monospace;
  font-size: 35px;
  color: #262929;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  color: #262929;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  color: #d4ccd2;
  font-family: "Nerko One", cursive;
  font-weight: bold;
  font-size: 20px;
}

nav a {
  text-decoration: none;
  color: #262929;
  font-size: 1em;
  transition: color 0.3s ease;
  color: #262929;
  font-family: "Nerko One", cursive;
}

nav a:hover {
  color: #6495ED;
}

#hero {
  height: 40vh;
  background-color: #262929;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #d4ccd2;
  font-size: 2em;
  font-weight: bold;
}

#hero2 {
  height: 30vh;
  background-color: #262929;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #d4ccd2;
  font-size: 2em;
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* nbr d'images par lignes*/
  gap: 20px;
  padding: 40px;
}



@media (min-width: 375px) {
  h2 {
    font-size: 38px;
  }

  p {
    font-size: 15px;

  }

  .logo {
    font-size: 20px;
    font-weight: bold;



  }

  nav ul {
    font-size: 20px;
  }

}

@media (min-width: 425px) {
  h2 {
    font-size: 40px;
  }

  p {
    font-size: 20px;
  }

  .logo {
    font-size: 20px;
    font-weight: bold;

  }

  nav ul {
    font-size: 20px;
  }

}



@media (min-width: 768px) {

  p {
    font-size: 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  h2 {
    font-size: 60px;
  }

  .logo {
    font-size: 20px;
    font-weight: bold;

  }

  nav ul {
    font-size: 25px;
  }
}

@media (min-width: 1025px) {
  p {
    font-size: 25px;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  h2 {
    font-size: 90px;
  }

  .logo {
    font-size: 40px;
    font-weight: bold;
    color: #262929;
  }

  nav ul {
    font-size: 30px;
  }
}

.para {
  padding: 20vh;
}

.artwork {
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;

}

/*.artwork_large {
  height: 300px;
  width: 600px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}*/

.artwork:hover {
  transform: scale(1.05);

  /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);*/

}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-content {
  place-items: anchor-center;
  align-items: center;
  justify-content: center;
  background-color: #262929;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
}

#lightbox-desc {
  flex: 1;
  text-align: center;
}

#contact {
  padding: 30px;
  text-align: center;
  background-color: #262929;
}

.mail {
  color: #d4ccd2;
  transition: .4s all;
}

footer {
  padding: 10px;
}

.button-container-2 {
  overflow: hidden;
  font-family: "Nerko One", cursive;
  font-weight: bold;
  transition: 0.5s;
  letter-spacing: 1px;
}

.button-container-2 button {
  border-radius: 10px;
  left: 0;
  width: 30%;
  height: 7%;
  font-family: "Nerko One", cursive;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: bold;
  background-color: #262929;
  color: #d4ccd2;
  border: none;
  cursor: pointer;
  mask-image: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
  -webkit-mask-image: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png");
  mask-size: 3000% 100%;
  -webkit-mask-size: 3000% 100%;
  animation: ani2 1s steps(29) forwards;
}

.button-container-2 button:hover {
  animation: ani 0.7s steps(29) forwards;
}

.mas {
  text-align: left;
  color: #000;
  text-align: center;
  width: 100%;
  font-family: "Nerko One", cursive;
  font-size: 11px;
  font-weight: bold;
  margin-top: 17px;
  overflow: hidden;
}

@keyframes ani {
  from {
    mask-position: 0 0;
    -webkit-mask-position: 0 0;
  }

  to {
    mask-position: 100% 0;
    -webkit-mask-position: 100% 0;
  }
}

@keyframes ani2 {
  from {
    mask-position: 100% 0;
    -webkit-mask-position: 100% 0;
  }

  to {
    mask-position: 0 0;
    -webkit-mask-position: 0 0;
  }
}