/* Violet Dine — rebuilt from the Cargo site design */
html {
  --base-size: 11.0592px;
  --mobile-scale: 1.4;
  --ink: rgba(0, 0, 0, 0.85);
  --rule: rgba(0, 0, 0, 0.75);
  --muted: rgba(0, 0, 0, 0.4);
  --nav-h: 0px;
  --foot-h: 0px;
  font-size: var(--base-size);
  -webkit-text-size-adjust: none;
}
html.mobile { font-size: calc(var(--base-size) * var(--mobile-scale)); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
  padding-bottom: var(--foot-h);
}
.bodycopy {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 350;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
}
.bodycopy a { color: var(--ink); text-decoration: underline; }
a:active, .zoomable img:active { opacity: 0.7; }
.muted { color: var(--muted); }
.tag { color: rgba(154, 154, 154, 0.85); }

.page-layout { max-width: 100%; padding: 0 0.8rem; }
.page-content { padding: 0.8rem 0 0.6rem; text-align: left; }

/* 12-column "column-set" */
.column-set {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 0.5rem;
}
.column-set > .left { grid-column: span var(--a); text-align: left; }
.column-set > :last-child { grid-column: span var(--b); text-align: right; }

/* pinned nav / footer */
.pinned { position: fixed; left: 0; right: 0; z-index: 10; }
.pinned .page-content { background: #fff; border: 0 solid var(--rule); }
.pinned.top { top: 0; }
.pinned.top .page-content { border-bottom-width: 0.1rem; }
.pinned.bottom { bottom: 0; }
.pinned.bottom .page-content { border-top-width: 0.1rem; }
#nav-mobile .page-content { border-color: rgba(0, 0, 0, 0.85); }
#footer-mobile .page-content { border-color: rgba(0, 0, 0, 0.4); }
.mobile-only { display: none; }
html.mobile .mobile-only { display: block; }
html.mobile .desktop-only { display: none; }

/* section heading rows */
.heading { scroll-margin-top: var(--nav-h); }
.heading .page-content { border-bottom: 0.1rem solid var(--rule); }
html.mobile .heading .column-set { column-gap: 1.6rem; }

/* galleries */
.gallery .page-content { padding-bottom: var(--pb); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  row-gap: var(--rg);
  column-gap: var(--cg);
  align-items: start;
}
html.mobile .gallery-grid {
  grid-template-columns: repeat(var(--mcols), minmax(0, 1fr));
  row-gap: var(--mrg);
  column-gap: var(--mcg);
}
.media-item { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.media-item img, .media-item video { display: block; width: 100%; height: auto; }
.zoomable img { cursor: zoom-in; }

.caption {
  font-family: var(--font-caption);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  color: rgba(0, 0, 0, 0.58);
  line-height: 1.45;
  letter-spacing: 0;
  display: block;
  padding: 0.4rem 0;
  margin-top: 0.5em;
  margin-bottom: 2em;
  font-variation-settings: var(--caption-variation, normal);
}

/* closing big text */
.big-text h2 {
  font-family: var(--font-body);
  font-weight: 350;
  margin: 0;
  color: rgba(0, 0, 0, 0.03);
  line-height: 0.75;
  white-space: nowrap;
  display: inline-block;
  font-size: 2rem;
}

/* quick view (image zoom) */
.quick-view {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.quick-view[hidden] { display: none; }
.quick-view img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; }
.quick-view button {
  position: absolute; border: 0; background: none; cursor: pointer;
  font: 300 2.6rem/1 var(--font-caption); color: var(--ink); padding: 1rem;
}
.qv-close { top: 0; right: 0; }
.qv-prev { left: 0; top: 50%; transform: translateY(-50%); }
.qv-next { right: 0; top: 50%; transform: translateY(-50%); }
