/************************************************************************************
 mobile layout (240 - 1023): common settings for both smartphone and tablet
*************************************************************************************/
@media only screen and (max-width: 960px),
(max-device-width: 960px) {
	body {
		font-size: 14px !important;
	}
	img {
		max-width: 100%;
		height: auto;
		width: auto\9; /* ie8 */
	}
	#jsn-master #jsn-header-inner,
	#jsn-master #jsn-menu-inner1,
	#jsn-master #jsn-promo-inner1,
	#jsn-master #jsn-pos-content-top,
	#jsn-master #jsn-content-bottom,
	#jsn-master #jsn-content,
	#jsn-master #jsn-content-top-over-inner2,
	#jsn-master #jsn-usermodules5,
	#jsn-master #jsn-footer-inner1 {
		width: auto;
	}
	/* =============== MAIN MENU =============== */
	#jsn-menu.jsn-menu-sticky {
		position: fixed;
		top: 0;
	}
	#jsn-mainmenu {
		float: none;
		left: auto;
	}
	#jsn-pos-mainmenu,
	body.jsn-direction-rtl #jsn-pos-mainmenu {
		float: none;
		right: auto;
	}
	/* ----- MAIN TOGGLE ----- */
	#jsn-pos-mainmenu .jsn-menu-toggle {
		cursor: pointer;
		display: inline-block;
	}
	#jsn-pos-mainmenu .jsn-modulecontent > .jsn-menu-toggle {
		color: #CCCCCC;
		font-size: 1.1em;
		margin: 5px 0 0;
		padding: 8px 12px 0;
	}
	#jsn-pos-mainmenu .jsn-menu-toggle.active {
		background-color: #404040;
		color: #FFFFFF;
	}
	#jsn-pos-mainmenu .jsn-modulecontent > .jsn-menu-toggle {
		position: relative;
		z-index: 100;
	}
	#jsn-pos-mainmenu .jsn-modulecontent > .jsn-menu-toggle.active {
		border: 1px solid #444444;
		margin: 0;
		padding: 8px 12px;
	}
	#jsn-pos-mainmenu .jsn-modulecontent > .jsn-menu-toggle.active:after {
		top: 100%;
		border: solid transparent;
		content: " ";
		height: 0;
		width: 0;
		position: absolute;
		pointer-events: none;
		border-color: rgba(64, 64, 64, 0);
		border-top-color: #404040;
		border-width: 10px;
		left: 50%;
		margin-left: -10px;
	}
	div.jsn-modulecontainer ul.menu-mainmenu > li > ul:after {
		border-color: transparent;
	}
	#jsn-pos-mainmenu ul.jsn-menu-mobile {
		position: absolute;
		width: 100%;
	}
	#jsn-pos-mainmenu .jsn-menu-toggle + ul {
		display: none;
	}
	#jsn-pos-mainmenu .jsn-menu-toggle + ul.jsn-menu-mobile {
		display: block;
	}

	/* ----- LEVEL 1 ----- */
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu li {
		float: none;
		width: auto;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li {
		border-top: 1px solid #444;
		border-bottom: 1px solid #111;
		border-right: none;
		border-left: none;
		margin: 0;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li > a,
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li > a:hover {
		border: none;
		background: #333;
		color: #ddd;
		font-size: 1.1em;
		text-decoration: none;
		padding: 10px;
	}

	/* ----- ACTIVE STATE COLOR ----- */
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu li.active > a {
		color: #FFF;
	}
	body.jsn-color-blue #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li.active > a {
		background-color: #214263;
	}
	body.jsn-color-green #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li.active > a {
		background-color: #477328;
	}
	body.jsn-color-brown #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li.active > a {
		background-color: #2D1D1D;
	}
	body.jsn-color-cyan #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li.active > a {
		background-color: #0E2526;
	}
	body.jsn-color-red #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li.active > a {
		background-color: #CC6114;
	}

	/* ----- LEVEL 2 ----- */
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu.jsn-menu-mobile ul {
		width: auto;
		position: static !important;
		background-color: #444;
		visibility: visible;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
		margin: 0;
		padding: 0;
		border-radius: 0;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu > li > .jsn-menu-mobile {
		padding: 5px 15px;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul li {
		border: none;
		background: none;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul li a {
		border: none;
		background: none;
		color: #ccc;
		padding: 8px 0 8px 20px;
		background: url(../images/icons/icons-base.png) left -332px no-repeat;
	}
	body.jsn-direction-rtl #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul li a,
	body.jsn-direction-rtl #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul li.parent > a {
		padding-left: 0;
		padding-right: 20px;
		background-position: right -336px;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu li span.jsn-menu-toggle {
		top: 0;
		right: 0;
		padding: 0;
		margin: 0;
		width: 32px;
		height: 32px;
		cursor: pointer;
		position: absolute;
		background: rgba(0,0,0,0.3) url(../images/icons/icon-toggle-expand.png) center center no-repeat;
		filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#4c000000', EndColorStr='#4c000000');
	}
	body.jsn-direction-rtl #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu li span.jsn-menu-toggle {
		left: 0;
		right: auto;
	}
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu li span.jsn-menu-toggle.active {
		background-image: url(../images/icons/icon-toggle-collapse.png);
	}

	/* ----- LEVEL 3 ----- */
	#jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul ul li {
		margin-left: 20px;
		margin-right: 10px;
	}
	body.jsn-direction-rtl #jsn-pos-mainmenu div.jsn-modulecontainer ul.menu-mainmenu ul ul li {
		margin-left: 10px;
		margin-right: 20px;
	}


	/* =============== MOBILE SIDE MENU =============== */
	body div.jsn-modulecontainer ul.menu-sidemenu ul {
		display: none;
	}
	body div.jsn-modulecontainer ul.menu-sidemenu li.parent > a {
		padding-right: 8px;
		background-image: none;
	}
	/* ===============  SITETOOLS =============== */
	ul#jsn-sitetools-inline,
	ul#jsn-sitetools-inline ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	ul#jsn-sitetools-inline li {
		padding: 0;
		margin: 0;
		float: left;
	}
	ul#jsn-sitetools-inline > li > a {
		background: url(../images/icons/icon-setting.png) no-repeat scroll center center #FFFFFF;
		border-radius: 5px 0 0 5px;
		float: left;
		position: absolute;
		right: 0;
		top: 25px;
	}
	ul#jsn-sitetools-inline > li.active > a {
		right: 92px;
	}
	ul#jsn-sitetools-inline li a {
		margin: 0;
		padding: 0;
		width: 32px;
		height: 32px;
		display: block;
	}
	ul#jsn-sitetools-inline li ul {
		background: #ffffff;
		position: absolute;
		width: 93px;
		right: -93px;
	}
	ul#jsn-sitetools-inline li.active ul {
		right: 0;
	}
	ul#jsn-sitetools-inline ul li {
		padding: 3px 0 3px 5px;
		background: none;
	}
	ul#jsn-sitetools-inline ul li a {
		border: 1px solid #EBEBEB;
		display: inline-block;
		float: left;
		height: 16px;
		padding: 3px;
		margin: 2px;
		width: 16px;
	}
	body.jsn-css3 ul#jsn-sitetools-inline li ul,
	body.jsn-css3 ul#jsn-sitetools-inline,
	body.jsn-css3 ul#jsn-sitetools-inline > li > a {
		-webkit-transition: 1s linear;
		-moz-transition: 1s linear;
		-o-transition: 1s linear;
		-ms-transition: 1s linear;
		transition: 1s linear;
	}
	body.jsn-css3 ul#jsn-sitetools-inline li ul {
		border-radius: 5px 0 0 5px;
		-moz-border-radius: 5px 0 0 5px;
		-webkit-border-radius: 5px 0 0 5px;
	}
	/* -----  RTL Layout ----- */
	body.jsn-direction-rtl #jsn-sitetoolspanel {
		left: 0;
		right: auto;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu > li {
		position: inherit;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu > li > a {
		float: right;
		left: 0;
		right: auto;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu > li.active > a {
		left: 92px;
		right: auto;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu li ul {
		left: -93px;
		right: auto;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu li.active ul {
		left: 0;
		right: auto;
	}
	body.jsn-direction-rtl ul#jsn-sitetools-menu > li > a,
	body.jsn-direction-rtl ul#jsn-sitetools-menu li ul,
	body.jsn-direction-rtl ul#jsn-sitetools-inline li ul {
		border-radius: 0 5px 5px 0;
		-moz-border-radius: 0 5px 5px 0;
		-webkit-border-radius: 0 5px 5px 0;
	}
	/* ===============  OTHER POSITIONS =============== */
	div[id*="jsn-pos-stick-left"],
	div[id*="jsn-pos-stick-right"] {
		display: none;
		height: 0;
	}
	#jsn-promo #jsn-pos-promo {
		float: none;
		left: auto;
		width: 100%;
	}
	#jsn-promo #jsn-pos-promo-left {
		left: auto;
		width: 100%;
	}
	#jsn-promo #jsn-pos-promo-right {
		width: 100%;
	}
	#jsn-content #jsn-maincontent {
		float: none;
		left: auto;
		width: 100%;
	}
	body.jsn-color-grey #jsn-content #jsn-maincontent {
		background: none;
	}
	#jsn-content #jsn-leftsidecontent {
		float: none;
		left: auto;
		width: 100%;
	}
	#jsn-content #jsn-leftsidecontent_inner,
	#jsn-content #jsn-rightsidecontent_inner {
		padding: 30px 12px 50px;
	}
	#jsn-content #jsn-rightsidecontent {
		float: none;
		width: 100%;
	}
	.homepage #jsn-rightsidecontent_inner {
		padding: 30px 20px 51px;
	}
	#jsn-content #jsn-centercol,
	#jsn-content #jsn-pos-innerleft,
	#jsn-content #jsn-pos-innerright {
		width: 100%;
		left: auto;
	}
	#jsn-content #jsn-content_inner2 {
		left: auto;
	}
	#jsn-content #jsn-content_inner3 {
		right: auto;
	}
	#jsn-content #jsn-centercol {
		width: 100%;
		left: auto;
	}
	#jsn-content-top-over div.jsn-modulescontainer {
		padding: 0;
	}
	#jsn-content-top-over,
	#jsn-content-top-over-inner {
		background: none;
	}
	div.jsn-modulescontainer4.jsn-horizontallayout div.jsn-modulecontainer {
		width: 49.9%;
	}
	div.jsn-hasinnerleft #jsn-content_inner4,
	div.jsn-hasinnerright #jsn-content_inner4 {
		border: none;
	}
	div.jsn-modulecontainer.display-mobile {
		display: block;
	}
	div.jsn-modulecontainer.display-desktop {
		display: none;
	}
	/* ============================== JOOMLA! DEFAULT EXTENSIONS ============================== */
	/* =============== JOOMLA! EXTENSIONS - COM_CONTACT =============== */
	/* ----- STANDARD CONTACT LAYOUT - CONTACT FORM INPUT BOXES ----- */
	.jsn-mailling-form {
		text-align: center;
	}
	.jsn-mailling-form p {
		text-align: left;
	}
	.jsn-mailling-form #contact_name,
	.jsn-mailling-form #contact_email,
	.jsn-mailling-form #contact_subject,
	.jsn-mailling-form #contact_text {
		width: 100%;
		padding: 3px 0;
	}
	/* =============== JOOMLA! EXTENSIONS - COM_SEARCH =============== */
	div.com-search #searchForm .search-phrase {
		margin-left: 0;
	}
	div.com-search #searchForm .search-keyword label,
	div.com-search #searchForm .search-ordering label,
	div.com-search #searchForm .search-field-title {
		float: none;
		display: inline;
		text-align: left;
		padding-bottom: 3px;
	}
	div.com-search #searchForm .search-keyword-result .search-field-title {
		display: inline;
	}
	div.com-search #searchForm .search-range label,
	div.com-search #searchForm  .search-range .search-field-title {
		float: left;
	}
	body.jsn-direction-rtl div.com-search #searchForm .search-range label,
	body.jsn-direction-rtl div.com-search #searchForm .search-range .search-field-title {
		float: right;
	}
}

/************************************************************************************
smartphone layout (320 - 480): everything is layout in single column
*************************************************************************************/
@media only screen and (max-width: 480px), (max-device-width: 480px) {
	#jsn-logo #jsn-logo-mobile {
		display: inline-block;
	}
	#jsn-logo #jsn-logo-mobile + #jsn-logo-desktop {
		display: none;
	}
	#jsn-logo {
		float: none;
	}
	#jsn-headerright {
		float: none;
		padding: 0 10px;
	}
	#jsn-headerright #jsn-pos-top {
		float: none;
	}
	#jsn-headerright #jsn-pos-top div.jsn-modulecontainer {
		float: none;
		margin: 0 0 15px 0;
	}
	div.jsn-modulescontainer div[class*="box-"],
	div.jsn-modulescontainer div[class*="solid-"],
	div.jsn-modulescontainer div[class*="richbox-"],
	div.jsn-modulescontainer div[class*="lightbox-"],
	div.jsn-modulescontainer2 div.jsn-modulecontainer {
		width: 100%;
	}
	div#jsn-content.jsn-hasright #jsn-content_inner2 {
		background: none;
	}
	div#jsn-content.jsn-hasleft #jsn-content_inner {
		background: none;
	}
	div[class*="jsn-modulescontainer"] div.jsn-modulecontainer,
	[id*="jsn-pos-user"],
	#jsn-pos-footer,
	#jsn-pos-bottom {
		float: none !important;
		width: 100% !important;
		text-align: center;
	}
	#jsn-pos-bottom {
		text-align: left;
	}
	div[class*="grid-layout"] div.grid-col {
		width: 100%;
	}
	div.grid-layout div.grid-col div.grid-col_inner {
		margin-right: 0;
	}
	body.jsn-direction-rtl div.grid-layout div.grid-col div.grid-col_inner {
		margin-left: 0;
	}
	div[class*="grid-layout"] div.grid-col p,
	div[class*="grid-layout"] div.grid-col h3 {
		text-align: center;
	}
	div#jsn-pos-content-top.jsn-modulescontainer div.jsn-modulecontainer_inner:first-child {
		margin-left: 0;
		margin-right: 0;
	}
	.title-pattern-grey,
	.title-pattern-yellow h3.jsn-moduletitle {
		font-size: 1.8em;
		padding: 10px 0 0;
	}
	.title-pattern-grey:before, .title-pattern-grey:after, .title-pattern-yellow h3.jsn-moduletitle:before, .title-pattern-yellow h3.jsn-moduletitle:after {
		height: 20px;
		padding-left: 2px;
		padding-right: 2px;
	}
	.title-pattern-grey:after {
		width: 80px;
	}
	/* ============================== JOOMLA! DEFAULT EXTENSIONS ============================== */
	/* =============== JOOMLA! EXTENSIONS - COM_CONTENT =============== */
	/* ----- ARTICLE DETAILS ----- */
	p, pre, blockquote, form, dl, ul, ol, fieldset, address, table {
		word-wrap: break-word;
	}
	/* ----- SECTION / CATEGORY BLOG LAYOUT ----- */
	/* ARTICLE COLUMN CONTAINER */
	.jsn-articlecols {
		float: none;
		width: 100% !important;
	}
	.jsn-articlecols .jsn-article {
		padding: 0;
	}
	/* =============== JOOMLA! EXTENSIONS - COM_NEWSFEED =============== */
	.com-newsfeed table.jsn-infotable td.jsn-table-column-links {
		display: none;
	}
	/* =============== JOOMLA! EXTENSIONS - COM_CONTACT =============== */
	.com-contact table.jsn-infotable td.jsn-table-column-country,
	.com-contact table.jsn-infotable td.jsn-table-column-state,
	.com-contact table.jsn-infotable td.jsn-table-column-suburb, 
	.com-contact table.jsn-infotable td.jsn-table-column-position {
		display: none;
	}
	/* =============== JOOMLA! EXTENSIONS - COM_USER =============== */
	/* ----- USER FORM LAYOUT ----- */
	div.com-user div.default-login {
		width: 90%;
	}
	div.com-user div.default-login .login-fields input {
		display: block;
		width: 95%;
	}
}

/************************************************************************************
 tablet layout (481 - 1023): arrange modules in 2 columns and 1 side bar 
*************************************************************************************/
@media only screen and (min-width: 481px) and (max-width: 960px),
(min-device-width: 481px) and (max-device-width: 960px) {
	#jsn-content-top.jsn-haspromoleft.jsn-haspromoright #jsn-promo #jsn-pos-promo-left {
		left: auto;
		width: 49.5%;
	}
	#jsn-content-top.jsn-haspromoleft.jsn-haspromoright #jsn-promo #jsn-pos-promo-right {
		width: 49.5%;
	}
	div.jsn-modulescontainer4 div.jsn-modulecontainer {
		width: 49%;
	}
	div.grid-layout4 div.grid-col {
		width: 25%;
	}
	div.grid-layout5 div.grid-col,
	div.grid-layout6 div.grid-col	{
		width: 49.5%;
	}
	#jsn-content.jsn-hasinnerleft.jsn-hasinnerright #jsn-pos-innerleft {
		float: left;
		width: 49.9%;
	}
	#jsn-content.jsn-hasinnerleft.jsn-hasinnerright #jsn-pos-innerright {
		float: right;
		width: 49.5%;
	}
	#jsn-content.jsn-hasleft.jsn-hasright #jsn-leftsidecontent {
		float: left;
		width: 49.9%;
	}
	#jsn-content.jsn-hasleft.jsn-hasright #jsn-rightsidecontent {
		float: right;
		width: 49.9%;
	}
	div#jsn-content.jsn-hasright #jsn-content_inner2 {
		background: transparent;
	}
	div#jsn-content.jsn-hasleft #jsn-content_inner {
		background: transparent;
	}
	div.jsn-modulescontainer3 div.jsn-modulecontainer,
	div.jsn-modulescontainer3 #jsn-pos-user5,
	div.jsn-modulescontainer3 #jsn-pos-user6,
	div.jsn-modulescontainer3 #jsn-pos-user7 {
		width: 49.9%;
	}
	div.jsn-modulescontainer3 #jsn-pos-user5 div.jsn-modulecontainer,
	div.jsn-modulescontainer3 #jsn-pos-user6 div.jsn-modulecontainer,
	div.jsn-modulescontainer3 #jsn-pos-user7 div.jsn-modulecontainer {
		width: 100%;
	}
}