/**
 * Responsive
 *
 * @author Lex Lexter <hi@leximo.cz>
 * @version 1.0.0
 * @website https://leximo.cz/
 */

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

  .detail-post__image {
    margin-left: -32px;
    margin-right: -32px;
  }

}

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

  .site-foot__logo {
    display: none;
  }

}

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

  h1, 
  h2,
  h3, 
  h4, 
  h5, 
  h6 {
    margin: 32px 0 12px 0;
  }
  p, address {
    margin-bottom: 12px;
    line-height: 1.7;
  }
  strong[style="font-size: 18px;"] {
    font-size: 100% !important;
  }

  .gallery {
    margin: 24px -12px -24px -12px;
    font-size: 0;
  }
  .gallery > dl, 
  .gallery > dt {
    margin-bottom: 24px;
    padding: 0 12px;
  }

  .item-project__content {
    width: 302px;
    padding: 92px 0;
  }

  .item---list--gaps-large .item---list__inset {
    margin: 0 -28px -56px -28px;
  }
  .item---list--gaps-large .item---list__item {
    margin-bottom: 56px;
  }
  .item---list__item__inset {
    margin: 0 28px;
  }

  .head-page {
    display: block;
  }
  .head-page__title {
    width: auto;
    display: block;
  }
  .head-page__excerpt {
    display: block;
  }
  .head-page__excerpt br {
    display: none;
  }

  .detail-post__head {
    padding-bottom: 42px;
  }
  .detail-post__image {
    margin-left: 0;
    margin-right: 0;
  }
  .detail-post__content {
    margin-top: 42px;
  }

  .site-wrap {
    padding: 42px 4% 0 4%;
  }

  .site-main {
    margin-top: 62px;
  }
  .site-main .head-page {
    margin-bottom: 52px;
  }

  .site-foot {
    margin-top: 62px;
    padding: 52px 0;
  }

}

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

  .item-project__content {
    padding: 62px 0;
  }

  .item---list--gaps-large .item---list__inset {
    margin: 0 -16px -32px -16px;
  }
  .item---list--gaps-large .item---list__item {
    margin-bottom: 32px;
  }
  .item---list__item__inset {
    margin: 0 16px;
  }

  .head-page__title {
    margin: 0;
  }
  .head-page__excerpt {
    margin: 8px 0 0 0;
    font-size: 16px;
  }

  .site-main {
    margin-top: 42px;
  }
  .site-main .head-page {
    margin-bottom: 42px;
  }

  .site-foot {
    margin-top: 42px;
    padding: 32px 0;
    text-align: center;
  }
  .site-foot__contact {
    display: block;
    margin: 0 0 18px 0;
  }
  .site-foot__contact:last-child {
    margin-bottom: 0;
  }
  .site-foot__contact__link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
  }

}

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

  h1, .--like-h1 {
    line-height: 1.25;
    font-size: 26px;
  }
  h2, .--like-h2 {
    line-height: 1.3;
    font-size: 24px;
  }

  .item-project__image {
    position: static;
    max-height: 320px;
    height: auto;
    display: block;
    margin-bottom: 24px;
  }
  .item-project__content {
    width: auto;
    padding: 0;
  }
  .item-project__num {
    margin-bottom: 8px;
  }
  .item-project__excerpt {
    margin-top: 8px;
  }
  .item-project__link {
    margin-top: 12px;
  }

  .site-main .head-page {
    margin-bottom: 32px;
  }

}

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

  .detail-post__head {
    padding-bottom: 32px;
  }
  .detail-post__content {
    margin-top: 32px;
  }

  .site-wrap {
    padding-top: 24px;
  }

  .site-main {
    margin-top: 32px;
  }

  .site-head__logo {
    width: 160px;
  }
  .site-head__nav {
    margin-top: 4px;
  }
  .site-head__nav a {
    margin-left: 8px;
    padding: 8px 14px;
  }
  .site-head__socials {
    margin: 20px 0 0 8px;
  }

}

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

  .head-page__title br {
    display: none;
  }

}

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

  .file span {
    display: none;
  }

}

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

  h1, 
  h2,
  h3, 
  h4, 
  h5, 
  h6 {
    margin-top: 24px;
  }

  .gallery > dl, 
  .gallery > dt {
    width: 50%;
  }

}

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

  .detail-post__head {
    padding-bottom: 24px;
  }
  .detail-post__content {
    margin-top: 24px;
  }

  .site-head__socials {
    display: none;
  }

}