@charset "utf-8";
/* CSS Document */

/*------------- modal -------------*/ 

#gallery,
#popupBg {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
}
#gallery {
	display: none;
}
#popupBg {
	background: rgba(0,0,0,0.8);
	background-size: cover;
}
#popupBg:hover {
	opacity: 1;
}

#modalContents,
#modalNum,
.modalClose,
#modalPrev,
#modalNext {
	position: absolute;
	z-index: 100;
}
#modalContents {
	left: 50%;
	top: 50%;
	width: 620px;
    margin: -23% 0 0 -310px;
	text-align: center;
}

#modalContents .modalSection {
	display: none;
	overflow: hidden;
}

#modalContents .modalSection.on {
	display: block;
}

#modalContents ul {
	position: relative;
	left: 0;
	white-space: nowrap;
	transition: .5s;
}
#modalContents li {
    padding: 10px 8.7px 10px 8px;
    display: inline-block;
    width: 600px;
    vertical-align: middle;
    background: #fff;
}
#modalContents li img {
	max-height: 600px;
	max-width: 100%;
}
#modalContents li p {
	margin-top: 10px;
    text-align: left;
}
#modalContents li p.txt {
	margin-top: 0;
}

li.ls img {
	margin-top: 70px;
}

.modalClose {
	right: 50%;
	top: 50%;
    margin: -331px -370px 0 0;
    width: 35px;
    height: 35px;
	background: url(../pictures/img/close.png) 50% 50% no-repeat;
	cursor: pointer;
}

#modalPrev,
#modalNext {
	top: 50%;
	width: 39px;
	height: 74px;
	margin-top: -48px;
	cursor: pointer;
}
#modalPrev {
	left: 50%;
	margin-left: -360px;
	background: url(../pictures/img/prev.png) 0 50% no-repeat;
}
#modalNext {
	right: 50%;
	margin-right: -360px;
	background: url(../pictures/img/next.png) 100% 50% no-repeat;	
}