@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #fff;
  color: #222;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
}

/* PORTFOLIO */

.portfolio-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.portfolio-page a {
  color: #222;
  text-decoration: none;
  font: inherit;
}

.portfolio-page a:hover {
  color: #222;
  text-decoration: none;
}


/* HEADER */

.site-header {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-name {
  font-size: 22px;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-style: italic;
}

/* CARROUSEL */

.artwork {
  width: 100%;
  padding: 2px 20px 60px;
}

.artwork-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.artwork-figure {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.artwork-image {
  display: block;
  width: 100%;
  height: 82vh;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  margin: 0 auto;
}



.artwork-figure figcaption {
  margin-top: 6px;
  margin-left: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 13px;
  font-style: normal;
  text-align: left;
}


/* POINTS DE NAVIGATION */

.image-control {
  position: absolute;
  top: 35vh;
  transform: translateY(-50%);
  z-index: 2;
  width: 12px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.image-control.previous {
  left: 0;
  transform: translate(-50%, -50%);
}

.image-control.next {
  right: 0;
  transform: translate(50%, -50%);
}

.image-control span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  transition: background 0.2s ease;
}

.artwork-display:hover .image-control,
.artwork-display:focus-within .image-control {
  opacity: 1;
}

.image-control:hover span {
  background: #222;
}

.image-control:disabled {
  cursor: default;
}

.image-control:disabled span {
  background: #ddd;
}

.image-control[hidden] {
  display: none;
}

@media (hover: none) {
  .image-control {
    opacity: 1;
  }
}




/* ABOUT */

.about {
  width: 100%;
  padding: 30px 32px 60px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  text-align: left;
}

.about-content {
  width: 100%;
  max-width: 620px;
  margin: 0;
}

.about p {
  margin: 0;
  text-align: left;
}

.about-intro {
  margin-bottom: 32px;
}

.about-name {
  margin-bottom: 12px !important;
}

.about-biography {
  margin-bottom: 36px;
}

.about-biography p {
  margin-bottom: 14px;
}

.about-heading {
  margin-bottom: 16px !important;
}

.about-year {
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

.about-entry {
  margin-bottom: 5px !important;
}

@media (max-width: 600px) {
  .about {
    padding: 24px 18px 40px;
    font-size: 14px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-intro {
    margin-bottom: 28px;
  }

  .about-biography {
    margin-bottom: 32px;
  }
}



/* FOOTER : COPYRIGHT CENTRÉ */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: #222;
}

.site-footer p,
.footer-copyright {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}


/* VERSION MOBILE */

@media (max-width: 600px) {
  .site-header {
    padding: 20px 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 16px;
  }

  .site-name {
    font-size: 20px;
  }

  .artwork {
    padding: 10px 18px 40px;
  }

  .artwork-display {
    gap: 8px;
  }

  .artwork-figure {
    max-width: 100%;
  }

  .image-control {
    width: 12px;
    top: 27.5vh;
  }

  .artwork-image {
    max-height: 65vh;
  }

  .artwork-figure figcaption {
    font-size: 14px;
  }

  .site-footer {
    padding: 20px 0;
  }

  /* ABOUT — VERSION MOBILE */

  .about {
    padding: 24px 18px 40px;
    font-size: 14px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-intro {
    margin-bottom: 28px;
  }

  .about-biography {
    margin-bottom: 32px;
  }
}