* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-family: 'Chivo', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-background);
}
@media screen and (min-width: 720px) {
  html {
    font-size: 17px;
  }
}
img {
  width: 100%;
  height: auto;
}
body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 500;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 6rem;
}

.logo {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
  font-size: clamp(2rem, 1.286rem + 2.286vw, 3rem);
  font-weight: 400;
  cursor: pointer;
}

@media screen and (min-width: 720px) {
  .logo {
    width: unset;
  }
}

.logo svg {
  height: 50px;
  width: auto;
}

.menu {
  display: flex;
  font-weight: 400;
}
.menu a {
  padding: 1rem;
  display: block;
}
.menu a[aria-current] {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.social {
  display: flex;
  padding: 0 .5rem;
  padding-top: 0.15rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  display: grid;
  grid-gap: 5rem 1.5rem;
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.contact .grid > .column {
  margin-bottom: 0;
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

h1 {
  letter-spacing: 0.004em;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: none;
  color: #a9a9a9;
}
.text a:hover {
  color: #000;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 2rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  max-width: 100%;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .5rem;
  line-height: 1.5em;
}

.footer {
  padding: 9rem 0 6rem;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

@media screen and (min-width: 720px) {
  body {
    --padding: 3rem;
  }
  .grid {
    grid-template-columns: repeat(9, 1fr);
  }
  .grid > .column {
    grid-column: span 3;
  }
}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt figure {
  margin-bottom: .45rem;
}
.note-excerpt-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}
.note-title,
.project {
  font-weight: 400;
}
.note-header {
  margin-top: 3rem;
}

/* H1 LOGO HOME */
.visually-hidden { 
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px; 
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
  clip: rect(1px, 1px, 1px, 1px); /*maybe deprecated but we need to support legacy browsers */
  clip-path: inset(50%); /*modern browsers, clip-path works inwards from each corner*/
  white-space: nowrap; /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */
}

/* PROJECTS */
@media screen and (min-width: 720px) {
  .projects {
    margin-bottom: 7rem;
  }
}

/* PROJECT */
.content_project {
  display: flex;
  flex-direction: column;
}
.content_project__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  margin-top: 1.5em;
}
.content_project__images img,
.content_product__images img {
  width: 100%;
  height: 100%;
}
.col1 {
  grid-column: 1;
}
.col2 {
  grid-column: 1;
}
.project p {
  font-size: 1.98rem;
  font-weight: 300;
}

@media screen and (min-width: 720px) {
  .content_project {
    flex-direction: row;
  }
  .content_project__text {
    width: 33.333%;
    padding-right: 2em;
  }
  .content_project__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 66.666%;
    gap: 1em;
    grid-auto-flow: column;
    margin-top: 0;
    height: fit-content;
  }
  .col1 {
    grid-column: 1;
  }
  .col2 {
    grid-column: 2;
  }
  .rowspan {
    grid-row: span 2;
  }
  .project p {
    /* padding-top: .1rem; */
  }
}

/* PRODUCTS */
.gridprodukte {
  grid-template-columns: repeat(1, 1fr);
}
@media screen and (min-width: 720px) {
  .gridprodukte {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* PRODUCT */
.content_product {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.content_product__text {
  flex-direction: column;
}
.content_product__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  grid-auto-flow: column;
  width: 100%;
  margin-top: 6.5em;
}
@media screen and (min-width: 720px) {
  .content_product {
    width: calc(50% - 2em);
    padding-right: 2em;
  }
  .content_product__text {
    padding-right: 2em;
  }
  .content_product__images {
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    grid-auto-flow: column;
    width: 50%;
    margin-top: 6.5em;
    height: fit-content;
  }
}

/* HOME */
.home-grid {
  display: grid;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}
.home-grid img {
  /* position: absolute; */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

@media screen and (min-width: 720px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-big {
    grid-column: span 2;
    grid-row: span 2;
  }
  .home-grid a:last-child {
    grid-column: 3;
    grid-row: 2;
  }
}

/* ABOUT */
.contact {
  padding: 3rem;
  border: 2px solid #000;
}
.contact .h1 {
  margin-bottom: 1.5rem;
}
.contact a {
  text-decoration: none;
}
.contact .grid {
  grid-gap: 1.5rem;
}
.about h1 {
  font-weight: 400;
}
.aboutlayout h2 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 1.75rem;
}
.grid.aboutlayout {
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 0;
}
.aboutlayout figure {
  padding-top: .5rem;
}
.copyright {
  padding-top: 5rem;
}
@media screen and (min-width: 60rem) {
  .grid.aboutlayout {
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 2.5rem 2.5rem;
  }
  .aboutlayout figure {
    padding-top: 0;
  }
}

/* ALBUM */
.album-gallery {
  line-height: 0;
  columns: 1;
  column-gap: 1.5rem;
}
.album-gallery li {
  display: block;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}
@media screen and (min-width: 60rem) {
  .album-gallery {
    columns: 2;
  }
}

/* NOTE */
.note {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.note-excerpt.note {
  max-width: 35rem;
  margin: 0 auto;
}
.note-header {
  padding-top: 3rem;
  margin-bottom: 3rem;
}
.note-footer {
  padding: 6rem 0;
}
.note-date {
  color: var(--color-text-grey);
}
.note-tags {
  display: flex;
  margin-bottom: 1.5rem;
}
.note-tags li {
  margin-right: .5rem;
}
.note-tags a {
  padding: .5rem 1rem;
  display: block;
  background: var(--color-light);
}
.note-tags a:hover {
  background: var(--color-black);
  color: var(--color-white);
}
@media screen and (min-width: 720px) {
  .note {
    flex-direction: row;
  }
}

/* PARVUS */
.parvus__counter {
  display: none;
}
:root {
  --parvus-overlay-color: rgba(0,0,0,.8);
}
.parvus-zoom__indicator {
  display: none;
}
.parvus__btn,
.parvus__btn:hover {
  background-color: transparent;
}
.parvus__slide {
  padding: 1rem;
  padding-right: 1.5rem;
  padding-top: 2rem;
}
@media screen and (min-width: 60rem) {
  .parvus__slide {
    padding: 1rem;
  }
}

/* DIVERS */
:focus {
  outline: none;
}

/* LAYOUT */
.section2 {
  display: flex;
  flex-direction: column-reverse;
}
@media screen and (min-width: 720px) {
  .section2 {
    display: grid;
    flex-direction: unset;
  }
}
