/**
 * @file
 * Positioning for a responsive layout.
 *
 * Define CSS classes to create a fluid grid layout with optional sidebars
 * depending on whether blocks are placed in the left or right sidebars.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * For screen sizes larger than 1200px, prevent excessively long lines of text
 * by setting a max-width.
 */
#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 0px;
  padding-right: 0px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  *behavior: url("/path/to/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

/* Containers for grid items and flow items. */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/* Hide top nav blocks by default/mobile first */
.block-on-the-web,#block-block-12,#block-block-8,#block-block-28,#block-clock-clock,.header__logo{
  display:none!important;
}
body{
  padding-top:inherit!important;
}
  /* Navigation bar */
#navigation{
  min-height:52px;
}

@media all and (min-width: 480px) {
  #main {
    /* Move all the children of #main down to make room. */
    padding-top: 3.65em;
    position: relative;
  }
  #navigation {
    /* Move the navbar up inside #main's padding. */
    position: absolute;
    top: 0px;
    width: 100%;
	overflow:initial;
  }

  .ytc-wrapper, .block-3-list{
    display:inline-block;
    position: relative;
    width: 32%;
    margin-right:2%;
    vertical-align:top;
    float:left;
  }
  .ytc-wrapper:last-child,.block-3-list:last-child{
    margin-right:0;
  }
  .header__site-name {
    margin: 0;
    font-size: 2.5em;
    display:inline-block;
    border-right:0px;
    border-bottom:1px solid #7F7F7F; 
  }
  .block-on-the-web,#block-block-12,.header__logo,#block-block-28{
    display:none!important;
  }
  #block-clock-clock,#block-block-8{
    display:inline-block!important;
  }
  .sideber-second #container{
    float: left;
    width: 66.66667%;
  }
  .sidebar-second #region-sidebar-second {
    float: right;
    width: 33.33333%;
  }
  
  #content,
  .region-highlighted,
  .region-highlighted-bottom
  {
    padding-right: 25px;
  }
    .no-sidebars #content
   {
    padding-right: 0px;
  }
  .stickynav-active {
    position: absolute!important;
  }
  body{
    padding-top:inherit!important;
  }
  .header__name-and-slogan {
    font-size: 110%;
	float:left;
    margin:0;
  }
  .maintenance-page .maintenance-block-left{
    display:table-cell;
    width:50%;
    border-right:1px solid #CCC;
  }
  .maintenance-page .maintenance-block-right{
    display:table-cell;
    width:50%;
    margin-top:0px;
}
}

/**
 * Use 3 grid columns for smaller screens.
 */
@media all and (min-width: 480px) and (max-width: 959px) {
  html{
    font-size:80%;
  }
  .more-link {
    background-position: 4px -7px;
}

  /**
   * The layout when there is only one sidebar, the left one.
   */
  .sidebar-first .container{
    float: none;
    width: 100%;
  }
  /* Span 2 columns, starting in 2nd column from left. */
  .sidebar-first #content {
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /**
   * The layout when there is only one sidebar, the right one.
   */

  /* Span 2 columns, starting in 1st column from left. */
    .sidebar-second #container{
    float: left;
    width: 66.66667%;
  }
  .sidebar-second #content {
    float: none;
    width: 100%;
  }
    /* Span 1 column, starting in 3rd column from left. */
  .sidebar-second  .region-sidebar-second {
    width: 33.33333%;
    float:right;
  }

  /**
   * The layout when there are two sidebars.
   */

  /* Span 2 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: right;
    width: 50%;
  }

  /* Span 1 column, starting in 1st column from left. */
   .two-sidebars  #container{
    float: left;
    width: 66.66667%;
  }
  .two-sidebars .region-sidebar-first {
    float: left;
    width: 50%;
    padding-right:10px;
  }

  .two-sidebars .region-sidebar-second {
    float: right;
    width: 33.33333%;
  }

  /* Apply the shared properties of grid items in a single, efficient ruleset. */
  .two-sidebars .region-sidebar-second .block {
    padding-left: 5px;
    padding-right: 5px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    *behavior: url("/path/to/boxsizing.htc");
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
  }

  
  .node-article .field-image,
  .node-page .field-image-page{
   float:right;
   clear:right;
  }

  .view-news .views-column,
  .view-taxonomy-term-view  .views-column{
	display:inline-block;
	width:49%;
	float:right;
  }
    .sidebar .view-news .views-row,
	.view-taxonomy-term-view  .views-row{
	width:100%;
  }
  .view-news .views-column-1{
	margin-right:2%;
	float:left;
  }
  .sidebar.view-news .views-column-1,.view-taxonomy-term-view  .views-column-1{
	margin-right:0%;
	float:none;
  }
  .sidebar .view-news .views-column
   {
	display:inline-block;
	width:100%;
	float:none;
  }
  .header__site-slogan {
    display:table-cell;
    vertical-align:middle;
    line-height:30px;
    font-size:22px;
    padding-left:15px;
  }
  .header__name-and-slogan {
    font-size: 120%;
	float:left;
    margin-left:35px;
  }
  .header__site-name {
    margin: 0;
    font-size: 3em;
    display:table-cell;
    border-right:2px solid #7F7F7F;
    border-bottom:0px;
    padding-right:15px;
    vertical-align:middle;
    line-height:90px;
  }
  .header__logo-image{
    max-width:100%;
  }
  .block-on-the-web,#block-block-12,#block-block-28,.header__logo{
    display:none!important;
  }
  #block-clock-clock,#block-block-8{
    display:table-cell!important;
  }
  #navigation #block-search-form{
    float:right;
    position:absolute;
  }
  .nav-toggle{
    font-size:100%;
  }
  #header .header-branding{
    margin-top:67px;
  }
  .header__logo{
    line-height:80px;
    padding: 0 10px;
  }
  #content,
  .region-highlighted,
  .region-highlighted-bottom
  {
    padding-right: 15px;
  }
  .stickynav-active {
    position: absolute!important;
  }
  body{
  padding-top:inherit!important;
  }
  .vscc_controls a{
    padding:6px 12px 0px 12px;
  }
  .vscc_controls_previous a {
    top: 42px;
  }
  .blue-shortcut:last-child{
    width:auto;
  }
  .submenu-nav li{
    width:272px;
    margin-right:25px;
    display:inline-block;
  }

  .mediaelement-download-link{
    margin-left:10%;
 }
 .document-grid .views-column{
  float:left;
  width:49%;
}
}

/**
 * Use 5 grid columns for larger screens.
 */
@media all and (min-width: 960px) {
  html{
    font-size:100%;
  }
  /**
   * The layout when there is only one sidebar, the left one.
   */
  
  #main {
    /* Move all the children of #main down to make room. */
    padding-top: 3.65em;
    position: relative;
  }
  #navigation{
    min-height:58px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #FFF;
  }
  #navigation #block-search-form{
    float:right;
    position:absolute;
    line-height:54px;
  }
  /* Span 4 columns, starting in 2nd column from left. */
  .sidebar-first #content {
    float: left;
    width: 66.66667%;
    margin-left: 33.33333%;
    margin-right: -100%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .sidebar-first .region-sidebar-first {
    float: left;
    width: 33.33333%;
    margin-left: 0%;
    margin-right: -33.33333%;
  }

  /**
   * The layout when there is only one sidebar, the right one.
   */

  /* Span 4 columns, starting in 1st column from left. */
  .sidebar-second #content {
    width: 100%;
  }

  /* Span 1 column, starting in 5th column from left. */
  .sidebar-second .region-sidebar-second {
    float: right;
    width: 33.33333%;
  }

  /**
   * The layout when there are two sidebars.
   */

  /* Span 3 columns, starting in 2nd column from left. */
  .two-sidebars #content {
    float: right;
    width: 50%;
  }

  /* Span 1 column, starting in 1st column from left. */
  .two-sidebars .region-sidebar-first {
    float: left;
    width: 50%;
    margin-left: 0%;
	padding-right:25px;
  }

  /* Span 1 column, starting in 5th column from left. */
  .two-sidebars .region-sidebar-second {
    float: right;
    width: 33.33333%;
  }
  #header{
    overflow:visible;
  }
  .node-article .field-image,.node-page .field-image-page{
    float:right;
	clear:right;
  }
  .page-search .node-article .field-image,.page-search .node-page .field-image-page{
    float:left;
	clear:left;
  }
  .view-news .views-column,
  .view-taxonomy-term-view  .views-column
  {
	display:inline-block;
	width:49%;
    float:right;
  }
  .view-news .views-column-1,.view-taxonomy-term-view  .views-column-1{
	margin-right:2%;
	float:left;
  }
  .sidebar.view-news .views-column-1{
	margin-right:0%;
	float:none;
  }
  .sidebar .view-news .views-column{
	display:inline-block;
	width:100%;
	float:none;
  }
  .page-audio .view-radio-view,
  .page-taxonomy .view-taxonomy-term-view,
  .page-documents .view-documents{
    padding-left:10px;
  }
  .header__site-slogan {
    display:table-cell;
    vertical-align:middle;
    width:400px;
    line-height:30px;
    font-size:30px;
    padding-left:20px;
  }
  .header__site-name {
    margin: 0;
    font-size: 3.5em;
    display:table-cell;
    border-right:2px solid #7F7F7F;
    border-bottom:0px;
    padding-right:20px;
    vertical-align:middle;
    line-height:90px;
  }
  #navigation #block-search-form{
    width:auto;
    text-align:none;
  }
  .block-on-the-web,#block-block-12,#block-block-8,#block-block-28,#block-clock-clock,.header__logo{
    display:table-cell!important;
  }
  #header .header-branding{
    margin-top:67px;
  }
  .header__logo{
    line-height:80px;
    padding: 0 10px;
  }
  #block-multiblock-28,#block-multiblock-8{
    display:inline-block;
    width:49%;
    vertical-align:top;
  }
  #search-block-form input{
    width:300px;
  }
  .articles-grid .views-row .views-column:hover .field-body,
  .articles-grid .views-row .views-column:hover .views-field-created,
  .slider-home:hover .field-body,
  .slider-home:hover .views-field-created{
    max-height: 180px;
  }
  .region-highlighted,.region-highlighted-bottom{
    word-wrap: break-word;
    overflow:hidden;
}
  .no-sidebars  #container,
  .sidebar-first  #container{
    float: none;
    width: 100%;
  }
  
  #container{
    float: left;
    width: 66.66667%;
    margin-left: 0%;
  }
  #footer-area {
    display:table;
    width:100%;
  }

  #footer-area .column-2 {
    max-width:550px;
  }
  #footer-area .column {
    display:table-cell;
  }
  #footer-area .column:last-child {
    margin-top:4px;
  }
  #block-multiblock-20 .ytc-wrapper:first-child{
    float:left;
    position: relative;
    width: 66.6%;
    margin-right:0.4%;
    vertical-align:top;
    float:left;
  }
  #block-multiblock-20 .ytc-wrapper:first-child img{
    width:100%!important;
  }
  #block-multiblock-20 .ytc-wrapper{
    display:inline-block;
    position: relative;
    width: 32.94%;
    margin-right:0%;
    vertical-align:top;
    float:left;
  }
  .stickynav-active {
    position: fixed!important;
    top: 0px;
    z-index: 1000;
    width: 100%;
    max-width:1200px;
    padding-left: 0px;
    padding-right: 0px;
    margin-left: 0px;
    margin-right: 0px;
    background-color:#fff;
  }
  .stickynav-active #main-menu .menu .active-trail .menu{
    display:none;
  }
  #main-menu .links li,
  #main-menu .menu li {
    position:static;
  }
  .vscc_controls a{
  padding:8px 16px 4px 16px;
  }
  .vscc_controls_previous a {
    top: 48px;
  }
  .submenu-nav li{
    width:272px;
    margin-right:25px;
    display:inline-block;
  }
  .one-sidebar .submenu-nav li{
    width:245px;
    margin-right:5px;
    display:inline-block;
  }
    .mediaelement-download-link{
    margin-left:10%;
 }
 .document-grid .views-column{
  float:left;
  width:49%;
}
}
@media all and (min-width: 1080px) {
  #header .map-image{
    background-image: url("/sites/all/themes/unmpk/images/worldmap4.png");
    background-repeat: no-repeat;
    height: 100%;
    overflow: visible;
    position: absolute;
    right: 0;
    top: 0px;
    width: 318px;
	z-index:-50;
  }
  #header .map-marker{
    background-image: url('/sites/all/themes/unmpk/images/location-icon.png');
    position: absolute;
    right: 214px;
    top: 47px;
    width:22px;
    height:32px;
    z-index:0;
  }
}
  @media all and (min-width: 1150px) {
  .submenu-nav li:nth-child(4n){
    margin-right:0px;
  }
    div.box-wrapper > ul.menu li.menuparent > ul.sf-has-clone-parent {  /* Avoid incorrect overlapping of the background of the menu */
        position: absolute !important;
        width: 12em !important;       
  }
   
  div.box-wrapper > ul.menu li.menuparent > ul.sf-has-clone-parent > li:first-child{  /* Hide the first item of the submenus because they were created when switching under 1050px */
        display: none;
   }
   
  div.box-wrapper > ul.menu li.menuparent > ul.sf-has-clone-parent > li{  /* align to left the text of the submenus*/
       text-align: left;
  }
}
  @media screen and (-webkit-min-device-pixel-ratio:0) {  
  .sf-menu,
  .sf-menu li {
    z-index: auto !important;
  }
}