html,
body{
	height:100%;
	width:100%;
	overflow:hidden;
	}
	
	
#gallery{
	position:relative;
	}

.rb-grid {
	list-style: none;
	text-align: center;
	margin: 0px auto;
	padding:60px 0;
	width:960px;
}

.rb-grid li {
	width: 300px;
	height:300px;
	display: block;
	float: left;
	cursor: pointer;
	position: relative;
	margin:10px;
	padding:0;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
	
}

.rb-grid li div.new {
		position:absolute;
		font-size:12px;
		color:#fff;
		background-color:#000;
		text-align:center;
		border-radius:20px;
		line-height:40px;
		width:40px;
		top:-20px;
		left:20px;
		z-index:100;
}

.rb-grid li div.galleryBtn{
	width:300px;
	height:300px;
	line-height:300px;
	display:block;
	font-size:21px;
	font-size:2.1rem;
	position:relative;
	background-color:#f7f7f7;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
	}

.rb-grid li div.galleryBtn:hover{
	background-color:#222222;
	}


.rb-grid li div.galleryBtn img{
	opacity:1;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	transition: all 0.2s ease;
	
	}

.rb-grid li div.galleryBtn:hover img{
	opacity:0.2;
	}


.rb-grid li div.galleryBtn h3{
	position:absolute;
	width:100%;
	line-height:20px;
	left:0;
	top:50%;
	margin:-10px 0 0 0;
	color:#ffffff;
	opacity:0;
	-webkit-transition-duration:0.2s;
	-moz-transition-duration   :0.2s;
	-ms-transition-duration    :0.2s;
	-o-transition-duration     :0.2s;
	transition-duration        :0.2s;
	-webkit-transition-timing-function:ease-in-out;
	-moz-transition-timing-function:ease-in-out;
	-ms-transition-timing-function:ease-in-out;
	-o-transition-timing-function:ease-in-out;
	transition-timing-function:ease-in-out;
	font-size:16px;
	}

.rb-grid li div.galleryBtn:hover h3{
	opacity:1;
	
	}

.rb-grid li div.gallery img{
	position:absolute;
	top:0;
	left:0;
	}

  

  
.rb-grid li h3{
	font-size:21px;
	font-size:2.1rem;
	color:#ffffff;
	line-height:320px;
	position:relative;
	
	}



.rb-grid li ul li{
	width:auto;
	height:auto;
	background:none;
	text-align:left;
	margin:0;
	cursor:default;
	line-height:normal;
	float:none;
	}

.rb-grid li ul li:hover {
		width:auto;
	height:auto;
	background:none;
	text-align:left;
	margin:0;
	cursor:default;
}
.rb-overlay {
	opacity: 0;
	position: fixed;
	top: 0px;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
	z-index: -1;
	pointer-events: none;
	cursor: default;
	background-color:#dddddd;
}



.photo{
	width:70%;
	height:100%;
	padding:0;
	background-color:#222222;
	position:relative;
	}

.photo .slider{
	display:block;
	position:relative;
	background-color:#f7f7f7;
	text-align:center;
	width:100%;
	height:100%;
	top:0;
	left:0;
	}
.photo .slider div{
	overflow:hidden;
	}
.photo .slider div img{
	max-width:none;
	max-height:none;
	height:100%;
	width:auto;
	display:block;
	margin:0 auto;
    position:absolute; /* 絶対配置 */
    top:50%; /* 上から半分 */
    left:50%; /* 左から半分 */
    /* 要素の大きさの半分引く（CSS3） */
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
	}



.message{
	width:30%;
	height:100%;
background: rgb(19,19,19); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(19,19,19,1) 1%, rgba(19,19,19,1) 1%, rgba(76,76,76,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,rgba(19,19,19,1)), color-stop(1%,rgba(19,19,19,1)), color-stop(100%,rgba(76,76,76,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(19,19,19,1) 1%,rgba(19,19,19,1) 1%,rgba(76,76,76,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(19,19,19,1) 1%,rgba(19,19,19,1) 1%,rgba(76,76,76,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(19,19,19,1) 1%,rgba(19,19,19,1) 1%,rgba(76,76,76,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(19,19,19,1) 1%,rgba(19,19,19,1) 1%,rgba(76,76,76,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#131313', endColorstr='#4c4c4c',GradientType=0 ); /* IE6-9 */
	color:#ffffff;
	position:absolute;
	right:0;
	top:0;
	padding:100px 40px 0 40px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
	}

.message dl{
	margin:20px 0;
	}

.message dt{
	border:1px solid #ffffff;
	margin:0 20px 10px 20px;
	}
.message dd{
	margin:0 0 20px 0;
	}


.message ul li{
	padding:0 0 10px 0;
	}
.rb-close {
	position: absolute;
	top: 0.4em;
	right: 0.4em;
	width: 2em;
	height: 2em;
	text-indent: -9000px;
	cursor: pointer;
	z-index: 1000000;
}

.rb-close::before {
	content: '×';
	font-weight: 100;
	position: absolute;
	top: 30px;
	right: 30px;
	width: 100%;
	height: 100%;
	font-size: 4.8rem;
	line-height: 0.6;
	text-align: center;
	text-indent: 0px;
	color:#ffffff;
}

.rb-close:hover::before {
	color:#e10012;
}








