/* =========================================================================== */
/* RETINA SCREEN ============================================================= */
/* =========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
}
/* =========================================================================== */
/* LARGE DESKTOP ============================================================= */
/* =========================================================================== */
@media screen
and (min-width : 1280px) {
	.wrapper {
		width:1100px;
	}
	.wrapslider {
		width:1100px;
	}
}
/* =========================================================================== */
/* VERY LARGE DESKTOP ======================================================== */
/* =========================================================================== */
@media screen
and (min-width : 1600px) {
}
/* =========================================================================== */
/* SMALL DESKTOP ============================================================= */
/* =========================================================================== */
@media screen
and (max-width : 1024px) {
	.wrapper {
		width: calc(100% - 40px);
	}
}
/* =========================================================================== */
/* IPAD XOAY NGANG =========================================================== */
/* =========================================================================== */
@media screen
and (max-width : 1024px) and (orientation: landscape) {
}
/* =========================================================================== */
/* TABLET ==================================================================== */
/* =========================================================================== */
@media screen
and (max-width : 768px) {
	#divMenu {
		position:static;
		overflow:hidden;
	}
	#divAdmin {
		overflow-x: scroll;
	}
	ul.mainmenu {
		clear:both;
		float:none;
	}
	ul.mainmenu > li.button {
		display:block;
	}
	ul.mainmenu > li.row {
		display:none;
		border-top:1px dotted #CCC;
		margin-left:0px;
	}
	ul.mainmenu > li.row > div > a {
		text-align:left;
		padding:10px 0px;
	}

	ul.popmenu {
		position:static;
		padding-top:0px;
		background:none;
	}
	ul.popmenu > li {
		border-top:1px dotted #CCC;
		border-bottom:none;
	}
	ul.popmenu > li a {
		padding:10px 20px;
	}
	ul.popmenu > li > ul {
		top:auto;
		left:auto;
		margin-left:0;
	}
	ul.popmenu > li > ul > li > a {
		padding-left:40px;
	}
	ul.column2 > li.row,
	ul.column3 > li.row,
	ul.column4 > li.row,
	ul.column5 > li.row,
	ul.column6 > li.row {
		margin-left:20px;
		margin-bottom:20px;
	}
	ul.column2 > li.row {
		width: calc((100% - 1 * 20px) / 2);
	}
	ul.column3 > li.row {
		width: calc((100% - 2 * 20px) / 3);
	}
	ul.column4 > li.row {
		width: calc((100% - 3 * 20px) / 4);
	}
	ul.column5 > li.row {
		width: calc((100% - 4 * 20px) / 5);
	}
	ul.column6 > li.row {
		width: calc((100% - 5 * 20px) / 6);
	}
	
	ul.column2 > li.row div.thumb,
	ul.column2 > li.row div.content {
		float:none;
		width:auto;
	}
	ul.column2 > li.row.div.thumb {
		margin-bottom:20px;
	}
	ul.related > li.row div.thumb {
		float:left;
		width: calc(30% - 10px);
		margin-right:10px;
	}

	#divFooter div.block {
		width: calc((100% - 30px) / 2);
	}
	#divFooter div.block:nth-child(2n+1) {
		clear:both;
		margin-left:0px;
	}
	INPUT[type='button'].create {
		text-indent:-9999px;
		padding-right:25px;
	}
}
/* =========================================================================== */
/* SMARTPHONE ================================================================ */
/* =========================================================================== */
@media screen
and (max-width : 640px) {
	#divMenu {
	}
	#divBody, #divAdmin, #divRight, #divHome {
		float:none;
		width:auto;
		margin-left:0px;
	}
	#divLeft {
		display:none;
	}
	SECTION.head {
		display:none;
	}
	.onecolumn,
	.twocolumn,
	.threecolumn,
	.onethreecolumn,
	.twothreecolumn {
		width:auto;
		margin-bottom:5px;
	}
	.leftcolumn,
	.rightcolumn,
	.centercolumn {
		margin-left:0;
		float:none;
	}
	.smallcolumn.leftcolumn,
	.bigcolumn.leftcolumn {
		float:left;
	}
	.smallcolumn.rightcolumn,
	.bigcolumn.rightcolumn {
		float:right;
	}
	ul.column1 > li.row div.thumb {
		width: calc(50% - 15px);
	}
	ul.column1 > li.row div.content {
		width: calc(50% - 15px);
	}
	ul.maincat > li.row > div > span {
		top:10px;
		right:10px;
		width:20px;
		height:20px;
	}
	.content {
		overflow-wrap: break-word;
		word-wrap: break-word;
		-ms-word-break: break-all;
		/* This is the dangerous one in WebKit, as it breaks things wherever */
		word-break: break-all;
		/* Instead use this non-standard one: */
		word-break: break-word;
		/* Adds a hyphen where the word breaks, if supported (No Blink) */
		-ms-hyphens: auto;
		-moz-hyphens: auto;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
	.divForm {
		width:auto;
	}
	div.copyright {
		text-align:center;
	}
	INPUT[type='button'].create {
		text-indent:inherit;
		padding-right:36px;
	}
}
/* =========================================================================== */
/* MOBILE ==================================================================== */
/* =========================================================================== */
@media screen
and (max-width : 480px) {
	body {
		line-height:normal;
	}
	.wrapper {
		width: calc(100% - 20px);
	}
	H1, .maintitle h1 {
	}
	.divBodyTrace {
		position:relative;
		margin-top:5px;
		margin-bottom:5px;
	}
	#divHeader div.welcome {
		float:none;
		text-align:center;
	}
	ul.logo {
		float:none;
		width:auto;
	}
	ul.logo li img {
		width:200px;
		height:auto;
	}
	#divMenu.keeptotop ul.logo {
		width:auto;
	}
	ul.lang, ul.toplink {
		float:none;
		text-align:center;
		margin:10px 0px;
	}
	#divMenu.keeptotop {
		top:auto;
		position:static;
		-webkit-box-shadow:none;
		   -moz-box-shadow:none;
				box-shadow:none;
	}
	ul.mainmenu {
		float:none;
		width:auto;
		margin-top:0;
	}
	#divMenu.keeptotop ul.mainmenu {
		margin-top:0;
	}
	ul.mainmenu > li.row,
	ul.mainmenu > li.button {
	}
	ul.popmenu > li {
	}
	#divTopBanner {
		width: auto;
		float:none;
	}
	ul.column > li.row h3 {
	}
	ul.column1 > li.row > div.thumb,
	ul.column1 > li.row > div.content {
		float:none;
		width:auto;
	}
	ul.column1 > li.row.div.thumb {
		margin-bottom:20px;
	}
	ul.column2 > li.row,
	ul.column3 > li.row {
		float:none;
		width:auto;
		margin-left:0px;
	}
	ul.column4 > li.row,
	ul.column5 > li.row {
		width: calc((100% - 1 * 20px) / 2);
	}
	ul.column5 > li.row:nth-child(5n+1) {
		clear:none;
		margin-left:20px;
	}
	ul.column4 > li.row:nth-child(2n+1),
	ul.column5 > li.row:nth-child(2n+1) {
		clear:both;
		margin-left:0px;
	}
	ul.column6 > li.row {
		width: calc((100% - 2 * 20px) / 3);
	}
	ul.column6 > li.row:nth-child(3n+1) {
		clear:both;
		margin-left:0px;
	}

	ul.gallery > li {
		width: calc(100% / 2 - 10px / 2);
	}
	ul.gallery > li:nth-child(10n+1),
	ul.gallery > li:nth-child(10n+6) {
		float:left;
		clear:none;
		margin-left:10px;
	}
	ul.gallery > li:nth-child(10n+7) {
		margin-left:10px;
	}
	ul.gallery > li:nth-child(2n+1) {
		clear:both;
		margin-left:0px;
	}
	ul.search > li.row h3 {
		font-size:inherit;
	}
	ul.search > li.row div.link {
		font-size:inherit;
	}
	.caption, .maintitle {
		height:auto;
	}
	.maintitle {
		margin-top:20px;
	}
	.divTopTrace {
		float:none;
		margin-top:0px;
		margin-bottom:10px;
	}
	#divPageNav a, #divPageNav a:link, #divPageNav a:visited {
		padding:6px 9px;
	}
	.divForm ul.column2 > li.row {
		float:none;
		width: auto;
		margin-left:0px;
	}
	td.break {
		display:block;
	}
	#divFooter div.block {
		float:none;
		width: auto;
		margin-left:0px;
	}
	#divFooter h1 {
	}
	H1.tab {
	}
	.copyright {
		text-align:center;
	}
	#divOnTop {
		width:48px;
		height:48px;
	}
}
/* =========================================================================== */
/* IPHONE 5 ================================================================== */
/* =========================================================================== */
@media screen
and (max-width : 320px) {
	.wrapper {
		width:300px;
	}
	ul.column4 > li.row,
	ul.column5 > li.row {
		float:none;
		width: auto;
		margin-left:0px;
	}
	ul.column5 > li.row:nth-child(5n+1) {
		margin-left:0px;
	}
	ul.column6 > li.row {
		width: calc((100% - 1 * 20px) / 2);
	}
	ul.column6 > li.row:nth-child(3n+1) {
		clear:none;
		margin-left:20px;
	}
	ul.column6 > li.row:nth-child(2n+1) {
		clear:both;
		margin-left:0px;
	}
}
