/**
 * Fix fonts that render as bold in Firefox
 *
 * Put this near the top of your style.css
 * Before any overriding styles
 */

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  font-weight: 400;
}

/**
 * Firefox specific rule
 */

@-moz-document url-prefix() {
  body {
    font-weight: lighter !important;
  }
}

/******************************************************************************/

/* FONT IMPORTS */

@font-face {
  font-family: 'din';
  src: url(assets/fonts/din.ttf); 
}

@font-face {
  font-family: 'roboto';
  src: url(assets/fonts/roboto.ttf); 
}

@font-face {
  font-family: 'roboto-italic';
  src: url(assets/fonts/roboto-italic.ttf); 
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font: 400 12px/1.5 'roboto', sans-serif;
  -webkit-text-size-adjust: 100%;
  -moz-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  margin: 0;
}

/* HEADER */

.site-header {
  padding: 112px 15px 60px 15px;
  border-bottom: 1px solid #adadad;
}

.site-header__link {
  text-decoration: none;
}

.site-header__title {
  margin: 0;
}
@media screen and (min-width: 940px) {
  .site-header__title {
    margin-left: 132px;
  }
}

/* NAVIGATION */

.navigation {
  padding: 15px 15px 60px;
  border-bottom: 1px solid #e0e0e0;
}

.navigation__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
@media screen and (min-width: 940px) {
  .navigation__items {
    margin-left: 19px;
  }
}

.navigation__item {
  display: inline-block;
  margin-right: 53px;
  margin-bottom: 11px;
}
.navigation__items li:last-child {
  margin-right: 0;
}

.navigation__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: 2.8;
  display: inline-block;
  transition: all 0.2s ease;
}
.navigation__link:hover {
  background: rgba(0, 0, 0, 0.025);
  border-color: #adadad;
}
.navigation__link.current {
  border-color: #adadad;
}

/* BODY */

.site-body {
  padding: 70px 15px;
}

@media screen and (min-width: 940px) {
  .site-body__interior {
    margin-left: 132px;
  }
}

/* HOME IMAGES */

.home-images__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
}
@media screen and (min-width: 940px) {
  .home-images__item {
    flex-direction: row;
  }
}

.home-images__item-main {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.home-images__image {
  max-width: 360px;
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  .home-images__image {
    max-width: 60vw;
  }
}

.home-images__caption {
  margin-left: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  bottom: -0.3em;
}

.home-images__material:after {
  content: ', '
}

/* HOME IMAGE SLIDESHOWS */

.home-slideshow {
  align-self: stretch;
  flex-grow: 1;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
}
@media screen and (min-width: 940px) {
  .home-slideshow {
    flex-direction: column;
    margin-left: 100px;
  }
}

.home-slideshow__images {
  opacity: 1;
  width: 150px;
  flex-basis: 100%;
  position: relative;
  /* transition: width 0.4s ease-in-out; */
  animation: fade-to-small 1 0.5s ease;
  flex-grow: 1;
  flex-shrink: 1;
}
.home-slideshow__image-enlarger:checked ~ .home-slideshow__images {
  width: 100%;
  animation: fade-to-large 1 0.5s ease;
}
@keyframes fade-to-large {
  from {
    opacity: 1;
    width: 150px;
  }
  50% {
    opacity: 0;
    width: 150px;
  }
  51% {
    opacity: 0;
    width: 100%;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-to-small {
  from {
    opacity: 1;
    width: 100%;
  }
  50% {
    opacity: 0;
    width: 100%;
  }
  51% {
    opacity: 0;
    width: 150px;
  }
  to {
    opacity: 1;
  }
}

.home-slideshow__image-enlarger + label {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.home-slideshow__image {
  opacity: 0;
  position: absolute;
  left: 0;
  width: 100%;
  max-height: 100%;
  z-index: -1;
  pointer-events: none;
  justify-content: flex-start;
  animation: image-fade-out 1 0.6s ease-in-out;
}
.home-slideshow__image-switcher:checked + .home-slideshow__image {
  position: relative;
  opacity: 1;
  height: 100%;
  animation: image-fade-in 1 0.6s ease-in-out;
}
@media screen and (max-width: 939px) {
  .home-slideshow__image {
    top: 0;
  }
}
@media screen and (min-width: 940px) {
  .home-slideshow__image {
    animation: none;
    display: flex;
    bottom: 0;
    transition: opacity 0.4s ease-in-out;
  }
  .home-slideshow__image-switcher:checked + .home-slideshow__image {
    position: absolute;
    animation: none;
  }
}
@keyframes image-fade-out {
  from {
    opacity: 1;
    position: relative;
  }
  45% {
    opacity: 0;
    position: relative;
  }
  55% {
    position: absolute;
  }
  to {
    opacity: 0;
    position: absolute;
  }
}
@keyframes image-fade-in {
  from {
    opacity: 0;
    position: absolute;
  }
  45% {
    position: absolute;
  }
  55% {
    opacity: 0;
    position: relative;
  }
  to {
    opacity: 1;
    position: relative;
  }
}

.home-slideshow__image img {
  -webkit-user-select: none; /* Chrome/Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none;
  object-fit: contain;
  object-position: 0 100%;
  flex-basis: 100%;
}

.hidden-input {
  height: 0;
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.home-slideshow__buttons {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
}
@media screen and (min-width: 940px) {
  .home-slideshow__buttons {
    margin-bottom: 0px;
  }
}

.home-slideshow__button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  margin: 8px 8px 0 0;
}

.home-slideshow__button--current {
  background: #444444;
  color: #fff;
  border: 1px solid black;
}

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

/* VITA */

.vita__item {
  margin-bottom: 60px;
}

.vita__image {
  max-width: 360px;
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  .vita__image {
    max-width: 60vw;
  }
}

/* GALLERIES */

.galleries-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.galleries-list__item {
  margin-bottom: 12px;
}
.galleries-list li:last-child {
  margin-bottom: 20px;
}

/* UTILITY */

.text-article {
  max-width: 38em;
}

.image {
  width: 100%; 
  height: auto;
  display: block;
}

.image-border {
  border: 1px solid #e0e0e0;
}

.section-heading {
  display: inline-block;
  margin-bottom: 2em;
}

.section-heading--indented {
  padding-left: 3.1em;
}

/* TYPOGRAPHY */

.type-title {
  font-family: 'din', sans-serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 4px;
  color: #111;
  text-transform: uppercase;
}

.type-heading {
  font-size: 11px;
  font-weight: 400;
  color: #111; 
  text-transform: uppercase;
  letter-spacing: 4px;
  white-space: pre;
  width: calc(100% - 0.3em);
}

.type-link {
  color: #9c1d1e;
  line-height: 1.3;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
}
.type-link:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.025);
  transition: all 0.2s ease;
}
.type-link--underline {
  padding: 0.7em 0;
  border-bottom: 1px solid transparent;
}
.type-link--underline:hover {
  border-bottom-color: #adadad;
}

.type-light {
  color: #686868
}

.type-italic {
  font-family: 'roboto-italic';
}

.text-article hr {
  height: 1px;
  border: none;
  background: #e0e0e0;
  margin: 20px 0 30px;
}

.text-article p {
  margin: 20px 0;
}

