@media screen and (max-width: 1152px) {

.content.node-article .field-type-text-with-summary p img {
    width: 100% !important;
	height: auto !important;
	}


body.sidebar-second .content-sidebar-wrap {width: 85%;
margin-left: 1%;}

body.two-sidebars .content-sidebar-wrap {
  width: 85%;
  margin-left:1%;
}


  #wrapper {
    max-width:960px;
  }

  #top-area .column:last-child{
    margin-right: 0;
  }
  
  #main-menu a {
    padding: 10px 25.4px;
	}
  
  #main-menu .menu-navigation-container {
    width: 640px;
}
  
  #copyright{
    padding: 0 10px;
  }
  
   div.nav-container  > ul > li > span{
    display:none;
  }
  div.nav-container{
  width:13% !important;
  }
  
  div.nav-container > ul > li > a{
    width: 100%;
     white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
  }
   
 div.nav-container > ul > li > a:hover{
    width:200px; 
    z-index:1;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid #16A085;
    box-shadow: 0 0 1px 1px #16A085;
  }
  
  div.nav-container > ul > li > a:hover span {
    display:block;
    padding-left:30%;
  }
  .content-sidebar-wrap
    {
  width:85%  
  }
  
  #main-menu  ul {
     background-color: rgb(114, 140, 170);
    border-bottom: solid 2px #B8B8B8;

}

#main-menu .menu-navigation-container {
  height: auto;
  background-color: rgba(0, 48, 102, 0.55);
    border-bottom: none;
}
  
  
}

@media screen and (max-width: 1008px) {
#logo > a > img 

{height: auto;}


   #gulbenkian
  {
  width:100px;
  }
 
   
   
  #top-area .column{ width: 32%; }

 

  .region-front-welcome{ margin: 1% 2%; }

  .block{ margin-bottom: 2%; }

  .content-sidebar-wrap #content{ /* margin: 0; */ }

  #footer_wrapper, #top-area { padding: 0 15px; }

  #post-content{ /* margin: 10px;  */}
}
@media screen and (max-width: 800px) {

.content.node-article .field-type-text-with-summary p img {
    width: 50% !important;
    height: auto !important;
}

.node-type-article .content.node-article .field-type-text-with-summary p img {
    width: 100% !important;
    height: auto !important;
}

.region.region-slideshow .field-name-body p img {
    width: 100% !important;
    height: auto !important;
}


#block-multiblock-2{display:block;}
/* #block-block-3{display:none;} */
#bajanum,
 #content,
  #sidebar-first,
  #sidebar-second,
.region-slideshow  {
    float:none !important;
    width:100% !important;
  }

  
  #sidebar-first {
    clear:both;
  }
  
  #sidebar-first,
  #sidebar-second,
  #head,
  #foot {
    padding:0 3.52%;
  }
  #sidebar-first, #sidebar-second, #head, #foot{ padding: 0 1.5%; }
  
body.sidebar-second #sidebar-second,
body.two-sidebars #sidebar-second {
    margin-top: 0;
	padding:0;
}
  
  }
 
 @media screen and (max-width: 770px) {
  #gulbenkian
  {
  background: url(../images/gulbenkian.pt.erkar.png) no-repeat center top;
  margin: 5px auto;
  background-size: contain;
  width:600px;
  }
}

@media screen and (max-width: 640px) {
  
  #main-menu .menu-navigation-container {
    height: auto;
    width: auto;
    background-color: none;
}
  
  
   #gulbenkian
  {
    width:400px;
  margin: 5px 0;
  height: 60px;
  }
  .top_right {
margin-top: 35px;
width: 21%;
/* margin-left: 4.9%; */
font-size: 12px;
/* width: 69px; */
line-height: initial;
}
 

  #logo { text-align: center; width: 100%; }

  #copyright{ padding: 0 12px;}

  body { margin-top: 0; }
  
  .top_left,
  .search_block, .region-user-menu{ width: 100%; }

  #footer p{ margin: 0; }

  #foot, #copyright{ padding: 0 10px; line-height: 200%; }

  .region-search{ width: 100%; padding: 0; }

  .social-icons{ width: 100%; text-align: center; }

  .social-icons { float: right; margin: 9px 0 0; }

  .front .content-sidebar-wrap{ margin: 0; }

  .region-front-welcome{ padding: 10px; }

  #site-title,
  #site-description { margin:0; line-height:1.62em; }
  
  #site-title { padding-top:18px; }
  
  #site-description { padding-bottom:18px; }

  #main-menu ul { display:none; }
  
  #main-menu li ul { position:static; border: 0; }
  
  #main-menu li ul ul { margin:0 !important; border: 0; }
  
  #main-menu ul,
  #main-menu li { float:none; max-width:100%; }

  #main-menu{ border:0; }
  
  #main-menu a {
    width: 100%;
    padding: 3% 2%;
    border-radius: 0;
    border-bottom: 1px solid #d8cece;
  }

  #main-menu li li a { text-align:center; }
  
  #main-menu li:hover > ul,
  #main-menu li li:hover > ul,
  #main-menu li li li:hover > ul {
    display:none;
  }
  
  .drop-down-toggle { display:block; }
  
  #main-menu li li .drop-down-toggle { top:5px; }

  .menu_wrapper{ margin: 0; }

  #main-menu .nav-toggle {
    display: block;
    font-size: 15px;
    font-weight: normal;
    background: rgba(114, 140, 170, 1);
    color: white;
    margin: 0;
    padding: 3%;
    letter-spacing: 1px;
    text-align: center;
  }

  #main-menu ul.menu li{
    margin: 0;
    width: 100%;
    text-align: center;
  }

  #sidebar-first,
  #sidebar-second {
    float:none;
    width:auto;
  }

  .content-sidebar-wrap #content {
    float: left;
    width:auto;
  }
  
  #sidebar-first .block,
  #sidebar-second .block,
  #footer-area .column,
  #top-area .column {
    float:none !important;
    width:auto !important;
    margin-left:0;
  }
  
  #sidebar-first {
    clear:both;
  }
  
  #footer-area .column,
  #top-area .column {
    margin:10px;
  }

  #top-area .column:first-child,
  #footer-area .column:first-child{
    margin: 10px;
  }
  
  .copyright,
  .credits {
    float:none;
    text-align:left;
  }

  #footer_wrapper, #top-area { padding: 0; }

  #site-title{ width: 100%; }

  #site-title a{ width: 100%; text-align: center; }

  .region-user-menu ul.menu{ float: none; }

   #logo{ margin: 8px 0 0 0; text-align: center; }

  #logo img{ text-align: center; display: inline-block; }

  #site-title{ display: inline-block; padding: 0; }

  .theme-default .nivo-caption,.nivo-directionNav{ display: none !important; }

  .region-clients { margin: 5%; }

  .region-clients li { width: 49%; }

  #copyright{ padding: 4%; }

  #copyright p{ text-align: center; }

  #site-description{
    padding-bottom: 5px;
    width: 100%;
    text-align: center;
  }

}

@media screen and (max-width: 520px) {
 .top_right {
font-size: 10px;
margin-top: 25px;
}

}

@media screen and (max-width: 440px) {
   #gulbenkian
  {
    width:300px;
  margin: 5px 0;
  height: 45px;
  }
  

  .block-menu ul{ float: none; text-align: center; }

  input.form-text, select.form-select { width: 93%; }

  textarea.form-textarea { width: 100% }

  .block > h2 { font-size: 18px; }

  .region-front-welcome p{ margin: 0; }

  .social-icons li{  padding: 0px;  text-align: center; }

  .node{  margin-top: 5px; }

  .region-clients li { width: 100%; }

}

@media screen and (max-width: 380px) {
 .top_right {

font-size: 8.2px;
}

 #gulbenkian {
    width:200px;
  margin: 5px 0;
  height: 30px;
  }
}

@media screen and (max-width: 1020px) {
body.sidebar-second #sidebar-second,
body.two-sidebars #sidebar-second {
    margin-top: -15.5px;
}

body.sidebar-second.node-type-article  #sidebar-second,
body.two-sidebars.node-type-article  #sidebar-second {
    margin-top: 0px;
}

}


