/*************                       ******************/
/************** #control_supmain_ep *******************/
/*************     ควบคุมอัลบัม EP      ******************/


.control_submain_about {
    width: 100%;
    height: auto;
    padding-top: 40px;
}

.control_submain_about h1 {
    color: #333;
    text-align: left;
    padding-bottom: 20px;
}

.main {
	position: relative;
	height: 100%;
	width: 100%;
}


.main .gallery{
	position: relative;
	height: auto;
	width: 100%;
	margin: auto;
	display: grid;
	grid-template-columns: auto auto auto ; /*i write auto four time because we want four rows*/
	grid-gap: 1vh;
	grid-auto-flow: dense;
}
.main .gallery .img {
	position: relative;
	height: 100%;
	width: 100%;
	overflow: hidden;
	border-radius: 2px;
}
/**.main .gallery .img {
	grid-column-start: span 1;
	grid-row-start: span 1;
	
}**/

.main .gallery .img:first-child{
	grid-column-end: span 2;
	grid-row-end: span 2;
}

.main .gallery .img:nth-child(20n+1){
	grid-column-end: span 2;
	grid-row-end: span 2;
}
/**.main .gallery .img:nth-child(2n+3){
	grid-column-start: span 2;
	grid-row-start: span 1;
}

/**.main .gallery .img:nth-child(2n+3){
	grid-row-start: span 1;
}
.main .gallery .img:nth-child(4n+5){
	grid-column-start: span 1;
	grid-row-start: span 1;
}
.main .gallery .img:nth-child(6n+7){
	grid-row-start: span 1;
}
.main .gallery .img:nth-child(8n+9){
	grid-column-start: span 1;
	grid-row-start: span 1;
}**/

.main .gallery .img img{
	height: 100%;
	width: 100%;
	object-fit: cover;
	filter: brightness(1);
	border-radius: 2px;
	transition: 0.3s ease-in-out;
}

/**
.main .gallery .img:hover img{
	filter: brightness(1);
	width: 100.5%;
	height: 100.5;
}**/

/*************                       ******************/
/************** เริ่มต้นการปรับแต่งหน้าจอ *******************/
/*************                       ******************/


/****** Kindle Fire HD 8.9" (800 x 1280) ย่อเมื่อจอน้อยกว่า 1280px******/ 
@media only screen and (max-width: 1280px){
}

/****** ย่อเมื่อจอน้อยกว่า 1200px พิเศษไม่ใช่ขนาดหน้าจอ******/
@media only screen and (max-width: 1200px){ 
}

/****** ย่อเมื่อจอน้อยกว่า 1100px พิเศษไม่ใช่ขนาดหน้าจอ******/
@media only screen and (max-width: 1100px){
}

/****** iPad Air (768 x 1024),Kindle Fire (600 x 1024) ย่อเมื่อจอน้อยกว่า 1024px*******/
@media only screen and (max-width: 1024px){
}

/****** Galaxy Nexus 7 (603 x 966) ย่อเมื่อจอน้อยกว่า 966px*******/
@media only screen and (max-width: 966px){
}

/****** ปรับจออัตโนมัติ ในช่วง 966-853 เพื่อให้สมดุล ที่ระยะ 900px *******/ 
@media only screen and (max-width: 900px){
}

/****** Galaxy Note 4 (480 x 853),Kindle Fire HD 7" (533 x 853) ย่อเมื่อจอน้อยกว่า 853px*******/
@media only screen and (max-width: 853px){
}

/****** Galaxy Tab 2 10.1 (800 x 1280),Kindle Fire HD 8.9" (800 x 1280) ย่อเมื่อจอน้อยกว่า 800px*******/
@media only screen and (max-width: 800px){
}

/****** iPad Air (768 x 1024) ย่อเมื่อจอน้อยกว่า 768px*******/
@media only screen and (max-width: 768px){
	/**.main .gallery{
		display: grid;
		grid-template-columns: auto auto auto;
  }**/
}

/****** Iphone 6 Plus (414 x 736) ย่อเมื่อจอน้อยกว่า 736px*******/

@media only screen and (max-width: 736px){
}

/****** Nexus 6 (412 x 690) ย่อเมื่อจอน้อยกว่า 690px*******/
@media only screen and (max-width: 690px){
}

/****** Iphone 6 (375 x 667) ย่อเมื่อจอน้อยกว่า 667px*******/
@media only screen and (max-width: 667px){
}

/****** Galaxy S6 (360 x 640),Lumia 920 (384 x 640),Galaxy Note II (360 x 640) ย่อเมื่อจอน้อยกว่า 640px*******/
@media only screen and (max-width: 640px){
	.main .gallery{
		display: grid;
		grid-template-columns: auto auto;
  }
}

/****** Xperia Z3 (360 x 598),Kindle Fire (600 x 1024),Galaxy Nexus 7 (603 x 966) ย่อเมื่อจอน้อยกว่า 603px*******/
@media only screen and (max-width: 603px){
}

/****** Iphone 5 (320 x 568) ย่อเมื่อจอน้อยกว่า 568px*******/
@media only screen and (max-width: 568px){
}

/****** Kindle Fire HD 7" (533 x 853) ย่อเมื่อจอน้อยกว่า 533px*******/
@media only screen and (max-width: 533px){
}

/****** Iphone 4 (320 x 480),Galaxy Note 4 (480 x 853) ย่อเมื่อจอน้อยกว่า 480px*******/
@media only screen and (max-width: 480px){
}

/****** Nexus 6 (412 x 690),Iphone 6 Plus (414 x 736) ย่อเมื่อจอน้อยกว่า 414px*******/
@media only screen and (max-width: 414px){
	
}

/****** Lumia 920 (384 x 640) ย่อเมื่อจอน้อยกว่า 384px*******/
@media only screen and (max-width: 384px){
}

/****** Iphone 6 (375 x 667) ย่อเมื่อจอน้อยกว่า 375px*******/
@media only screen and (max-width: 375px){
}

/****** Galaxy S6 (360 x 640),Xperia Z3 (360 x 598),Galaxy Note II (360 x 640) ย่อเมื่อจอน้อยกว่า 360px*******/
@media only screen and (max-width: 360px){
}

/****** Iphone 5 (320 x 568),Iphone 4 (320 x 480), ย่อเมื่อจอน้อยกว่า 320px*******/
@media only screen and (max-width: 320px){
}




