@font-face {
  font-family: 'Univers 55';
  font-weight: 400;
  src: url('./fonts/Univers-55.woff2') format('woff2'),
    url('./fonts/Univers-55.woff') format('woff');
}

/* @media -> 52em */

*,
::after,
::before {
  box-sizing: border-box;
  overflow-wrap: break-word;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

:root {
  --line-height: 1.2;
  --spacing-unit: 1.2rem;

  --spacing-5: calc(0.5 * var(--spacing-unit));
  --spacing-6: var(--spacing-unit);
  --spacing-7: calc(1.5 * var(--spacing-unit));
  --spacing-8: calc(2 * var(--spacing-unit));

  --heading-left: 30%;
}

html {
  font-size: 137.5%;
}

body {
  --background: black;
  --color: white;
  overflow-x: hidden;
  font-family: 'Univers 55', sans-serif;
  line-height: var(--line-height);
  font-weight: 400;
  letter-spacing: -0.023em;
  background-color: var(--background);
  color: var(--color);
}

@media screen and (max-width: 30em) {
  html {
    font-size: 100%;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style-type: none;
  padding-left: 0;
}

.has-sticky-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.has-sticky-footer main {
  flex: 1;
}

header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-6);
  width: 100%;
  line-height: 1;
  padding: var(--spacing-5) var(--spacing-5) calc(var(--spacing-5) - 0.22em);
}
.has-bg {
  background-color: var(--background);
}
.fix-safari-color-cut-issue {
  padding-top: 0.25em;
}

footer,
.footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  padding: var(--spacing-5);
  line-height: 1;
}

.has-sticky-footer footer {
  position: relative;
}

.footer {
  position: absolute;
}

ar-heading-2 {
  position: fixed;
  z-index: 10;
  top: 0;
  left: var(--heading-left);
  padding: var(--spacing-5);
  line-height: 1;
}

ar-heading-2[bottom] {
  top: auto;
  bottom: 0;
}
ar-heading-2[abs] {
  position: absolute;
}

@media screen and (max-width: 52em) {
  ar-heading-2 {
    display: none;
  }
}

ar-fixed-container {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
}

.flick-gallery {
  cursor: grab;
  height: 100%;
}
.flicking-panel {
  height: 100%;
}

.flicking-panel figure {
  position: relative;
  width: 100%;
  height: 100%;
}

/* .flicking-panel img, */
video {
  object-fit: cover;
}
.flicking-panel video,
.flicking-panel img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
}
.cover-image {
  object-fit: cover;
}
.cover-crop-image {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.scale-down-image {
  object-fit: scale-down;
  /* height: 100vh; */
}
.soft-crop-image {
  object-fit: scale-down;
}
@media only screen and (orientation: landscape) {
  .scale-down-image {
    object-fit: cover;
    /* height: 100vh; */
  }
}
/* 

@media screen and (max-width: 52em) {
  .flicking-panel[contain] img {
    object-fit: contain;
  }
} */

.flicking-panel video {
  pointer-events: none;
}

.gallery-pagination {
  z-index: 20;
  position: absolute;
  width: auto;
  left: auto;
  right: 0;
  bottom: 0;
  padding: var(--spacing-5);
}

ar-content {
  display: block;
  padding: 0 var(--spacing-5) calc(var(--spacing-6) - var(--spacing-5));
  margin-top: var(--spacing-8);
}

/* grid, very specific */

@media screen and (min-width: 52em) {
  .grid {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-5);
  }

  .grid-item:nth-child(1),
  .grid-item:nth-child(3) {
    min-width: 20ch;
  }

  .grid-item:nth-child(2) {
    max-width: 75ch;
    text-align: center;
  }
  .grid-item:nth-child(2) p {
    text-indent: 0;
  }

  .grid-item:nth-child(3) {
    text-align: right;
  }
}

/* Sanity "portable text" blocks */

.Blocks h2 {
  margin-top: var(--spacing-6);
  text-transform: uppercase;
}

/* utility */

/* https://piccalil.li/quick-tip/visually-hidden/ */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: auto;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
