/* Grille Masonry (Masonry.js) */

.gallery {
  padding: 24px 16px;
  position: relative;
}

.grid-sizer,
.gallery-item {
  width: 31.33%;
}

.gutter-sizer {
  width: 3%;
}

.gallery.columns-1 .grid-sizer,
.gallery.columns-1 .gallery-item {
  width: 100%;
}

.gallery.columns-2 .grid-sizer,
.gallery.columns-2 .gallery-item {
  width: 48.5%;
}

.gallery.columns-3 .grid-sizer,
.gallery.columns-3 .gallery-item {
  width: 32%;
}

.gallery.columns-3 .gutter-sizer {
  width: 2%;
}

.gallery.columns-4 .grid-sizer,
.gallery.columns-4 .gallery-item {
  width: 22.75%;
}

.gallery-item {
  position: relative;
  margin-bottom: 20px;
}

.image-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.gallery img,
.gallery .placeholder-media {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid transparent;
  transition: border-color 0.3s ease;
  object-fit: cover;
}

/* Skeleton shimmer while gallery images progressively load */
.gallery-item.is-loading .image-link {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.6s linear infinite;
}

.gallery-item.is-loading img {
  opacity: 0;
}

.gallery-item img {
  opacity: 1;
  transition: opacity 0.45s ease;
}

@keyframes gallery-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gallery.columns-3 img,
.gallery.columns-3 .placeholder-media {
  border-width: 2px;
}

.placeholder-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #2b2b2b, #6e6e6e);
}

/* Style des images en hover */
.gallery-item:hover .overlay {
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

/* Style de l'overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* Couleur d'overlay initiale (transparente) */
  opacity: 0; /* L'overlay est invisible par défaut */
  transition: background-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Style pour la légende en overlay */
.image-description {
  position: absolute;
  bottom: 10px; /* Ajustez la position selon vos besoins */
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Style pour la légende en overlay lorsque l'overlay est actif */
.gallery-item:hover .image-description {
  opacity: 1; /* La description devient visible avec l'overlay */
}

/* Style pour le bord de l'image au survol */
.gallery-item:hover img {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Media query pour les appareils mobiles */
@media screen and (max-width: 768px) {
  .gallery .grid-sizer,
  .gallery .gallery-item {
    width: 100%; /* Une colonne sur les appareils mobiles */
  }
}

/* Style du menu lorsque l'écran est suffisamment large */
.HeaderNav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.HeaderNav-item {
  margin-right: 20px;
}

/* Style du bouton "Menu" lorsque l'écran est suffisamment large */
.HeaderFlyoutMobile-toggle {
  display: none;
}

/* Style du menu en une colonne lorsque l'écran est étroit */
@media screen and (max-width: 768px) {
  .HeaderNav {
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .HeaderNav-item {
    margin: 10px 0;
  }

  /* Affichage du bouton "Menu" sur les écrans étroits */
  .HeaderFlyoutMobile-toggle {
    display: block;
  }
}


.faq-header{
  font-size: 42px;
  border-bottom: 1px dotted #ccc;
  padding: 24px;
}

.faq-content {
  margin: 0 auto;
}

.faq-question {
  padding: 20px 0;
  border-bottom: 1px dotted #ccc;
}

.panel-title {
  font-size: 24px;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 10px 10px 0 48px;
  display: block;
  cursor: pointer;
}

.panel-content {
  font-size: 20px;
  padding: 0px 14px;
  margin: 0 40px;
  height: 0;
  overflow: hidden;
  z-index: -1;
  position: relative;
  opacity: 0;
  -webkit-transition: .4s ease;
  -moz-transition: .4s ease;
  -o-transition: .4s ease;
  transition: .4s ease;
}

.panel:checked ~ .panel-content{
  height: auto;
  opacity: 1;
  padding: 14px;
}

.plus {
  position: absolute;
  margin-left: 20px;
  margin-top: 4px;
  z-index: 5;
  font-size: 42px;
  line-height: 100%;
  -webkit-user-select: none;    
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-transition: .2s ease;
  -moz-transition: .2s ease;
  -o-transition: .2s ease;
  transition: .2s ease;
}

.panel:checked ~ .plus {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.panel {
  display: none;
}

/* Project detail view (projectsview.html style) */
.SingleArtists {
  padding: 24px 16px;
}

.SingleArtists .gallery.columns-3 {
  display: block;
  column-count: 3;
  column-gap: 20px;
  padding: 0;
}

.SingleArtists .gallery.columns-3 .grid-sizer,
.SingleArtists .gallery.columns-3 .gutter-sizer {
  display: none;
}

.SingleArtists .gallery.columns-3 .gallery-item {
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  display: inline-block;
  vertical-align: top;
}

.SingleArtists-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.SingleArtists-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.SingleArtists-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-8, #666);
  max-width: 360px;
}

.SingleArtists-description b,
.SingleArtists-description strong {
  color: var(--gray-12, #000);
}

.SingleArtists-links {
  margin-top: 32px;
}

.SingleArtists-links .Links a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-12, #000);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  margin-right: 16px;
}

.SingleArtists-links .Links a:hover {
  color: var(--gray-7, #666);
}

/* Gray scale hover on project detail images */
.SingleArtists .gallery-item:not(:first-child) img {
  filter: grayscale(0%);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.SingleArtists .gallery-item:not(:first-child):hover img {
  filter: grayscale(100%);
  transform: scale(1.02);
}

/* Project lightbox */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.project-lightbox__frame {
  display: inline-block;
  max-width: calc(100% - 120px);
  max-height: calc(100vh - 120px);
}

.project-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-lightbox.active .project-lightbox__image {
  opacity: 1;
  transform: scale(1);
}

.project-lightbox__back,
.project-lightbox__close,
.project-lightbox__prev,
.project-lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--gray-12, #000);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-lightbox__back:hover,
.project-lightbox__close:hover,
.project-lightbox__prev:hover,
.project-lightbox__next:hover {
  color: var(--gray-7, #666);
  transform: scale(1.1);
}

.project-lightbox__back { top: 24px; left: 24px; }
.project-lightbox__close { top: 24px; right: 24px; }
.project-lightbox__prev { bottom: 24px; left: 24px; }
.project-lightbox__next { bottom: 24px; right: 24px; }

.project-lightbox__back svg { transform: translate(-1px, 0); }
.project-lightbox__close svg { transform: translate(0, 0); }
.project-lightbox__prev svg { transform: translate(-1px, 0); }
.project-lightbox__next svg { transform: translate(1px, 0); }

@media screen and (max-width: 768px) {
  .SingleArtists .gallery.columns-3 {
    column-count: 1;
  }
  .SingleArtists-title {
    font-size: 36px;
  }
  .project-lightbox__frame {
    max-width: calc(100% - 100px);
    max-height: calc(100vh - 100px);
  }
  .project-lightbox__image {
    max-height: calc(100vh - 100px);
  }
  .project-lightbox__back,
  .project-lightbox__close,
  .project-lightbox__prev,
  .project-lightbox__next {
    width: 40px;
    height: 40px;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .project-lightbox__back { top: 16px; left: 16px; }
  .project-lightbox__close { top: 16px; right: 16px; }
  .project-lightbox__prev { bottom: 16px; left: 16px; }
  .project-lightbox__next { bottom: 16px; right: 16px; }
}
