/*
#------------------------------------------------------------------------
# Writer - #8 2014 Joomla! template (for Joomla 2.5)
#
# Copyright (C) 2007-2014 Gavick.com. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.gavick.com
# Support: support@gavick.com 
*/

/* Containers */
#gk-top .box,
#gk-bottom .box, {
	clear: both!important;
	float: none!important;
	margin: 0 auto 20px auto!important;
	max-width: 300px;
	width: 100%!important;
}

.gkCols[data-cols="2"] > div,
.gkCols[data-cols="3"] > div,
.gkCols[data-cols="4"] > div,
.gkCols[data-cols="5"] > div {
	padding-bottom: 20px!important;
	width: 100%;
}

/* limitation suffixes */
.box.notablet {
	display: block!important;
}
.box.nomobile {
	display: none!important;
}
.box.onlytablet {
	display: none!important;
}
.box.onlymobile {
	display: block!important;
}
.box.notablet.nomobile {
	display: none!important;
}

/* Fix for the user profile */
.profile dt {
	width: 100% !important;
}

/* Fix for the contact page */
.contact .contact-image {
	float: left !important;
}
.contact .contact-address {
	clear: both !important;
}
.contact-details,
.contact .contact-form input,
.contact .contact-form textarea {
	width: 100% !important;
}
.contact-details, 
.contact-image {
	margin: 0;
	width: 100% !important;
}
.contact-form dl {
	width: 100%;
}

/* Fix for the search */
fieldset.word #search-searchword,
fieldset.word .inputbox {
	width: 50%;
}
fieldset.phrases .ordering-box,
fieldset.only input[type="checkbox"],
fieldset.phrases input[type="radio"] {
	clear: both;
}

/* Fix for the register */
#member-registration dd {
	clear: both !important;
	display: block !important;
}

/* Fix for tables */
fieldset {
	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: 480px) {
	#gk-mainbody table {
		width: 400px!important;
	}
}

@media only screen and (max-width: 440px) {
	#gk-mainbody table {
		width: 245px!important;
	}
}

/* top/bottom modules */
.box.gkmod-1,
.box.gkmod-2,
.box.gkmod-3,
.box.gkmod-4,
.box.gkmod-more {
	float: left!important;	
}
.box.gkmod-1,
.box.gkmod-2,
.box.gkmod-3,
.box.gkmod-4,
.box.gkmod-more {
	width: 100%!important;
}
.box.gkmod-more.gkmod-last-1:last-child,
.box.gkmod-more.gkmod-last-2:last-child,
.box.gkmod-more.gkmod-last-2:nth-last-child(2),
#gkPageWrap .box.gkmod-more.gkmod-last-3:last-child,
#gkPageWrap .box.gkmod-more.gkmod-last-3:nth-last-child(2),
#gkPageWrap .box.gkmod-more.gkmod-last-3:nth-last-child(3) {
	width: 100%!important;
}

/* top/bottom modules */
body #gkPage .box {
	margin-bottom: 20px!important;
}

/* 3-column layout */
.gkCols3 .box.gkmod-more:nth-child(1n) {
	clear: both;
}
.gkCols3 .box.gkmod-1,
.gkCols3 .box.gkmod-2,
.gkCols3 .box.gkmod-3,
.gkCols3 .box.gkmod-more,
.gkCols3 .box.gkmod-more.gkmod-last-1:last-child,
.gkCols3 .box.gkmod-more.gkmod-last-2:last-child,
.gkCols3 .box.gkmod-more.gkmod-last-2:nth-last-child(2) {
	width: 100%!important;
}

/* 4-column layout */
body .gkCols4 .box.gkmod-more:nth-child(1n) {
	clear: both;
}
body .gkCols4 .box.gkmod-1,
body .gkCols4 .box.gkmod-2,
body .gkCols4 .box.gkmod-3,
body .gkCols4 .box.gkmod-4,
body .gkCols4 .box.gkmod-more,
body .gkCols4 .box.gkmod-more.gkmod-last-1:last-child,
body .gkCols4 .box.gkmod-more.gkmod-last-2:last-child,
body .gkCols4 .box.gkmod-more.gkmod-last-2:nth-last-child(2),
body .gkCols4 .box.gkmod-more.gkmod-last-3:last-child,
body .gkCols4 .box.gkmod-more.gkmod-last-3:nth-last-child(2),
body .gkCols4 .box.gkmod-more.gkmod-last-3:nth-last-child(3) {
	width: 100%!important;
}

/* 6-column layout */
body .gkCols6 .box.gkmod-more:nth-child(1n) { 
	clear: both; 
}
body .gkCols6 .box.gkmod-1,
body .gkCols6 .box.gkmod-2,
body .gkCols6 .box.gkmod-3,
body .gkCols6 .box.gkmod-4,
body .gkCols6 .box.gkmod-more,
body .gkCols6 .box.gkmod-5,
body .gkCols6 .box.gkmod-more,
body .gkCols6 .box.gkmod-6,
body .gkCols6 .box.gkmod-more,
body .gkCols6 .box.gkmod-more.gkmod-last-1:last-child,
body .gkCols6 .box.gkmod-more.gkmod-last-2:last-child,
body .gkCols6 .box.gkmod-more.gkmod-last-2:nth-last-child(2),
body .gkCols6 .box.gkmod-more.gkmod-last-3:last-child,
body .gkCols6 .box.gkmod-more.gkmod-last-3:nth-last-child(2),
body .gkCols6 .box.gkmod-more.gkmod-last-3:nth-last-child(3),
body .gkCols6 .box.gkmod-more.gkmod-last-4:last-child,
body .gkCols6 .box.gkmod-more.gkmod-last-4:nth-last-child(2),
body .gkCols6 .box.gkmod-more.gkmod-last-4:nth-last-child(3),
body .gkCols6 .box.gkmod-more.gkmod-last-4:nth-last-child(4),
body .gkCols6 .box.gkmod-more.gkmod-last-5:last-child,
body .gkCols6 .box.gkmod-more.gkmod-last-5:nth-last-child(2),
body .gkCols6 .box.gkmod-more.gkmod-last-5:nth-last-child(3),
body .gkCols6 .box.gkmod-more.gkmod-last-5:nth-last-child(4),
body .gkCols6 .box.gkmod-more.gkmod-last-5:nth-last-child(5) {
	width: 100%!important;
}

/* NSP adjustments */
.nspArtPage .nspArt {
	width: 99%!important;
}

/* other elements */
#gk-header {
	left: 270px;
	width: 50px;
}

#gk-logo img {
	max-width: 50px;
}

#aside-menu {
	left: -270px;
	width: 320px;
}

#gk-logo-text {
	font-size: 18px;
	height: 50px;
	line-height: 50px;
	top: 10px;
}

#gk-logo + #gk-logo-text {
	top: 30px;
}

#gk-logo-text.two-lines {
	line-height: 15px;
	padding: 9px 0;
}

#gk-menu-button > span:after, 
#gk-menu-button > span:before {
	margin-left: -3px;
}

#gk-social {
	display: none;
}

#gk-search .inputbox {
	color: #111;
	padding: 0 20px!important;
	width: 150px;
}

#gk-content {
	padding-left: 50px!important;
}

#gk-mainbody {
	padding: 15px;
}

.single-page > header {
	margin: -15px -15px 0;
}

.single-page > header h1 {
	padding: 10px 15px;
}

article header h1, 
article header h2 {
	font-size: 20px;
}

.single-page > header h1:before {
	left: 15px;
}

.single-page > header.no-image {
	padding: 50px 15px 0 15px;
}

#gk-top,
#gk-bottom {
	padding: 15px 15px 5px 15px;
}

#gk-right {
	padding-left: 65px!important;
	padding-right: 15px!important;
}

/* Page elements */
#gkSocialAPI {
	overflow: hidden;
}

.cols-2 .column-2, 
.cols-3 .column-3 {
	padding: 0!important;
}

.itemComments .itemCommentsList li img {
	float: left;
	margin-left: 0;
	margin-right: 10px;
	position: static;
}

.itemCommentsList li h3 {
	float: none;
	margin-top: 5px;
}

#gkMainbody .registration {
	width: 100%;
}

#gkFooterNav li {
	float: none;
}

/* NSP */
.box.header .nspImageWrapper h4 {
	font-size: 14px!important;
}

.nspArts,
.nspLinksWrap {
	clear: both;
	float: left!important;
	width: 100%!important;
}

.nspArt .nspImageWrapper {
	width: 100%;
}

/* Subpage fixes */
.itemAuthorContent ul li {
	margin-bottom: 20px!important;
	padding: 0!important;
	width: 100%!important;
}
fieldset.word #search-searchword, 
fieldset.word .inputbox {
	width: 46%;
}

.itemNavigation .itemPrevious, 
.itemNavigation .itemNext {
	max-width: 100%;	
}

.itemComments .itemCommentsList li > div {
	clear: both;
	margin: 0!important;
	padding: 10px 0;
}

.itemComments .itemCommentsList li > div > span {
	clear: both;
	display: block;
	float: none;
	overflow: hidden;
	text-align: left;
	width: 100%;
}

a.commentLink {
	float: left;
}


/* Other elements */
dl#tabs dt.tabs,
dl.tabs dt.tabs,
dl#tabs dt.tabs a,
dl.tabs dt.tabs a {
	clear: both; 
	width: 100%;
}
.gkTabsNav li {
	margin: 4px 0!important;
	width: 100%;
}

.itemBody h1, 
.itemBody h2, 
.itemBody h3, 
.itemBody h4, 
.itemBody h5, 
.itemBody h6 {
	margin: 25px 0 15px;
}

blockquote {
	font-size: 13px;
	padding: 10px;
}

blockquote:before,
blockquote:after {
	display: none;
}

blockquote strong {
	font-size: 13px;
}

.gkBlockTextLeft, 
.gkBlockTextRight {
	font-size: 15px;
	width: 50%;
} 
.gkBlockTextCenter {
	font-size: 15px;
	width: 80%;
}

.itemBody .the-icons > li {
	clear: both;
	width: 100%;
}

.single-page > header sup, 
.itemListView .itemImageBlock sup {
	right: 0px;
	top: 0px;
}

.itemAuthor img {
	margin-right: 10px!important;
}

.itemInfo > span, 
.itemInfo > time {
	margin-top: 10px;
}

.itemInfo.no-author > span, 
.itemInfo.no-author > time {
	margin: 0!important;
	width: 100%;
}

.latest-posts-left .gkArtContentWrap, 
.latest-posts-right .gkArtContentWrap {
	padding: 10px 0!important;
	width: 100%;
}

.itemListView .itemImageBlock + .itemBlock {
	margin: -45px 10px 0;
	padding: 20px 10px 0;
}

.itemAuthorData, .itemsCategory {
	padding: 20px;
}

.itemAuthorDetails {
	clear: both;
	margin: 0;
	padding: 10px 0 0 0;
}

.login-fields > input {
	min-width: 200px;
	max-width: 90%!important;
}

select, 
textarea, 
input[type="text"], 
input[type="password"], 
input[type="url"], 
input[type="email"] {
	max-width: 80%!important;
}

section > header {
	margin: 0 0 24px;
}

#gk-mainbody dd {
	margin-left: 0;
}

#member-registration dd {
	margin: 0!important;
	min-width: 200px;
	max-width: 75%;
}

.gkTabsWrap ol {
	border-bottom: none;
}

.post-listing figure > a {
	width: 100%;
}

.post-listing {
	overflow: hidden;	
}

.post-listing figcaption {
	clear: both;
	padding: 20px;
	position: static;
	width: 100%;
}

.fixed-content #gk-mainbody {
	left: 50px;
}

#gkPopupLogin {
	padding: 0 10px 0 60px;
}

#gk-search.search-active:after {
	width: 110px;
}
#gk-search.search-active {
	width: 150px;
}
