.limited {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
  max-width: 120rem;
  float: none;
  clear: both;
}

.layout-container {
  @extend .limited;
  > header {
    line-height: 0;
  }
  > main {
    @extend .flexbox;
    aside {
      width: 24rem;
      padding: 0 1rem;
    }
    .layout-sidebar-first {
      -webkit-order: 0;
      order: 0;
    }
    .layout-content {
      -webkit-order: 1;
      order: 1;
      -webkit-flex-grow: 1;
      flex-grow: 1;
      width: 60%;
      padding: 0 1rem 0 0.5rem;
    }
    .layout-sidebar-second {
      -webkit-order: 2;
      order: 2;
    }
  }
}

//1199
@media screen and (max-width: 74.9375em) {
  .dialog-off-canvas-main-canvas {
    padding-top: 1rem;
  }
  .layout-container {
    > header {
      position: relative;
      z-index: 3;
      .default-img {
        margin-left: 0;
        margin-right: 0;
        height: 0;
        padding-top: 19%;
        background-size: 100% auto;
      }
    }
    > main {
      aside {
        padding-top: 1rem;
      }
    }
  }
  .region-logo-block {
    .site-logo {
      position: relative;
      height: 9rem;
      background: url('../images/logo-mobile.svg') no-repeat center top;
      background-size: 22rem;
      margin-top: -0.5rem;
      margin-bottom: 0;
      img {
        @include element-invisible;
      }
      &:hover {
        background-image: url('../images/logo-mobile-brown.svg');
      }
    }
    & ~ div {
      margin-left: 0;
      padding-left: 0;
    }
  }
  .region-sitemenu {
    height: 9rem;
    .block-menu {
      margin-top: 0;
      height: 100%;
      position: relative;
      z-index: 1;
      .menu-toggle {
        display: block;
        margin: 2rem 4.5rem;
        float: right;
      }
      > ul.menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 1px;
        text-align: center;
        margin-top: 1rem;
        visibility: hidden;
        opacity: 0;
        overflow: hidden;
        background: #fff;
        transition:  opacity 0.6s, visibility 0.6s, margin-top 0.6s, max-height 0s;
        transition-delay: 0s, 0.6s, 0s, 0.6s;
        li {
          border-right: none;
          border-bottom: 1px solid $border;
          a {
            padding: 2rem 0;
            display: block;
            height: auto;
          }
          &:first-child {
            padding-left: 0.8rem;
          }
          &:last-child {
            padding-right: 0.8rem;
          }
        }
      }
    }
  }
  .region-header-img {
    position: relative;
    height: 0;
    padding-top: 23%;
    > .block {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      .field {
        height: 100%;
        div[style*="background"] {
          height: 100% !important;
          width: 100% !important;
          background-size: 100% auto !important;
        }
      }
    }
  }
  body {
    &.topmenu-open {
      .region-sitemenu {
        .block-menu {
          > ul.menu {
            max-height: 400vh;
            margin-top: 0;
            opacity: 1;
            visibility: visible;
            box-shadow: 0 1rem 1rem rgba(0,0,0,0.2);
            transition:  opacity 0.6s, visibility 0.6s, margin-top 0.6s, height 0s;
            transition-delay: 0s, 0s, 0s, 0s;
          }
        }
      }
    }
  }
  html {
    &[lang='en'] {
      .region-logo-block {
        .site-logo {
          background: url('../images/kuria-logo-en-mobile.png') no-repeat 1rem top;
          background-size: auto 100%;
          height: 9rem;
          &:hover {
            background: url('../images/kuria-logo-en-mobile-brown.png') no-repeat 1rem top;
            background-size: auto 100%;
          }
        }
      }
    }
  }
}

//1023
@media screen and (max-width: 63.9375em) {
  .image-list-item {
    width: calc(33.33% - 1rem);
  }
  .slick {
    &[class*="slick--field-media-gallery-items"] {
      .slick__slide {
        .slide__content {
          .slide__media,
          > .media {
            height: 32rem;
            max-height: 32rem;
          }
        }
      }
    }
    &.slick--view--frontpage-slideshow {
      .media {
        height: 32rem;
        max-height: 32rem;
      }
    }
  }
  .embedded-entity {
    &[data-entity-embed-display*="onethird_width"] {
      width: 50%;
    }
    &[data-entity-embed-display*="quarter_width"] {
      width: 33.33%;
    }
  }
  figure {
    &[class*="onethird_width"] {
      width: 50%;
    }
    &[class*="quarter_width"] {
      width: 33.33%;
    }
  }
}

//767
@media screen and (max-width: 47.9375em) {
  .layout-container {
    > main {
      display: inline-block;
      width: 100%;
      .layout-content,
      aside {
        width: 100%;
        padding: 0 1.8rem;
      }
      aside {
        padding-top: 2rem;
      }
    }
  }
  .region-logo-block {
    .site-logo {
      width: 18rem;
      height: 6rem;
      margin-left: 0.8rem;
      background-size: auto 100%;
      &:hover {
        background-size: auto 100%;
      }
    }
  }
  .region-sitemenu {
    height: 6rem;
    .block-menu {
      .menu-toggle {
        margin: 0.5rem 3rem;
      }
    }
  }
  div#sliding-popup {
    .eu-cookie-compliance-banner {
      -webkit-flex-flow: column;
      flex-flow: column;
      .popup-content {
        text-align: center;
      }
    }
  }
  html {
    &[lang='en'] {
      .region-logo-block {
        .site-logo {
          height: 6rem;
        }
      }
    }
  }
}

//639
@media screen and (max-width: 39.9375em) {
  .embedded-entity {
    &[data-entity-embed-display*="half_width"] {
      width: 100%;
      padding-right: 0;
    }
  }
  figure {
    &[class*="half_width"] {
      width: 100%;
      padding-right: 0;
    }
  }
  .paragraph--type--hang-adatok {
    flex-flow: column;
    align-items: flex-start;
    > .field {
      margin-left: 0;
      margin-right: 0;
    }
    .field--name-field-hang-leirat {
      padding-top: 0;
    }
    .field--name-field-hang-mp3 {
      margin-bottom: 1rem;
      audio {
        max-width: 100%;
      }
    }
  }
  .view-allami-projektek {
    .view-footer {
      text-align: center;
      img {
        &:nth-child(odd),
        &:nth-child(even) {
          float: none;
          margin-top: 0;
        }
      }
    }
  }
}

//479
@media screen and (max-width: 29.9375em) {
  .image-list-item {
    width: calc(50% - 1rem);
  }
  .embedded-entity {
    &[data-entity-embed-display*="onethird_width"],
    &[data-entity-embed-display*="quarter_width"] {
      width: 100%;
      padding-right: 0;
    }
  }
  figure {
    &[class*="onethird_width"],
    &[class*="quarter_width"] {
      width: 100%;
      padding-right: 0;
    }
  }
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 2.2em;
  }
  h3 {
    font-size: 2em;
  }
  .region-actual-block {
    p#actual {
      letter-spacing: 6px !important;
      font-size: 26px !important;
    }
  }
}


//h 1023
@media screen and (max-height: 63.9375em) {
  body {
    &.path-welcome {
      padding: 1rem;
      h1.title {
        a {
          padding-top: 46vh;
          background-size: auto 44vh;
          font-size: 14vh;
          font-size: clamp(4rem,14vh,14rem);
        }
      }
      #lat-text {
        font-size: 5vh;
        font-size: clamp(2rem,5vh,5rem);
      }
      #hu-text,
      #en-text {
        font-size: 2.5vh;
        font-size: clamp(1.6rem,2.5vh,2.5rem);
      }
      .links {
        margin-top: 3vh;
        font-size: clamp(2rem,2.4vh,2.4rem);
      }
    }
  }
}

//h 479
@media screen and (max-height: 29.9375em) {
  body {
    &.path-welcome {
      h1.title {
        a {
          margin-bottom: 2vh;
          padding-top: 42vh;
          background-size: auto 40vh;
          font-size: 14vh;
          font-size: clamp(4rem,14vh,14rem);
        }
      }
      #lat-text,
      #en-text,
      #hu-text {
        margin-bottom: 1rem;
      }
    }
  }
}
