* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Successor / fonts */

@font-face {
  font-family: 'Successor';
  font-weight: 200;
  font-style: normal;
  src: url('fonts/Successor-Extralight-Web.woff2') format('woff2'),
       url('fonts/Successor-Extralight-Web.woff') format('woff');
}

@font-face {
  font-family: 'Successor';
  font-weight: 200;
  font-style: italic;
  src: url('fonts/Successor-ExtralightItalic-Web.woff2') format('woff2'),
       url('fonts/Successor-ExtralightItalic-Web.woff') format('woff');
}

@font-face {
  font-family: 'Successor';
  font-weight: 300;
  font-style: normal;
  src: url('fonts/Successor-Light-Web.woff2') format('woff2'),
       url('fonts/Successor-Light-Web.woff') format('woff');
}

@font-face {
  font-family: 'Successor';
  font-weight: 300;
  font-style: italic;
  src: url('fonts/Successor-LightItalic-Web.woff2') format('woff2'),
       url('fonts/Successor-LightItalic-Web.woff') format('woff');
}

/* MD System / Standard / fonts */

@font-face {
  font-family: 'MDSystem';
  font-weight: 400;
  font-style: normal;
  src: url('fonts/MDSystem-Regular.woff2') format('woff2'),
       url('fonts/MDSystem-Regular.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 400;
  font-style: italic;
  src: url('fonts/MDSystem-Italic.woff2') format('woff2'),
       url('fonts/MDSystem-Italic.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 500;
  font-style: normal;
  src: url('fonts/MDSystem-Medium.woff2') format('woff2'),
       url('fonts/MDSystem-Medium.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 500;
  font-style: italic;
  src: url('fonts/MDSystem-MediumItalic.woff2') format('woff2'),
       url('fonts/MDSystem-MediumItalic.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 600;
  font-style: normal;
  src: url('fonts/MDSystem-Semibold.woff2') format('woff2'),
       url('fonts/MDSystem-Semibold.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 600;
  font-style: italic;
  src: url('fonts/MDSystem-SemiboldItalic.woff2') format('woff2'),
       url('fonts/MDSystem-SemiboldItalic.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 700;
  font-style: normal;
  src: url('fonts/MDSystem-Bold.woff2') format('woff2'),
       url('fonts/MDSystem-Bold.woff') format('woff');
}

@font-face {
  font-family: 'MDSystem';
  font-weight: 700;
  font-style: italic;
  src: url('fonts/MDSystem-BoldItalic.woff2') format('woff2'),
       url('fonts/MDSystem-BoldItalic.woff') format('woff');
}

/* MD System / Condensed / fonts */

@font-face {
  font-family: 'MDSystem-Condensed';
  font-weight: 500;
  font-style: normal;
  src: url('fonts/MDSystem-CondensedMedium.woff2') format('woff2'),
       url('fonts/MDSystem-CondensedMedium.woff') format('woff');
}

/* MD System Mono / fonts */

@font-face {
  font-family: 'MDSystemMono';
  font-weight: 500;
  font-style: normal;
  src: url('fonts/MDSystemMono-Medium.woff2') format('woff2'),
       url('fonts/MDSystemMono-Medium.woff') format('woff');
}

html, 
body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #051820;
  background-color: #fff;
}

html {
  display: block;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-family: 'MDSystem';
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25rem;
}

main, 
header, 
footer {
  padding: 2.5rem 0;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: auto;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5rem 2rem 2rem;
  gap: 1.5rem;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.background {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, hsl(208, 87.5%, 97%), hsl(208, 87.5%, 95%));
  opacity: 0;
  -webkit-transition: opacity 0.15s ease-in-out;
  -moz-transition: opacity 0.15s ease-in-out;
  -ms-transition: opacity 0.15s ease-in-out;
  transition: opacity 0.15s ease-in-out;
}

.wrap:hover .background {
  opacity: 1;
}

.identifier, 
.details {
  position: relative;
}

.identifier {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.375rem;
  width: 24rem;
  margin: 0;
}

.year {
  font-family: 'Successor';
  font-weight: 200;
  font-variant-numeric: tabular-nums;
}

.details {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
}

.feature {
  width: 24rem;
  height: 12rem;
  background-size: cover;
  background-position: center center;
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 14rem;
}

p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25rem;
}

header > * {
  margin: 0 2.5rem;
}

.headline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  font-family: 'Successor';
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1.875rem;
}

.headline-group {
  display: flex;
  flex-direction: inherit;
  justify-content: inherit;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}

.headline-group img {
  position: relative;
  width: auto;
  height: 2.5rem;
}

.headline-title {
  /* padding-top: 0.25rem; */
  white-space: unset;
}

.headline-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
  line-height: 1.25rem;
}

/* .headline-text .headline-title {
  padding-top: 0;
} */

.headline-text .headline-detail {
  font-family: 'MDSystem';
  font-weight: 600;
  font-size: 1rem;
}

.fathom-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-family: 'MDSystem';
  font-style: italic;
  font-size: 1.125rem;
  height: 1.125rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid;
  white-space: nowrap;
  -webkit-transition: color 0.15s ease-in-out;
  -moz-transition: color 0.15s ease-in-out;
  -ms-transition: color 0.15s ease-in-out;
  transition: color 0.15s ease-in-out;
}

.fathom-link, 
.fathom-link:visited {
  color: hsl(208, 100%, 64%);
}

.fathom-link:hover, 
.fathom-link:focus {
  color: hsl(208, 62%, 44%);
}

.description {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25rem;
  max-width: 20rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1rem;
}

.link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.25rem;
  font-family: 'Successor';
  font-weight: 300;
  font-style: italic;
  white-space: nowrap;
  color: #3e6281;
}

.link a {
  display: inline-block;
  width: 100%;
  /* margin-left: 0.5rem; */
  overflow-wrap: break-word;
  text-decoration: underline;
}

.link a, 
.link a:visited {
  color: hsl(208, 100%, 64%);
}

.link a:hover, 
.link a:focus {
  color: hsl(208, 62%, 44%);
}

/* .link[data-kind="gallery"] a, 
.link[data-kind="gallery"] a:visited {
  color: hsl(167, 100%, 30%);
}

.link[data-kind="gallery"] a:hover, 
.link[data-kind="gallery"] a:focus {
  color: hsl(167, 100%, 15%);
} */

.collection-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.collection-title {
  display: none;
  text-align: center;
  margin: unset;
  font-family: 'Successor';
  font-weight: 300;
}

.collection-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 2.5rem;
  max-width: 68rem;
}

.collection-item {
  max-width: 20rem;
  height: auto;
}

.collection-item[data-orientation="portrait"] {max-width: 12rem}
.collection-item[data-orientation="landscape"] {max-width: 16rem}

.collection-grid[data-orientation="any"] {
  gap: 4rem;
}

.collection-grid[data-orientation="any"] .collection-item {
  max-width: 100%; 
  max-height: 20rem;
}

.collection-grid[data-orientation="any"] .collection-item[data-orientation="maximize"] {
  max-width: 100%; 
  max-height: 30rem;
}

.collection-grid[data-orientation="any"] .collection-item[data-orientation="full"] {
  max-width: 100%; 
  max-height: 60rem;
}

.collection-grid[data-orientation="any"] .collection-item[data-orientation="wide"] {
  max-width: 48rem;
  max-height: unset;
}

.collection-grid[data-orientation="any"] .collection-item[data-orientation="tall"] {
  max-width: unset;
  max-height: 60rem;
  margin: 0 100%;
}

header, 
footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* header {
  padding-top: 0.25rem;
} */

.gallery header {
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: -0.125rem;
}

footer {
  padding-bottom: 3.5rem;
}

@media (max-width: 45rem) {

  body, 
  main {
    align-items: flex-start;
  }

  header, 
  footer {
    flex-direction: row;
    padding: 10vw 0;
  }

  header > * {
    margin: 0 10vw;
  }

  .headline, 
  section {
    margin: 0 10vw;
  }

  .headline {
    gap: 1.25rem;
  }

  .wrap {
    gap: 7.5vw;
    padding: 7.5vw 10vw 10vw;
  }

  .feature {
    width: 60vw;
    height: 30vw;
  }
  
  .details {
    flex-direction: column;
    gap: 1.25rem;
  }

  .identifier, 
  .text {
    max-width: 60vw;
  }
  
  .description {
    max-width: unset;
  }

  .gallery main {
    width: 100%;
  }

  .collection-grid {
    gap: 5vw;
  }

  .collection-item {
    max-width: 60vw !important;
    max-height: unset !important;
    width: unset !important;
    height: unset !important;
    margin: unset;
  }

}

@media (max-width: 28rem) {

  .headline {
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1rem;
    gap: 1rem;
  }

  .headline-group img {
    height: 100%;
    max-height: 2rem;
  }

  .fathom-link {
    font-size: 1rem;
    height: 1rem;
  }

  .identifier {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1.125rem;
    line-height: 1.25rem;
  }

  .details {
    gap: 1rem;
  }

  p {
    font-size: 0.875rem;
    line-height: 1rem;
  }

  .links {
    font-size: 0.75rem;
    line-height: 0.875rem;
  }

}