html, body {
  font-family: "Ranade-Variable";
  margin: 0;
  padding: 0;
  background: white;
  height: 100%;
  overflow: hidden;

}

body.overview {
  padding: 2rem;
  overflow: auto;
}
h1 {
  position: absolute;
  left: -9999px;
}
/* SLIDESHOW */

.splide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  padding: 5vh 2vw;
  box-sizing: border-box;
}

.splide__slide img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}

/* CAPTIONS */

.caption-container {
  margin-top: 1rem;
  text-align: center;
  max-width: 90%;
}

.toggle-caption {
  cursor: pointer;
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #333;
  text-align: center;
/*  max-width: 90%;*/
}

/* NAVIGATION */

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 4rem);
  padding: 1rem 2rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 1.5rem;
}

.nav-left a {
  margin-left: 0;
}

.nav-right {
  display: flex;
}

.site-title {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
}

.site-title .subtitle {
  display: block;
  font-weight: normal;
  font-size: 0.9rem;
  color: #666;
}

/* OVERVIEW GRID */

.gallery {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3rem;
}

.grid-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 100px;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
  transition: transform 0.2s ease;
  object-fit: contain;
}
[class^="span-"] {
  margin-bottom: 200px;
}
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-4 img{max-height: 95vh;}

.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8;}
.span-8 img{max-height: 95vh;}

.gap {
  background-color: white;
  height: 1px;
  visibility: hidden;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(8, 1fr);
  }
}

/*@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}*/

/*@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2, .span-3, .span-4 {
    grid-column: span 8;
  }
}*/

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .span-2, .span-3, .span-4 {
    grid-column: span 8;
  }
}


@media (max-width: 600px) {

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

  .span-4,
  .span-8 {
    grid-column: 1 / -1; /* prend toute la largeur */
  }

}

@media (max-width: 600px) {
  .hide-on-mobile {
    display: none;
  }
  body.overview {
/*    margin-top:3rem;*/
  padding: 0.3rem;
  overflow: auto;
  }
    a.disable-on-mobile {
    pointer-events: none;  /* Désactive le clic */
    cursor: default;       /* Curseur normal */
    text-decoration: none; /* Pas de soulignement */
  }
  .gallery{margin-top:3rem;}
}

.intro {
  font-size: 1.1rem;
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}