:root {
  --paper: #f7f6f2;
  --ink: #252722;
  --muted: #7b7d74;
  --line: #dedfd6;
  --accent: #65735b;
  --light: #eceee7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 13px;
}
button:hover {
  background: var(--light);
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
button.primary:hover {
  background: #49553f;
}
button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--light);
  border-color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
input,
textarea,
select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: 39px;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.quiet {
  border: 0 !important;
  background: transparent !important;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
[hidden] {
  display: none !important;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 3%;
  gap: 64px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wordmark {
  text-decoration: none;
  font-family: var(--serif);
  font-weight: bold;
  font-size: 29px;
  letter-spacing: -1.2px;
}
.wordmark span {
  color: #7b8b63;
}
nav {
  display: flex;
  align-items: center;
  gap: 15px;
}
nav button {
  border: 0;
  padding: 7px 10px;
  color: var(--muted);
}
nav button[aria-pressed="true"] {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 25px;
  text-decoration-thickness: 2px;
}
.account-nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
  align-items: center;
  font-size: 12px;
}
main {
  padding: 36px 3% 70px;
  max-width: 1920px;
  margin: auto;
  min-height: calc(100vh - 150px);
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.heading .muted {
  font-size: 12px;
}
.searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.searchbar input {
  padding: 15px 18px;
  border: 1px solid #c7cbbd;
  background: #fff;
  font-size: 15px;
  box-shadow: none;
  min-width: 100px;
}
.searchbar button {
  padding: 14px 24px;
}
.suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.suggestions button {
  font-size: 11px;
  border-radius: 20px;
  padding: 6px 11px;
  color: #717568;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin: 20px 0 22px;
  flex-wrap: wrap;
}
.filters select {
  font-size: 12px;
  max-width: 210px;
  border: 0;
  background: var(--light);
  padding: 9px 26px 9px 11px;
}
.filters .layout-toggle {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.layout-toggle button {
  font-size: 11px;
  padding: 8px 11px;
}
.resultbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}
.tile {
  min-width: 0;
}
.tile-visual {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #171c18;
}
.tile-open {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.tile-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s;
}
.tile-open:hover img {
  opacity: 0.85;
}
.tile-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.tile-visual:hover .tile-actions,
.tile-visual:focus-within .tile-actions {
  opacity: 1;
  pointer-events: auto;
}
.tile-actions button {
  font-size: 10px;
  padding: 5px 8px;
  background: var(--paper);
  border-color: var(--paper);
}
.tile-actions button:last-child {
  margin-left: auto;
}
.tile-title {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 550;
}
.tile-title .small {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.tile-label {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}
.swatches {
  display: flex;
  gap: 3px;
  align-items: center;
}
.swatch {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 1px solid #00000012;
  border-radius: 50%;
  padding: 0;
}
.swatch:hover {
  transform: scale(1.15);
}
.more {
  display: block;
  margin: 38px auto 0;
  min-width: 160px;
}
.empty {
  padding: 65px 0;
  max-width: 500px;
}
.empty h2 {
  margin-bottom: 18px;
}
.empty button {
  margin-top: 18px;
}
.loading {
  padding: 50px 0;
  color: var(--muted);
}
.error {
  color: #9b3e30;
  font-size: 13px;
  line-height: 1.5;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.board-card {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
}
.board-cover {
  aspect-ratio: 4/3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--light);
  border-radius: 4px;
  overflow: hidden;
}
.board-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 0;
}
.board-cover .blank {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 24px;
}
.board-card h3 {
  margin-top: 13px;
}
.board-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.board-notes {
  max-width: 650px;
  font-size: 13px;
  color: var(--muted);
  margin: -10px 0 22px;
}
.saved-note {
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.5;
}
.note-button {
  border: 0;
  padding: 4px 0;
  font-size: 11px;
  color: var(--muted);
}
footer {
  padding: 20px 3%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
footer button {
  border: 0;
  padding: 0;
  font-size: 11px;
}
dialog {
  background: var(--paper);
  border: 0;
  border-radius: 6px;
  padding: 0;
  width: 460px;
  max-width: 94vw;
  max-height: 92vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #161b17c9;
}
dialog.gallery {
  width: 1500px;
  background: #141a16;
  color: #e8ebe3;
  max-height: 96vh;
}
dialog.comparison {
  width: 1500px;
  background: #141a16;
  color: #e8ebe3;
}
dialog.wide {
  width: 780px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 26px;
}
.modal-head button {
  border: 0;
  padding: 5px;
  font-size: 12px;
  color: inherit;
}
.modal-content {
  padding: 25px;
}
.modal-content p {
  margin-bottom: 18px;
}
.modal-content form {
  display: grid;
  gap: 15px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
}
.form-footer {
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}
.form-footer button {
  border: 0;
  text-decoration: underline;
  padding: 0;
}
.form-message {
  font-size: 12px;
  line-height: 1.6;
}
.auth-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 23px;
}
.auth-switch button {
  flex: 1;
}
.gallery .modal-head,
.comparison .modal-head {
  border-bottom: 1px solid #364038;
  padding: 15px 20px;
}
.gallery .modal-head h2 {
  font: 600 15px var(--sans);
  letter-spacing: 0;
}
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
}
.gallery-stage {
  min-width: 0;
  padding: 12px;
}
.image-stage {
  height: min(64vh, 750px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c110d;
}
.image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.gallery-side {
  padding: 24px 20px;
  border-left: 1px solid #364038;
  overflow: auto;
  max-height: 76vh;
}
.gallery-side h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0;
}
.gallery-side p {
  font-size: 12px;
  color: #adb6a9;
  line-height: 1.7;
}
.gallery-side .row {
  margin-top: 20px;
}
.gallery-side button {
  color: inherit;
  border-color: #586353;
  font-size: 12px;
}
.gallery-side button:hover,
.gallery-side button[aria-pressed="true"] {
  background: #303b2d;
  color: white;
}
.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 20px 0;
}
.taglist button {
  font-size: 10px;
  padding: 4px 7px;
}
.gallery-side details {
  font-size: 11px;
  margin-top: 24px;
  color: #aeb7a9;
  line-height: 1.7;
}
.gallery-side summary {
  cursor: pointer;
}
.gallery-side details a {
  display: block;
  margin-top: 6px;
}
.filmstrip {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px 0 0;
}
.filmstrip button {
  padding: 0;
  border: 2px solid transparent;
  flex: 0 0 96px;
  height: 61px;
  border-radius: 2px;
  background: #0c110d;
}
.filmstrip button[aria-pressed="true"] {
  border-color: #b5c5a4;
}
.filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #aeb7a9;
  padding: 10px 0 0;
}
.gallery-bottom button {
  color: inherit;
  border-color: #46523f;
  font-size: 11px;
  padding: 5px 9px;
}
.gallery-bottom button:hover {
  background: #303b2d;
}
.price {
  font-family: var(--serif);
  font-size: 62px;
  letter-spacing: -2px;
  margin: 18px 0 0;
}
.price span {
  font: 13px var(--sans);
  letter-spacing: 0;
  margin-left: 12px;
  color: var(--muted);
}
.benefits {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  line-height: 2.2;
  font-size: 13px;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.plan-grid > section {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 4px;
}
.plan-grid .price {
  font-size: 48px;
}
.board-list {
  display: grid;
  gap: 8px;
}
.board-list button {
  padding: 13px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.board-list .muted {
  font-size: 11px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 20px;
}
.compare-item img {
  width: 100%;
  height: 32vh;
  object-fit: contain;
  background: #0c110d;
}
.compare-item .tile-title {
  color: #e8ebe3;
}
.compare-item .tile-label {
  color: #b3bdad;
}
.compare-item .swatches {
  margin-top: 10px;
}
#compareTray {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 15px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
}
#compareTray button {
  color: white;
  border-color: #737b6c;
  font-size: 11px;
  padding: 6px 10px;
}
#compareTray button:hover {
  background: #424d3b;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 4px;
  z-index: 100;
  font-size: 13px;
  max-width: 90vw;
}
.about-copy p {
  font-size: 13px;
  line-height: 1.8;
}
.about-copy h3 {
  margin: 24px 0 10px;
}
.usage {
  margin: 15px 0 25px;
  padding: 15px;
  background: var(--light);
  border-radius: 4px;
  font-size: 13px;
}
.usage strong {
  font-size: 24px;
  font-weight: 500;
}
.account-actions {
  display: grid;
  gap: 8px;
}
.board-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.board-actions button {
  font-size: 12px;
}
.annotation {
  padding: 13px;
  background: var(--light);
  border-radius: 4px;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1700px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  header {
    gap: 30px;
  }
  .grid,
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filters select {
    max-width: 160px;
  }
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .gallery-side {
    padding: 17px;
  }
  .image-stage {
    height: 60vh;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 68px;
    padding: 15px 5%;
    gap: 20px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 26px;
  }
  .account-nav {
    font-size: 11px;
  }
  .account-nav .quiet {
    display: none;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }
  nav button {
    padding: 5px 0;
  }
  nav button[aria-pressed="true"] {
    text-underline-offset: 15px;
  }
  main {
    padding: 28px 5% 70px;
  }
  h1 {
    font-size: 33px;
  }
  .heading {
    align-items: start;
    gap: 12px;
  }
  .heading .muted {
    font-size: 10px;
  }
  .searchbar input {
    padding: 13px;
    font-size: 13px;
  }
  .searchbar button {
    padding: 12px;
    font-size: 12px;
  }
  .suggestions {
    gap: 6px;
    margin-bottom: 18px;
  }
  .suggestions button {
    font-size: 10px;
  }
  .filters {
    gap: 6px;
    margin: 16px 0;
  }
  .filters select {
    max-width: calc(50% - 3px);
    font-size: 11px;
    flex: 1;
  }
  .filters .layout-toggle {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-end;
  }
  .grid,
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 13px;
  }
  .tile-title {
    font-size: 12px;
  }
  .tile-label {
    font-size: 10px;
  }
  .tile-title .small {
    font-size: 10px;
  }
  .tile-actions {
    opacity: 1;
    pointer-events: auto;
    position: static;
    background: var(--paper);
    padding: 6px 0 0;
    gap: 4px;
  }
  .tile-actions button {
    padding: 3px 0;
    border: 0;
    font-size: 9px;
    color: var(--muted);
    background: transparent;
  }
  .tile-actions button:last-child {
    margin-left: auto;
  }
  .tile-open {
    aspect-ratio: 16/11;
  }
  .tile-visual {
    background: var(--paper);
  }
  .tile-open {
    background: #171c18;
  }
  .tile-actions button[data-save] {
    display: block;
  }
  .tile-actions button[data-compare] {
    display: none;
  }
  .tile-actions button {
    font-size: 10px;
    min-height: 30px;
    padding: 4px 0;
  }
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .gallery-side {
    border-left: 0;
    border-top: 1px solid #364038;
    max-height: none;
    padding: 17px;
  }
  .gallery-side .taglist {
    margin: 12px 0;
  }
  .gallery-side .row {
    margin-top: 12px;
  }
  .gallery-side details {
    margin-top: 15px;
  }
  .image-stage {
    height: 42vh;
  }
  .gallery .modal-head {
    padding: 12px;
  }
  .gallery .modal-head h2 {
    font-size: 13px;
  }
  .gallery-bottom {
    flex-wrap: wrap;
  }
  .filmstrip button {
    flex-basis: 75px;
    height: 49px;
  }
  .gallery-side p {
    font-size: 11px;
  }
  .gallery-side h3 {
    font-size: 13px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-grid > section {
    padding: 15px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .compare-item img {
    height: auto;
    aspect-ratio: 16/9;
  }
  #compareTray {
    width: 90%;
    gap: 10px;
    justify-content: space-between;
    font-size: 11px;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-content {
    padding: 20px;
  }
  footer {
    padding: 20px 5%;
  }
  .board-actions {
    max-width: 180px;
    justify-content: flex-end;
  }
  .board-actions button {
    padding: 5px 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Style atlas and functional gallery navigation. */
.style-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 36px;
}
.style-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.style-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  min-height: 82px;
}
.style-heading h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.style-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  margin-top: 7px;
}
.style-heading > button {
  flex-shrink: 0;
  font-size: 11px;
  padding: 7px 10px;
  margin-top: 3px;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.style-grid .tile-title {
  font-size: 11px;
  line-height: 1.4;
}
.style-grid .tile-label {
  font-size: 10px;
}
.style-grid .tile-actions {
  gap: 4px;
  left: 5px;
  right: 5px;
}
.style-grid .tile-actions button {
  padding: 4px;
  font-size: 9px;
}
.style-grid .tile-actions [data-compare] {
  display: none;
}
.style-count {
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 4px;
  background: #141a16d9;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.gallery-arrow.previous {
  left: 8px;
}
.gallery-arrow.next {
  right: 8px;
}
.gallery-arrow img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  cursor: inherit;
}
.gallery-arrow:hover {
  background: #141a16;
}
.gallery-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}
.tile-visual:hover .gallery-arrow,
.tile-visual:focus-within .gallery-arrow,
.image-stage:hover .gallery-arrow,
.image-stage:focus-within .gallery-arrow {
  opacity: 1;
  pointer-events: auto;
}
.frame-count {
  position: absolute;
  top: 9px;
  right: 9px;
  background: #141a16d9;
  color: white;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
}
.tile-visual:hover .frame-count,
.tile-visual:focus-within .frame-count {
  opacity: 1;
}
.image-stage {
  position: relative;
}
.image-stage > .gallery-arrow {
  width: 42px;
  height: 54px;
}
@media (max-width: 1100px) {
  .style-sections {
    gap: 32px 24px;
  }
  .style-heading {
    display: block;
    min-height: 130px;
  }
  .style-heading > button {
    margin-top: 10px;
  }
  .style-grid {
    gap: 9px;
  }
  .style-grid .tile-actions [data-similar] {
    display: none;
  }
}
@media (max-width: 760px) {
  .style-sections {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .style-heading {
    min-height: 0;
  }
  .style-heading h2 {
    font-size: 25px;
  }
  .style-heading p {
    font-size: 12px;
  }
  .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .style-grid .tile:nth-child(3) {
    display: none;
  }
  .style-grid .tile-title {
    font-size: 12px;
  }
  .style-grid .tile-actions [data-similar] {
    display: block;
  }
  .gallery-arrow {
    width: 30px;
    height: 38px;
  }
  .image-stage > .gallery-arrow {
    width: 38px;
    height: 48px;
  }
}
@media (hover: none), (pointer: coarse) {
  .gallery-arrow,
  .frame-count {
    opacity: 1;
    pointer-events: auto;
  }
  .frame-count {
    pointer-events: none;
  }
  .tile-visual .gallery-arrow {
    top: calc(50% - 15px);
  }
}

/* Images always fit the available stage; only long details may scroll. */
dialog.gallery {
  height: min(900px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}
.gallery #modalBody {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gallery .modal-head {
  flex: 0 0 auto;
}
.gallery-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.gallery-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.gallery-stage .image-stage {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.image-stage #largeImage {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery .filmstrip {
  flex: 0 0 auto;
  overflow: hidden;
  gap: 7px;
  min-width: 0;
}
.gallery .filmstrip button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 110px;
  height: clamp(38px, 6vh, 62px);
}
.gallery-bottom {
  flex: 0 0 auto;
  min-height: 37px;
}
.gallery-side {
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #51604e transparent;
}
.gallery-side::-webkit-scrollbar {
  width: 4px;
}
.gallery-side::-webkit-scrollbar-thumb {
  background: #51604e;
  border-radius: 4px;
}
.gallery-side::-webkit-scrollbar-track {
  background: transparent;
}
.gallery.image-focus .gallery-layout {
  grid-template-columns: minmax(0, 1fr);
}
.gallery.image-focus .gallery-side,
.gallery.image-focus .filmstrip {
  display: none;
}
.gallery.image-focus #largeImage {
  cursor: zoom-out;
}
.ui-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0);
  display: block;
}
button.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  min-width: 34px;
  min-height: 34px;
  gap: 0;
}
.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary .ui-icon,
.gallery .ui-icon,
.comparison .ui-icon {
  filter: none;
}
.gallery .modal-head .icon-button {
  color: inherit;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  padding: 6px;
}
.gallery .modal-head .icon-button:hover {
  background: #2e382b;
}
.tile-actions {
  justify-content: flex-start;
  gap: 6px;
}
.tile-actions button.icon-button {
  width: 32px;
  height: 32px;
  padding: 6px;
  min-width: 32px;
  min-height: 32px;
  background: #f7f6f2ed;
  border: 0;
}
.tile-actions button:last-child {
  margin-left: 0;
}
.tile-actions button[aria-pressed="true"] {
  background: #cbd7bf;
  box-shadow: inset 0 0 0 1px #697b58;
}
.style-grid .tile-actions [data-compare],
.style-grid .tile-actions [data-similar] {
  display: inline-flex;
}
.gallery-side .row.wrap {
  gap: 6px;
}
.gallery-side .with-icon {
  font-size: 12px;
  padding: 8px;
}
.gallery-side .with-icon .ui-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  dialog.gallery {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    max-width: calc(100vw - 20px);
  }
  .gallery-layout {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #51604e transparent;
  }
  .gallery-stage {
    height: clamp(300px, 57dvh, 600px);
  }
  .gallery-side {
    overflow: visible;
  }
  .gallery.image-focus .gallery-layout {
    display: flex;
  }
  .gallery.image-focus .gallery-stage {
    height: 100%;
    width: 100%;
  }
  .tile-actions button.icon-button,
  .tile-actions button[data-compare] {
    display: inline-flex;
    background: transparent;
  }
  .tile-actions {
    justify-content: space-between;
    padding: 3px 0;
  }
  .tile-actions button:last-child {
    margin-left: 0;
  }
  .style-grid .tile-actions [data-compare],
  .style-grid .tile-actions [data-similar] {
    display: inline-flex;
  }
  .gallery .filmstrip {
    gap: 4px;
  }
  .gallery .filmstrip button {
    height: 38px;
  }
  .searchbar .ui-icon {
    width: 18px;
    height: 18px;
  }
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .brand-kicker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font: 600 9px/1.1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.wordmark .brand-kicker span {
  color: inherit;
}
.wordmark .brand-name {
  font:
    400 47px/0.9 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -1.4px;
  color: var(--ink);
}
@media (max-width: 760px) {
  .wordmark .brand-name {
    font-size: 40px;
  }
  .wordmark .brand-kicker {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .wordmark {
    gap: 8px;
  }
}
.style-link {
  flex-shrink: 0;
  font-size: 11px;
  padding: 7px 10px;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.style-link:hover {
  background: var(--light);
}
.seo-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #171c18;
}
@media (max-width: 1100px) {
  .style-link {
    margin-top: 10px;
  }
}
.filmstrip img {
  display: block;
}
dialog {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
dialog.comparison {
  scrollbar-color: #51604e transparent;
}
