#gallery {
  color: var(--paper, #f5f0e7);
}
.flo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.flo-filters,
.flo-view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.flo-filters {
  margin: 0 0 1.65rem;
}
.flo-filter,
.flo-more,
.flo-view-nav button,
.flo-close {
  appearance: none;
  border: 1px solid var(--line, #3b3834);
  color: var(--paper, #f5f0e7);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.flo-filter {
  padding: .5rem 1.1rem;
  min-height: 2.75rem;
  border-radius: 2rem;
  font-size: .875rem;
}
.flo-filter[aria-pressed="true"] {
  border-color: var(--paper, #f5f0e7);
  color: var(--bg, #161514);
  background: var(--paper, #f5f0e7);
}
.flo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem clamp(1.2rem, 2.2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.flo-work {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 50.001rem) {
  .flo-grid {
    --gap: clamp(1.2rem, 2.2vw, 2.25rem);
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--gap);
  }
  .flo-grid li {
    flex: 0 0 calc((100% - 2 * var(--gap) - 1px) * var(--share));
    min-width: 0;
  }
}
.flo-thumb {
  display: block;
}
.flo-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.flo-work-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: 1.05rem 0 0;
}
.flo-work-text {
  display: grid;
  gap: .3rem;
}
.flo-work-title {
  font: 400 clamp(1.35rem, 2.1vw, 2rem)/1.15 var(--serif, Georgia, serif);
}
.flo-work-category,
.flo-position {
  color: var(--muted, #bab4ab);
  font-size: .875rem;
}
.flo-plus,
.flo-close {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
}
.flo-plus {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line, #3b3834);
  color: var(--paper, #f5f0e7);
  font: 300 1.3rem/1 Arial, sans-serif;
}
.flo-more-wrap {
  margin: 2rem 0 0;
  text-align: center;
}
.flo-more,
.flo-view-nav button {
  min-height: 2.75rem;
  padding: .5rem 1.25rem;
  border-radius: 2rem;
  font-size: .9375rem;
}
.flo-filter:focus-visible,
.flo-work:focus-visible,
.flo-more:focus-visible,
.flo-viewer button:focus-visible {
  outline: 2px solid var(--gold, #d5b882);
  outline-offset: 4px;
}
@media (hover: hover) {
  .flo-filter:hover,
  .flo-more:hover,
  .flo-viewer button:hover,
  .flo-work:hover .flo-plus {
    border-color: var(--gold, #d5b882);
  }
}
.flo-view-open {
  overflow: hidden;
}
.flo-viewer {
  box-sizing: border-box;
  width: min(94vw, 70rem);
  height: min(92vh, 60rem);
  height: min(92dvh, 60rem);
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: auto;
  border: 1px solid var(--line, #3b3834);
  color: var(--paper, #f5f0e7);
  background: var(--bg, #161514);
}
.flo-viewer::backdrop {
  background: rgba(8, 7, 6, .9);
}
.flo-view-inner {
  display: grid;
  grid-template-rows: auto minmax(4rem, 1fr) auto;
  gap: .8rem;
  box-sizing: border-box;
  height: 100%;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.35rem;
}
.flo-view-top,
.flo-view-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.flo-close {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font: 300 1.5rem/1 Arial, sans-serif;
}
.flo-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
  place-items: center;
  touch-action: pan-y pinch-zoom;
}
.flo-full {
  display: block;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}
.flo-view-copy h3 {
  margin: 0;
  font: 400 clamp(1.5rem, 2.8vw, 2rem)/1.2 var(--serif, Georgia, serif);
}
.flo-view-copy p {
  max-width: 62ch;
  margin: .35rem 0 0;
  color: var(--muted, #bab4ab);
  font-size: 1rem;
  line-height: 1.45;
}
.flo-view-nav {
  flex: none;
}
.flo-more-wrap[hidden],
.flo-view-nav[hidden] {
  display: none;
}
@media (max-width: 50rem) {
  .flo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flo-view-bottom { align-items: flex-start; flex-direction: column; gap: .75rem; }
}
@media (max-width: 35rem) {
  .flo-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .flo-filters { gap: .375rem; }
  .flo-filter { padding: .45rem .8rem; }
  .flo-viewer { width: 100%; height: 100vh; height: 100dvh; border: 0; }
  .flo-view-inner {
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.1rem, env(safe-area-inset-bottom));
  }
}
@media (max-height: 30rem) and (orientation: landscape) {
  .flo-view-inner { grid-template: auto 1fr / 1fr minmax(14rem, 35%); }
  .flo-view-top { grid-column: 2; }
  .flo-stage { grid-column: 1; grid-row: 1 / 3; }
  .flo-view-bottom { display: grid; align-content: end; align-self: stretch; grid-column: 2; }
}
