.rsp-gallery {
  --rsp-gallery-paper: var(--rsp-gallery-text, #d7d4ce);
  --rsp-gallery-ink: #111;
  --rsp-gallery-muted: var(--rsp-gallery-secondary-text, #aaa7a1);
  --rsp-gallery-line: var(--rsp-gallery-secondary-text, #343434);
  --rsp-gallery-blue: var(--rsp-gallery-accent, #1e4fd8);
  background: transparent;
  color: var(--rsp-gallery-paper);
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
}

.rsp-gallery *,
.rsp-gallery__dialog * {
  box-sizing: border-box;
}

.rsp-gallery__bar {
  display: flex;
  justify-content: flex-end;
  padding: 18px clamp(18px, 3vw, 48px);
}

.rsp-gallery__shuffle,
.rsp-gallery__close {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rsp-gallery__shuffle {
  padding: 10px 16px;
  background: var(--rsp-gallery-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: filter .2s ease, transform .2s ease;
}

.rsp-gallery__shuffle:hover,
.rsp-gallery__shuffle:focus-visible {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

.rsp-gallery__grid {
  --rsp-gallery-cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--rsp-gallery-cols), minmax(0, 1fr));
  grid-auto-rows: calc(150vw / var(--rsp-gallery-cols));
  grid-auto-flow: row;
  overflow: hidden;
}

.rsp-gallery__portrait {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
	border-radius:0px;
}

.rsp-gallery__portrait:nth-child(9n+1),
.rsp-gallery__portrait:nth-child(9n+4),
.rsp-gallery__portrait:nth-child(9n+5) {
  grid-column: span 2;
  grid-row: span 2;
}

.rsp-gallery__grid.rsp-gallery--revealing .rsp-gallery__portrait {
  opacity: 0;
}

.rsp-gallery__grid.rsp-gallery--revealing .rsp-gallery__portrait.is-in {
  opacity: 1;
  animation: rsp-gallery-from-bottom 1.2s cubic-bezier(.16, 1, .3, 1) var(--rsp-gallery-delay, 0s) backwards;
}

.rsp-gallery__grid.rsp-gallery--revealing .rsp-gallery__portrait.is-in .rsp-gallery__image {
  animation: rsp-gallery-settle 1.8s cubic-bezier(.2, .8, .2, 1) var(--rsp-gallery-delay, 0s) backwards;
}

@keyframes rsp-gallery-from-bottom {
  from {
    opacity: 0;
    transform: translateY(35%);
  }
}

@keyframes rsp-gallery-settle {
  from {
    transform: scale(1.25);
    filter: saturate(0) brightness(.55);
  }
}

.rsp-gallery .rsp-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(.72) contrast(1.05);
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
	border-radius:0px!important;
}

.rsp-gallery__portrait:hover .rsp-gallery__image,
.rsp-gallery__portrait:focus-visible .rsp-gallery__image {
  transform: scale(1.025);
  filter: saturate(.9) contrast(1.03);
}

.rsp-gallery__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: var(--rsp-gallery-paper);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .16em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.rsp-gallery__role,
.rsp-gallery__caption {
  font-family: "Neue-Kabel", neue-kabel, sans-serif;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.rsp-gallery__role,
.rsp-gallery__caption span {
  font-size: 24px !important;
}

.rsp-gallery__portrait:hover .rsp-gallery__caption,
.rsp-gallery__portrait:focus-visible .rsp-gallery__caption {
  opacity: 1;
  transform: none;
}

.rsp-gallery__caption em {
  color: var(--rsp-gallery-muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.rsp-gallery__dialog {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 32px));
  margin: auto;
  padding: clamp(36px, 6vw, 64px) clamp(28px, 5vw, 56px);
  border: none !important;
  background: #fff !important;
  color: #000 !important;
}

.rsp-gallery__dialog::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
}

.rsp-gallery__close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 8px;
  color: #000 !important;
  background-color: #00000000;
  font-size: 28px;
}

.rsp-gallery__close:hover,
.rsp-gallery__close:focus {
  background: none;
}

.rsp-gallery .rsp-gallery__name {
  margin: 0;
  color: var(--noir, #000) !important;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rsp-gallery__role {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rsp-gallery-line);
  color: var(--rouge, #f00) !important;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rsp-gallery__role:empty {
  display: none;
}

.rsp-gallery__description {
  margin: 18px 0 0;
  color: var(--noir, #000) !important;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.rsp-gallery__description:empty {
  display: none;
}

@media (max-width: 1024px) {
  .rsp-gallery__caption span {
    font-size: 17px !important;
  }

  .rsp-gallery__caption em {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .rsp-gallery__caption span {
    font-size: 12px !important;
    line-height: 1.25;
  }

  .rsp-gallery__caption em {
    font-size: 9px;
  }

  .rsp-gallery__grid {
    --rsp-gallery-cols: 3;
  }

  .rsp-gallery__portrait:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .rsp-gallery__portrait:nth-child(6n+1),
  .rsp-gallery__portrait:nth-child(6n+5) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .rsp-gallery__caption {
    padding: 34px 12px 12px;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsp-gallery__grid.rsp-gallery--revealing .rsp-gallery__portrait {
    opacity: 1;
    animation: none;
  }

  .rsp-gallery__image,
  .rsp-gallery__caption,
  .rsp-gallery__shuffle {
    transition: none;
  }

  .rsp-gallery__grid.rsp-gallery--revealing .rsp-gallery__portrait.is-in .rsp-gallery__image {
    animation: none;
  }
}
