@charset "UTF-8";

/* =====================
   THE ACE 갤러리 스킨
   /skin/board/gallery/style.css
===================== */

/* 기본 리셋 */
#bo_gall, #bo_gall * { box-sizing: border-box; }
#bo_gall a { text-decoration: none; color: inherit; }
#bo_gall ul, #bo_gall li { list-style: none; margin: 0; padding: 0; }

.ace_gallery_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    width: 100%;
    overflow: hidden;
}

.ace_gallery_wrap .board_title {
    text-align: center;
    margin-bottom: 50px;
}
.ace_gallery_wrap .board_title h2 {
    font-family: 'ivymode', serif;
    font-size: 52px;
    font-weight: 400;
    color: #111;
    position: relative;
    display: inline-block;
}
.ace_gallery_wrap .board_title h2::before,
.ace_gallery_wrap .board_title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: #ccc;
}
.ace_gallery_wrap .board_title h2::before { right: calc(100% + 20px); }
.ace_gallery_wrap .board_title h2::after { left: calc(100% + 20px); }

.ace_gall_btn_top {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    gap: 8px !important;
}
.ace_gall_btn_top .btn_bo_user {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ace_gall_btn_top .btn_bo_user li {
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
}
.ace_gall_btn_top .btn_bo_user li a,
.ace_gall_btn_top .btn_bo_user li button {
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
    line-height: 1 !important;
}
.ace_gall_btn_top .btn {
    padding: 8px 18px;
    border: 1px solid #000;
    font-size: 13px;
    font-family: 'Pretendard', sans-serif;
    color: #000;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.ace_gall_btn_top .btn:hover { background: #000 !important; color: #fff !important; }
.ace_gall_btn_top a.btn:hover { background: #000 !important; color: #fff !important; }
.more_opt {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 0;
    z-index: 100;
    min-width: 120px;
    list-style: none;
}
.btn_more_opt { position: relative; }
.more_opt li button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}
.more_opt li button:hover { background: #f5f5f5; }

.ace_gall_grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    min-width: 0;
}

.ace_gall_item {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.gall_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.ace_gall_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ace_gall_img {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0ede8;
    display: block;
}
.ace_gall_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}
.ace_gall_link:hover .ace_gall_img img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.ace_gall_more_cta {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.ace_gall_more_cta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 50%;
    font-size: 17px;
    font-weight: 400;
    background: rgba(0,0,0,0.18);
}

.ace_gall_more_cta em {
    font-style: normal;
}

.ace_gall_link:hover .ace_gall_more_cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ace_gall_info {
    padding: 16px 2px 0;
    text-align: center;
}
.ace_gall_subject {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    max-height: 3em;
}
.ace_gall_date { display: none; }

.ace_gall_empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: #aaa;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
}

.ace_gall_page {
    margin-top: 60px;
    text-align: center;
}
.ace_gall_page .pg_wrap {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.ace_gall_page .pg_wrap a,
.ace_gall_page .pg_wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    transition: all .2s;
}
.ace_gall_page .pg_wrap strong {
    background: #000;
    color: #fff;
    border-color: #000;
}
.ace_gall_page .pg_wrap a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.bo_sch_wrap { margin-top: 50px; }
fieldset.bo_sch {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
    justify-content: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
fieldset.bo_sch h3 { display: none !important; }
fieldset.bo_sch select {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    font-family: 'Pretendard', sans-serif !important;
    height: 40px !important;
}
.sch_bar { display: flex !important; align-items: center !important; gap: 4px !important; }
.sch_input {
    padding: 8px 14px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    font-family: 'Pretendard', sans-serif !important;
    width: 220px !important;
    height: 40px !important;
    outline: none !important;
}
.sch_input:focus { border-color: #000 !important; }
.sch_btn {
    padding: 0 14px !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}
.bo_sch_cls { display: none !important; }
.bo_sch_bg { display: none !important; }
.gall_chk { display: none; }

/* =====================
   뷰 페이지 구매 버튼
===================== */
.ace_shop_btns {
    display: flex;
    gap: 16px;
    margin: 50px 0 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.ace_shop_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 48px;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    letter-spacing: 0.5px;
    border-radius: 0;
}
.ace_shop_smart { background: #03c75a; color: #fff; border: 2px solid #03c75a; }
.ace_shop_smart:hover { background: #028a40; border-color: #028a40; color: #fff; }
.ace_shop_coupang { background: #fff; color: #c00; border: 2px solid #c00; }
.ace_shop_coupang:hover { background: #c00; color: #fff; }

/* =====================
   반응형
===================== */
@media all and (max-width: 1024px) {
    .ace_gallery_wrap { padding: 40px 30px 80px; }
}
@media all and (max-width: 768px) {
    .ace_gallery_wrap { padding: 40px 20px 60px; }
    .ace_gall_grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px; }
    .ace_gall_subject { font-size: 14px; }
    .ace_shop_btns { flex-direction: column; align-items: center; }
    .ace_shop_btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media all and (max-width: 480px) {
    .ace_gall_grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
}

.ace_search_wrap { margin-top: 50px; text-align: center; }
.ace_search_form {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}
.ace_sch_select { padding: 0 12px; border: 1px solid #ddd; font-size: 14px; font-family: 'Pretendard', sans-serif; height: 40px; background: #fff; }
.ace_sch_input { padding: 0 14px; border: 1px solid #ddd; font-size: 14px; font-family: 'Pretendard', sans-serif; width: 220px; height: 40px; outline: none; }
.ace_sch_input:focus { border-color: #000; }
.ace_sch_btn { padding: 0 16px; background: #000; color: #fff; border: none; cursor: pointer; font-size: 14px; height: 40px; display: flex; align-items: center; }
.ace_sch_btn:hover { background: #333; }

/* =====================
   뷰 페이지
===================== */
#bo_v.ace_view_wrap {
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    background: #f6f4f0 !important;
}

.ace_view_top_btn { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 40px; }
.ace_view_btn {
    padding: 8px 20px;
    border: 1px solid #000;
    font-size: 13px;
    font-family: "Pretendard", sans-serif;
    color: #000;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
}
.ace_view_btn:hover { background: #000; color: #fff; }

.ace_view_main {
    display: flex !important;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 80px;
    background: transparent !important;
}

.ace_view_img_area {
    flex: 0 0 600px !important;
    max-width: 600px !important;
    width: 600px !important;
    background: transparent !important;
}

.ace_view_info { flex: 1; padding-top: 20px; }

.ace_slider_main { position: relative; overflow: hidden; background: transparent; }
.ace_slide { display: none; }
.ace_slide.active { display: block; }
.ace_slide img { width: 100%; height: auto; display: block; }

.ace_slide_prev,
.ace_slide_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background .2s;
}
.ace_slide_prev { left: 10px; }
.ace_slide_next { right: 10px; }
.ace_slide_prev:hover, .ace_slide_next:hover { background: rgba(0,0,0,0.7); }

.ace_slide_count {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 13px;
    font-family: "Pretendard", sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
}

.ace_thumb_list { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ace_thumb_item {
    width: 70px;
    height: 70px;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s;
    flex-shrink: 0;
}
.ace_thumb_item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ace_thumb_item.active, .ace_thumb_item:hover { border-color: #eeccaf; }

.ace_view_category { font-size: 13px; letter-spacing: 4px; color: #eeccaf; font-family: "Pretendard", sans-serif; margin-bottom: 16px; }
.ace_view_title { font-family: "Pretendard", sans-serif; font-size: 28px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 24px; }
.ace_view_divider { width: 40px; height: 2px; background: #eeccaf; margin-bottom: 32px; }

.ace_view_spec_list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid #e5e5e5; }
.ace_view_spec_list li { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #e5e5e5; gap: 20px; }
.ace_view_spec_list .spec_label { width: 100px; flex-shrink: 0; font-size: 15px; font-weight: 600; font-family: "Pretendard", sans-serif; color: #333; }
.ace_view_spec_list .spec_val { font-size: 15px; font-family: "Pretendard", sans-serif; color: #555 !important; text-decoration: none !important; }

.ace_view_info .ace_shop_btns { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; margin: 0 !important; justify-content: flex-start !important; }
.ace_view_info .ace_shop_btn { justify-content: center; padding: 16px 24px; }

.ace_view_detail { border-top: 1px solid #eee; padding-top: 60px; margin-bottom: 60px; }
.ace_view_detail_inner { max-width: 900px; margin: 0 auto; }
#bo_v_con img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.ace_view_nb { list-style: none; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 40px; padding: 0; }
.ace_view_nb li { display: flex; align-items: center; padding: 16px 0; font-size: 14px; font-family: "Pretendard", sans-serif; border-bottom: 1px solid #f5f5f5; }
.ace_view_nb li:last-child { border-bottom: none; }
.ace_view_nb li span { width: 60px; flex-shrink: 0; color: #aaa; font-size: 12px; }
.ace_view_nb li a { color: #333; text-decoration: none; }
.ace_view_nb li a:hover { color: #000; text-decoration: underline; }

.ace_view_bottom_btn { text-align: center; }
.ace_view_list_btn { display: inline-block; padding: 14px 50px; border: 1px solid #000; font-size: 14px; font-family: "Pretendard", sans-serif; color: #000; text-decoration: none; transition: all .2s; }
.ace_view_list_btn:hover { background: #000; color: #fff; }

@media all and (max-width: 1024px) {
    .ace_view_img_area { flex: 0 0 380px !important; max-width: 380px !important; width: 380px !important; }
}
@media all and (max-width: 768px) {
    .ace_view_main { flex-direction: column; gap: 30px; }
    .ace_view_img_area { flex: none !important; max-width: 100% !important; width: 100% !important; }
    .ace_view_title { font-size: 22px; }
    .ace_view_info .ace_shop_btns { flex-direction: column !important; }
}

/* 글쓰기 배경 */
#bo_w.ace_write_wrap { background: #f6f4f0 !important; }