/*
Theme Name: 비랜딩 - 제이에이치갤러리
Theme URI: https://blanding.kr
Author: 비랜딩 blanding.kr
Author URI: https://blanding.kr
Description: 제이에이치갤러리 사이트를 위한 커스텀 테마입니다.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blanding-jhgallery
*/

/* ----------------------------------------------------
   1. Basic CSS & Resets
   ---------------------------------------------------- */
*{margin:0; padding:0;} 
body{font-size:12px; font-family:'Inter', 'Pretendard', sans-serif; background:#fff; color:#222; -webkit-text-size-adjust:none;}
a{outline:0px;}
a:link{color:inherit; text-decoration:none;}                                       
a:hover{color:inherit; text-decoration:none;}
a:visited{color:inherit; text-decoration:none;}
caption, legend{font-size:0px; width:0px; height:0px; overflow:hidden; position:absolute; visibility:hidden;}
img{border:0px; max-width:100%;}
fieldset,img{border:0; vertical-align:top;}
table{border-collapse:collapse; border-spacing:0; border:0;}
input,textarea,select{font-family:inherit; font-size:inherit; font-weight:inherit;}
ul,ol,dl{list-style:none; margin:0;}
textarea{overflow:auto;} 
button,label{cursor:pointer;}
hr{display:none; clear:both;}

/* ----------------------------------------------------
   2. Layout & Common CSS (layout.css)
   ---------------------------------------------------- */
.inner{width:100%; max-width:1800px; margin:0 auto; position:relative;}
@media all and (max-width:1800px){
	.inner{width:93.75%;}
}

/* Header */
#header {height: 120px; position: relative; z-index: 99;}
#header .inner{height: 100%; display: flex; align-items: center; justify-content: space-between;}
#header .logo a {font-size: 28px; font-weight: 800; color: #222; text-transform: uppercase; letter-spacing: -0.04em;}
#header .gnb > ul{display: flex; align-items: center;}
#header .gnb > ul > li > a{padding: 20px 20px; display: block; font-size: 20px; letter-spacing: 0; color: #222222; font-weight: 500;}
#header .gnb > ul > li.on > a {border-bottom: 2px solid #222222; font-weight: 700;}
#header .gnb > ul > li:hover > a{color: #888888;}
#header .gnb > ul > li:last-child > a{padding-right: 0;}

/* Mobile Header Hamburger */
#header .m_btn {
    display: none;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}
#header .m_btn i {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease-in-out;
}
#header .m_btn i:nth-of-type(1) { top: 4px; }
#header .m_btn i:nth-of-type(2) { top: 11px; width: 84%; right: 0; left: auto; }
#header .m_btn i:nth-of-type(3) { top: 18px; }

#header .m_btn.on i:nth-of-type(1) {
    top: 11px;
    transform: rotate(45deg);
}
#header .m_btn.on i:nth-of-type(2) {
    width: 0;
    opacity: 0;
}
#header .m_btn.on i:nth-of-type(3) {
    top: 11px;
    transform: rotate(-45deg);
}

@media all and (max-width:1024px){
	#header {height: 70px;}
	#header .inner{height: 100%; padding-top: 0;}
	#header .gnb{display: none;}
	#header .m_btn{display: inline-block;}
}

/* Mobile Side Menu */
.m_menu_bg {z-index:101; position:fixed; left:0; top:0; display:none; width:100%; height:100%; background:rgba(0,0,0,.7); cursor:pointer; }
#m_menu {z-index:102; position:fixed; right:-100%; top:0; width:500px; max-width:80%; height:100%; background-color:#fff; box-sizing:Border-box; transition:all 0.5s; overflow-y:auto;}
#m_menu.on {right:0; }
#m_menu .top_box {position:relative; padding:10px; box-sizing:border-box; height: 90px;}
#m_menu .top_box .close_btn {
    position: absolute;
    right: 20px;
    top: 33px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
#m_menu .top_box .close_btn i {
    display: block;
    position: absolute;
    left: 0;
    top: 11px;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}
#m_menu .top_box .close_btn i:first-of-type { transform: rotate(45deg); }
#m_menu .top_box .close_btn i:last-of-type { transform: rotate(-45deg); }
#m_menu .gnb_box {border-top:1px solid #ddd; }
#m_menu .gnb_box > ul > li {border-bottom:1px solid #dddddd; }
#m_menu .gnb_box > ul > li > a {position:relative; display:block; padding:20px 20px; font-size:20px; font-weight:bold; color:#222222; letter-spacing:-0.04em; box-sizing:border-box; }

/* Footer */
#footer {background:#fff; margin-top: 50px;}
#footer .foot_cas_sang{padding: 60px 0; border-top: 1px solid #222222; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; flex-wrap: wrap;}
#footer .copy{font-size: 14px; letter-spacing: 0; color: #888888;}
#footer .right_info{display: flex; justify-content: space-between; font-size: 16px; letter-spacing: 0; line-height: 1.875em; font-weight: 500; max-width: 980px; width: 100%;}
#footer .so_tit{color: #888888;}
#footer .so_txt{color: #666666;}

@media all and (max-width:1024px){
	#footer .foot_cas_sang{justify-content: center; padding: 50px 0 80px;}
	#footer .right_info{flex-wrap: wrap; gap: 30px;}
	#footer .info_s_box{width: 100%; text-align: center}
}

/* ----------------------------------------------------
   3. Main Page CSS (main.css)
   ---------------------------------------------------- */
section.section{padding: 100px 0;}
section.section.last{padding-bottom: 150px;}
section.section.pt0{padding-top: 0;}
section.section.pb0{padding-bottom: 0;}

.com_sub_tiot.mb{margin-bottom: 50px;}
.com_sub_tiot p{font-weight: 600; font-size: 22px; color: #222222; letter-spacing: 0;}

/* Swiper Slider */
.main_visual {overflow: hidden; position: relative;}
.main_visual .swiper-slide{position: relative;}
.main_visual .bg_box{height: 800px;}
.main_visual .bg_box img{width: 100%; height: 100%; object-fit: cover;}
.main_visual .txt_box{position: absolute; width: 100%; height: 100%; top: 0; left: 0; padding-bottom: 40px; box-sizing: border-box; color: #222222; letter-spacing: 0;}
.main_visual .txt_box .bot_txt{position: absolute; bottom: 0; z-index: 1;}
.main_visual .txt_box .inner{height: 100%;}
.main_visual .txt_box .tit{font-size: 22px;}
.main_visual .txt_box .txt{font-size: 18px; margin-top: 5px; line-height: 1.333em;}
.main_visual .txt_box .txt b{font-weight: 600;}

.main_visual .main_pagina{position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 100%; text-align: center; box-sizing: border-box; z-index: 2;}
.main_visual .main_pagina .swiper-pagination-bullet{width: 30px; height: 3px; border-radius: 0; display: inline-block; margin: 0 4px; background: #888;}
.main_visual .main_pagina .swiper-pagination-bullet-active{background-color: #222;}

.main_visual .swiper_arw_btn{position: absolute; width: 100%; height: 100%; left: 0; top: 0; pointer-events: none;}
.main_visual .swiper_arw_btn .inner{height: 100%;}
.main_visual .swiper_arw_btn .swiper_arw{position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; box-sizing: border-box; background-color: rgba(34,34,34,.1); background-position: center; background-repeat: no-repeat; z-index: 4; cursor: pointer; pointer-events: auto;}
.main_visual .swiper_arw_btn .swiper_arw:hover{background-color: rgba(34,34,34,.2);}
.main_visual .swiper_arw_btn .swiper_arw.prev_arw{background-image: url(img/main_arrow01.png); left: 0;}
.main_visual .swiper_arw_btn .swiper_arw.next_arw{background-image: url(img/main_arrow02.png); right: 0;}

@media all and (max-width:1024px){
    .main_visual .bg_box{height: 500px;}
    .main_visual .txt_box{padding-bottom: 80px;}
}

/* Exceptional Exhibitions */
.wom_ima_ge{display: flex; gap: 60px; flex-wrap: wrap;} 
.wom_ima_ge .a_btn{width: calc(50% - 30px); display: flex; flex-direction: column; gap: 40px; position: relative;}
.wom_ima_ge .a_btn:before{width: 71px; aspect-ratio: 1/1; box-sizing: border-box; background: url(img/wom_img_arrow.png) no-repeat center center / cover; position: absolute; content: ''; right: 0; top: 0; opacity: 0; transition: .5s;}
.wom_ima_ge .a_btn:hover:before{opacity: 1;}
.wom_ima_ge .txt_box{color: #222222; letter-spacing: 0; padding-right: 71px; box-sizing: border-box;}
.wom_ima_ge .txt_box .tit{font-size: 22px;}
.wom_ima_ge .txt_box .txt{font-size: 18px; margin-top: 10px; line-height: 1.625em;}
.wom_ima_ge .img_box {object-fit: cover; height: 100%;}
.wom_ima_ge .img_box img {width: 100%; height: 100%; object-fit: cover;}
.wom_ima_ge .img_box .woong_img_wrapper {height: 100%;}

@media all and (max-width:850px){
    .wom_ima_ge .a_btn{width: 100%;}
    .wom_ima_ge .a_btn:before{opacity: 1; width: 41px;}
    .wom_ima_ge .txt_box{padding-right: 41px;}
}

/* ----------------------------------------------------
   4. Content Pages & Subpages CSS (content.css)
   ---------------------------------------------------- */
/* Contact Page Map & Information layout */
.con_tact_box .inner{display: flex; flex-wrap: wrap;}
.con_tact_box .inner > div{width: 50%;}
.con_tact_info ul{display: flex; flex-wrap: wrap; gap: 80px 0;}
.con_tact_info ul li{width: 50%;}
.con_tact_info .tit{font-size: 20px; font-weight: 600; color: #222222; letter-spacing: 0;}
.con_tact_info .txt{font-size: 16px; color: #444444; letter-spacing: 0; margin-top: 10px;}
.con_tact_box .map_box{height: 510px;}

@media all and (max-width:1200px){
    .con_tact_box .inner{ gap: 50px 0;}
    .con_tact_box .inner > div{width: 100%;}
}
@media all and (max-width:650px){
    .con_tact_info ul{gap: 40px 0;}
    .con_tact_info ul li{width: 100%;}
    .con_tact_box .map_box{height: 360px;}
}

/* About & Detail Summary sections */
.ab_out_sec{display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 30px;}
.ab_out_sec.flex_end{align-items: flex-end; justify-content: space-between;}
.ab_out_sec > div{width: calc(50% - 20px);}

.ab_out_sec.custom .top_img,
.ab_out_sec.custom .top_img .img_box {
    height: 100%;
}
.ab_out_sec .top_img img{width: 100%; height: 100%; object-fit: cover;}
.ab_out_sec .bot_img.mw-610{max-width: 610px;}
.ab_out_sec .bot_img{width: 100%; margin: 0 auto; overflow: hidden; margin-top: 30px;}
.ab_out_sec .bot_img img{width: 100%;}
.ab_out_sec .ab_eng{font-size: 16px; color: #444444; letter-spacing: 0; line-height: 1.75em; margin-top: -6px;}
.ab_out_sec .ab_kor{font-size: 16px; letter-spacing: 0; color: #222222; line-height: 1.75em; margin-top: 40px; font-weight: 500;}
.ab_out_sec .ab_kor p + p{margin-top: 15px;}

/* Thumbnail slides overlays */
.ab_out_sec .bot_img .img_box{position: relative; cursor: pointer; aspect-ratio: 1/0.667;}
.ab_out_sec .bot_img .img_box::before{position: absolute; left: 0; top: 0; width: 100%; height: 100%; content: ''; background: rgba(0,0,0,.5); transition: 0.3s;}
.ab_out_sec .bot_img .img_box img{width: 100%; height: 100%; object-fit: cover;}
.ab_out_sec .bot_img .swiper-slide-active .img_box:before,
.ab_out_sec .bot_img .swiper-slide.on .img_box:before{content: none;} /* Active slide overlays disabled */

/* Right text boxes and current tags */
.ab_out_sec .right_text {position: relative;}
.ab_out_sec.custom .right_text {
    display: flex;
    flex-direction: column;
} 
.ab_out_sec.custom .gall_ery_text {
    margin-top: auto;
}
.new_text_box p {font-size: 20px; font-weight: bold;}
.new_text_box_past {font-size: 20px; text-align: center;}
.archive_bold {font-weight: 800;}

/* Response order rules for mobile */
@media all and (max-width:1024px){
    .ab_out_sec > div{width: 100%;}
    .ab_out_sec .left_img{order: 2;}
    .ab_out_sec .right_text{order: 1;}
    .ab_out_sec .top_img .img_box {padding-top: 30px;}
}

/* Swiper navigation buttons */
.swiper_btn_box{display: flex; justify-content: flex-end; margin-bottom: 40px;}
.swiper_btn_box .swiper_btn{width: 11px; height: 18px; background-repeat: no-repeat; position: relative; filter: invert(54%) sepia(12%) saturate(10%) hue-rotate(41deg) brightness(98%) contrast(83%); cursor: pointer;}
.swiper_btn_box .swiper_btn:hover{filter: none;}
.swiper_btn_box .swiper_btn + .swiper_btn:before{position: absolute; left: 0; top: 50%; width: 1px; height: 10px; content: ''; background-color: #bfbfbf; transform: translateY(-50%);}
.swiper_btn_box .swiper_btn.prev_btn{background-image: url(img/main_arrow01.png); padding-right: 30px; background-position: left center; }
.swiper_btn_box .swiper_btn.next_btn{background-image: url(img/main_arrow02.png); padding-left: 30px; background-position: right center; } 

/* Gallery fonts and Details Button */
.gall_ery_text .gall_ery_tit{font-size: 22px; font-weight: 600; color: #222222; letter-spacing: 0;}
.gall_ery_text .gall_ery_txt{font-size: 18px; font-weight: 500; color: #222222; letter-spacing: 0; margin-top: 20px; line-height: 29px;}
.gall_ery_text .gall_ery_s_txt{font-size: 18px; font-weight: 500; color: #444444; letter-spacing: 0; margin-top: 10px;}
.gall_ery_text .gall_ery_btn{width: 180px; height: 50px; border: 1px solid #222222; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; color: #222222; font-size: 18px; font-weight: 500; letter-spacing: 0; margin-top: 60px;} 
.gall_ery_text .gall_ery_btn:hover{background-color: #222; color: #fff;}

/* Past Exhibition Filter Tabs */
.cho_ice_box {position: relative;}
.cho_ice_box .choice_tab ul{display: flex; justify-content: center; flex-wrap: wrap;}
.cho_ice_box .choice_tab ul li.on a{color: #222222; font-weight: 600;}
.cho_ice_box .choice_tab ul li a{padding: 25px; font-size: 18px; color: #888888; letter-spacing: 0; display: block;}

/* Grid layouts for lists (Exhibition & Artist Cards) */
.won_li_tab{margin-top: 50px;}
.won_item_li{display: flex; flex-wrap: wrap; gap: 40px 60px; padding: 25px 0;}
.won_item_li.item05 {gap: 60px;}
.won_item_li.item05 .item_li{width: calc(20% - 48px);}
.won_item_li.item05 .img_box{aspect-ratio: 1/1;}
.won_item_li .item_li{width: calc(25% - 45px);}

/* Hover card border logic */
.won_item_li .item_li a{display: block; width: 100%; height: 100%; position: relative; padding: 30px 20px; box-sizing: border-box;}
.won_item_li .item_li a:before{position: absolute; width: 100%; height: 100%; box-sizing: border-box; content: ''; left: 0; top: 0; border: 1px solid #222; opacity: 0; transition: .5s;}
.won_item_li .item_li:hover a:before{opacity: 1;}
.won_item_li .img_box{aspect-ratio: 1/0.671;}
.won_item_li .img_box img{width: 100%; height: 100%; object-fit: cover;}
.won_item_li .info_box{padding: 30px 0;}
.won_item_li .info_box .tit{font-size: 18px; letter-spacing: 0; color: #222222; font-weight: 600; line-height: 2.2em; white-space: normal;}
.won_item_li .info_box .date{font-size: 16px; font-weight: 300; color: #444444; letter-spacing: 0; margin-top: 5px;}

/* Grid responsive breakdowns */
@media all and (max-width:1200px){
    .won_item_li.item05,
    .won_item_li{gap: 20px 30px;}
    .won_item_li.item05 .item_li,
    .won_item_li .item_li{width: calc(33.333% - 20px);}
}
@media all and (max-width:1024px){
    .won_item_li .item_li a{padding: 15px 10px;}
    .choice_tab.max-37 ul li{width: 7.142%;}
    .choice_tab.max-37 ul li a{padding: 10px 0; text-align: center; font-size: 16px;}
}
@media all and (max-width:800px){
    .won_item_li.item05,
    .won_item_li{gap: 10px;}
    .won_item_li.item05 .item_li,
    .won_item_li .item_li{width: calc(50% - 5px);}
    .won_item_li .item_li a{padding: 10px;}
}

/* Detail Box */
.detail_cus_tomer{padding: 50px 50px 70px; border: 1px solid #cccccc;}
.detail_cus_tomer .tit{font-size: 22px; letter-spacing: 0; color: #222222; line-height: 1.583em; font-weight: bold;}
.detail_cus_tomer .txt{margin-top: 50px; font-size: 16px; color: #444444; letter-spacing: 0;}

/* Artist profiles */
.art_ist_read.artist_slide_custom {display: flex; gap: 100px; margin-top: 100px;}
.art_ist_read .art_img{width: calc(50% - 100px); aspect-ratio: 1/1; max-width: 800px; max-height: 800px;}
.art_ist_read .art_img img{width: 100%; height: 100%; object-fit: cover;}
.art_ist_read .art_txt{
    width: calc(50% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.art_ist_read .art_txt .art_tt{font-size: 30px; color: #222222; letter-spacing: 0; padding-bottom: 20px; border-bottom: 1px solid #cccccc;}
.art_ist_read .art_info .info_tt{font-size: 20px; font-weight: 500; color: #222222; letter-spacing: 0;}
.art_ist_read .art_info{margin-top: 60px;}
.art_ist_read .art_info .info_nae{margin-top: 10px;}
.art_ist_read .art_info .info_nae p{font-size: 16px; color: #444444; letter-spacing: 0; line-height: 1.625em;}

@media all and (max-width:1200px){
    .art_ist_read{gap: 50px;}
    .art_ist_read .art_img,
    .art_ist_read .art_txt{width: calc(50% - 25px);}
}
@media all and (max-width:1024px){
    .art_ist_read{flex-wrap: wrap;}
    .art_ist_read .art_img,
    .art_ist_read .art_txt{width: 100%;}
}
.artist_img_custom img {
    max-width: 100%;
}

/* Participating Artists Button Group */
.participating_artists_btn_group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0 45px;
}
.participating_artists_btn_group .artist_btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid #e2e2e2;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    color: #444444;
    transition: all 0.3s ease-in-out;
}
.participating_artists_btn_group .artist_btn:hover {
    border-color: #222222;
    color: #222222;
    background-color: #fcfcfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Footer SNS & Map Icons */
#footer .footer_sns_box {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    width: 100%;
}
#footer .footer_sns_box a {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease-in-out;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}
#footer .footer_sns_box a.sns_insta {
    background-image: url(img/contact_new_icon01.png);
}
#footer .footer_sns_box a.sns_navermap {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23222"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}
#footer .footer_sns_box a:hover {
    border-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Single Page adjustments for wider view (without sidebar) */
.ab_out_sec.single_wide {
    justify-content: center;
}
.ab_out_sec.single_wide > .left_img {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.ab_out_sec.single_wide > .right_text {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Single Page 2-Column Responsive Layout (PDF 6 page) */
@media all and (max-width:1024px){
    .single_left_col {
        width: 100% !important;
        order: 2 !important;
        margin-top: 30px;
    }
    .single_right_col {
        width: 100% !important;
        order: 1 !important;
    }
}


