section, article, header, footer {
  margin:auto
}

section, footer {
  background:#fff;
  margin-bottom:110px;
}

footer {
  line-height:20px;
}

.full {
  position:relative;
  width:100%;
}

.full-image {
  width:100%;
  height:100%;
  object-fit:cover;
}

.portrait {
  display:none;
}

header {
  padding:16px 16px;
}

header .grid {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}

header .grid .nav {
  justify-self: end;
}

header .grid .nav li {
  text-align:right;
  display:inline-block;
  padding-right:20px;
}

header .grid .nav li:last-child {
  padding-right:0;
}

.header-item {
  display:inline-block;
}

nav {
  display:inline-block;
  line-height:1.3;
  float:right;
}

header ul, nav ul {
  display:inline-block;
  font-family:'TrattoNetto';
  font-weight:400;
  font-style:normal;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:1px;
}

nav li {
  display:inline-block;
  padding-right:30px;
}

nav li:last-child {
  padding-right:0;
}

.desktop-bottom-banner {
  display:block;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: block;
  transform: translateY(100%);
  transition: all 200ms linear;
}

.mobile-bottom-banner {
  display:none;
}

#drawing-section, #installation-section, #info-section {
  display:none;
}

.in-view{
  color:rgba(0,0,0,0.4);
}

.pointer {
  cursor:pointer;
}

.pointer:hover {
  color:rgba(0,0,0,0.8);
}

.img-wrap {
  position:relative;
  height:100%;
}

.wide, .narrow {
  padding:0 8px;
}

figure img {
  padding-top:42px;
}

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

.full-header-wrap {
  position:absolute;
  top:0;
  bottom:0;
  width:100%;
}

.full-header-wrap-fade {
  background:rgba(220,220,220,0);
}

.caption-wrap {
  padding:17px 8px;
  line-height:19px;
}

section .grid, article .grid {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-flow: dense;
}

section .grid li, article .grid li {
  position: relative;
  grid-column-start: span var(--cols);
  grid-row-start: span var(--rows);
  --cols: 2;
  --rows: 1;
  align-self: end;
}

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

.inner-grid {
  display: grid;
  list-style: none;
  grid-auto-flow: dense;
  grid-column-gap: 16px;
  justify-self: center;
  padding:0 8px;
}

#mobile-essay {
  display:none;
}

.essay-width{
  width:400px;
}

.essay-grid-item{
  display:inline-block;
  display:block;
  height:100%;
  padding-bottom:50px;
  padding-top:30px;
}

.essay-inner-grid {
  display: grid;
  list-style: none;
  grid-auto-flow: dense;
  justify-self: center;
  grid-template-columns: repeat(1, 1fr);
  padding:0 8px;
  height:100%;
  grid-template-rows: 70px auto;
}

.essay-grid-item .essay-inner-grid li:last-child {
  align-self: start;
}

.essay-grid-item:first-child .essay-inner-grid li:last-child {
  align-self: end;
}

.essay-grid-item:nth-child(odd) .essay-inner-grid {
  justify-items: end;
  padding-right:40px;
}

.essay-grid-item:nth-child(even) .essay-inner-grid {
  justify-items: start;
  padding-left:40px;
}

.essay-inner-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;
  align-self: end;
}

.essay-inner-grid td {
  font-size:12px;
}

.essay-inner-grid td:first-child {
  text-align:left;
}

.essay-inner-grid td:last-child {
  text-align:right;
}

.essay-text p {
  line-height:20px;
  margin-bottom:20px;
}

.essay-note {
  font-size:12px;margin-left:2px;vertical-align: 3px
}

footer .grid {
  display: grid;
  list-style: none;
  grid-auto-flow: dense;
  grid-column-gap: 16px;
  justify-self: center;
  grid-template-columns: repeat(8, 1fr);
  padding:30px 8px;
  height:100%;
}

footer .grid li {
  margin:10px 0;
  padding:0 8px;
}

footer .grid li:nth-child(5), footer .grid li:nth-child(6) {
  margin-bottom:80px;
}

footer .grid li:nth-child(odd) {
  grid-column: 1 / span 2;
}

footer .grid li:nth-child(even) {
  grid-column: 3 / span 6;
}


@media screen and (max-width:912px) {
  .landscape {
    display:none;
  }

  .portrait {
    display:initial;
  }

  header{
    padding:16px 24px;
  }

  section, footer {
    margin-bottom:55px;
  }

  header .grid .nav li {
    display:block;
    padding-right:0;
  }

  .desktop-bottom-banner {
    display:none;
  }

  .mobile-bottom-banner {
    display:block;
  }

  section .grid, article .grid, .inner-grid {
    display:block;
  }

  .inner-grid {
    padding:0 24px;
  }

  .wide {
    padding:0 0px;
  }

  .narrow {
    padding:0 30px;
  }

  .caption-wrap {
    padding:17px 0px;
  }

  #mobile-essay {
    display:initial;
  }

  #desktop-essay {
    display:none;
  }

  .essay-text {
    padding:42px 24px;
  }

  footer .grid {
    padding:30px 24px;
  }

  footer .grid li {
    padding:0;
  }
}

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

  header{
    padding:16px 16px;
  }

  .inner-grid{
    padding:0 16px;
  }

  .essay-text {
    padding:42px 16px;
  }

  footer .grid {
    padding:30px 16px;
  }
}

@media screen and (max-width:360px) {
  html {
    font-size:14px;
  }

  .essay-text p {
    line-height: 17px;
    margin-bottom: 17px;
  }
}


@media screen and (min-width:913px) and (max-width:1440px) {
  .essay-width {
    width:350px;
  }

  .essay-note {
    vertical-align: 1px
  }

  h1 {
    font-size: 28px;
    line-height: 35px;
    margin-bottom: 52.5px;
  }

  h2 {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 70px;
    letter-spacing: 1px;
  }

  .essay-text p {
    font-size: 14px;
    line-height:18px;
    margin-bottom:18px;
  }

  .essay-grid-item:nth-child(odd) .essay-inner-grid {
    padding-right: 50px;
  }

  .essay-grid-item:nth-child(even) .essay-inner-grid {
    padding-left: 50px;
  }
}
