/* =========================================================
   hhs_exhibition / 공통
========================================================= */

.hhs_ex_btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:82px;
    height:40px;
    padding:0 18px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text);
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    transition:.25s;
}

.hhs_ex_btn:hover{
    border-color:var(--hhs-point);
    color:var(--hhs-point);
}

.hhs_ex_btn.dark{
    background:var(--hhs-main);
    border-color:var(--hhs-main);
    color:#fff;
}

.hhs_ex_btn.dark:hover{
    background:var(--hhs-point);
    border-color:var(--hhs-point);
    color:#fff;
}


/* =========================================================
   hhs_exhibition / 리스트
========================================================= */
.hhs_ex_list{

}

.hhs_ex_top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:24px;
}

.hhs_ex_top p{
    margin:0;
    color:var(--hhs-text2);
    font-size:14px;
}

.hhs_ex_top > div,
.hhs_ex_admin{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.hhs_ex_admin{
    justify-content:flex-end;
    margin-bottom:22px;
}

.hhs_ex_chk{
    position:absolute;
    left:12px;
    top:12px;
    z-index:5;
    display:flex;
    align-items:center;
    gap:5px;
    padding:6px 9px;
    background:rgba(255,255,255,.9);
    border-radius:2px;
    font-size:12px;
    color:var(--hhs-text2);
}

.hhs_ex_chk input{
    margin:0;
}

.hhs_ex_chk label{
    margin:0;
    cursor:pointer;
    line-height:1;
}

.hhs_ex_page{
    margin-top:40px;
    text-align:center;
}

.hhs_ex_search{
    max-width:520px;
    margin:55px auto 0;
    padding:0;
    border:0;
}

.hhs_ex_search legend{
    position:absolute;
    overflow:hidden;
    width:1px;
    height:1px;
    margin:-1px;
    clip:rect(0,0,0,0);
}

.hhs_ex_search form{
    display:flex;
    gap:8px;
}

.hhs_ex_search select,
.hhs_ex_search input{
    height:44px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text);
    font-size:14px;
}

.hhs_ex_search select{
    width:105px;
    padding:0 10px;
}

.hhs_ex_search input{
    flex:1;
    padding:0 14px;
}

.hhs_ex_search button{
    width:80px;
    border:0;
    background:var(--hhs-main);
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

.hhs_ex_work_grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:42px 32px;
    padding:0;
    margin:0;
    list-style:none;
}

.hhs_ex_work_item{
    position:relative;
}

.hhs_ex_order_control{
    position:absolute;
    right:12px;
    top:12px;
    z-index:7;
    display:flex;
    gap:5px;
}

.hhs_ex_order_btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border:1px solid rgba(0,0,0,.15);
    background:rgba(255,255,255,.94);
    color:var(--hhs-text);
    font-size:12px;
    line-height:1;
    text-decoration:none;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    transition:.2s;
}

.hhs_ex_order_btn:hover{
    border-color:var(--hhs-point);
    background:var(--hhs-point);
    color:#fff;
}

.hhs_ex_work_link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.hhs_ex_work_img{
    position:relative;
    overflow:hidden;
    aspect-ratio:1 / 1;
    background:var(--hhs-bg2);
}

.hhs_ex_work_img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.5s ease;
}

.hhs_ex_work_hover{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.55);
    color:#fff;
    opacity:0;
    transition:.3s ease;
}

.hhs_ex_work_hover:before,
.hhs_ex_work_hover:after{
    content:"";
    position:absolute;
    background:rgba(255,255,255,.35);
}

.hhs_ex_work_hover:before{
    left:0;
    right:0;
    top:50%;
    height:1px;
}

.hhs_ex_work_hover:after{
    top:0;
    bottom:0;
    left:50%;
    width:1px;
}

.hhs_ex_work_hover span{
    position:relative;
    z-index:1;
    font-size:18px;
    font-weight:600;
}

.hhs_ex_work_hover em{
    position:relative;
    z-index:1;
    margin-top:8px;
    font-size:15px;
    font-style:normal;
    letter-spacing:.02em;
}

.hhs_ex_work_link:hover .hhs_ex_work_img img{
    transform:scale(1.04);
}

.hhs_ex_work_link:hover .hhs_ex_work_hover{
    opacity:1;
}

.hhs_ex_work_info{
    padding-top:18px;
}

.hhs_ex_work_info h3{
    margin:0 0 5px;
    color:var(--hhs-text);
    font-size:18px;
    font-weight:700;
    line-height:1.35;
}

.hhs_ex_work_info p{
    margin:0;
    color:var(--hhs-text2);
    font-size:15px;
    line-height:1.5;
}

.hhs_ex_empty{
    grid-column:1 / -1;
    padding:80px 0;
    text-align:center;
    color:var(--hhs-text3);
    border-top:1px solid var(--hhs-line);
    border-bottom:1px solid var(--hhs-line);
}


/* =========================================================
   hhs_exhibition / 뷰
========================================================= */
.hhs_ex_view{

}

.hhs_ex_view_btns{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:36px;
}

.hhs_ex_view_head{
    margin-bottom:50px;
    text-align:center;
}

.hhs_ex_view_head span{
    display:inline-block;
    margin-bottom:14px;
    color:var(--hhs-point);
    font-size:16px;
    font-weight:700;
    letter-spacing:.12em;
}

.hhs_ex_view_head h1{
    margin:0;
    color:var(--hhs-text);
    font-size:42px;
    font-weight:700;
    line-height:1.28;
    letter-spacing:-.02em;
}

.hhs_ex_image_section{
    margin-bottom:70px;
}

.hhs_ex_masonry{
    column-count:3;
    column-gap:24px;
}

.hhs_ex_masonry_item{
    break-inside:avoid;
    margin-bottom:24px;
    background:var(--hhs-bg);
}

.hhs_ex_masonry_item img{
    display:block;
    width:100%;
    height:auto;
}

.hhs_ex_no_img{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:360px;
    background:var(--hhs-bg2);
    color:var(--hhs-text3);
    font-size:16px;
    letter-spacing:.08em;
}

.hhs_ex_editor_section{

    padding-top:46px;
    border-top:1px solid var(--hhs-line);
}

.hhs_ex_section_title{
    margin-bottom:24px;
}

.hhs_ex_section_title span{
    display:inline-block;
    color:var(--hhs-point);
    font-size:16px;
    font-weight:700;
    letter-spacing:.14em;
}

.hhs_ex_content{
    color:var(--hhs-text2);
    font-size:17px;
    line-height:1.9;
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    word-break: keep-all !important;
}

.hhs_ex_content img{
    max-width:100%;
    height:auto;
    display: block;
    margin: 0 auto;
}

.hhs_ex_files{
    margin:60px auto 0;
    padding-top:28px;
    border-top:1px solid var(--hhs-line);
}

.hhs_ex_files h3{
    margin:0 0 16px;
    color:var(--hhs-text);
    font-size:16px;
    font-weight:700;
}

.hhs_ex_files ul{
    margin:0;
    padding:0;
    list-style:none;
}

.hhs_ex_files li{
    padding:10px 0;
    border-bottom:1px solid var(--hhs-line);
}

.hhs_ex_files a{
    color:var(--hhs-text2);
    font-size:14px;
    text-decoration:none;
}

.hhs_ex_files a:hover{
    color:var(--hhs-point);
}

.hhs_ex_related{
    margin-top:90px;
    padding-top:50px;
    border-top:1px solid var(--hhs-main);
}

.hhs_ex_tabs{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-bottom:34px;
}

.hhs_ex_tabs button{
    min-width:120px;
    height:42px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text2);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.hhs_ex_tabs button.active,
.hhs_ex_tabs button:hover{
    border-color:var(--hhs-main);
    background:var(--hhs-main);
    color:#fff;
}

.hhs_ex_tab_panel{
    display:none;
}

.hhs_ex_tab_panel.active{
    display:block;
}


/* =========================================================
   hhs_exhibition / 라이트
========================================================= */
.hhs_ex_write{

}

.hhs_ex_write_box{
    border-top:2px solid var(--hhs-main);
}

.hhs_ex_form_row{
    display:grid;
    grid-template-columns:150px 1fr;
    gap:24px;
    padding:20px 0;
    border-bottom:1px solid var(--hhs-line);
}

.hhs_ex_form_row label{
    color:var(--hhs-text);
    font-size:15px;
    font-weight:700;
    line-height:44px;
}

.hhs_ex_form_row input[type="text"],
.hhs_ex_form_row select{
    width:100%;
    height:44px;
    padding:0 14px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text);
    font-size:15px;
}

.hhs_ex_form_row input[type="file"]{
    padding:10px 0;
}

.hhs_ex_form_content{
    display:block;
}

.hhs_ex_form_content > label{
    display:block;
    margin-bottom:12px;
    line-height:1.4;
}

.hhs_ex_file_desc{
    margin-top:8px;
}

.hhs_ex_file_del{
    margin-top:8px;
    color:var(--hhs-text2);
    font-size:13px;
}

.hhs_ex_file_del label{
    display:inline;
    line-height:1.4;
    font-weight:400;
}

.hhs_ex_write_btns{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:36px;
}


/* =========================================================
   hhs_exhibition / 반응형
========================================================= */
@media (max-width:1200px){
    .hhs_ex_masonry{
        column-count:2;
    }

    .hhs_ex_tab_panel ul{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:900px){

    .hhs_ex_view_head h1{
        font-size:32px;
    }

    .hhs_ex_masonry{
        column-gap:18px;
    }

    .hhs_ex_masonry_item{
        margin-bottom:18px;
    }

    .hhs_ex_form_row{
        display:block;
    }

    .hhs_ex_form_row label{
        display:block;
        margin-bottom:8px;
        line-height:1.4;
    }
}

@media (max-width:600px){
    .hhs_ex_top{
        display:block;
    }

    .hhs_ex_top > div{
        margin-top:14px;
    }

    .hhs_ex_admin{
        justify-content:flex-start;
    }

    .hhs_ex_search form{
        flex-wrap:wrap;
    }

    .hhs_ex_search select{
        width:100%;
    }

    .hhs_ex_search input{
        width:calc(100% - 88px);
        flex:none;
    }

    .hhs_ex_view_btns{
        justify-content:flex-start;
    }

    .hhs_ex_view_head{
        margin-bottom:34px;
        text-align:left;
    }

    .hhs_ex_view_head h1{
        font-size:27px;
    }

    .hhs_ex_masonry{
        column-count:1;
        margin-bottom:42px;
    }

    .hhs_ex_content{
        font-size:16px;
    }

    .hhs_ex_tabs{
        justify-content:flex-start;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .hhs_ex_tabs button{
        min-width:105px;
        flex:0 0 auto;
    }

    .hhs_ex_tab_panel ul{
        grid-template-columns:1fr;
    }

    .hhs_ex_write_btns{
        flex-direction:column;
    }

    .hhs_ex_write_btns .hhs_ex_btn{
        width:100%;
    }
}



@media (max-width:1200px){
    .hhs_ex_masonry{
        column-count:2;
    }
}

@media (max-width:900px){
    .hhs_ex_view{
        padding:55px 0 90px;
    }

    .hhs_ex_view_head h1{
        font-size:32px;
    }

    .hhs_ex_masonry{
        column-gap:18px;
    }

    .hhs_ex_masonry_item{
        margin-bottom:18px;
    }
}

@media (max-width:600px){
    .hhs_ex_view_btns{
        justify-content:flex-start;
    }

    .hhs_ex_view_head{
        margin-bottom:34px;
        text-align:left;
    }

    .hhs_ex_view_head h1{
        font-size:27px;
    }

    .hhs_ex_masonry{
        column-count:1;
    }

    .hhs_ex_content{
        font-size:16px;
    }

    .hhs_ex_tabs{
        justify-content:center;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .hhs_ex_tabs button{
        min-width:0px;
        flex:0 0 auto;
        font-size: 13px;
        padding: 0 10px;
        height: 35px;
    }
}



/* exhibition 카드 리스트 반응형 */
@media (max-width:1200px){
    .hhs_ex_work_grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:900px){
    .hhs_ex_work_grid{
        grid-template-columns:repeat(2, 1fr);
        gap:34px 20px;
    }

    .hhs_ex_work_info{
        padding-top:14px;
    }

    .hhs_ex_work_info h3{
        font-size:17px;
    }
}

@media (max-width:600px){
    .hhs_ex_work_grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .hhs_ex_work_hover span{
        font-size:16px;
    }

    .hhs_ex_work_hover em{
        font-size:13px;
    }
}

/* =========================================================
   hhs_exhibition / 전시 정보 확장
========================================================= */
.hhs_ex_work_info .hhs_ex_place{
    margin-top:7px;
    color:var(--hhs-text2);
    font-size:15px;
    line-height:1.5;
}

.hhs_ex_work_info .hhs_ex_year{
    margin-top:3px;
    color:var(--hhs-text3);
    font-size:14px;
    line-height:1.5;
}

.hhs_ex_view_meta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px 20px;
    flex-wrap:wrap;
    margin-top:20px;
    color:var(--hhs-text2);
    font-size:16px;
}

.hhs_ex_view_meta span + span{
    position:relative;
    padding-left:20px;
}

.hhs_ex_view_meta span + span:before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:1px;
    height:13px;
    background:var(--hhs-line);
    transform:translateY(-50%);
}

.hhs_ex_poster_section{
    margin-bottom:80px;
}

.hhs_ex_poster{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:0 0 60px;
    background:transparent;
    border-bottom:1px solid var(--hhs-line);
}

.hhs_ex_poster img{
    display:block;
    width:auto;
    max-width: 550px;
    height:auto;
    object-fit:contain;
}

.hhs_ex_image_section .hhs_ex_section_title,
.hhs_ex_poster_section .hhs_ex_section_title{
    margin-bottom:50px;
    text-align:center;
}

@media (max-width:600px){
    .hhs_ex_view_meta{
        justify-content:center;
        font-size:15px;
    }

    .hhs_ex_poster_section{
        margin-bottom:55px;
    }

    .hhs_ex_poster{
        padding:0 0 40px;
    }

    .hhs_ex_poster img{
        max-width: 100%;
    }

    .hhs_ex_image_section .hhs_ex_section_title,
    .hhs_ex_poster_section .hhs_ex_section_title,
    .hhs_ex_editor_section .hhs_ex_section_title{
        text-align:center;
    }
}

/* =========================================================
   상세페이지 전시사진 / Masonry.js 최종 적용
========================================================= */
.hhs_ex_masonry{
    position:relative;
    width:100%;
    column-count:initial !important;
    column-gap:initial !important;
    margin-bottom:0 !important;
}

.hhs_ex_masonry_sizer,
.hhs_ex_masonry_item{
    width:calc((100% - 48px) / 3);
}

.hhs_ex_masonry_gutter{
    width:24px;
}

.hhs_ex_masonry_item{
    margin:0 0 24px !important;
    break-inside:auto !important;
    background:var(--hhs-bg);
}

.hhs_ex_masonry_item img{
    display:block;
    width:100%;
    height:auto;
}

@media (max-width:900px){
    .hhs_ex_masonry_sizer,
    .hhs_ex_masonry_item{
        width:calc((100% - 18px) / 2);
    }

    .hhs_ex_masonry_gutter{
        width:18px;
    }

    .hhs_ex_masonry_item{
        margin-bottom:18px !important;
    }
}

@media (max-width:600px){
    .hhs_ex_masonry_sizer,
    .hhs_ex_masonry_item{
        width:100%;
    }

    .hhs_ex_masonry_gutter{
        width:0;
    }

    .hhs_ex_masonry_item{
        margin-bottom:16px !important;
    }
}


/* =========================================================
   상세페이지 제목 정렬 / 요청사항 보정
========================================================= */
.hhs_ex_view .hhs_ex_section_title{
    text-align:center;
}

.hhs_ex_view .hhs_ex_section_title span{
    font-size:16px;
}

@media (max-width:600px){
    .hhs_ex_view_head,
    .hhs_ex_view_head h1,
    .hhs_ex_view .hhs_ex_section_title,
    .hhs_ex_related .hhs_ex_tabs{
        text-align:center;
    }

    .hhs_ex_view_meta{
        justify-content:center;
    }
}
