body {
  margin: 0;
  font-family: "Raleway", sans-serif;
}

.header {
  height: 77px;
  border-bottom: 1.9px solid black;
  display: flex;
  align-items: center;
}

.fleche img {
  width: clamp(80px, 10vw, 140px);
  margin-left: 28px;
}

.fleche:hover {
  opacity: 0.4;
}

h1 {
  text-align: center;
  font-weight: 200;
  font-size: clamp(40px, 5vw, 60px);
  margin-top: 70px;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 20px;
}

.portraits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 565px;
  margin: 70px auto;
  gap: 2px;
  box-shadow: -4px 4px 4px rgba(100, 100, 100, 1),
    4px 4px 4px rgba(100, 100, 100, 1),
    0 4px 4px rgba(100, 100, 100, 1);
}

.portraits-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  box-shadow: 4px 4px 4px rgba(100, 100, 100, 1);
  border-radius: 2%;
  transition: 0.2s;
  user-select: none;
  -webkit-user-drag: none;
}

.portraits-grid img:hover {
  cursor: pointer;
  opacity: 0.2;
}

.ligne {
  border-bottom: 1px solid black;
  width: 540px;
  height: 250px;
  margin: -220px auto;
  margin-bottom: 50px;
}

.fullscreen-container {
  position: fixed;
  inset: 0;
  background: rgb(50, 50, 50);
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  user-select: none;
  -webkit-user-drag: none;
}

.fullscreen-close {
  position: absolute;
  top: 0px;
  right: -50px;
  width: 200px;
  height: auto;
  cursor: pointer;
  opacity: 1;
}

.fullscreen-close:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  .fleche img {
    margin-left: 0;
  }

  h1 {
    font-size: 32px;
    margin-top: 40px;
    text-underline-offset: 10px;
  }

  .portraits-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 60px 0;
    gap: 20px;
    box-shadow: none;
  }

  .portraits-grid img {
    width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 1%;
  }

  .ligne {
    width: 90%;
    height: auto;
    margin: 40px auto;
  }

  .fullscreen-container {
    padding: 20px;
    overflow: hidden;
  }

  .fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .fullscreen-close {
    width: 250px;
    top: -15px;
    right: -80px;
  }
}