/*////////////////////////////////////
Small format layout
////////////////////////////////////*/
@media screen and (max-width: 1080px) {
  .content-block::before,
  .contacts::before,
  .title-block::before,
  .title-block--hover::before {
    -webkit-box-shadow: 0 0 60vh 75vh rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 60vh 75vh rgba(0, 0, 0, 0.9);
  }
  .copy-section h1 {
    font-size: 40px;
    font-weight: 200;
    margin: 30px 0;
    transition: opacity 0.5s;
  }
  .content-item {
    transition: opacity 0.5s;
  }
  .copy-section .animated-text {
    font-size: 40px;
  }
  .copy-section a {
    font-size: 24px;
  }

  .content-list--small a {
    font-size: 18px;
  }
  #request {
    right: 5%;
    left: auto;
    top: 69%;
    width: 230px;
    padding: 16px 0;
  }
}
@media screen and (max-width: 703px) {
  /*////////////////////////////////////
    Stationary content
    ////////////////////////////////////*/

  .logo__text {
    display: none;
  }

  .header{
    margin-top: initial;
  }
  .header.container{
    width: 100%;
    padding: initial;
  }

  .header .page-header__languages {
    margin-right: 0;
  }
  .page-header.container {
    padding: 20px;
    align-items: center;
    top: 0;
  }
  .page-header__socials.socials {
    margin-top: 0;
  }
  .page-header .page-header__languages,
  .info .page-header__languages {
    margin-top: 0;
  }
  .header .logo-text h1 {
    left: auto;
    font-size: 14px;
    left: 21%;
  }
  .header .logo-mark {
    padding: 20px;
  }
  .header .social,
  .info .social {
    margin-right: 20px;
  }
  .header .social li.share,
  .info .social li.share {
    display: none;
  }
  .header .social li {
    margin: 0 0 0 20px;
  }

  #request {
    top: auto;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 10px;
    width: 250px;
    padding: 13px 0;
    transform: none;
    font-size: 16px;
  }
  #request:before {
    box-shadow: none;
  }

  #pagination {
    top: 64px;
    right: 22px;
    transform: none;
    display: none;
  }

  #pagination-dots {
    position: relative;
    margin: 28px 0 0 -10px;
  }

  #mouse-indicator {
    display: none;
  }

  /*////////////////////////////////////
    Copy
    ////////////////////////////////////*/
  .content-block-close,
  .title-block-close {
    display: block;
    position: absolute;
    top: -40px;
    right: -40px;
    width: 32px;
    height: 32px;
    opacity: 0.6;
    background-color: transparent;
    border: 0;
  }
  .content-block-close:before,
  .content-block-close:after,
  .title-block-close:before,
  .title-block-close:after {
    position: absolute;
    right: 15px;
    content: " ";
    height: 33px;
    width: 2px;
    top: 0;
    background-color: #fff;
  }
  .content-block-close:before,
  .title-block-close:before {
    transform: rotate(45deg);
  }
  .content-block-close:after,
  .title-block-close:after {
    transform: rotate(-45deg);
  }

  .content-block p,
  .title-block p,
  .title-block--hover p {
    font-size: 16px;
    margin: 20px 0;
    line-height: 1.7em;
    overflow-y: scroll;
  }
  .copy-section span.emdash {
    padding: 0 0 0 60px;
  }
  .copy-section span.emdash span {
    height: 1px;
    width: 50px;
  }
  .copy-section a {
    font-size: 16px !important;
  }
  .copy-section .animated-text {
    font-size: 30px !important;
    margin: 20px 0;
    visibility: visible !important;
  }

  .animated-text .text-link {
    font-size: 30px !important;
  }

  .copy-section li {
    margin-bottom: 30px;
  }
  .content-list--small a {
    font-size: 16px;
  }
  .copy-content {
    left: 0;
    width: 100%;
    padding: 20px 60px 0 20px;
    box-sizing: border-box;
  }
  .content-img img {
    width: 100%;
    height: auto;
  }
  .content-block p span.content-text-left {
    width: auto;
    display: block;
    padding: 20px 0;
  }

  .content-block,
  .contacts,
  .title-block,
  .title-block--hover {
    justify-content: initial;
    max-height: 50vh;
    left: 50%;
    width: 75vw;
  }
  .section-start.guardian-block .content-block {
    max-height: 70vh;
  }
  /*///////////////////////////////////
    Form
    ///////////////////////////////////*/

  #form-section {
    width: 100%;
    min-width: 0;
  }
  #form-section .input-block {
    margin: 0 0 25px 0;
  }
  #form-section #error-message {
    margin: 10px 0 0 0;
  }

  div#quake-info {
    display: none;
  }
}

/*////////////////////////////////////
Content height no longer tied to vh
////////////////////////////////////*/

@media screen and (max-height: 667px) and (max-width: 767px) {
  #scrolling-area {
    padding: 1px 0;
  }
  .copy-section {
    height: auto;
    margin: 268px 0;
  }
  .copy-section.topic-form {
    margin-bottom: 134px;
  }
  .copy-content {
    position: static;
    transform: none;
  }
}

/* iPhone 6 (height) */

@media screen and (max-height: 667px) and (max-width: 767px) {
  .copy-section {
    margin: 234px 0;
  }
  .copy-section.topic-form {
    margin-bottom: 117px;
  }
}

/* iPhone 5 (height) */

@media screen and (max-height: 568px) and (max-width: 767px) {
  .copy-section {
    margin: 120px 0;
  }
  .mobile .copy-section.topic-quote {
    margin-bottom: 170px;
  }
  .copy-section.topic-form {
    margin-bottom: 100px;
  }
}

/* iPhone 6 (width) */

@media screen and (max-width: 414px) {
  .copy-section h1 {
    font-size: 48px;
    margin: 22px 0;
  }
  .content-block p,
  .title-block p,
  .title-block--hover p {
    margin: 22px 0;
  }
  .content-img img {
    border: 2px solid#fff;
  }
  .content-img {
    width: auto;
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  /*.content-block p.content-text-left*/
}

/* iPhone 5 (width) */

@media screen and (max-width: 413px) {
  .copy-section h1 {
    font-size: 40px;
    margin: 30px 0;
  }
  .content-block p,
  .title-block p,
  .title-block--hover p {
    margin: 20px 0;
  }
  .copy-section span.emdash {
    padding: 0 0 0 50px;
    font-size: 25px;
  }
  .copy-section span.emdash span {
    width: 45px;
    display: none;
  }
}

/* iPhone 5 (width) */

@media screen and (max-width: 374px) {
  .copy-section h1 {
    font-size: 34px;
    margin: 25px 0;
  }
  .content-block p,
  .title-block p,
  .title-block--hover p {
    font-size: 15px;
    margin: 20px 0;
  }
  .copy-section span.emdash {
    padding: 0 0 0 42px;
  }
  .copy-section span.emdash span {
    width: 38px;
  }
}

@media screen and (max-width: 1440px) {
  .copy-section .animated-text {
    font-size: 41px;
  }
  .copy-section a {
    font-size: 19px;
  }
  .animated-text .text-link {
    font-size: 41px;
  }
}
