@charset "utf-8";

/* 좌/우 컬럼 상단 라인을 맞추기 위해 제목/헤더 높이를 고정한다 */
.dv2-title {
	margin: 0 0 10px 0;
	height: 36px;
	line-height: 36px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dv2-panel-head {
	height: 36px;
	line-height: 36px;
	margin-bottom: 10px;
	border-bottom: 2px solid #0275d8;
}

.dv2-panel-head .dv2-count {
	display: inline-block;
	min-width: 24px;
	height: 20px;
	line-height: 20px;
	padding: 0 7px;
	margin-left: 6px;
	border-radius: 10px;
	background-color: #0275d8;
	color: #fff;
	font-size: 12px;
	text-align: center;
	vertical-align: middle;
}

/* --------------------------------------------------------------- 좌측 : 메인 */
/* 메인/썸네일 높이는 아래 3개 값이 세트로 맞물린다.
   dv2-thumbs(420) = ( dv2-thumb-inner(195) + 상하 padding 10 ) * 2행 + 컨테이너 padding 10  */
.dv2-stage {
	position: relative;
	width: 100%;
	height: 420px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
}

.dv2-stage img {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 98%;
	max-height: 98%;
	width: auto;
	height: auto;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.dv2-stage-bar {
	padding-top: 8px;
	min-height: 40px;
}

/* 메인 이미지 복귀 버튼 : 페이지 이미지가 있으면 항상 보이고, 선택중일 때만 활성 */
.dv2-reset {
	border: 1px solid #0275d8;
	background-color: #fff;
	color: #0275d8;
	font-weight: 600;
}

.dv2-reset:hover,
.dv2-reset:focus {
	background-color: #0275d8;
	color: #fff;
}

.dv2-reset.dv2-reset-off {
	border-color: #ddd;
	background-color: #fafafa;
	color: #bbb;
	font-weight: 400;
	cursor: default;
}

.dv2-reset.dv2-reset-off:hover {
	background-color: #fafafa;
	color: #bbb;
}

.dv2-stage {
	cursor: default;
}

.dv2-stage.dv2-stage-clickable {
	cursor: pointer;
}

.dv2-stage-bar .dv2-caption {
	display: inline-block;
	max-width: 45%;
	margin-left: 8px;
	color: #777;
	font-size: 12px;
	vertical-align: middle;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dv2-actions {
	margin-top: 10px;
}

.dv2-keywords {
	margin-top: 10px;
	margin-bottom: 30px;
}

/* --------------------------------------------------------------- 우측 : 목록 */
.dv2-thumbs {
	height: 420px;			/* 좌측 메인 이미지 영역과 동일 높이 (2행만 노출) */
	overflow-x: hidden;
	overflow-y: auto;
	padding: 5px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background-color: #fafafa;
}

.dv2-thumbs:after {
	content: "";
	display: block;
	clear: both;
}

/* 2열 x 2행 = 화면에 4칸 노출 */
.dv2-thumb {
	float: left;
	width: 50%;
	padding: 5px;
}

.dv2-thumb-inner {
	position: relative;
	height: 195px;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	background-color: #fff;
	overflow: hidden;
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
}

.dv2-thumb-inner:hover {
	border-color: #0275d8;
	box-shadow: 0 0 6px rgba(2, 117, 216, 0.35);
}

.dv2-thumb-inner.dv2-selected {
	border: 2px solid #0275d8;
}

.dv2-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.dv2-thumb-inner img {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 90%;
	max-height: 74%;	/* 하단 제목 바(약 20px) 영역 확보 */
	width: auto;
	height: auto;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

/* 하단 제목 바 : "번호. 제목" */
.dv2-thumb-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 3px 6px;
	background-color: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dv2-empty {
	padding: 40px 0;
	color: #999;
}

/* --------------------------------------------------------------- 반응형 */
/* 태블릿 이하 : 좌/우 세로 적층 */
@media (max-width: 991px) {
	.dv2-title,
	.dv2-panel-head {
		height: auto;
		line-height: 1.4;
	}
	.dv2-panel-head {
		margin-top: 20px;
	}
	.dv2-stage {
		height: 380px;
	}
	.dv2-thumbs {
		height: auto;
		max-height: 420px;
	}
	.dv2-thumb-inner {
		height: 180px;
	}
}

@media (max-width: 767px) {
	.dv2-stage {
		height: 280px;
	}
	.dv2-thumb-inner {
		height: 150px;
	}
	.dv2-stage-bar .dv2-caption {
		display: none;
	}
}

/* --------------------------------------------------------------- 클릭 가능한 이미지 */
/* 우측 페이지 이미지 / 하단 상세이미지 목록 공통 : 클릭 시 상단 메인 영역에 표시된다 */
.dv2-pick {
	cursor: pointer;
}

.shop-item.dv2-pick .thumbnail {
	border: 2px solid transparent;
	border-radius: 3px;
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
}

.shop-item.dv2-pick:hover .thumbnail {
	border-color: #0275d8;
}

.shop-item.dv2-pick.dv2-selected .thumbnail {
	border-color: #0275d8;
	box-shadow: 0 0 6px rgba(2, 117, 216, 0.35);
}
