@charset "UTF-8";

.cf:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	line-height: 0;
}


.mainImg{
	background-image: url(../img/gallery/main_l.jpg);
}
#wrapper {
    position: relative;
    z-index: 3;
}
#phGallery {
	clear: both;
	width: 1280px;
	margin: 0 auto;
}

.ph {
	float: left;
	width: 33.333%;
	max-height: 284px;
	overflow: hidden;
}


#wrapper .ph img {
	height: auto;
	width: 100%;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.ph a {
	display: block;
	width:100%;
	max-height: 284px;
	overflow: hidden;
	position: relative;
}
.ph a:after {
	content: url(../img/gallery/plus.png);
	display: block;
	position: absolute;
	bottom: 0;
	right: 5px;
	cursor: pointer;
}

.ph a:hover img {
	opacity: 0.7;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.mfp-title{
    font-size: 1.6rem;
}

@media only screen and (max-width:1279px) {
	#phGallery {
		width: 100%;
	}
}
@media only screen and (min-width:980px) and (max-width:1024px) {
	.mainImg {
		height: 50%;
	}
}
@media only screen and (max-width:979px) {
	body {
		background-position: center bottom;
	}
	.mainImg {
		height: 60%;
	}
	h1 {
		padding-top: 20%;
		line-height: 1;
	}
	h1 > span {
		line-height: 2;
	}
}

@media only screen and (max-width:399px) {
    .mainImg{
        height: 50%;
    }
}

@media only screen and (max-width:767px) {
	.ph {
		width: 50%;
		overflow: hidden;
	}
/*
#wrapper .ph img {
        height: auto!important;
    }
*/
}
