/* Rebuild of the Cargo layout. Sizes are in rem; the root scales with the viewport like Cargo did. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --text: #000;
  --grey: #878787;
  --chip: #efefef;
  --bg: #fcfcfc;
  --radius: .5em;
  --side: 4.5rem;
  color-scheme: light;
}

html { font-size: max(11.4px, .9vw); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.5rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: -.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
header, main, footer { padding: var(--pt, 3rem) var(--side) var(--pb, 3rem); }

a { color: var(--text); text-decoration: none; }
a:hover { color: #dfdfdf; }
a:active { opacity: .7; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
small { display: inline-block; font-size: 1rem; line-height: 1em; font-weight: 300; }
small a:hover { color: inherit; }
h1 { font-size: 2.4rem; font-weight: 400; line-height: 1; margin: 0; }
b, strong { font-weight: 600; }

img, video { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
iframe { max-width: 100%; border: 0; }

.slight-grey, .small-grey { color: var(--grey); display: block; }
.custom-button-two {
  display: inline-block;
  padding: .4em .8em;
  margin: .4em .1em .4em 0;
  border-radius: 1.5em;
  background: var(--chip);
  color: var(--grey);
}

/* Cargo grid: row padding/gutter, 12 columns */
.row { display: flex; flex-wrap: wrap; align-items: flex-start; padding: var(--p); margin: calc(var(--g) * -1); }
.row > .col { width: var(--w); padding: var(--p); }

/* Galleries */
.gallery { display: flex; flex-wrap: wrap; align-items: flex-start; margin: calc(var(--gp) * -2); padding: var(--gp); }
.gallery > .card { padding: var(--gp); display: block; }
.gallery > .card:hover { color: inherit; }
.gallery img, .gallery video { width: 100%; margin: 0; }
.gallery video { aspect-ratio: var(--ar); object-fit: cover; }
.gallery-grid > .card { width: calc(100% / var(--cols)); }
.gallery-grid img { aspect-ratio: var(--ar); object-fit: cover; }
.gallery-freeform > .card { width: var(--w); }
/* justify: rows of equal height; row_height is a % of the container width */
.gallery-justify > .card { flex: var(--ar) 1 calc(var(--ar) * var(--rh)); }
.gallery-columns { display: block; columns: 2; column-gap: 0; }
.gallery-columns > .card { break-inside: avoid; }

@media (max-width: 767px) {
  :root { --side: 2.3rem; }
  header, main, footer { padding-top: calc(var(--pt, 3rem) / 2); padding-bottom: calc(var(--pb, 3rem) / 2); }
  .row.responsive > .col { width: 100%; }
  .gallery-grid > .card { width: calc(100% / var(--mcols)); }
  .gallery-freeform > .card { width: 50%; }
  .gallery-justify > .card { flex-basis: calc(var(--ar) * var(--mrh)); }
}
