@charset "utf-8";

/*board-info*/
.board-info{margin-bottom: 20px;}
.board-info .inner{display: flex; justify-content: space-between; align-items: center;}
.board-info .page-total{display: flex; gap: 10px;}
.board-info .page-total p:nth-child(1)::after{content: ''; border-left: 1px solid #ccc; margin-left: 10px;}
.board-info .board-search{display: flex; gap: 5px;}
.board-info .search-box{display: flex; gap: 5px;}
.board-info .search-box .year-box{display: flex; align-items: center; gap: 5px;}
.board-info .search-button{display: flex; justify-content: center; align-items: center; padding: 4px 16px; height: 45px; color: white; background-color: var(--color-m);}
.board-info .search-button:hover{background-color: var(--color-d);}
.board-info .deSearch-button{display: flex; justify-content: center; align-items: center; padding: 4px 16px; height: 45px; color: var(--color-m); background-color: transparent; border: 1px solid var(--color-m);}
.board-info .deSearch-button:hover{color: white; background-color: var(--color-d); border-color: var(--color-d);}

/*board-info-typeB*/
.board-info.typeB .inner{display: block;}
.board-info.typeB .board-search{background-color: var(--bg-m); padding: 20px; display: block; margin-bottom: 30px;}
.board-info.typeB .board-search .top{display: flex; gap: 5px;}
.board-info.typeB .search-box{flex: 1;}
.board-info.typeB .detail-search{display: none; margin-top: 20px;}
.board-info.typeB .detail-search .detail-inner{display: flex; gap: 20px;}


/*board-page*/
.board-page {display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; margin-top: 50px;}
.board-page .btn-page{display: flex; justify-content: center; align-items: center; min-width: 30px; aspect-ratio: 1 / 1; border: 1px solid var(--color-b);}
.board-page .btn-page:hover{background-color: var(--color-m); border-color: var(--color-m); color: white;}
.board-page .ul-num{display: flex; flex-wrap: wrap; justify-content: center; gap: 5px;}
.board-page .ul-num .btn-page{border-color: transparent;}
.board-page .ul-num .btn-page.current{background-color: var(--color-m); border-color: var(--color-m); color: white;}

/*gallery-type*/
.gallery-type ul{display:flex;gap:20px;flex-wrap:wrap}
.gallery-type li{width:calc((100% / 4) - (60px / 4));}
.gallery-type .item{display:block; position: relative;}
.gallery-type .item .board-img{aspect-ratio: 3 / 2; background-color: #f2f2f2;}
.gallery-type .item:hover .board-img img{transform: translate(-50%, -50%) scale(1.1);}
.gallery-type .item .txt{padding:10px 0;}
.gallery-type .item .board-title{font-weight: 600; -webkit-line-clamp: 1; white-space: nowrap;}
.gallery-type .item .item-info{margin-top: 10px; font-size: 14px; color: #777; display: flex; justify-content: space-between;}
.gallery-type .item .board-ico{display: flex; gap: 5px;}

/*gallery-type-typeB*/
.gallery-type.typeB .item{overflow: hidden;}
.gallery-type.typeB .item .img-tag{font-size: 1.25rem; width: 40px; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; color: white; background-color: rgba(0 ,0 ,0 , 0.8); border-radius: 50%; position: absolute; top: 10px; right: 10px;}
.gallery-type.typeB .item .board-title{width: 100%; padding: 12px; color: white; background-color: rgba(0 ,0 ,0 , 0.8); position: absolute; bottom: 0; left: 0;}
.gallery-type.typeB .item .addr{width: 100%; height: 100%; padding: 20px; font-size: 1.125rem; text-align: center; color: white; background-color: rgba(0, 0, 0, .7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transform: translateY(10px); position: absolute; top: 0; transition: .3s; opacity: 0;}
.gallery-type.typeB .item .addr .button-box{display: flex; flex-direction: column; gap: 10px;}
.gallery-type.typeB .item .addr button{width: 120px; padding: 8px; font-size: 1rem; color: white; border: 1px solid white; border-radius: 5px; transition: .3s; pointer-events : none;}
.gallery-type .item:hover .board-img img{transform: translate(-50%, -50%) scale(1);}
.gallery-type .item:hover .addr{transform: translateY(0); opacity: 1;}
.gallery-type .item:hover .addr button{transform: translateY(0); opacity: 1; pointer-events : auto;}
.gallery-type.typeB .item .addr button:hover{color: #333; background-color: white;}


/*board-view*/
.post-view .view-header{margin-bottom: 30px;}
.post-view .view-header .board-title{font-size: 1.75rem; font-weight: 600; color: var(--color-d); padding: 20px 0;}
.post-view .view-header .post-info{display: flex; flex-direction: row; align-items: center; padding: 10px 0; border-top: 1px solid var(--color-b);}
.post-view .view-header .post-info li{color: var(--color-d)}
.post-view .view-header .post-info li > span{color: #1d1d1d;margin-left: 5px;}
.post-view .view-header .post-info li::after{content: ''; border-right: 1px solid var(--color-b); margin: 0 15px;}
.post-view .view-header .post-info li:last-child::after{content: ''; border-right: none;}
.post-view .btn-right-wrap{margin: 0; gap: 4px;}
.post-view .btn-common{min-width: 84px; height: 40px; padding: 8px; font-size: 1rem;}

.view-content .youtube{width: 100%; aspect-ratio: 2 / 1;}


.rel-post .rel-list{display: flex; flex-wrap: wrap; gap: 10px;}
.rel-post .rel-list > li{width: calc((100% / 4) - (30px / 4)); aspect-ratio: 3 / 2;}

.btn_prevnext .btn-list{border-top: 1px solid var(--color-m); border-bottom: 1px solid var(--color-m);}
.btn_prevnext .btn-list > li{display: flex; align-items: center;}
.btn_prevnext .btn-list .btn-title{width: 200px; padding: 16px 20px; color: var(--color-m); background-color: var(--bg-m); font-weight: 600; text-align: center; }
.btn_prevnext .btn-list > li:first-of-type .btn-title{border-bottom: 1px solid #bcc5dd;}
.btn_prevnext .btn-list .btn-item{flex: 1; padding: 16px 20px; -webkit-line-clamp: 1; white-space: nowrap;}
.btn_prevnext .btn-list > li:first-of-type .btn-item{border-bottom: 1px solid var(--color-tb);}
.btn_prevnext .btn-list .btn-item:hover{background-color: #f9f9f9;}

/*기록물검색 자세히보기*/
.recordsView .left-tab{display: block;}
.recordsView .addr-sel{display: none;}
.recordsView .right-cont .map .root_daum_roughmap{width: 100%;}
.recordsView .right-cont .map .root_daum_roughmap .wrap_map{height: auto !important; aspect-ratio: 2 / 1;}
.recordsView .right-cont .map .root_daum_roughmap .cont{display: none;}

/*board-view-con type02*/
.board-view-con.type02{display: flex; gap: 20px;}
.board-view-con.type02 .left-wrap{flex: 1;}
.board-view-con.type02 .view-header{display: flex; justify-content: space-between; align-items: center; gap: 10px;}
.board-view-con.type02 .right-wrap{width: 460px; padding-top: 20px;}
.board-view-con.type02 .rel-list{display: flex; flex-direction: column; gap: 20px;}
.board-view-con.type02 .rel-list .item{display: flex; height: 220px; border: 1px solid var(--color-b); box-shadow: 4px 4px 12px rgba(0, 0, 0, .1);}
.board-view-con.type02 .rel-list .item:hover{box-shadow: 4px 4px 12px rgba(0, 0, 0, .2);}
.board-view-con.type02 .rel-list .img-box{width: 240px;}
.board-view-con.type02 .rel-list .info-text{display: flex; flex-direction: column; justify-content: space-between;width: calc(100% - 240px); padding: 12px;}
.board-view-con.type02 .rel-list .info-text .tit{font-size: 1.25rem; font-weight: 600;}
.board-view-con.type02 .rel-list .info-text .bottom{font-size: 14px; color: #777;}

@media (max-width:1600px){
}
@media (max-width:1400px){
	/*gallery-type*/
	.gallery-type li{width:calc((100% / 3) - (40px / 3))}
}
@media (max-width:1200px){
	/*board-view-con type02*/
	.board-view-con.type02 .right-wrap{width: 400px;}

}
@media (max-width:1024px){
	/*board-info*/
	.board-info .deSearch-button{height: 40px;}

	/*board-page*/
	.board-page{margin-top: 30px;}

	/*gallery-type*/
	.gallery-type li{width:calc(50% - 10px)}

	/*board-view*/
	.rel-post .rel-list > li{width: calc((100% / 3) - (20px / 3));}

	/*기록물검색 자세히보기*/
	.recordsView.left-tab-wrap .left-tab{display: none;}
	.recordsView .addr-sel{display: block; width: 100%;}

	/*board-view-con type02*/
	.board-view-con.type02{flex-direction: column;}
	.board-view-con.type02 .right-wrap{width: 100%;}
	.board-view-con.type02 .rel-list{flex-direction: row; flex-wrap: wrap; gap: 12px;}
	.board-view-con.type02 .rel-list .item{height: 180px;}
	.board-view-con.type02 .rel-list > li{width: calc(50% - 6px);}
	.board-view-con.type02 .rel-list .img-box{width: 180px;}
	.board-view-con.type02 .rel-list .info-text{width: calc(100% - 180px);}

}
@media (max-width:720px){
	/*board-info*/
	.board-info .inner{flex-direction: column; align-items: flex-start; gap: 10px;}
	.board-info .board-search{flex-direction: column; align-items: flex-start; width: 100%;}
	.board-info .search-box{width: 100%;}
	.board-info .search-button{width: 100%;}

	/*board-info-typeB*/
	.board-info.typeB .board-search .top{flex-direction: column;}
	.board-info.typeB .search-box{flex-direction: column;}

	/*gallery-type*/
	.gallery-type li{width: 100%}

	/*board-view*/
	.post-view .view-header .board-title{font-size: 1.5rem; padding: 10px 0;}
	.rel-post .rel-list > li{width: calc(50% - 5px);}
	.btn_prevnext .btn-list .btn-title{width: auto; padding: 12px 4px; background-color: transparent;}
	.btn_prevnext .btn-list .btn-item{padding: 12px 4px;}

	/*board-view-con type02*/
	.board-view-con.type02 .rel-list > li{width: 100%;}
	.board-view-con.type02 .rel-list .item{min-height: 140px; height: auto;}
	.board-view-con.type02 .rel-list .img-box{max-width: 180px; width: 50%;}
	.board-view-con.type02 .rel-list .info-text .tit{margin-bottom: 12px;}


}
@media (max-width:480px){
	
	/*board-info-typeB*/
	.board-info.typeB .board-search{padding: 10px;}
	.board-info.typeB .board-search .top{flex-direction: column;}
	.board-info.typeB .search-box{flex-direction: column;}
	.board-info.typeB .input-text.year{flex: 1;}

	.post-view .btn-common{min-width: 48px;}


	/*기록물검색 자세히보기*/
	.recordsView .right .map .root_daum_roughmap .wrap_map{aspect-ratio: 1 / 1;}

	/*board-view-con type02*/
	.board-view-con.type02 .view-header{flex-direction: column; align-items: flex-start; gap: 0;}
}
