/* =========================================================
   hhs_gallery / 공통
========================================================= */
.hhs_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:var(--hhs-white);
    color:var(--hhs-text);
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    transition:.25s;
}

.hhs_btn:hover{
    border-color:var(--hhs-point);
    color:var(--hhs-point);
}

.hhs_btn_dark{
    background:var(--hhs-main);
    border-color:var(--hhs-main);
    color:#fff;
}

.hhs_btn_dark:hover{
    background:var(--hhs-point);
    border-color:var(--hhs-point);
    color:#fff;
}


/* =========================================================
   hhs_gallery / 리스트
========================================================= */
.hhs_gallery_list{

}

.hhs_bo_top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:24px;
}

.hhs_total{
    color:var(--hhs-text2);
    font-size:14px;
}

.hhs_btn_area,
.hhs_admin_btns{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.hhs_admin_btns{
    justify-content:flex-end;
    margin-bottom:24px;
}

.hhs_work_grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:42px 32px;
    padding:0;
    margin:0;
    list-style:none;
}

.hhs_work_item{
    position:relative;
}

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

.hhs_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_order_btn:hover{
    border-color:var(--hhs-point);
    background:var(--hhs-point);
    color:#fff;
}

.hhs_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);
    font-size:12px;
}

.hhs_work_link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.hhs_work_img{
    position:relative;
    overflow:hidden;
    background:var(--hhs-bg2);
}

.hhs_work_img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.5s ease;
}

.hhs_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_work_hover:before,
.hhs_work_hover:after{
    content:"";
    position:absolute;
    background:rgba(255,255,255,.35);
}

.hhs_work_hover:before{
    left:0;
    right:0;
    top:50%;
    height:1px;
}

.hhs_work_hover:after{
    top:0;
    bottom:0;
    left:50%;
    width:1px;
}

.hhs_work_hover span{
    position:relative;
    z-index:1;
    font-size:18px;
    font-weight:600;
}

.hhs_work_hover em{
    position:relative;
    z-index:1;
    margin-top:8px;
    font-size:15px;
    font-style:normal;
    letter-spacing:.02em;
}

.hhs_work_link:hover .hhs_work_img img{
    transform:scale(1.04);
}

.hhs_work_link:hover .hhs_work_hover{
    opacity:1;
}

.hhs_work_info{
    padding-top:18px;
}

.hhs_work_info h3{
    margin:0 0 5px;
    color:var(--hhs-text);
    font-size:18px;
    font-weight:700;
    line-height:1.35;
}

.hhs_work_info p{
    display:block;
    margin:0;
    color:var(--hhs-text2);
    font-size:15px;
    line-height:1.5;
}

.hhs_work_info p .medium{
    display:block;
    margin-bottom:2px;
}

.hhs_work_info p .meta{
    display:block;
}

.hhs_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_search{
    max-width:520px;
    margin:60px auto 0;
    padding:0;
    border:0;
}

.hhs_search legend{
    position:absolute;
    overflow:hidden;
    width:1px;
    height:1px;
    margin:-1px;
    clip:rect(0,0,0,0);
}

.hhs_search form{
    display:flex;
    gap:8px;
}

.hhs_search select,
.hhs_search .sch_input{
    height:44px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text);
    font-size:14px;
}

.hhs_search select{
    width:105px;
    padding:0 10px;
}

.hhs_search .sch_input{
    flex:1;
    padding:0 14px;
}

.hhs_search .sch_btn{
    width:80px;
    border:0;
    background:var(--hhs-main);
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

/* 카테고리 */
#bo_cate{
    margin:0 0 45px;
    padding:0;
}

#bo_cate h2{
    position:absolute;
    overflow:hidden;
    width:1px;
    height:1px;
    margin:-1px;
    clip:rect(0,0,0,0);
}

#bo_cate_ul{
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    margin:0;
    padding:0;
    list-style:none;
}

#bo_cate_ul li a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:92px;
    height:40px;
    padding:0 18px;
    border:1px solid var(--hhs-line);
    background:#fff;
    color:var(--hhs-text2);
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    transition:.25s;
}

#bo_cate_ul li a:hover,
#bo_cate_ul li a#bo_cate_on{
    border-color:var(--hhs-main);
    background:var(--hhs-main);
    color:#fff;
}

/* =========================================================
   hhs_gallery / 뷰
========================================================= */
.hhs_gallery_view{

}

.hhs_view_btns{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.hhs_view_inner{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:70px;
    align-items:stretch;
    padding-top: 20px;
}

.hhs_view_img{
    background:var(--hhs-bg);
}

.hhs_view_img img{
    width:100%;
    height:auto;
    display:block;
}

.hhs_no_img{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:520px;
    color:var(--hhs-text3);
    background:var(--hhs-bg2);
    font-size:18px;
    letter-spacing:.08em;
}

.hhs_view_info{
    display:flex;
    flex-direction:column;
    padding: 50px 0 0;
}

.hhs_view_info h1{
    margin:0 0 34px;
    color:var(--hhs-text);
    font-size:38px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:-.02em;
}

.hhs_view_info dl{
    margin:0;
    padding:0;
    border-top:1px solid var(--hhs-line);
}

.hhs_view_info dl div{
    display:grid;
    grid-template-columns:90px 1fr;
    gap:20px;
    padding:18px 0;
    border-bottom:1px solid var(--hhs-line);
    align-items: center;
}

.hhs_view_info dt{
    color:var(--hhs-text3);
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
}

.hhs_view_info dd{
    margin:0;
    color:var(--hhs-text);
    font-size:16px;
    line-height:1.6;
}

.hhs_view_content{
    margin-top:70px;
    color:var(--hhs-text2);
    font-size:16px;
    line-height:1.9;
}

.hhs_view_content img{
    max-width:100%;
    height:auto;
}


/* =========================================================
   hhs_gallery / 라이트
========================================================= */
.hhs_gallery_write{

}

.hhs_write_box{
    border-top:2px solid var(--hhs-main);
}

.hhs_form_row{
    display:grid;
    grid-template-columns:150px 1fr;
    gap:24px;
    padding:20px 0;
    border-bottom:1px solid var(--hhs-line);
}

.hhs_form_row label{
    color:var(--hhs-text);
    font-size:15px;
    font-weight:700;
    line-height:44px;
}

.hhs_form_row input[type="text"],
.hhs_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_form_row input[type="file"]{
    padding:10px 0;
}

.hhs_form_content{
    display:block;
}

.hhs_form_content > label{
    display:block;
    margin-bottom:12px;
    line-height:1.4;
}

.hhs_file_desc{
    margin-top:8px;
}

.hhs_file_del{
    margin-top:8px;
    color:var(--hhs-text2);
    font-size:13px;
}

.hhs_file_del label{
    display:inline;
    line-height:1.4;
    font-weight:400;
}

.hhs_write_btns{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:36px;
}


/* =========================================================
   hhs_gallery / 반응형
========================================================= */
@media (max-width:1200px){
    .hhs_work_grid{
        grid-template-columns:repeat(3, 1fr);
    }

    .hhs_view_inner{
        gap:45px;
    }
}

@media (max-width:900px){


    .hhs_work_grid{
        grid-template-columns:repeat(2, 1fr);
        gap:34px 20px;
    }

    .hhs_view_inner{
        display:block;
    }

    .hhs_view_info{
        min-height:auto;
        margin-top:35px;
    }

    .hhs_view_info h1{
        font-size:30px;
    }

    .hhs_view_content{
        margin-top:40px;
    }

    .hhs_form_row{
        display:block;
    }

    .hhs_form_row label{
        display:block;
        margin-bottom:8px;
        line-height:1.4;
    }

    #bo_cate_ul li a{min-width: 0; padding: 0 10px; font-size: 13px; height: 35px;}
}

@media (max-width:600px){
    .hhs_bo_top{
        display:block;
    }

    .hhs_btn_area{
        margin-top:14px;
    }

    .hhs_work_grid{
        grid-template-columns:1fr;
    }

    .hhs_search form{
        flex-wrap:wrap;
    }

    .hhs_search select{
        width:100%;
    }

    .hhs_search .sch_input{
        width:calc(100% - 88px);
        flex:none;
    }

    .hhs_view_btns{
        justify-content:flex-start;
    }

    .hhs_view_info h1{
        font-size:26px;
    }

    .hhs_view_info dl div{
        grid-template-columns:70px 1fr;
    }

    .hhs_write_btns{
        flex-direction:column;
    }

    .hhs_write_btns .hhs_btn{
        width:100%;
    }
}


