:root {
  --border: 2px solid black;
  --content-padding: 1rem;
  /* @link https://utopia.fyi/type/calculator?c=320,18,1.125,1240,18,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

  /* Step -2: 14.2222px → 11.52px */
  --step--2: clamp(0.72rem, 0.9476rem + -0.2937vw, 0.8889rem);
  /* Step -1: 16px → 14.4px */
  --step--1: clamp(0.9rem, 1.0348rem + -0.1739vw, 1rem);
  /* Step 0: 18px → 18px */
  --step-0: clamp(1.125rem, 1.125rem + 0vw, 1.125rem);
  /* Step 1: 20.25px → 22.5px */
  --step-1: clamp(1.2656rem, 1.2167rem + 0.2446vw, 1.4063rem);
  /* Step 2: 22.7813px → 28.125px */
  --step-2: clamp(1.4238rem, 1.3077rem + 0.5808vw, 1.7578rem);
  /* Step 3: 25.6289px → 35.1563px */
  --step-3: clamp(1.6018rem, 1.3947rem + 1.0356vw, 2.1973rem);
  /* Step 4: 28.8325px → 43.9453px */
  --step-4: clamp(1.802rem, 1.4735rem + 1.6427vw, 2.7466rem);
  /* Step 5: 32.4366px → 54.9316px */
  --step-5: clamp(2.0273rem, 1.5383rem + 2.4451vw, 3.4332rem);

  /* @link https://utopia.fyi/type/calculator?c=320,14,1.125,1700,17,1.2,6,2,420&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --step--2: clamp(0.6914rem, 0.6806rem + 0.0539vw, 0.7378rem);
  --step--1: clamp(0.7778rem, 0.7528rem + 0.1248vw, 0.8854rem);
  --step-0: clamp(0.875rem, 0.8315rem + 0.2174vw, 1.0625rem);
  --step-1: clamp(0.9844rem, 0.917rem + 0.337vw, 1.275rem);
  --step-2: clamp(1.1074rem, 1.0094rem + 0.4899vw, 1.53rem);
  --step-3: clamp(1.2458rem, 1.109rem + 0.6842vw, 1.836rem);
  --step-4: clamp(1.4016rem, 1.2157rem + 0.9294vw, 2.2032rem);
  --step-5: clamp(1.5768rem, 1.3293rem + 1.2372vw, 2.6438rem);
  --step-6: clamp(1.7739rem, 1.4495rem + 1.6217vw, 3.1726rem);
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-VariableFont_opsz\,wght.ttf") format("truetype");
}

@font-face {
  font-family: "DM Serif";
  src: url("../fonts/DMSerifText-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Serif";
  src: url("../fonts/DMSerifText-Italic.ttf") format("truetype");
  font-style: italic;
}

html {
  scroll-behavior: smooth;

}

body {
  margin: 0;
  padding: 0;
  font-size: var(--step-0);
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-family: "DM Sans";
  background-color: #EEE;
}

* {
  box-sizing: border-box;
  margin: 0;
}

/* p {
  max-width: 500px;
} */

h1,
h2,
h3,
h4,
h5,
h6,
.looks-like-h1,
.looks-like-h2,
.looks-like-h3,
.looks-like-h4,
.looks-like-h5,
.looks-like-h6 {
  font-family: "DM Serif";
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 2%;
}

h1,
.looks-like-h1 {
  font-size: var(--step-6);
}
h2,
.looks-like-h2 {
  font-size: var(--step-5);
}

h2.slide-title {
  font-size: var(--step-3);
}
h3,
.looks-like-h3 {
  font-size: var(--step-4);
}
h4,
.looks-like-h4 {
  font-size: var(--step-3);
}
h5,
.looks-like-h5 {
  font-size: var(--step-2);
}
h6,
.looks-like-h6 {
  font-size: var(--step-1);
}

a {
  color: currentColor;
}

header {
  border-bottom: var(--border);
  position: sticky;
  top:0;
  width: 100%;
  background:white;
  z-index: 999;
}

header .col.nav {
  padding:0
}



header .col.nav nav {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
header .col.nav nav a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: currentColor;
  font-size: var(--step-1);
}

header .col.nav nav a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

header .col.nav nav a:not(:last-child){
  border-right: var(--border);
}

    /* Mobile menu styles */
    .mobile-menu-toggle,
    .mobile-menu-label {
      display: none;
    }

      .mobile-menu-label {
    cursor: pointer;
  }


@media screen and (max-width: 800px) {

  .mobile-menu-label {
    display: flex;
    position: fixed;
    top:0px;
    right:0px;
    border-left: var(--border);
    justify-content: center;
    align-items: center;
    padding: 0.6rem 0.5rem 0.5rem;
    line-height: 1;
    z-index: 999;
    font-size: var(--step-1);
    height: 87px;
    width: 87px;
  }
  header .col.nav nav {
    position: absolute;
    height: auto;
    background-color:white;
    flex-direction: column;
    border-top: var(--border);
    display: none;
  }
  header .col.nav nav a {
    height: 44px;
  }
  header .col.nav nav a{
    border-right: 0px;
    border-bottom: var(--border);
  }

  header .col.nav .mobile-menu-toggle:checked ~ nav {
    display:flex;
  }

  .mobile-menu-toggle ~ label .close_text,
  .mobile-menu-toggle:checked ~ label .menu_text {
    display: none;
  }

  .mobile-menu-toggle:checked ~ label .close_text {
    display: block;
    font-size: var(--step-6);
  }
}

footer {
  border-top: var(--border);
  background-color: white;
}

footer a{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: currentColor;
  font-size: var(--step-1);
}
header .col,
footer .col {
  padding: var(--content-padding);
}
header .logo,
footer .logo {
  display: block;
  width: 100%;
}
header .logo-right,
footer .logo-right {
  text-align: right;
}
header .logo svg,
footer .logo svg {
  max-height: 3rem;
}

header .col:not(:last-child),
footer .col:not(:last-child) {
  border-right: var(--border);
}

section {
  background-color: white;
}

section .content-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

section:not(.bordered) .content-wrapper {
  padding: 2rem 1rem;
}

section:not(.bordered) + section:not(.bordered) .content-wrapper {
  padding-top:0rem;
}
section:not(.bordered) .row {
  gap: 1rem;
}

section.bordered {
  border-top: var(--border);
}

/* section:first-child .col > *:first-child:not(.block-media){
  padding-top: 3rem;
} */

.page-wrapper section.bordered:first-child {
  border-top:0px;
}

section.bordered + section {
  border-top: var(--border);
}

section.bordered .content-wrapper {
  max-width: 100%;
}

section.bordered .block + .block {
  border-top: var(--border);
}

section.bordered .block:not(.block-media) {
  padding: 1rem;
}

section.bordered .block-media + .block:not(.block-media) {
  margin-top: 0rem;
}

section.bordered .block-image,
section.bordered .block-image figure,
section.bordered .block-image .img-wrapper {
  height: 100%;
}

@media screen and (min-width: 800px) {
  section.bordered .col:not(:last-child) {
    border-right: var(--border);
  }
}

.block-media {
  line-height: 0;
}

.block img {
  height: auto;
}

.col.project {
  height: 36vh;
  flex: unset;
  width: 100%;
}

@media screen and (min-width: 768px)  { .col.project { max-width: 50%; } }
@media screen and (min-width: 1024px) { .col.project { max-width: 33%; } }
@media screen and (min-width: 1240px) { .col.project { max-width: 25%; } }
@media screen and (min-width: 1440px) { .col.project { max-width: 20%; } }

.filter-controls {
  display:flex;
}

/* Select container styling */
select {
  /* Reset browser defaults */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Basic styling */
  width: 100%;
  padding-right: 2rem;
  font-size: var(--step-1);
  cursor: pointer;
  background-color: transparent;
  border:0px;
  /* Prevent text overflow */
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: currentColor;
}


/* Custom dropdown arrow */
.select-wrapper {
  position: relative;
  width: 100%;
  border-left: var(--border);
  padding: 1rem 0.2rem;
}

@media screen and (min-width: 768px) {
.select-wrapper {
  padding: 1rem;
}
}

.select-wrapper:last-of-type {
  border-right: var(--border);
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #555;
  pointer-events: none; /* So clicks pass through to the select */
}

/* Focus state */
.select-wrapper:has(select:focus) {
  outline: none;
  background-color: black;
  color: white;
}

/* Hover state */
select:hover {
  border-color: #999;
}

.select-wrapper:has(option[selected=""]),
.select-wrapper:has(.selected) {
  background-color: black;
  color: white;
}

.select-wrapper:has(option[selected=""]):after,
.select-wrapper:has(.selected):after{
  border-top-color: white;
}


/* Styling the options (limited support) */
/* Note: Complete styling of options requires JavaScript frameworks */
select option {
  padding: 10px;
  background-color: #fff;
  color: #333;
}

/* Disabled state */
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.clear-filters {
  display:flex;
  padding: 1rem 0.4rem;
  font-weight:bold;
  height: 100%;
  background-color: #eee;
  border: none;
  cursor: pointer;
  font-size: var(--step-2);
  border-right: var(--border);
}

@media screen and (min-width: 768px) {
  .clear-filters {
    display:flex;
    padding: 1rem 1.2rem;
  }
}

.block-project{
  height: 100%;
  overflow: hidden;
}

.projects-overview {
  background-color:transparent;
}
.projects-overview .block-project {
  border-bottom: var(--border);

}

.block-project img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 240ms ease-in-out;
}

.block-project:hover img {
  transform: scale(1.05);
}

.block-project .project-title {
  line-height: 1.2;

  position: absolute;
  bottom: 0;
  right: 0;
  background-color: black;
  color: white;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-align: right;
}


@media screen and (max-width: 1024px) {
  .hide-on-mobile {
    display: none;
  }
}


.tobii-zoom__icon {
  display:none;
}
