body {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html { font-size: 62.5%; }
body { font-size: 1.2rem; line-height: 1.4em; }

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

a { text-decoration: underline; }
a, a:visited {color: #000;}
a:hover {color: #666;}

:root {
  --logo-size: 122px;
}

.logo .site-name {
  width: var(--logo-size);
  height: var(--logo-size);
  background-size: var(--logo-size) var(--logo-size);
  display: block;
  position: relative;
  text-indent: -99999px;
  overflow: hidden;
  background-image: url(../images/sun-seal-dark-02.png);
}

.masthead {
  margin: 1rem;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-navigation ul  {
  padding: 0;
  list-style-type: none;
  padding-right: 1rem;
}

.main-navigation ul li {
  font-size: 1.3em;
  padding: .6rem 0 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.main-navigation ul a {
  text-decoration: none;
  display: inline-block;
  background: #fff;
  padding: 3px;
  transition: all .25s;
}

.main-navigation ul a:hover {
  color: black;
}

.main-navigation ul a:hover,
  .main-navigation ul li.current-page a {
    background: #e3e5e5;
}

@media (min-width: 500px ) {
  .masthead { padding: 0 1rem; }
}

@media (min-width: 800px ) {

  .logo .site-name {
    width: 142px;
    height: 142px;
    background-size: 142px 142px;
  }

  .masthead {
    position: fixed;
    padding: 1rem;
    width: 200px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
  }

  .mhinfo {
    max-width: none;
  }
  .mhinfo a {
    text-decoration: none;
  }
  .site-name {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-name span {
    display: block;
  }

  .main {
    margin-left: 210px;
  }
  .tagline { margin-bottom: 3rem; }
  .tagline span { display: block;}
}

.main {
    padding: 1rem;
}
@media (min-width: 500px ) { .main { padding: 2rem; } }


/* ----------------------------- */

.work-index ul,
.work-index li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.work-grid .projects-list {
    display: flex;
    flex-wrap: wrap;
}

.work-grid .project-container {
    width: 100%;
    display: flex;
    margin: 0 -1px -1px 0;
    border: 1px solid #eee;
}

.work-grid .project-link:hover {
    background-color: #eee;
}

.work-grid .project-link {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    transition: background .25s;
}

.work-grid .featured-thumbnail {
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-grid .featured-thumbnail-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-grid .featured-thumbnail img {
    max-height: 240px;
    border: none;
    overflow: hidden;
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.work-grid .thumbnails ul {
    opacity: .4;
    display: flex;
    flex-wrap: wrap;
    /*justify-content: center;*/
    gap: 1rem;
}

.work-grid .project-link:hover .thumbnails ul {
    opacity: 1;
}

@media (min-width: 250px)  { .work-grid .project-container { width: 50%; } }
@media (min-width: 600px)  { .work-grid .project-container { width: 33.33333333%; } }
/*
@media (min-width: 800px)  { .work-grid .project-container { width: 25%; } }
@media (min-width: 1200px) { .work-grid .project-container { width: 20%; } }
@media (min-width: 1400px) { .work-grid .project-container { width: 16.66666667%; } }
@media (min-width: 1800px) { .work-grid .project-container { width: 14.28571429%; } }
@media (min-width: 2000px) { .work-grid .project-container { width: 12.5%; } }
*/


/* ----------------------------------------------- */

.breadcrumb-header {
    margin-bottom: 2rem;
}

.breadcrumb-footer {
  margin: 2rem 0;
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-content .block {
  width: 100%;
  border: 1px solid #eee;
  padding: 1rem;
  margin: -1px 0 0;
  display: flex;
  justify-content: center;
}

.project-content .block-top,
  .project-content .block-bottom {
  justify-content: flex-start;
  flex-direction: column;
}

.back-link {
  text-transform: uppercase;
  margin-bottom: 8px;
}

@media(min-width: 500px) {
  .project-content .block-top {
    flex-direction: row;
    gap: 40px;
  }
}

.block-top p:last-of-type {
  margin-bottom: 0;
}

.block-top .description {
  max-width: 300px;
}

.block-type-workitem ul,
.block-type-workitem li {
  margin: 0 auto; padding:0; list-style-type: none;
}

.block-type-workitem li img {
  display: block;
  margin: 0 auto;
}

.block-type-workitem > figure ul {
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  align-items: cente;
  gap: 1rem;
}

.block-type-video > figure[data-maxwidth="verysmall"] .video-wrapper,
.block-type-workitem > figure[data-maxwidth="verysmall"] ul {
  max-width: 600px;
}

.block-type-video > figure[data-maxwidth="small"] .video-wrapper,
.block-type-workitem > figure[data-maxwidth="small"] ul {
  max-width: 800px;
}

.block-type-video > figure[data-maxwidth="medium"] .video-wrapper,
.block-type-workitem > figure[data-maxwidth="medium"] ul {
  max-width: 1100px;
}

.block-type-video > figure.video-wrapper,
.block-type-workitem > figure ul,
.block-type-video > figure[data-maxwidth="large"] .video-wrapper,
.block-type-workitem > figure[data-maxwidth="large"] ul {
  max-width: 1400px;
}

.block-type-video > figure[data-maxwidth="verylarge"] .video-wrapper,
.block-type-workitem > figure[data-maxwidth="verylarge"] ul {
  max-width: none;
}

.block-type-workitem [data-bg] {
  background:#eee;
}

.block-type-workitem > figure {
  width: 100%;
}
.block-type-workitem > figure[data-bg] {
  padding: 1rem;
}

.block-type-workitem [data-shadow] li img {
  box-shadow: 0 0 8px #eee;
}
.block-type-workitem [data-bg][data-shadow] li img {
  box-shadow: 0 0 8px #ddd;
}

@media (min-width: 730px) {

  .block-type-video > figure,
  .block-type-workitem > figure[data-bg],
  .block-type-workitem > figure {
    padding: 3rem;
  }
  .block-type-workitem > figure ul {
    gap: 3rem;
  }

  .block-type-workitem > figure ul {
    flex-direction: row;
  }

  .block-type-workitem  > figure[data-count="2"] ul li {
    width: 50%;
  }
  .block-type-workitem  > figure[data-count="3"] ul li {
    width: 33.3333333%;
  }

}

@media (min-width: 700px) {
  .block-type-video > figure,
  .block-type-workitem > figure[data-bg],
  .block-type-workitem > figure {
    padding: 6rem;
  }
}

/* --------------------- */

html.about {
  height: 100%;
}

html.about body {
  min-height: 100%;
}

html.about body {
  display: flex;
  flex-direction: column;
}

html.about .masthead {
  flex-grow: 0;
}

html.about .main {
  padding: 0;
  margin: 0 1rem 1rem;
  background: #ede0d8;
  flex-grow: 1;
}

html.about body .footer {
  display: none;
}

html.about .about-cols {
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.elsewhere li {
  margin-bottom: 1rem;
}

.portrait {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.portrait img {
  transform: rotate(-3deg);
  border: 1rem #fff solid;
  border-bottom-width: 4rem;
  box-shadow: 0 0 4px #e0cdc2;
  max-width: 70%;
  margin: 0 auto;
  display: block;
}

p {
  margin-bottom: 2rem;
}

@media (min-width: 500px) {
  html.about .main {
    margin: 0 2rem 2rem;
  }
}

@media (min-width: 800px) {

  html.about body {
    flex-direction: row;
    padding: 2rem;
    height: auto;
    min-height: 100%;
  }

  html.about .masthead {
    position: static;
    padding: 0 4rem 0 0;
    margin: 0;
    width: 200px;
  }

  html.about .main {
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-cols {
    max-width: 40rem;
  }

  .portrait img {
    max-width: 70%;
  }

  .james {
    margin: 0 2rem 2rem 0;
  }

}

@media (min-width: 1300px) {

  .about-cols .text {
    font-size: 1.4rem;
    line-height: 2rem;
  }

  .portrait img {
  }

  html.about .about-cols {
    max-width: 500px;
  }

}

/* ---------------------------- */

/*

html.home {
  height: 100%;
}

html.home body {
  min-height: 100%;
}

html.home body {
  display: flex;
  flex-direction: column;
}

html.home .masthead {
  flex-grow: 0;
}

html.home .main {
  padding: 0;
  margin: 0 1rem 1rem;
  background: #ede0d8;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

html.home body .footer {
  display: none;
}

.home-container {
  max-width: 300px;
  margin: 2rem;
}

@media (min-width: 500px ) {
  html.home .main { margin: 0 2rem 2rem; }
}

@media (min-width: 800px) {

  html.home body {
    flex-direction: row;
    padding: 2rem;
    height: auto;
    min-height: 100%;
  }

  html.home .masthead {
    position: static;
    padding: 0 4rem 0 0;
    margin:0;
    width: 200px;
  }

  html.home .main {
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

@media (min-width: 1400px) {
  .home-container {
    max-width: 400px;
  }
}
*/
