.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__percentage {
  font-size: 12px;
  font-family: basier-square, sans-serif;
  color: #000;
  min-width: 30px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
}

.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  mix-blend-mode: difference;
}

.cursor-circle.is-hovering-button {
  background: transparent;
  width: 64px;
  height: 64px;
  border-width: 1px;
}

.cursor-circle.is-hovering-item {
  background: transparent;
  width: auto;
  height: auto;
  border: none;
}

.cursor-circle.is-hovering-item::after {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
  margin-top: -20px;
}

.cursor-circle.is-hovering-media {
  background: transparent;
  width: auto;
  height: auto;
  border: none;
}

.cursor-circle.is-hovering-media::after {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
  margin-top: -20px;
}

.cursor-circle-secondary {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  mix-blend-mode: difference;
}

.cursor-circle-secondary.is-hovering-button {
  background: #000;
  width: 32px;
  height: 32px;
}

.item {
  position: absolute;
  cursor: none;
  border: 1px solid transparent;
  padding: 4px;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 100%;
}

.item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #000;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 2;
}

.cover-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: none;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.item.is-dragging {
  cursor: none;
}

.item.is-active {
  z-index: 99;
  background: #fff !important;
  border: 1px solid #000;
}

.caption {
  margin: 0 0 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #000;
  position: relative;
}

.caption-right {
  position: absolute;
  right: 0;
}

.caption h2 {
  margin: 0;
  font-weight: normal;
  font-size: 12px;
}

.caption h2.hashtag {
  color: #000;
}

.expandBtn {
  display: inline-flex;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: none;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}

.expandBtn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.collapseBtn {
  display: inline-flex;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: none;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}

.collapseBtn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.closeBtn {
  display: none;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: none;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 9999;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 0% 1px;
  transition: background-size 200ms ease-in-out;
}

.closeBtn:hover,
.closeBtn:focus-visible {
  background-size: 100% 1px;
}

.closeBtn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.item.is-expanded .closeBtn {
  display: inline-flex;
}

.nextBtn {
  display: inline-flex;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: none;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}

.nextBtn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.previousBtn {
  display: inline-flex;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: none;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  mix-blend-mode: difference;
}

.previousBtn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.item .media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.item .media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}

.project-image {
  display: flex;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.item img:hover::after,
.item video:hover::after {
  content: "Ouvrir";
  position: fixed;
  top: var(--mouse-y, 0px);
  left: var(--mouse-x, 0px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  transform: translate(10px, -10px);
  opacity: 1;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.item img:not(:hover)::after,
.item video:not(:hover)::after {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.is-item-expanded {
  overflow: hidden;
}

.item.is-expanded {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  cursor: none;
  padding: 128px 16px 16px 16px;
  overflow-y: auto;
  background: #000;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  border: none !important;
}

.item.is-expanded::before {
  display: none;
}

.item .details {
  display: none;
  margin-top: 0;
}

.item.is-expanded .details {
  display: block;
  margin-top: 16px;
}

.details__info {
  margin-bottom: 24px;
  padding-right: 0;
}

.details__info p {
  margin: 0 0 24px;
  line-height: 1.45;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  column-width: 320px;
  column-gap: 12px;
  column-fill: balance;
  color: #000;
}

.tagline::after {
  content: "en design graphique,\Aédition,\Atypographie\Aet photographie";
  white-space: pre;
}

.item.is-expanded .details__info p {
  height: auto;
  overflow: visible;
}

.details__info h3 {
  margin: 0 0 12px;
  font-weight: bold;
  font-size: 12px;
}

.item.is-expanded .media {
  display: none;
}

.item.is-expanded .details__media {
  column-count: 2;
  column-gap: 4px;
}

.item.is-expanded .details__media img,
.item.is-expanded .details__media video {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  object-fit: cover;
  cursor: none;
}
