/* Archive page ----------------------------------------------------------- */
html.is-archive-page,
html.is-archive-page body {
  width: 100%;
  height: var(--page-height);
  min-height: var(--page-height);
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.is-archive-page::-webkit-scrollbar,
html.is-archive-page body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html.is-archive-page body {
  touch-action: none;
}

.archive-app,
.archive-stage,
.archive-desktop-columns,
.archive-scroll-column {
  width: 100%;
  height: var(--page-height);
  min-height: var(--page-height);
}

.archive-stage {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--bg);
}

/* Desktop synchronized columns ----------------------------------------- */
.archive-desktop-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: none;
}

body.is-opacity-transitions-enabled .archive-desktop-columns {
  transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995);
}

body.is-page-visible .archive-desktop-columns {
  opacity: 1;
  pointer-events: auto;
}

body:not(.is-page-visible) .archive-desktop-columns {
  opacity: 0;
  pointer-events: none;
}

.archive-scroll-column {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  cursor: default;
}

.archive-scroll-track {
  position: relative;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.archive-media-track {
  line-height: 0;
}

.archive-large-item {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  line-height: 0;
  aspect-ratio: var(--archive-placeholder-ratio, auto);
}


.archive-large-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Thumbnail column ------------------------------------------------------- */
.archive-grid-wrap {
  background: var(--bg);
}

.archive-thumb-track {
  min-height: var(--page-height);
}

.archive-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  align-items: stretch;
  align-content: start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: var(--bg);
  line-height: 0;
}

.archive-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: invert(1) grayscale(1) contrast(0.7);
  opacity: 0;
  transition: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.is-opacity-transitions-enabled .archive-item {
  transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995);
}

body.is-page-visible .archive-item.is-archive-thumb-revealed {
  opacity: 0.3;
}

body.is-page-visible .archive-item.is-archive-thumb-revealed.is-archive-thumb-interactive:hover,
body.is-page-visible .archive-item.is-archive-thumb-revealed.is-archive-thumb-interactive:focus-visible,
body.is-page-visible .archive-item.is-archive-thumb-revealed[aria-current="true"],
body.is-page-visible .archive-item.is-archive-thumb-revealed.is-active {
  z-index: 3;
  filter: none;
  opacity: 1;
}

@media (min-width: 701px) {
  .archive-item:not(.is-archive-thumb-interactive) {
    cursor: default;
    pointer-events: none;
  }

  .archive-item.is-archive-thumb-interactive {
    cursor: pointer;
    pointer-events: auto;
  }
}

.archive-item-media-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  pointer-events: none;
}

.archive-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  object-fit: contain;
  object-position: left top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.archive-app .is-media-broken {
  opacity: 0;
}

/* Mobile fixed preview --------------------------------------------------- */
.archive-mobile-slider {
  display: none;
}

.archive-mobile-slider-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  line-height: 0;
}

.archive-mobile-slider-image {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: none;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition: none;
}

.archive-mobile-slider-image.is-staged {
  visibility: hidden;
}

.archive-mobile-slider-info {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
  width: 350px;
  max-width: 100vw;
  min-width: 0;
  margin: 0;
  padding: 7px;
  color: var(--text);
  font-size: var(--ui-font-size);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0.005em;
  cursor: default;
  pointer-events: none;
}

.archive-mobile-slider-title {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-mobile-slider-status {
  display: block;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.archive-mobile-slider-status-slash {
  display: inline-block;
  padding: 0 0.1em;
}

/* Fixed desktop title and optional description for the active archive item. */
.archive-active-info {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  gap: 0;
  box-sizing: border-box;
  width: 50vw;
  max-width: 50vw;
  min-width: 0;
  margin: 0;
  padding: 7px;
  /* padding: calc(7px - 0.25em) 7px 7px; */
  color: var(--text);
  background: transparent;
  font-size: var(--ui-font-size);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0.005em;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: none;
}

body.is-opacity-transitions-enabled .archive-active-info {
  transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995);
}

body.is-page-visible .archive-active-info {
  opacity: 1;
}

body:not(.is-page-visible) .archive-active-info {
  opacity: 0;
  pointer-events: none;
}

.archive-active-info.has-no-archive-details {
  cursor: default;
  pointer-events: none;
}

.archive-active-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  pointer-events: none;
}

.archive-active-title-group {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 7px;
  width: auto;
  min-width: 0;
  max-width: var(--ui-column-width);
}

.archive-active-title {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: var(--ui-column-width);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-active-status {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  margin-left: auto;
  white-space: nowrap;
}

.archive-active-status-slash {
  display: inline-block;
  padding: 0 0.1em;
}

.archive-active-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--ui-column-width);
  margin: 0;
  padding: 0;
  color: inherit;
  pointer-events: none;
}

.archive-active-details[hidden] {
  display: none !important;
}

.archive-active-description {
  display: block;
  /* margin-top: calc(1em - 0.25em); */
  margin-top: 1em;
  white-space: pre-line;
}

.archive-viewport-note {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 9;
  display: block;
  box-sizing: border-box;
  width: 350px;
  max-width: 100vw;
  margin: 0;
  padding: 7px;
  color: var(--text);
  font-size: var(--ui-font-size);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0.005em;
  text-align: left;
  cursor: default;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

body.is-opacity-transitions-enabled .archive-viewport-note {
  transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995);
}

body.is-page-visible .archive-viewport-note {
  opacity: 1;
}



@media (any-hover: hover) and (any-pointer: fine) {
  .archive-active-info.has-archive-details[aria-expanded="false"]:not(.is-details-hover-suppressed):hover .archive-active-title,
  .archive-active-info.has-archive-details[aria-expanded="false"]:not(.is-details-hover-suppressed):hover .details-pill {
    animation: ui-sharp-blink 0.3s steps(1, end) infinite;
    transition: none !important;
  }
}

@media (max-width: 700px) {

  .archive-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-items: stretch;
    align-content: start;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: var(--bg);
    line-height: 0;
  }

}

@media (max-width: 700px) {
  html.is-archive-page {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.is-archive-page body {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    touch-action: auto;
  }

  .archive-app,
  .archive-stage {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
  }

  .archive-desktop-columns {
    display: block;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
    transition: none !important;
  }

  .archive-scroll-column-media {
    display: none !important;
  }

  .archive-scroll-column-thumbs,
  .archive-grid-wrap,
  .archive-thumb-track {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
    transform: none !important;
  }

  .archive-mobile-slider {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: none;
  }

  body.is-opacity-transitions-enabled .archive-mobile-slider {
    transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995);
  }

  body.is-page-visible .archive-mobile-slider.is-media-ready {
    opacity: 1;
  }

  body:not(.is-page-visible) .archive-mobile-slider {
    opacity: 0;
  }

  .archive-grid-wrap {
    position: relative;
    z-index: 2;
  }

  .archive-grid {
    width: 100vw;
    background: transparent;
  }

  .archive-item {
    background: transparent;
    transition: opacity 1.28s cubic-bezier(0.365, 0.220, 0.000, 0.995) !important;
  }

  .archive-mobile-slider-info {
    display: none;
  }

  .archive-active-info {
    display: grid;
    width: 100vw;
    max-width: 100vw;
  }

  .archive-active-title-group {
    max-width: 100%;
  }

  .archive-active-title {
    max-width: 100%;
  }

  .archive-active-details {
    max-width: none;
  }

  .archive-viewport-note {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
  }

  body.is-page-visible .archive-item.is-archive-thumb-revealed {
    opacity: 0.15;
  }
}

@media (max-width: 500px) {
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }
}

.archive-app .site-header {
  z-index: 4300;
}
