* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

:root {
  --text: #000000;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  overflow-y: scroll;
  font-size: .83rem;
}

html, body {
  overflow-x: hidden;
}

body {
  margin:0;
  font-family: 'helvetica', sans-serif;

  color: #666666;
  background: #ffffff;
  line-height: 1.45;
  letter-spacing: 0px;
  text-align: left;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width:100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'futura-pt', sans-serif;
  font-style: normal;
  font-weight: 400;
  margin: 1rem 0;
  color: #000000;
}

p {
  margin:.5rem 0 1rem 0;
}

a {
  color: #000000;
}

summary {
  list-style: none;
  cursor:pointer;
  display: inline-block;
}

summary::-webkit-details-marker {
  display:none;
}

.mobile-nav {
  display:none;
}

.nav {
  letter-spacing: 1px;
  line-height: 1.6;
}

.nav li, .nav summary {
  margin-bottom:6px;
  font-size: .9rem;
  font-weight: 500;

  padding-left: .9em;
  text-indent:-.9em;
}

.nav summary {
  margin-bottom: 0;
}

.page {
  /* display: flex; */
  position: relative;
  padding: 1.5rem 0;
  min-height: 100vh;
}

.left-column {
  font-family: 'futura-pt', sans-serif;
  color: #444444;
  font-style: normal;
  font-weight: 500;
  width:400px;
  min-width:400px;
  /* background:#ddd0e8; */
  /* padding: 0 140px 20px 140px; */
  padding: 1.5rem 1.5rem 1.5rem 120px;
  text-transform: uppercase;
  position: fixed;
  top:0;
  /* border-right:1px solid;
  height:97%; */
  max-height: 100%;
  overflow-y: scroll;
  /* border-right:1px solid; */

  /* wider page */
  /* padding: 0 20px 20px 50px; */

}

.name {
  /* margin-top:10px; */
  margin-bottom:30px;
  font-size: 17px;
  line-height: 19px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0px;
}

.name a {
  color: #000000 !important;
}

.mobile-menu-btn {
  display: none;
}

.left-column a, .nav a {
  text-decoration: none;
  color: #444444;
}

.nav, .nav ul {
  list-style: none;
  margin:0;
  padding:0;

  font-family: 'futura-pt', sans-serif;
  color: #444444;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.nav details ul {
  margin-top: 6px;
  /* padding-left:5px; */
}

.active-page {
  text-decoration: underline !important;
}

.right-column {
  /* background:#d2ebd9; */
  width:100%;
  padding: 0 1.5rem 0 400px;
  /* position: relative; */

  /* wider page */
  /* padding: 0 20px 0 350px; */
}

.home-gallery img {
  width: 580px;
}

.text-content {
  max-width: 600px;
  margin:0 auto;
}

/* ---- grid ---- */

.grid {
  /* background: #DDD; */
  display: flex;
  flex-wrap: wrap;
  /* gap:20px; */
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-item {
  /* width: calc(33.333% - 20px); */
  width:33.333%;
  min-height:250px;
  padding:1.5rem;
  /* padding:0 30px 30px 0; */
  /* float: left; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item a {
  cursor:zoom-in;
}

.grid-item img {
  display: block;
  width: 100%;
}

.image {
  width:310px;
  height:310px;
  background-size: cover;
  background-position: center center;
}

/* ---- lightbox ---- */

#lightbox {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(255, 255, 255, 0.8);
  padding: 0 1rem 0 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  overflow: hidden;

  /* wider page */
  /* padding: 1rem 1rem .5rem 350px;
  justify-content: center; */
}

.close-lightbox {
  text-align:right;
  font-size:12px;
  position: absolute;
  top:.9rem;
  right:.9rem;
  z-index: 99;
  pointer-events: none;

  float: right;
  width: 27px;
  height: 27px;
  background: url(../img/menu-close-2.svg) center no-repeat;
  background-size: 100%;
}

#content {
  max-height:85%;
  max-width: 90%;
  flex-shrink: 1;
  overflow: hidden;
}

#lightbox img {
  max-width:100%;
  max-height: 100%;
  position: relative;
  z-index: 3;
}

.lightbox-bg {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index: 1;
}

#caption {
  position: relative;
  bottom:0;
  left:0;
  width:100%;
  z-index: 3;
  flex-shrink: 0;
  margin-top:1rem;
  background:white;
  padding:0.3rem;

  /* wider page */
  /* position:fixed;
  bottom:1rem;
  left:50px;
  width:250px; */
}

#caption::before {
  content:'';
  position: absolute;
  top:-20px;
  left:0;
  width:100%;
  height:20px;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

#caption p {
  text-align: center;

  /* wider page */
  /* text-align:left; */
}

.hidden-caption {
  display: none;
}

.lightbox-spacer {
  position: relative;
  width:100%;
}

.lightbox-spacer::after {
  content:'';
  position: absolute;
  bottom:-20px;
  left:0;
  width:100%;
  height:20px;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}


/* ---- blocks ---- */

.content-feed {
  /* background:lightgreen; */
}

.block {
  margin-bottom: 2rem;
}

/* text */
.text-block, .content-feed h1, .content-feed h2, .content-feed h3, .content-feed h4, .content-feed h5, .content-feed h6 {
  max-width: 600px;
  margin: 0 auto 1rem auto;
}

.content-feed h2, .content-feed h3, .content-feed h4, .content-feed h5, .content-feed h6 {
  margin: 0 auto .3rem auto;
}

.text-block, .img-block, .video-block {
  margin: 0 auto 2rem auto;
}

.img-block, .video-block {
  max-width:750px;
  text-align: center;
}

.img-block img.small {
  max-width: 580px;
  width:100%;
}

/* img */
.img-caption, .video-caption {
  text-align: center;
  margin: 0 0 1rem 0;
}

.video-caption {
  margin: 0.5rem 0 1rem 0;
}

/* video */
.video-container {
  overflow: hidden;
  position: relative;
  height:100%;
  width:100%;
}

.video-container::after {
  padding-top: 56.25%;
  display: block;
  content: '';
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* pdf */
.pdf-block:last-child {
  margin-bottom:0;
}

.pdf {
  width:100%;
  height:calc(100vh - 45px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}


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

  .left-column {
    width:300px;
    min-width: 300px;
    /* padding: 0 50px; */
    padding: 1.5rem 1.5rem 0 50px;
  }

  .right-column {
    padding: 0 1.5rem 0 300px;
  }

  .grid-item {
    /* width: calc(50% - 20px); */
    width: 50%;
    /* padding:0 30px 30px 0; */
  }

  #lightbox {
    padding-left:300px;
  }
}

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

  html {
    font-size: .9rem;
  }

  .left-column {
    width:100%;
    min-width: 100%;
    padding: 0 1.5rem;
    position: relative;
  }

  .name {
    display: flex;
    justify-content: space-between;
  }

  .mobile-menu-btn {
    display: block;
    background: transparent;
    border: 0;
    /* padding: 11px; */
    width:24px;
    height:24px;
    cursor:pointer;
    background-image: url(../img/menu.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* transition: opacity .5s; */
    position:fixed;
    top: 1rem;
    right:1rem;
    z-index: 99999;
    transition: right .2s ease-in-out;
  }

  .mobile-menu-btn.menu-active {
    background-image: url(../img/menu-close-2.svg);
    right:calc(70% + 1rem);

  }


  .mobile-menu-btn.lightbox-active {
    opacity:0;
    pointer-events: none;
  }

  .mobile-nav {
    display:block;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-close {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    display: none;
    cursor:pointer;
  }

  .mobile-nav-close.menu-active {
    display:block;
  }

  .nav {
    /* display: none; */
    background:#f5f5f5;
    position: fixed;
    overflow-y: scroll;
    top:0;
    right:-70%;
    z-index: 999;
    height:100vh;
    padding:1.5rem !important;
    width:70%;
    margin:0;
    transition: right .2s ease-in-out;
  }

  .nav.menu-active {
    right:0;
  }

  .nav li {
    margin-bottom: 10px;
    padding-left: 1.5em;
    text-indent:-1.5em;
  }

  .page {
    transition: transform .2s ease-in-out;
  }

  .page.menu-active {
    transform:translateX(-70%);
  }

  .right-column {
    padding: 0 1.5rem;
  }

  .grid-page {
    padding: 0 .5rem;
  }

  .grid-item {
    padding:.5rem;
  }

  #lightbox {
    padding-left:1rem;
  }

  #content {
    max-width:90%;
    max-height:85%;
  }
}
