*, html {
  margin: 0;
  box-sizing: border-box;
}

:root {
  --gray: #BCBCBC;
  --white: #FFFFFF;
  --black: #000000;
  --font: "instrument-sans-variable", sans-serif;
  --font-services: clamp(28px, 3.4vw, 42px);
  --font-info: clamp(13px, 1.15vw, 16px);
}

html, body {
  min-height: 100%;
  background: var(--white);
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  color: var(--black);
}

.gallery-logo {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin: 14px 18px 0;
}

.gallery-logo img {
  display: block;
  width: 168px;
  height: auto;
}

.gallery-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 56px 6em 40px 18px;
}

.gallery-filters {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: min(560px, 48vw);
  max-width: calc(100% - 280px);
  padding: 0;
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  font-size: var(--font-services);
  font-weight: 450;
  line-height: 115%;
  letter-spacing: -0.07em;
}

.gallery-filters button {
  font-family: inherit;
  font-variation-settings: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: var(--gray);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, color 0.35s ease;
}

.gallery-filter-comma {
  color: var(--gray);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gallery-filters button.is-visible,
.gallery-filter-comma.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.gallery-filters button.is-active {
  color: var(--black);
}

@media (hover: hover) {
  .gallery-filters button:hover {
    color: var(--black);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: clamp(16px, 1.6vw, 28px);
  row-gap: clamp(24px, 2.2vw, 40px);
  align-items: start;
  padding: 15px 18px 120px;
  transition: opacity 0.35s ease;
}

.gallery-item {
  margin: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top left;
  user-select: none;
  pointer-events: none;
  transition: filter 0.4s ease;
}

.gallery-item figcaption {
  margin-top: 8px;
  text-align: left;
  font-size: var(--font-info);
  font-weight: 450;
  line-height: 125%;
  letter-spacing: -0.04em;
}

.gallery-item-title,
.gallery-item-place,
.gallery-item-year {
  margin: 0;
}

.gallery-item-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
  color: var(--black);
  font-size: inherit;
  font-weight: 450;
  letter-spacing: inherit;
  line-height: 125%;
  text-decoration: none;
}

.gallery-item-link span {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.06em;
}

.gallery-item-link svg {
  width: 0.78em;
  height: 0.78em;
  flex-shrink: 0;
  margin-top: 0.12em;
}

.gallery-views {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  min-height: calc(var(--font-services) * 1.15);
}

.gallery-views button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  font-size: var(--font-info);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 0.35s ease, opacity 0.45s ease;
}

.gallery-views button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.gallery-views button.is-active {
  color: var(--black);
}

@media (hover: hover) {
  .gallery-views button:hover {
    color: var(--black);
  }
}

.gallery-views svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.gallery-grid.is-fading {
  opacity: 0;
}

html.is-gallery-stack,
body.is-gallery-stack {
  overflow: hidden;
  height: 100%;
}

body.is-gallery-stack .gallery-logo,
body.is-gallery-stack .gallery-toolbar {
  position: relative;
  z-index: 5;
}

body.is-gallery-stack .gallery-grid {
  display: block;
  isolation: isolate;
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

body.is-gallery-stack .gallery-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(38vw, 440px);
  margin: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

body.is-gallery-stack .gallery-item.is-in {
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease;
}

body.is-gallery-stack .gallery-item.is-near {
  opacity: 0.62 !important;
}

body.is-gallery-stack .gallery-item.is-active {
  width: min(45.6vw, 528px);
  opacity: 1 !important;
}

body.is-gallery-stack .gallery-item.is-far {
  opacity: 0 !important;
  pointer-events: none;
}

body.is-view-switching .gallery-item,
body.is-view-switching .gallery-item.is-in {
  transition: none;
}

body.is-gallery-stack .gallery-item-photo {
  width: 100%;
}

body.is-gallery-stack .gallery-item img {
  width: 100%;
  max-height: 40vh;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) blur(3px);
  transition: filter 0.55s ease;
}

body.is-gallery-stack .gallery-item.is-active img {
  max-height: 48vh;
  filter: grayscale(0) blur(0);
}

body.is-gallery-stack .gallery-item figcaption {
  position: absolute;
  left: calc(100% + 28px);
  top: auto;
  bottom: 0;
  width: max(140px, min(24vw, 240px));
  margin: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

body.is-gallery-stack .gallery-item.is-active figcaption {
  opacity: 1;
  transition-delay: 0.08s;
}

body.is-gallery-stack .gallery-item.is-active .gallery-item-link {
  pointer-events: auto;
}

.gallery-shade {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.gallery-open-img {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: auto;
  height: auto;
  max-width: 82vw;
  max-height: 86vh;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.97);
  filter: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.is-photo-open {
  overflow: hidden;
}

body.is-photo-open {
  cursor: pointer;
}

body.is-photo-open .gallery-shade {
  opacity: 0.78;
  pointer-events: auto;
}

body.is-photo-open .gallery-open-img.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  cursor: pointer;
}

@media (hover: hover) {
  body.is-gallery-stack .gallery-item:hover img {
    filter: grayscale(1) blur(3px);
  }

  body.is-gallery-stack .gallery-item.is-active img,
  body.is-gallery-stack .gallery-item.is-active:hover img {
    filter: grayscale(0) blur(0);
  }
}

@media (max-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --font-services: clamp(22px, 6.4vw, 32px);
  }

  .gallery-logo {
    margin: 14px 16px 0;
  }

  .gallery-logo img {
    width: 120px;
  }

  .gallery-toolbar {
    flex-wrap: wrap;
    padding: 40px 16px 28px;
    gap: 16px;
  }

  .gallery-filters {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 24px;
    padding: 0 16px 72px;
  }

  .gallery-views {
    min-height: 0;
  }

  body.is-gallery-stack .gallery-grid {
    height: 100dvh;
    padding: 0;
  }

  body.is-gallery-stack .gallery-item {
    left: 50%;
    top: 62%;
    width: min(62vw, 280px);
  }

  body.is-gallery-stack .gallery-item.is-active {
    width: min(74vw, 336px);
  }

  body.is-gallery-stack .gallery-item img {
    max-height: 28vh;
  }

  body.is-gallery-stack .gallery-item.is-active img {
    max-height: 34vh;
  }

  body.is-gallery-stack .gallery-item figcaption {
    left: 50%;
    top: auto;
    bottom: -10px;
    width: min(78vw, 280px);
    transform: translate(-50%, 100%);
    text-align: center;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 20px;
  }
}
