* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Anonymous Pro', monospace; 
  color: #111;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Global link hover effect ---- */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Wrapper that applies the 20px padding to everything except
   the hero image and the footer border line */
.page-wrap {
  padding: 0 20px;
}

/* ---- Header ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 40px;
}

.logo {
  font-family: 'Michroma', sans-serif;
  font-size: 3rem;
  line-height: 1;
}

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

.logo a:hover {
  text-decoration: none;
}

nav ul {
  list-style: none;
  text-align: right;
}

nav ul li {
  margin-bottom: 0;
}

nav a {
  font-family: 'Anonymous Pro', monospace; 
  font-weight: 500;
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.3;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  text-decoration: line-through;
}

nav a.active:hover {
  text-decoration: line-through;
}

/* ---- Hero image (full width, no padding) ---- */
.hero {
  margin-top: 10px;
}

.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 48%; /* shift crop down toward the subject */
  display: block;
}

/* ---- Bio ---- */
.bio {
  width: 45%;
  padding-top: 60px;
  paddin-bottom: 80px;
}

.bio p {
  font-family: 'Anonymous Pro', monospace;
  font-size: 1.05rem;
   line-height: 1.4;
}

/* ---- Projects ---- */
.projects {
  padding-top: 60px;
  padding-bottom: 60px;
}

.projects h2 {
  font-family: 'Michroma', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.project-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.project-item:hover img {
  filter: invert(1);
}

.project-title {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  transform: translateY(-50%);
  font-family: 'Anonymous Pro', monospace;
  font-size: 2rem;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

/* ---- Section header (e.g. "Photos" title + line + link) ---- */
.section-header {
  padding-top: 60px;
}

.section-header h1 {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;   /* smaller than the logo */
  margin: 0 0 12px 0;  /* smaller gap to the line underneath */
  line-height: 1;
}

.section-line {
  border-top: 1px solid #111;
  width: 100%;
}

.section-link {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}

.section-link a,
.section-link a:visited {
  font-family: 'Anonymous Pro', monospace;
  font-weight: 400;
  font-size: 1rem;
  color: #111;
  text-decoration: none;
}

.section-link a:hover {
  text-decoration: underline;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.section-header .section-title-row h1 {
  margin-bottom: 0;
}

.section-title-row .section-link {
  padding: 0;
}

/* ---- Gallery ----
   Each image keeps its own natural width/height ratio.
   Row height is fixed; width is automatic based on that ratio,
   so images line up in a row without being cropped or stretched. */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  padding-bottom: 60px;
}

.gallery-row {
  display: flex;
  gap: 4px;
  width: 100%;
}

.gallery-row img {
  flex: 1 1 auto;
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

.landscape-row {
  height: 500px;
}

.portrait-row {
  height: 600px;
}

/* ---- Commissions layout ---- */
.commissions-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ---- Left column: name list ---- */
.commissions-list {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.commission-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.commission-item h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.commission-item p {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
}

.commission-item p em {
  font-style: italic;
}

.commission-item:hover h3,
.commission-item.is-active h3 {
  color: #d10000;
}

/* ---- Right column: carousel ---- */
.commissions-carousel {
  flex: 0 0 60%;
  position: sticky;
  top: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.commissions-carousel.is-visible {
  opacity: 1;
  visibility: visible;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 160px); /* fits on screen without scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-viewport img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #111;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 2;
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow:hover {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .commissions-layout {
    flex-direction: column;
  }

  .commissions-list,
  .commissions-carousel {
    flex: 1 1 100%;
  }

  .commissions-carousel {
    position: static;
  }

  .carousel-viewport {
    height: 60vh;
  }
}

/* ---- Films page ---- */
.film-info {
  padding-top: 40px;
  width: 45%;
  margin: 0 auto;
  text-align: center;
}

.film-info h2 {
  font-family: 'Anonymous Pro', monospace;;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.film-info .film-type {
  font-family: 'Anonymous Pro', monospace;;
  font-weight: 400;
  font-style: italic;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

.film-info .film-description {
  font-family: 'Anonymous Pro', monospace;;
  font-weight: 400;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Full-width video, no side padding, sitting right under the text block */
.film-video {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
}

.film-video .film-video-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.film-video .film-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: none;
}

/* ---- Livres page ---- */
.book-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 50px;
  padding-bottom: 50px;
}

.book-info {
  flex: 0 0 32%;
}

.book-title {
  font-family: 'Archivo Black', Arial, sans-serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

.book-type {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.book-meta {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.book-availability {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #777;
  margin: 0;
}

.book-availability a {
  color: #4a4a9c;
  text-decoration: underline;
  word-break: break-word;
}

.book-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.book-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .book-row {
    flex-direction: column;
  }

  .book-info,
  .book-gallery {
    flex: 1 1 100%;
  }

  .book-gallery img {
    height: 160px;
  }
}

/* ---- À propos page ---- */
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 60px;
}

.about-text {
  flex: 0 0 45%;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-title {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  margin: 40px 0 16px 0;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 90%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }
}

/* ---- Footer ---- */
footer {
  margin-top: auto;
}

.footer-line {
  border-top: 1px solid #eee;
  width: 100%;
}

.footer-content {
  padding: 20px;
  font-family: 'Anonymous Pro', monospace; 
  font-size: 0.8rem;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 92%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px 20px;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  nav ul {
    text-align: left;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .landscape-row {
  height: 200px;
}

.portrait-row {
  height: 320px;
}

  .film-info {
    width: 100%;
  }

  .bio {
    width: 100%;
  }
}
