.js-Gallery-image {
  height: 0;
  padding-top: 43.1085%;
  position: relative;
}
.js-Gallery-image > img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
}

.js-Gallery-meta {
  /* display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--gutter) 0.625rem; */
  position: relative;
  margin-top: 1rem;
  display: block;
}

@media only screen and (max-width: 37.4375em) {
  .js-Gallery-meta {
    margin-top: 0.625rem;
  }
}

.js-Gallery-thumbs {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, 100px); */
  grid-auto-flow: column;
  grid-auto-columns: 100px;
  grid-auto-rows: 56px;
  gap: 0.625rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-block-end: 0.625rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #000 #f1f1f1;
  scrollbar-width: 5px;
  -webkit-overflow-scrolling: touch;
}
.js-Gallery-thumbs::-webkit-scrollbar {
  width: 20px;
  height: 5px;
  background-color: #f1f1f1;
}

.js-Gallery-thumbs::-webkit-scrollbar-thumb {
  background: #000;
}
@media only screen and (max-width: 37.4375em) {
  .js-Gallery-thumbs {
    grid-auto-columns: 50px;
    grid-auto-rows: 28px;
    padding-block-end: 5px;
  }
}
.js-Gallery-thumbs > * {
  margin-top: 0;
  cursor: pointer;
  padding: 0;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
  scroll-snap-align: start;
}
.js-Gallery-thumbs > *::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s var(--easing-snappy);
}
.js-Gallery-thumbs > *:focus::after,
.js-Gallery-thumbs > *:hover::after {
  opacity: 1;
}

.js-Gallery-thumbs img {
  pointer-events: none;
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.js-Gallery-description {
  word-break: break-all;
  position: absolute;
  font-size: 0.75rem;
  font-size: clamp(
    0.75rem,
    0.3391638225255973rem + 1.5358361774744027vw,
    1.875rem
  );
  left: 1em;
  top: -1em;
  margin-right: 1em;
  transform: translateY(calc((1rem + 100%) * -1));
  padding: 10px;
  color: #fff;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.5);
}

.js-Gallery-description:empty {
  opacity: 0;
}

@media only screen and (max-width: 37.4375em) {
  .js-Gallery-description {
    padding: 3px 10px;
  }
}
