/*----------
- Projets
----------*/

/*========
-- Typography
========*/
.project-meta,
.project-description,
.project-info {
  font-size: 1.33rem;
}

.project-description {
  font-weight: 300;
}
.project-meta dt,
.project-info dt {
  font-weight: 500;
  color: var(--c--low);
}
.project-meta dd,
.project-info dd {
  color: var(--c--low);
  font-weight: 300;
}
.project-info dt button {
  width: 100%;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  font-weight: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.5rem 0.67rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-info button[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.project-info figcaption {
  padding: 0.5rem 0.67rem 1rem;
}
.project-meta dd {
  font-weight: 300;
}
.project-info {
  color: var(--c--low);
  overflow: hidden;
}
.project-info .plans img {
  aspect-ratio: 3/2;
}
.swiper-slide {
  transition: opacity 0.3s;
}
.swiper-slide:not(.swiper-slide-active) {
  opacity: 0.3;
}
.swiper {
  --swiper-scrollbar-size: 6px;
  --swiper-scrollbar-border-radius: 3px;
  --swiper-scrollbar-bg-color: #6d6d6d4d;
  --swiper-scrollbar-drag-bg-color: var(--c--lowest);
  --swiper-theme-color: var(--c--lowest);
  --swiper-navigation-size: 1.5rem;
}

/*========
-- Layout
========*/
/* Meta */
.project-meta {
  display: grid;
}
.project-meta div {
  border-top: 1px solid var(--c--low);
  padding: 0.867rem 0;
}
.project-meta div:where(:last-child) {
  border-bottom: 1px solid;
}

/* Fiche technique */
.project-info {
  border-top: 1px solid;
}
.project-info > div:not(.plans) {
  border-bottom: 1px solid;
  padding: 0.5rem 0.67rem;
}
.project-info .plans dt {
  padding: 0.5rem 0.67rem;
}
/* Galerie */
.project-gallery {
  overflow-x: auto;
  margin-bottom: 2rem;
}
.project-gallery.moving li {
  pointer-events: none;
}
.project-gallery::-webkit-scrollbar {
  background: #6d6d6d4d;
  height: 6px;
  border-radius: 3px;
}
.project-gallery::-webkit-scrollbar-thumb {
  background: var(--c--lowest);
  border-radius: 3px;
}
.project-gallery ul {
  list-style: none;
  display: flex;
  gap: var(--l--global-gap);
  height: 24rem;
  width: fit-content;
  padding: var(--l--global-gap) 0;
}
.project-gallery li,
.project-gallery a {
  display: block;
  height: 100%;
  flex: 1 0 fit-content;
}
.project-gallery img {
  height: 100%;
  width: auto;
  max-width: none;
}
.project-description {
  margin-bottom: var(--l--global-gap);
}
.project-description p:last-child {
  margin-bottom: 0;
}

/* Aside - See also */
.see-also {
  margin-top: var(--l--global-gap);
  padding-top: 1rem;
}
.see-also > h2 {
  margin-bottom: 1rem;
}
@media (min-width: 32rem) {
  .project-info > div:not(.plans) {
    display: flex;
    justify-content: space-between;
    gap: var(--l--global-gap);
  }
  .project-info dd {
    text-align: right;
  }
}
@media (min-width: 48rem) {
  .project-meta,
  .project-description,
  .project-info {
    font-size: var(--fz--pj-text);
  }
  .project-meta {
    grid-template-columns: 2fr 3fr 2fr 2fr;
    gap: var(--l--global-gap);
  }
  .project-meta div {
    border: 0;
    padding: 0;
  }
  .project-description {
    column-count: 2;
    gap: var(--l--global-gap);
  }
}
@media (min-width: 64rem) {
  .project-meta {
    grid-template-columns: 2fr 3fr 3fr 2fr;
  }
  .project-gallery {
    margin-bottom: 4rem;
  }
  .project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--l--global-gap);
  }
  .project-description {
    column-count: 1;
    grid-area: 1/2;
    padding-top: 0.5rem;
  }
  .project-info {
    grid-area: 1/1;
  }
  .see-also {
    border-top: 1px solid var(--c--low);
  }
}
@media (min-width: 96rem) {
  .project-meta,
  .project-content {
    grid-template-columns: repeat(5, 1fr);
  }
  .project-info {
    grid-column: 1/4;
  }
  .project-description {
    grid-column: 4/6;
  }
  .project-gallery ul {
    /* height: 38rem; */
    padding: 3rem 0 2rem;
  }
  .project-meta {
    font-size: 1.467rem;
  }
}
