/*
 * responsive.custom.css is for custom media queries that are not set via the
 * theme settings, such as cascading media queries.
 *
 * By default all the other responsive stylesheets used in Adaptivetheme use a
 * "stacking method", however cascading media queries use a waterfall method so
 * you can leverage the cascade and inheritance for all browsers that support
 * media queries.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable go to your theme settings and
 * look under the "CSS" settings tab.
 */

/*
 * Really small screens and up
 */
/* @media only screen and (min-width: 220px) {} */

/*
 * Smalltouch sizes and up
 */
/* @media only screen and (min-width: 320px) {} */

/*
 * Smalltouch sizes and down
 */
@media only screen and (max-width: 480px) {
  /*
   * Float Region Blocks - custom media query CSS example:
   *
   * Float regions blocks is an Extension you can enable in the appearance
   * settings for your theme. This feature allows you to automatically float
   * blocks in regions, you can switch it on and off depending on your
   * requirements. For design purposes you many want to remove the floats for
   * devices where the entire theme is just one column - for example small
   * mobile phones. The following CSS is inside the custom media query:
   *
   *   @media only screen and (max-width: 480px){}
   *
   * This will target devices with a maximum width of 480px - most small phones.
   * In these smaller screen sizes we can remove the float and widths so all
   * blocks stack instead of displaying horizonally. The selector used is an
   * "attribute selector" which will match on any float block class. Use your
   * inspector or Firebug to get the classes from the page output if you need
   * more granular control over block alignment and stacking.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }
  .crete-prehist #arrow-links-div {
    top: 120px;
  }
  .trio-crete-about {
    line-height: .5;
  }
  .trio-images-three-crete {
    text-align: center;
  }
  .trio-images-three-crete a {
    float: none;
    display: inline-block;
    max-width: 62vw;
  }
  .trio-crete-about .trio-images-two-crete {
    text-align: center;
  }
  .trio-crete-about .trio-images-two-crete a {
    float: none;
    display: inline-block;
    max-width: 62vw;
    position: relative;
    overflow: hidden;
  }
  .trio-crete-about .trio-images-two-crete a img {
    max-width: 166%;
    margin: 0 -33%;
  }
  .trio-crete-prefectures .trio-images-two-crete {
    text-align: center;
  }
  .trio-crete-prefectures .trio-images-two-crete a {
    float: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
  }
  .trio-crete-prefectures .trio-images-two-crete a img {
    max-width: 122%;
    margin: 0 -11%;
  }


}

@media only screen and (min-width:481px) {
  .trio-image-box-crete a {
    margin-bottom: 3.23%;
  }
  .trio-thirds-margin-right {
    margin-right: 3.235%;
  }
  .trio-one-third-cr {
    width: 30.609%;
  }
  .trio-images-three .trio-one-third-cr {
    width: 32.383%;
  }

  .trio-one-half {
    width: 48.5%;
  }
  .trio-half-margin-right {
    margin-right: 3%;
  }
  .trio-images-three-crete {
    display: table;
  }
  .trio-images-three-crete .trio-one-third {
    margin-bottom: 4.5%;
    width: 30%;
  }
  .trio-images-three-crete .trio-one-third.trio-thirds-margin-right {
    margin-right: 5%;
  }
  .trio-images-two-crete {
    display: table;
  }
  .trio-images-two-crete .trio-one-half {
    width: 47.5%;
  }
  .trio-images-two-crete .trio-half-margin-right {
    margin-right: 5%;
  }
  .trio-crete-about a,
  .trio-crete-prefectures a {
    box-shadow: 2px 2px 10px rgba(0,0,0,.25);
  }
  .trio-crete-about a:hover,
  .trio-crete-prefectures  a:hover {
    transform-origin: center center;
    transform: scale(1.04);
    box-shadow: 4px 4px 16px rgba(0,0,0,.35);
  }
  .page-node-87 h1.page-title-triopetra {
    height: 16vw;
  }
  .trio-site-bottom-logo img {
    width: 60%;
  }
  div.ds-2col.node-crete-location {
    padding: 0 9vw;
  }



}
/*
 * Tablet sizes and up
 */
/* @media only screen and (min-width: 768px) {} */

/*
 * Desktops/laptops and up
 */
/* @media only screen and (min-width: 1025px) {} */

/*
 * Smalltouch landscape sizes and DOWN
 */

@media only screen and (max-width:580px)  {

  #page {
    padding-top: 62px;
  }
  #header {
    padding-top: 5px;
    height: 68px;
  }
  #branding {
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
  }
  #logo a {
    width: auto;
  }
  #logo img {
    width: 45vw;
    max-width: 210px;
  }
  .region-header {
    height: 64px;
    position: relative;
  }
  .project-logo-header {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .project-logo-header img {
    height: auto;
    width: 40vw;
    max-width: 180px;
  }

  div.em-first-comp-inner {
      padding: 70px 30px 0px;
      width: auto;
  }

  div.em-first-comp-02 {
      padding: 27px 25px 29px 12px;
  }
  h2.em-title-rot-01 {
      height: auto;
      width: 10%;
  }
  div.em-first-comp-03 {
      width: 87%;
  }
  h2.em-title-01 {
    font-size: 25px;
    line-height: 30px;
  }
  img.emfirst-logo-em-comp {
    margin: 0 0 10px 10px;
    width: 48%;
  }

  .em-first-comp-03 p {
    font-size: 95%;
  }

  h2.em-title-proj {
    font-size: 12vw;
    margin-bottom: 14px;
  }
  .em-first-proj-inner {
      margin: 0 30px;
  }
  ul.em-first-projects-01 li {
    margin: 0 0 26px;
  }
  .em-first-projects-01 .p-title-box {
    display: table-row;
  }
  .em-first-projects-01 .p-image-box {
    display: block;
    height: 33vw;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  .em-first-projects-01 .p-image-box img {
    bottom: 0;
    position: absolute;
    transform: scale(2);
    transform-origin: 50% 90% 0;
  }
  .p-inside-cell p {
    height: 26px;
    margin: 10px 0;
  }
  .p-inside-cell h2 {
    height: 30px;
    margin: 0 0 2px;
  }
  .p-inside-cell img {
    margin: 8px 0 0;
  }
  .menu-in-project ul.menu li a:link, .menu-in-project ul.menu li a:visited {
      border: 1px solid #eee;
      margin: 2px;
  }

  ol.flex-control-paging {
    background-color: #5e727a;
    border-top: 1px solid #fff;
    bottom: 0;
    padding: 2px 0;
    position: relative;
  }
  ol.flex-control-paging li a {
    background-color: rgba(205, 225, 225, 0.9);
    border-radius: 2px;
    border-width: 0;
    box-shadow: none;
    display: inline-block;
    height: auto;
    margin: 0 8px;
    line-height: 12px;
    width: 25px;
  }
  .flexslider .flex-direction-nav a {
    background-size: 80px 40px;
    height: 40px;
    top: 28px;
    width: 40px;
  }
  .flexslider .flex-direction-nav a.flex-next {
      background-position: -40px 0;
  }
  .block.em-header {
      overflow: hidden;
      height: 150px;
      position: relative;
  }
  .block.em-header img {
    height: 100%;
    left: 50%;
    max-width: 300%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: auto;
  }
  .node-title-on-the-side .group-right,
  .node-title-on-the-side-terraces .group-right,
  .node-title-on-the-side-elliniko .group-right {
      padding: 0 22px;
  }

  h2.title-bar-horiz {
    font-size: 28px;
    margin: 0 -22px 8px;
    padding: 15px 22px;

    }
  .image-in-text-right-2,
  .image-in-text-right-3 {
    float: right;
    margin: 0 0 10px;
    width: 100%;
  }

  ul.res-units-list li {
      background-color: #d1dede;
      clear: both;
      list-style: outside url("none") none;
      margin: 0 0 6px;
      padding: 0;
      display: block;
      position: relative;
  }
  ul.res-units-list li.even {
    background-color: #d1dede;
  }
  ul.res-units-list li.even:hover {
    background-color: #e5dfbc;
  }
  ul.res-units-list li a {
      display: table;
      height: 60px;
      table-layout: fixed;
      width: 100%;
  }
  ul.res-units-list li a::after {
    background: transparent url("/sites/default/files/themefiles/zoom-600px.png") no-repeat scroll -60px 0 / 120px 60px;
    content: "";
    display: block;
    height: 80px;
    left: 5px;
    opacity: 0.15;
    position: absolute;
    top: 5px;
    transition: all 450ms ease-in-out 0s;
    width: 80px;
  }
  ul.res-units-list li a:hover::after {
    opacity: 0.3;
  }
  ul.res-units-list li span {
      display: block;;
      padding: 5px 10px;
      text-align: center;
      vertical-align: middle;
      width: 100% !important;
  }
  ul.res-units-list li span.res-floor {
    background-color: rgba(0, 75, 110, 0.18);
    font-size: 130%;
    padding-bottom: 0;
  }
  ul.res-units-list li span.res-unit {
    background-color: rgba(0, 75, 110, 0.18);
    font-size: 150%;
    padding: 1px 12px 9px;
  }
  ul.res-units-list li span.res-area {
    padding: 3px 0 0;
  }
  ul.res-units-list li span.res-desc {
    padding-top: 2px;
    text-align: center;
  }
  ol.flex-control-paging {
    line-height: 18px;
  }
  ol.flex-control-paging li a {
    margin: 0 5px;
    width: 21px;
    line-height: 10px;
  }
  .leaflet-popup-content {
    width: 58vw !important;
  }

}



/*
 * Tablet portrait sizes and DOWN
 */
@media only screen and (max-width:768px)  {
  #cboxPrevious, #cboxNext {
    background-color: rgba(120, 120, 120, 1);
    position: fixed;
    top: calc(50% - 45px);
  }
  #cboxPrevious {
    left: 5px;
  }
  #cboxNext {
    right: 5px;
  }
  #cboxClose {
    background-color: rgba(0, 0, 0, 1);
  }
  #cboxPrevious:hover {
  }
  #cboxNext:hover {
  }
  .field-name-location-terraces .view-content,
  .field-name-location-prime .view-content,
  .field-name-location-elliniko .view-content {
      margin: 20px 0 10px;
      padding: 0;
      width: 100%;
  }

}

/*
 * Tablet portrait sizes and UP
 */
@media only screen and (min-width:767px)  {
  a.link-button {
    padding: 6px 65px;
  }
  .node-type-triopetra-basic-page h1.page-title-triopetra {
    font-size: 47px;
    margin: 30px 48px 20px;
  }
  .trio-par-mh05 {
    margin-left: 17%;
    margin-right: 17%;
  }
  .field-name-field-link-to-previous,
  .field-name-field-link-to-next {
    width: 13%;
  }
  .field-name-field-link-to-previous a,
  .field-name-field-link-to-next a {
    background-position: 0 0;
    background-size: 70px 72px;
    width: 35px;
    height: 72px;
  }
  .field-name-field-link-to-next a {
    background-position: -35px 0;
  }
  .trio-behind img {
    display: block;
  }
  .trio-second-mobile img {
    display: none;
  }
  .node-type-triopetra-basic-page p.trio-behind {
    margin-bottom: -17%;
  }


}


@media all and (max-width:959px) {
  #logo {
    text-align: left;
  }
  #logo a {
    transform-origin: left top 0;
  }
  ul.em-first-projects-01 li a::after {
    background: transparent url("/sites/default/files/themefiles/zoom-600px.png") no-repeat scroll -120px 0 / 240px 120px;
    bottom: 0;
    content: "";
    display: block;
    height: 120px;
    opacity: 0.35;
    position: absolute;
    right: 0;
    transition: all 450ms ease-in-out 0s;
    width: 120px;
  }

  ul.em-first-projects-01 li a:hover {
    box-shadow: 5px 8px 27px rgba(18, 77, 96, 0.9);
    transform: scale(1.02);
  }
  ul.em-first-projects-01 li a:hover::after {
    opacity: 0.5;
  }
  .div-span-width {
    margin-right: 0;
  }
  .trio-image-box-crete a::after {
    background: transparent url("/sites/default/files/themefiles/zoom-600px.png") no-repeat scroll -70px 0 / 140px 70px;
    bottom: 3px;
    content: "";
    display: block;
    height: 70px;
    opacity: 0.35;
    position: absolute;
    right: 3px;
    transition: all 450ms ease-in-out 0s;
    width: 70px;
  }
  a.phasing-button::after {
    background: transparent url("/sites/default/files/themefiles/zoom-600px-white.png") no-repeat scroll 0 0 / 50px 50px;
    bottom: 4px;
    content: "";
    display: block;
    height: 50px;
    opacity: 0.25;
    position: absolute;
    right: 4px;
    transition: all 450ms ease-in-out 0s;
    width: 50px;
  }
}

@media only screen and (min-width:767px) and (max-width:1024px) {
  .trio-par-mh01 {
    margin-left: 15%;
    margin-right: 15%;
  }
  .leaflet-popup-content {
    width: 40vw !important;
  }

}



/* =============================================================================
 *   Pixual main menu (responsive)
 * ========================================================================== */


 @media all and (max-width:1055px) {
   .main-menu .menu {
     left: -220px;
     width: 220px;
   }
   .main-menu .level-2.menu.open,
   .main-menu .level-2.open ~ .level-3,
   .main-menu .level-2.open ~ .level-4 {
     left: 220px;
   }
   .main-menu .open ~ .main-menu__icon {
     left: 220px;
   }
   .main-menu .level-3.menu.open,
   .main-menu .level-3.open ~ .level-4 {
     left: 440px;
   }
   .main-menu .level-2.open ~ .main-menu__icon {
     left: 440px;
   }
   .main-menu .level-4.menu.open {
     left: 660px;
   }
   .main-menu .level-3.open ~ .main-menu__icon {
     left: 660px;
   }
   .main-menu .level-4.open ~ .main-menu__icon {
     left: 880px;
   }
 }
 @media all and (min-width: 960px) {
   .main-menu-res {
     display: none;
   }
 }
 @media all and (max-width:959px) {
   .main-menu {
     display: none;
   }
   .main-menu-res {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1101;
     border-bottom: 1px solid #fff;
     background: #0a373c;
   }
   #header {
     top: 43px;
   }
   #page {
     padding-top: 116px;
   }
   .front #page {
     padding-top: 43px;
   }

   .admin-menu .main-menu-res {
     top: 102px;
   }
   .front.admin-menu .main-menu-res {
     top: 29px;
   }
   .main-menu-res__icon {
     position: relative;
     display: block;
     height: 43px;
     text-indent: -9999px;
     overflow: hidden;
     cursor: pointer;
   }
   .main-menu-res__icon:before {
     content: '';
     position: absolute;
     top: 0;
     left: 50%;
     height: 43px;
     width: 48px;
     margin: 0 0 0 -24px;
     background: url(/sites/default/files/themefiles/menu-symbol.png) 9px 50% no-repeat;
   }
   .main-menu-res ul {
     display: none;
     padding: 0;
   }
   .main-menu-res.open > ul {
     display: block;
     max-height: calc(100vh - 116px);
     overflow-y: scroll;
     -webkit-overflow-scrolling: touch;
   }
   .admin-menu .main-menu-res.open > ul {
     max-height: calc(100vh - 145px);
   }
   .main-menu-res ul li {
     display: block;
     border-top: 1px solid #fff;
   }
   .main-menu-res li a {
     display: block;
     font-size: 14px;
     line-height: 18px;
     padding: 12px 42px 12px 20px;
     color: #fff;
   }
   .main-menu-res li a.active-trail {
     color: #ffdf66;
   }
   .main-menu-res li.expanded > a {
     background: url(/sites/default/files/themefiles/arrow-right.png) 100% 0 no-repeat;
   }
   .main-menu-res li.expanded.open > a {
     background: #18525c url(/sites/default/files/themefiles/arrow-down3.png) 100% 0 no-repeat;
   }
   .main-menu-res li.open > a {
     background: #194c55;
   }
   .main-menu-res ul li.expanded.open li a {
     background-color: #097487;
   }
   .main-menu-res ul li.expanded.open li.expanded.open li a {
     background-color: #288878;
   }
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li a {
     background-color: #259bb0;
   }
   .main-menu-res li.open > a:hover,
   .main-menu-res ul li.expanded.open li a:hover,
   .main-menu-res ul li.expanded.open li.expanded.open li a:hover,
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li a:hover {
     background-color: rgba(3, 171, 176, 0.7);
   }
   .main-menu-res li a.nolink {
     color: #aaa;
     display: none;
   }
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li.menu-item-643 a.nolink,
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li.menu-item-642 a.nolink {
     display: block;
     color: #b8dad0;
     font-style: oblique;
     padding-left: 61px;
     background-color: #238b9e;
   }
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li.menu-item-643 a.nolink:hover,
   .main-menu-res ul li.expanded.open li.expanded.open li.expanded.open li.menu-item-642 a.nolink:hover {
     background-color: #238b9e;
   }

   .main-menu-res li.open > ul {
     display: block;
     padding: 0;
   }
   .main-menu-res li li a {
     padding: 12px 42px 12px 40px;
   }
   .main-menu-res li li li a {
     padding: 12px 42px 12px 60px;
   }
   .main-menu-res li li li li a {
     padding: 12px 42px 12px 80px;
   }
 }
