* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body { 
  font-family: 'Cormorant Garamond', sans-serif;
  height: auto;
  font-size: 1.3em;
  font-variant: lining-nums;
  margin: 0px;
}


a:link { text-decoration: none; color: black }

a:visited { text-decoration: none; color: black }

a:hover { text-decoration: underline; color: black }

a:active { text-decoration: none; color: black }

p {
  line-height: 140%;
}

h1 {
  font-weight: 400;
  text-align: center;
}

h2 {
  margin-top: 50px;
  font-weight: 400;
}

.logo {
  background-color: white;
  height: 60px;
  width: 500px;
  margin-top: 10px;
  margin-bottom: 80px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.content {
  max-width: 1000px;
  margin: auto;
  margin-top: 40px;
  display: table;
}

.column-left {
  width: 300px;
  float: left;
  margin-top: 1.5em;
}

.column-right {
  width: 600px;
  float: left;
}

table {
  border-spacing: 0px;
  margin-bottom: 200px;
  width: -webkit-fill-available
}

td {
  padding-right: 32px;
  border-bottom: 1px solid;
  padding-top: 12px;
  padding-bottom: 12px;
}

tr {
  line-height: 24px;
}

.year {
  width: 80px;
}

.nav-item {
  /* font-size: 16px; */
  margin-top: 24px;
  margin-left: 36px;
}

#first-item {
  margin-left: auto;
}

.gallery {
  background: #fff;
  height: 600px;
}

.portfolio {
  height: auto;
  row-gap: 40px !important;
  column-gap: 40px !important;
  margin-top: 32px;
}

.gallery-cell {
  width: 25%;
  height: -webkit-fill-available;
  margin-right: 40px;
  background: #fff;
  counter-increment: gallery-cell;
  text-align: center;
  display: flex;
}

/* cell number */
.gallery-cell:before {
  display: block;
  text-align: center;
  /*content: counter(gallery-cell);*/
  line-height: 200px;
  font-size: 80px;
  color: white;
  display: flex;
}

.gallery-image {
  margin: auto;
}


/* GALLERY */

.gallery {
  display: grid;
  row-gap: 10px;
  column-gap: 10px;
}

.item1 {
  grid-column-start: 1;
  grid-column-end: 1;
  font-size: 0.0000000001em;
}

.item1:hover {
  opacity: 0.5;
  cursor: zoom-in;
  /*font-size: 1em;*/
}

.item2 {
  grid-column-start: 2;
  grid-column-end: 2;
}

.item2:hover {
  opacity: 0.5;
  cursor: zoom-in;
}

.item3 {
  grid-column-start: 3;
  grid-column-end: 3;
}

.item3:hover {
  opacity: 0.5;
  cursor: zoom-in;
}

.preview-image {
  width: 395px;
  float: left;
  margin: auto;
}

.portfolio-text {
  max-width: 760px;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-text {
  margin-bottom: 24px;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 1386px;
  position: relative;
  transition: all 5s ease-in-out;
  height: 80%;
}

.slim {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 1140px;
  position: relative;
  transition: all 5s ease-in-out;
  height: 80%;
}

.popup-image {
  /*width: auto;*/
  /*height: -webkit-fill-available;*/
  float: left;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 0px;
  right: 20px;
  transition: all 200ms;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  /*text-shadow: 0 0 6px #0000006e;*/
}

.popup .close:hover {
  color: #06D85F;
}

.popup-content {
  /*max-height: 30%;*/
  overflow: auto;
  margin-top: 0px;
  margin-left: 20px;
  width: 190px;
  height: 100%;
  float: left;
  display: flex;
}

.image-text {
  align-self: flex-end;
}

.grid {
  height: auto;
}

.teaser {
  position: relative;
  text-align: center;
  color: white;
  font-size: 2em;
  height: fit-content;
}

.teaser:hover {
  cursor: pointer;
  opacity: 0.8;
}

.bottom-left {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
}

.gradient {
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(to bottom, rgba(22,182,228,0), rgba(22,182,228,1));
}

.footer {
  position: fixed;
  bottom: 0px;
  height: 32px; 
  /* background-color: #16b6e4; */
  /* background-color: white; */
  margin-top: 0px; 
  padding-top: 0px; 
  padding-right: 16px;
  color: black;
  width: 100%;
  text-align: right;
  font-size: 0.8em;
}


@media only screen and (max-width: 1800px) {

  .gallery-cell {
    width: 35%;
    height: -webkit-fill-available;
    margin-right: 40px;
    background: #fff;
    counter-increment: gallery-cell;
    text-align: center;
    display: flex;
  }

  .logo {
    background-color: white;
    height: 60px;
    width: 500px;
    margin-top: 10px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

}


@media only screen and (max-width: 1400px) {

  .popup {
  margin-top: 40px;
  padding: 0px;
  background: #fff;
  /*border-radius: 5px;*/
  width: 880px;
  height: 80%;
  position: relative;
  transition: all 5s ease-in-out;
  }

  .popup-image {
  width: auto;
  height: auto;
  margin: 20px;
  max-height: 840px;
  }

  .popup-content {
  width: 90vw;
  height: auto;
  margin-top: 20px;
  }

  .popup .close {
  position: absolute;
  top: 14px;
  right: 32px;
  transition: all 200ms;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  }

}


@media only screen and (max-width: 1280px) {

  .gallery-cell {
    width: 45%;
    height: -webkit-fill-available;
    margin-right: 40px;
    background: #fff;
    counter-increment: gallery-cell;
    text-align: center;
    display: flex;
  }

  .logo {
    background-color: white;
    height: 60px;
    width: 500px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

}


/*
@media only screen and (max-width: 1024px) {

  .gallery-cell {
    width: 55%;
    height: -webkit-fill-available;
    margin-right: 40px;
    background: #fff;
    counter-increment: gallery-cell;
    text-align: center;
    display: flex;
  }

  .logo {
    background-color: white;
    height: 60px;
    width: 500px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

}
*/


@media only screen and (max-device-width: 1080px) {

.teaser {
  position: relative;
  text-align: center;
  color: white;
  font-size: 1em;
  height: fit-content;
}

.portfolio {
  height: auto;
  row-gap: 10px !important;
  column-gap: 10px !important;
  margin-top: 32px;
}

.gallery-cell {
  width: 100%;
  height: auto;
  margin-right: 10px;
  background: #FFF;
  counter-increment: gallery-cell;
}

.gallery-image {
    margin: auto;
    width: 100%;
}

.flickity-button {
  display: none;
}

/* cell number */
.gallery-cell:before {
  display: block;
  text-align: center;
  /*content: counter(gallery-cell);*/
  line-height: 200px;
  font-size: 80px;
  color: white;
}

.logo {
    background-color: white;
    height: 80px;
    width: 500px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

.popup {
  margin: 0px auto;
  padding: 0px;
  background: #fff;
  /*border-radius: 5px;*/
  width: 100%;
  height: -webkit-fill-available;
  position: fixed;
  transition: all 5s ease-in-out;
}

.popup-image {
  width: 100%;
  height: auto;
  margin: 0px;
  max-height: 2000px;
}

.popup-content {
  width: 90vw;
  height: auto;
  margin-top: 20px;
}

.popup .close {
  position: absolute;
  top: 6px;
  right: 16px;
  transition: all 200ms;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.nav-item {
  /* font-size: 14px; */
  margin-top: 26px;
  margin-left: 16px;
  font-size: 0.8em;
  height: 20px;
}

#first-item {
  margin-left: auto;
}

.logo {
  width: auto;
  max-width: 380px;
  height: 64px;
}

main {
  width: 100%;
}

.content {
  width: auto;
  margin: 10px;
}

.column-left {
  width: 100%;
}

.column-right {
  width: 100%;
}

}