#menu-icon, .close-x, .work-details button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  cursor: pointer;
}

.work-details button {
  text-align: left;
  font: inherit;
  line-height: inherit;
  outline: none;
  /* :focus-within used on ancestor instead */
}
.work-details button :focus {
  text-decoration: underline;
  /* progressive enhancement overridden for :focus-within support */
}
:focus-within .work-details button {
  text-decoration: none;
}

.work-details button::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
}

#styleswitcher {
  display: none;
}

.expand-icon {
  display: none;
}
.work-container:hover .expand-icon {
  display: block;
}
.work-container:focus-within .expand-icon {
  display: block;
}

/*
Resume-related share styles
=========================== */
#resume-text {
  clear: both;
}
#resume-text h2 {
  text-shadow: none;
  font-size: 1.75em;
  margin: 1em 0;
  padding-top: 0;
  min-height: auto;
  color: #29a;
  text-align: right;
}
#resume-text .resume-bullet svg {
  display: inline;
  fill: #29a;
}
@media screen and (max-width: 800px) {
  #resume-text ul {
    margin-left: 0;
    padding-left: 20px;
  }
}
#resume-text h3 {
  color: #29a;
  font-weight: 400;
}
#resume-text h4 {
  font-size: 1.2em;
  margin: .5em 0;
}
#resume-text h4 .employer-explanation {
  font-size: 1rem;
  font-weight: normal;
}
#resume-text h5 {
  font-weight: 400;
  font-size: 1.1em;
  margin: 0 0 .5em;
}
#resume-text h5 + ul {
  margin-top: 0;
}
#resume-text h5 strong {
  font-weight: 600;
}

#resume-links, #resume-links li {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: inline;
  color: #888;
  line-height: 1.5em;
}

#resume-links li:not(:first-child) {
  margin-left: .3em;
  padding: .25em 0;
  padding-left: .5em;
  border-left: 1px solid #ccc;
  white-space: nowrap;
}

#resume-links, #resume-contact {
  text-align: right;
  display: block;
}

/*
Some formatting
=============== */
#colophon .versions span, #colophon .versions a {
  white-space: nowrap;
}

ul ul {
  list-style-type: disc;
}

main {
  display: block;
  /* for IE */
}

/*
Pop-up form
=========== */
.field {
  margin-bottom: 1em;
}

.loading {
  vertical-align: top;
  display: none;
}

label {
  display: block;
  font-weight: bold;
}

/*
The lightboxes / gallery / popups
================================= */
#cboxContent img {
  width: 100%;
}

.lightbox {
  position: fixed;
  background-color: #fff;
  z-index: 9;
  text-align: left;
  padding: 45px;
  box-sizing: border-box;
  overflow: auto !important;
  box-shadow: 0 0 15px 0 #333;
}
@media screen and (max-width: 600px) {
  .lightbox {
    padding: 20px;
  }
}
main .lightbox {
  display: none;
}

.lightbox h2 {
  margin: 0 0 1em;
}

.lightbox iframe {
  width: 100%;
  height: 100%;
}

#contact-form textarea {
  max-width: 100%;
}

.mfp-bg, #cboxOverlay {
  background-color: rgba(108, 93, 166, 0.8);
}

#cboxOverlay {
  background-color: rgba(51, 119, 136, 0.8);
}

/* overlay at start */
.mfp-fade.mfp-bg {
  opacity: 0;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
  /* overlay animate in */
  opacity: .7;
}
.mfp-fade.mfp-bg.mfp-removing {
  /* overlay animate out */
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content .lightbox {
  /* content at start */
  opacity: 0;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  overflow: hidden;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content .lightbox {
  /* content animate it */
  opacity: 1;
  left: 45px;
  top: 67.5px;
  width: calc(100% - 90px);
  height: calc(100% - 112.5px);
}
@media screen and (max-width: 800px) {
  .mfp-fade.mfp-wrap.mfp-ready .mfp-content .lightbox {
    left: 20px;
    top: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content .lightbox {
  /* content animate out */
  opacity: 0;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  overflow: hidden;
}

button.mfp-close, button.mfp-close:active {
  opacity: 1;
  top: 67.5px;
  right: 45px;
  position: fixed;
  color: #333;
  background: linear-gradient(to bottom, white 50%, rgba(237, 237, 237, 0) 100%);
}
@media screen and (max-width: 800px) {
  button.mfp-close, button.mfp-close:active {
    top: 20px;
    right: 20px;
  }
}

/*
Work samples popup contents
=========================== */
@media screen and (max-width: 600px) {
  .work-popup h2 {
    font-size: 1.3em;
  }
}
.work-intro {
  font-size: 1em;
}

.work-sample-division {
  clear: both;
  position: relative;
}
.work-sample-division.primary-division {
  border-top: 1px solid #ccc;
  padding-top: 1em;
}

.work-sample-description {
  display: block;
  box-sizing: border-box;
  vertical-align: top;
  padding-right: calc($padding / 2);
  font-size: 1em;
  float: left;
  width: 30%;
}
@media screen and (max-width: 800px) {
  .work-sample-description {
    width: 100%;
    padding-right: 0;
  }
}
@media screen and (max-width: 600px) {
  .work-sample-description ul {
    padding-left: 25px;
  }
}
.work-sample-description h3 {
  font-size: 1.1em;
  margin-top: 0;
}

.work-sample-visuals {
  width: 70%;
  float: right;
  margin-bottom: 1.5em;
  box-sizing: border-box;
}
@media screen and (max-width: 800px) {
  .work-sample-visuals {
    width: 100%;
    padding-left: 0;
  }
}
.work-sample-visuals > svg {
  float: left;
  transform: scale(2);
  width: 20px;
  margin: 10px 0 0 7px;
}
.work-sample-visuals > svg.column-one {
  fill: #bbb;
}
.work-sample-visuals > svg.column-two {
  stroke-width: .4px;
  fill: #6c5da6;
  stroke: #6c5da6;
}
.work-sample-visuals > svg .path-drop-shadow {
  transform: translate(0.5px, 0.5px);
  fill: rgba(0, 0, 0, 0.2);
  stroke-width: 0;
}

.work-sample-visual {
  width: 100%;
  float: left;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}
.work-sample-visual img:not(.visual-loading) {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid #eee;
  max-width: 100%;
  box-sizing: border-box;
}
.work-sample-visual img.no-shadow {
  box-shadow: none;
  border: none;
}
.work-sample-visual figcaption {
  opacity: 0 !important;
  position: absolute;
  top: 0;
  background-color: rgba(51, 119, 136, 0.8);
  text-shadow: 0 0 4px #337788;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: .7em 1em;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  text-indent: 1.25em;
  font-size: .9em;
  font-weight: bold;
  transition: opacity .1s !important;
}
.work-sample-visual figcaption .expand-icon {
  float: right;
  display: block;
  fill: #fff;
  margin-left: .75em;
}
.work-sample-visual:hover figcaption {
  opacity: 1 !important;
  transition: opacity .15s !important;
}
.work-sample-visual:focus-within figcaption {
  opacity: 1 !important;
  transition: opacity 1ms !important;
}
.work-sample-visual button.show-larger {
  cursor: pointer;
  float: right;
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.work-sample-visual button.show-larger::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.one-visual .work-sample-visual {
  max-width: 100%;
}

.two-visuals .work-sample-visual .expand-icon {
  width: 30px;
  height: 30px;
}
.two-visuals .work-sample-visual.primary-visual {
  max-width: calc(60% - 24px);
}
@media screen and (max-width: 600px) {
  .two-visuals .work-sample-visual.primary-visual {
    max-width: calc(100% - 24px);
    margin-bottom: 12px;
  }
}
.two-visuals .work-sample-visual.secondary-visual {
  max-width: calc(40% - 24px);
}
@media screen and (max-width: 600px) {
  .two-visuals .work-sample-visual.secondary-visual {
    max-width: calc(75% - 24px);
    margin-bottom: 12px;
  }
}
.two-visuals .work-sample-visual.equal-visual {
  max-width: calc(50% - 24px);
  margin-right: 24px;
}
@media screen and (max-width: 600px) {
  .two-visuals .work-sample-visual.equal-visual {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
}

.three-visuals .work-sample-visual .expand-icon {
  width: 20px;
  height: 20px;
}
.three-visuals .work-sample-visual.primary-visual {
  max-width: calc(50% - 24px);
}
@media screen and (max-width: 600px) {
  .three-visuals .work-sample-visual.primary-visual {
    max-width: calc(100% - 24px);
    margin-bottom: 12px;
  }
}
.three-visuals .work-sample-visual.primary-visuals {
  max-width: calc(37.5% - 24px);
}
@media screen and (max-width: 600px) {
  .three-visuals .work-sample-visual.primary-visuals {
    max-width: calc(100% - 24px);
    margin-bottom: 12px;
  }
}
.three-visuals .work-sample-visual.secondary-visual {
  max-width: calc(25% - 24px);
}
@media screen and (max-width: 600px) {
  .three-visuals .work-sample-visual.secondary-visual {
    max-width: calc(75% - 24px);
    margin-bottom: 12px;
  }
}
.three-visuals .work-sample-visual.equal-visual {
  max-width: calc(33.33% - 24px);
}
@media screen and (max-width: 600px) {
  .three-visuals .work-sample-visual.equal-visual {
    max-width: calc(100% - 24px);
    margin-bottom: 12px;
  }
}
#gwlib-popup .three-visuals .work-sample-visual {
  margin-right: 24px;
}
#gwlib-popup .three-visuals .work-sample-visual:nth-child(1) {
  max-width: calc(20% - 24px);
}
@media screen and (max-width: 600px) {
  #gwlib-popup .three-visuals .work-sample-visual:nth-child(1) {
    max-width: calc(45% - 24px);
    margin-bottom: 12px;
  }
}
#gwlib-popup .three-visuals .work-sample-visual:nth-child(2) {
  max-width: calc(25% - 24px);
}
@media screen and (max-width: 600px) {
  #gwlib-popup .three-visuals .work-sample-visual:nth-child(2) {
    max-width: calc(55% - 24px);
    margin-bottom: 12px;
  }
}
#gwlib-popup .three-visuals .work-sample-visual:nth-child(3) {
  max-width: calc(55% - 24px);
}
@media screen and (max-width: 600px) {
  #gwlib-popup .three-visuals .work-sample-visual:nth-child(3) {
    max-width: 100%;
  }
}

.four-visuals .work-sample-visual {
  margin-right: 12px;
}
.four-visuals .work-sample-visual .expand-icon {
  width: 20px;
  height: 20px;
}
.four-visuals .work-sample-visual.equal-visual {
  max-width: calc(25% - 12px);
}
@media screen and (max-width: 1000px) {
  .four-visuals .work-sample-visual.equal-visual {
    max-width: calc(50% - 12px);
  }
  .four-visuals .work-sample-visual.equal-visual .expand-icon {
    width: 30px;
    height: 30px;
  }
}
.four-visuals .work-sample-visual.primary-visuals {
  max-width: calc(30% - 12px);
}
.four-visuals .work-sample-visual.secondary-visual {
  max-width: calc(20% - 12px);
}

.six-visuals .work-sample-visual .expand-icon {
  width: 12px;
  height: 12px;
}
.six-visuals .work-sample-visual.equal-visual {
  margin-right: 12px;
  max-width: calc(16.66% - 12px);
  height: 70%;
}
@media screen and (max-width: 1000px) {
  .six-visuals .work-sample-visual.equal-visual {
    max-width: calc(33.33% - 12px);
  }
  .six-visuals .work-sample-visual.equal-visual .expand-icon {
    width: 20px;
    height: 20px;
  }
}

.ca-visuals .work-sample-visual .expand-icon {
  width: 12px;
  height: 12px;
}
.ca-visuals .work-sample-visual.equal-visual {
  max-width: 16.66%;
}
.ca-visuals .work-sample-visual.equal-visual.last-of-ca {
  max-width: 33.33%;
}
.ca-visuals .work-sample-visual.equal-visual.last-of-ca .expand-icon {
  width: 20px;
  height: 20px;
}

.work-sample-visual-longdesc {
  font-size: .9em;
  display: none;
}

#cboxTitle .work-sample-visual-longdesc {
  display: block;
}

.hidden-link {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  display: block;
}

#oerpub2-popup a {
  display: block;
  text-align: right;
  margin-top: -2em;
  margin-bottom: 1em;
}

@media screen and (max-width: 600px) {
  #main-nav object, #left-spacer {
    display: none;
  }
}
/* 
Pointers to local copies of the fonts for offline dev
===================================================== */
/*
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: local('Lato Light'), local('Lato-Light'), url(../fonts/EsvMC5un3kjyUhB9ZEPPwg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(../fonts/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: local('Lato Black'), local('Lato-Black'), url(../fonts/tI4j516nok_GrVf4dhunkg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
*/
