/**
 *
 * -------------------------------------------
 * Mobile CSS file
 * -------------------------------------------
 *
 **/

/*
 *
 * 13. Mobile code
 *
 *
------------------------------------ */

/* 13.1. Base elements
==================================== */

#gk-mainbody > div {
  width: 100%;
}

/* archive / page 404 */
.page404 .widget,
.archivepage .widget {
  margin: 0!important;
  width: 100%!important;
}

/* images fix */
#gk-mainbody img {
  height: auto!important;
  max-width: 100%!important;
}

/* column rules */
#gk-sidebar {
  padding: 20px 0!important;
}

#gk-sidebar .box {
  float: none!important;
  width: 100%!important;
}

.widget-area .col1,
.widget-area .col2,
.widget-area .col3,
.widget-area .col4,
.widget-area .col5,
.widget-area .col6,
.widget-area .box.last1,
.widget-area .box.last2,
.widget-area .box.last3,
.widget-area .box.last4,
.widget-area .box.last5 {
  float: none!important;
  margin: 0 auto 20px auto!important;
  max-width: 320px;
  width: 100%;
}

.widget-area .nth1,
.widget-area .nth2,
.widget-area .nth3,
.widget-area .nth4,
.widget-area .nth5,
.widget-area .nth6 {
  clear: both;
}

#gk-inset .box,
#gk-inner-inset .box,
#gk-sidebar .box,
#gk-bottom1 .box,
#gk-bottom2 .box {
  width: 100%;
  clear: both!important;
  float: none!important;
  margin: 0 auto!important;
  max-width: 320px!important;
}
#gk-bottom1 .box,
#gk-bottom2 .box {
  margin-bottom: 20px!important;
}
#gk-sidebar .box {
  float: none;
  margin-top: 0!important;
  margin-bottom: 12px!important;
  width: 100%;
}
#gk-sidebar .box:nth-child(2n+1) {
  clear: both!important;
}
#gk-sidebar .box:nth-child(odd) {
  padding-right: 0px;
}
#gk-sidebar .box:nth-child(even) {
  padding-left: 0px;
}

#gk-mainbody-columns > section,
#gk-inner-inset {
  clear: both!important;
  width: 100%!important;
}

#gk-inner-inset {
  padding: 0 0 20px 0!important;
}

/* Fix for tables */
fieldset {
  box-sizing: border-box!important;
  max-width: 100%!important;
  width: 100%!important;
  overflow: hidden;
}
#gk-mainbody table:before {
  content: "Scroll horizontally to view the whole table";
  height: 14px;
  width: 100%;
  display: block;
  font-size: 10px;
  margin-top: -30px;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}
#gk-mainbody table {
  width: 540px!important;
  display: block!important;
  padding: 30px 0 20px 0; /* padding for the scrollbars and the top message */
  overflow:scroll;
  -webkit-overflow-scrolling:touch;
}
#gk-mainbody table tbody,
#gk-mainbody table thead,
#gk-mainbody table tfoot {
  width: 540px!important;
  display: table;
}

@media only screen and (max-width: 320px),
only screen and (max-device-width: 320px) and (-moz-max-device-pixel-ratio: 1.5),
only screen and (max-device-width: 320px) and (-o-max-device-pixel-ratio: 1.5/1),
only screen  and (max-device-width: 320px) and (-webkit-max-device-pixel-ratio: 1.5),
only screen and (max-device-width: 320px) and (max-device-pixel-ratio: 1.5),
only screen and (max-device-width: 640px) and (-moz-min-device-pixel-ratio: 2),
only screen and (max-device-width: 640px) and (-o-min-device-pixel-ratio: 2/1),
only screen and (max-device-width: 640px) and (-webkit-min-device-pixel-ratio: 2),
only screen and (max-device-width: 640px) and (min-device-pixel-ratio: 2) {
  #gk-mainbody table {
    width: 260px!important;
  }
}

@media only screen and (max-width: 480px) and (orientation:landscape),
only screen and (max-device-width: 480px) and (-moz-max-device-pixel-ratio: 1.5) and (orientation:landscape),
only screen and (max-device-width: 480px) and (-o-max-device-pixel-ratio: 1.5/1) and (orientation:landscape),
only screen  and (max-device-width: 480px) and (-webkit-max-device-pixel-ratio: 1.5) and (orientation:landscape),
only screen and (max-device-width: 480px) and (max-device-pixel-ratio: 1.5) and (orientation:landscape),
only screen and (max-device-width: 960px) and (-moz-min-device-pixel-ratio: 2) and (orientation:landscape),
only screen and (max-device-width: 960px) and (-o-min-device-pixel-ratio: 2/1) and (orientation:landscape),
only screen and (max-device-width: 960px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:landscape),
only screen and (max-device-width: 960px) and (min-device-pixel-ratio: 2) and (orientation:landscape) {
  #gk-mainbody table {
    width: 420px!important;
  }
}

/* top/bottom modules */
#gk-top1 .box,
#gk-top2 .box,
#gk-bottom1 .box,
#gk-bottom2 .box {
  margin-bottom: 20px!important;
}


/* 13.2. Posts
==================================== */

#comments {
  margin-left: 0!important;
}

/* other elements */
article header h1,
article header h2,
.page-title {
  font-size: 24px!important;
  line-height: 32px!important;
  padding: 18px 0 0px!important;
}

h1 {
  font-size: 24px!important;
}

.gk-post-meta {
  width: 100%!important;
}

.gk-post-meta ul > * {
  border: none!important;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  clear: none!important;
  float:left!important;
  margin: 0!important;
  padding: 3px 10px!important;
  width: 50%!important;
}

.gk-post-meta ul > *:nth-child(2n+1) {
  clear: both!important;
}

.gk-post-meta {
  width: 100%!important;
}

.gk-post-meta + .content {
  margin-left: 0!important;
}

/* 13.3. Device classes
==================================== */

.onlyDesktop {
  display: none!important;
}

.onlyTablets {
  display: none!important;
}

.onlySmartphones {
  display: block!important;
}

.onlyTabltetsAndSmartphones {
  display: block!important;
}


/* 13.4. Widgets
==================================== */

/* NSP adjustments */
.gk-nsp .gk-nsp-art {
  border-top: 1px solid #eee!important;
  border-left: none!important;
  padding-bottom: 20px!important;
  padding-top: 20px!important;
  width: 100%!important;
}
.gk-nsp .gk-nsp-art:first-child {
  border-top: none!important;
}

/* mobilelayout */
.bigtitle .gk-nsp-content-wrap {
  clear: both;
  padding-top: 10px;
}

/* Tabs adjustments */
.gk-tabs-nav {
  height: auto!important;
  min-height: 40px!important;
  overflow: hidden;
}

.gk-tabs-nav li {
  padding: 5px 0!important;
  width: 100%!important;
}

@media (min-width: 420px) and (max-width: 580px) {
  .box.mobilelayout .gk-nsp .gk-nsp-art,
  .box.nsphover .gk-nsp .gk-nsp-art {
    border-top: none!important;
    clear: none!important;
    width: 50%!important;
  }

  .box.nsphover .gk-nsp .gk-nsp-art .gk-nsp-header {
    font-size: 16px!important;
  }

  .box.nsphover .gk-nsp .gk-nsp-art .gk-nsp-text {
    font-size: 11px!important;
  }
}

.box.nsphover .gk-nsp .gk-nsp-art {
  padding-bottom: 10px!important;
  padding-top: 0!important;
}

/* NSP */
.box.header .gk-image-link .gk-nsp-header {
  font-size: 14px!important;
}

.gk-nsp-arts,
.gk-nsp-links {
  clear: both;
  float: left!important;
  width: 100%!important;
}

.box.gallery .gk-nsp-art {
  border-top: none!important;
  float: left;
  padding-top: 3px!important;
  padding-bottom: 3px!important;
  width: auto!important;
}

/* News Slideshow */
.gk-news-slideshow {
  margin: 0 -9px!important;
}

.gk-news-slideshow .gk-ns-images {
  padding: 0 28px!important;
}

/* Search */
#gk-search .field {
  width: 120px!important;
}

/* Popup login */
#gk-popup-login {
  margin-left: -150px!important;
  width: 300px!important;
}

#gk-popup-login #loginform {
  padding-left: 0!important;
}

#gk-popup-login #loginform ul,
#gk-popup-login #loginform .login-remember,
#gk-popup-login #loginform .login-submit {
  margin-left: 0!important;
}