/* -- 공통 -- */
section {
    padding: var(--section-padding) 0;
}
section:last-child {
    padding-bottom: calc(var(--section-padding) * 2);
}
.sec_header {
    margin-bottom: 70px;
    gap: var(--item-gap-lg);
}
.sec_header .left {
    flex: 1 0 0;
}
.sec_header .sub_title {
    color: var(--gray-500);
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
    margin-bottom: 14px;
}
section.best .sec_header,
section.weddingitem .sec_header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.tab_menu_list {
    margin-top: 50px;
}


/*-- main bnr --*/
/* .home_main {
    margin-bottom: var(--section-padding);
} */
.home_main .inner {
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-auto-rows: min-content;
    row-gap: var(--section-padding);
    column-gap: var(--item-gap-lg);
}
.main_left {
    width: 100%;
    /* height: 660px; */
    aspect-ratio: 1.8 / 1;
    background-color: #e0e0e0;
    border-radius: var(--border-radius);
}
.main_right {
    height: 100%;
}
.main_bottom {
    grid-column: 1 / -1;
}
.main_swiper .swiper_detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
    background: linear-gradient(to right, #0004, #0000);
}
.main_swiper .slide_title {
    color: white;
    font-size: var(--ft44);
}
.main_swiper .slide_desc {
    color: var(--gray-100);
    font-size: var(--ft20);
    font-weight: var(--normal);
} 
.main_swiper .slide_title,
.main_swiper .slide_desc {
    width: 60%;
}

.main_swiper .swiper-bottom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 24px  0  0;
    z-index: 3;
    border-top-right-radius: var(--border-radius);
}
.main_swiper .swiper-bottom-controls::after,
.main_swiper .swiper-bottom-controls::before {
    content: '';
    display: block;
    width: 17px;
    height: 17px;
    background: url('/images/radius_corner.png') no-repeat center / cover;
    position: absolute;
    z-index: 1;
}
.main_swiper .swiper-bottom-controls::before {
    top: 1px;
    left: -1px;
    transform: translateY(-100%);
}
.main_swiper .swiper-bottom-controls::after {
    right: 1px;
    bottom: -1px;
    transform: translateX(100%);
}

.main_swiper .swiper-custom-next,
.main_swiper .swiper-custom-prev {
    aspect-ratio: 1;
    height: 100%;
    background: transparent;
    border: 0;
    box-shadow: unset;
    transform: translateY(0);
    position: static;    
}
.main_swiper .swiper-custom-next:hover,
.main_swiper .swiper-custom-prev:hover {
    background: var(--hover);
} 
.main_swiper .swiper-custom-pagination {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gray-400);
}
.main_swiper .swiper-custom-pagination span {
    color: inherit;
    font-size: var(--ft18);
}
.main_swiper .swiper-custom-pagination span.swiper-pagination-current {
    color: var(--main-ft);
    font-weight: var(--medium);
}



.home_main .card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.home_main .card_img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.home_main .card_detail {
    width: 100%;    
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    background: var(--gray-500);
    backdrop-filter: blur(14px);
    border-radius: var(--border-radius);
    padding: 14px;
   
}
.home_main .card_detail .point_ft {
    font-size: var(--ft60);
    color: var(--primary);
    margin-bottom: 30px;
}
.home_main .card_detail .card_subtitle {
    font-size: var(--ft15);
    margin-bottom: 4px;
    color: var(--gray-200);
}
.home_main .card_detail .card_title {
    line-height: 1.3;
    color: white;
    word-wrap: break-word;
    font-size: var(--ft20);
}

.swip_btn_box {
    height: 60px;
    /* max-width: 400px; */
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.swip_btn_track {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.25);
    position: relative;

}
.swip_btn_box .btn_handle {
    width: 48px;
    height: 48px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    filter: drop-shadow(4px 4px 4px rgb(0, 0, 0, 0.25));
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
}
.swip_btn_box .btn_handle::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: url('/images/icons/support.svg') no-repeat center / 28px 28px;
}
.swip_btn_box p {
    background: linear-gradient(to right, white, #b69494, white) repeat;
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: var(--semi-bold);
    font-size: var(--ft20);
    /* transition: background-position 0.5s ease; */
    animation: gradientmove 1.5s infinite linear ;
}

@keyframes gradientmove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}
/*-- section 1 category --*/
.category_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 100px));
    justify-content: center;
    gap: 50px;
}
.category_item a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}
.category_item .icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(280deg, #f5f5f56b, #f5f5f5);
    box-shadow: 4px 4px 10px #0001, -4px -4px 10px #ffffff55;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s ease;
}
.category_item .icon img {
    width: 70%;
    height: auto;
    aspect-ratio: 1;
    max-width: 44px;
    transform: scale(1) rotate(0deg);
    transition: transform .3s ease;
}
.category_item .icon:hover {
    background-color: var(--hover);
}
.category_item .icon:hover img {
    transform: scale(1.1) rotate(8deg);
}
.category_list h5 {
    font-weight: var(--medium);
}


/*-- section 2 Best  --*/
section.best .primary_btn.line.mo_view {
    display: none;
    margin: 30px auto 0;
}
.sec_2 .prd_card_list {
    display: none;
    grid-template-columns: repeat(4, 1fr);
}
.prd_card_list.show {
    display: grid;
}


/*-- section 3 Wedding Hall  --*/
section.weddinghall .sec_header {
    text-align: center;
}
section.weddinghall .more_btn {
    margin: 70px auto 0;
}
.weddinghall_swiper .swiper-slide {
    width: 1080px;
    /* height: 640px; */
    aspect-ratio: 5 / 3;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: scale(0.7) !important;
}
.weddinghall_swiper .swiper-slide-active {
    transform: scale(1) !important;
}
.weddinghall_swiper .swiper_detail {
    width: 100%;
    height: 100%;
    padding: 48px 44px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: start;
    justify-content: end;
    flex-direction: column;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    color: white;
}
.weddinghall_swiper .swiper-slide-active .swiper_detail {
    opacity: 1;
}

.weddinghall_swiper .swiper_detail p {
    margin-bottom: 6px;
    color: var(--white);
}
.weddinghall_swiper .swiper_detail h3 {
    margin-bottom: 14px;
    color: var(--white);
}

.weddinghall_swiper .swiper-custom-next,
.weddinghall_swiper .swiper-custom-prev {
    background: white;
}
.weddinghall_swiper .swiper-custom-prev {
    /* left: calc(4 * var(--swiper-btn-size)); */
    left: 8%;
  }
  
  .weddinghall_swiper .swiper-custom-next {
    /* right: calc(4 * var(--swiper-btn-size)); */
    right: 8%;
  }
  section.instagram .primary_btn,
  section.weddinghall .primary_btn {
    margin: 60px auto 0;
  }
/*-- section 4 Recommend --*/
section.recommend .sec_header {
    text-align: center;
}
section.recommend .swiper-slide {
    /* width: 400px; */
    min-width: 0;
  }
  .recommend_swiper {
    overflow: visible;
  }


/*-- section 5 Type --*/
.sec_content {
    width: 100%;
}
.weddingtype_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--item-gap-lg);
  }
  
  .weddingtype_item {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  .weddingtype_item:first-child {
    grid-row: span 2;
    grid-column: span 2;
    /* aspect-ratio: auto; */
  }
  
  .weddingtype_item .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .weddingtype_item .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .weddingtype_item .card .text_box {
    position: absolute;
    padding: 32px 40px;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .3s ease;
  }
  .weddingtype_item .card h3 {
    color: white;
  }
  .weddingtype_item .card p {
    color: var(--gray-100);
    font-size: var(--ft18);
    margin-top: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: .3s ease;
  }
  .weddingtype_item .card:hover .text_box {
    background: rgba(0, 0, 0, 0.4);
  }
  .weddingtype_item .card:hover p {
    transform: translateY(0);
    opacity: 1;
  }
  .weddingtype_item .card::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 30%);
  }

/*-- section 6 instagram --*/
.instagram {
    text-align: center;
}
.instagram .sec_header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.instagram .sec_header .btn {
    margin-top: 30px;
}
.swiper.insta_swiper {
    overflow: visible;
}
.insta_card_list .insta_img_card {
    background: var(--bg-light);
    width: 100%;
    aspect-ratio: 1 / 1.2;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ----------------popup------------------- */
.popup {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    display: flex;
    transition: opacity .5s ease;
    pointer-events: none;
}

.popup.show {
    opacity: 1;
    pointer-events: visible;
}

.popup_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.popup_box {
    width: 100%;
    max-width: 1500px;
    position: relative;
    padding: 20px;
}

.popup_con {
    width: fit-content;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.popup_img {
    width: 100%;
    aspect-ratio: 4 / 5;
    /* height: 500px; */
    display: block;
    border-radius: 1px;
}

.popup_bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
}

.popup_bot .checkbox {
    cursor: pointer;
}

.popup_bot label p {
    font-size: var(--d2);
    color: white;
}

.popup_bot .popup_close {
    padding: 5px 12px;
    cursor: pointer;
    font-size: var(--d2);
    color: white;
    position: static;
    margin: 0;
}


.popup_swiper-pagination {
    bottom: 0 !important;
    transform: translateY(calc(100% + 10px));
}

.popup_swiper-pagination .swiper-pagination-bullet {
    background: #f9f8f477;
}

.popup_swiper-pagination .swiper-pagination-bullet-active {
    background: #f9f8f4e1;
}

.popup_img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    overflow: hidden;
}

.popup_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup_slide {
    max-width: 400px;
}

.popup_swiper .swiper-wrapper.center {
    justify-content: center;
}

.popup_swiper .swiper-wrapper {
    display: flex;
}
/* checkbox */
.checkbox {
    display: flex;
    align-items: center;
}
.checkbox span {
    width: 18px;
    height: 18px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkbox input:checked + span {
    background-color: var(--primary);
    border-color: var(--primary);
}
.checkbox input:checked + span::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}


@media (hover: none) and (pointer:coarse) {
    .weddingtype_item .card p {
        margin-top: 10px;
        transform: translateY(0);
        opacity: 1;
      }
      .weddingtype_item .card:hover .text_box {
        background: rgba(0, 0, 0, 0.4);
      }
}

@media all and (max-width: 1600px) {
   
    /* .main_left {
        height: 550px;
    } */
    .weddinghall_swiper .swiper-slide {
        width: 900px;
    }
    .main_swiper .slide_title {
        font-size: var(--ft40);
    }
    .main_swiper .slide_title,
    .main_swiper .slide_desc {
        width: 100%;
    }
    .swip_btn_box {
        height: 46px;
    }
    .swip_btn_box .btn_handle {
        width: 36px;
        height: 36px;
    }
    .swip_btn_box p {
        font-size: var(--ft16);
    }
    .main_swiper .swiper_detail {
        padding: 40px;
    }
    .main_swiper .swiper_detail {
        gap: 20px;
    }
}



@media all and (max-width: 1200px) {
    /* popup */
    .popup_con {
        max-width: 840px;
    }

    .tab_menu_list {
        margin-top: 30px;
    }
    /* 메인 */
    /* .home_main .inner {
        grid-template-columns: 1fr;
    }
    
    .main_right{
        grid-column: 1 / -1;
        order: 2;
    } */
    
    .main_swiper .slide_title {
        font-size: var(--ft32);
    }
    .main_swiper .slide_desc {
        font-size: var(--ft18);
    }
    .main_swiper .swiper_detail {
        padding: 30px;
    }
    .home_main .inner {
        gap: 30px;
    }
   
    .home_main .card_detail br {
        display: none;
    }
    .home_main .card_detail .point_ft {
        font-size: var(--ft56);
    }
    

    /* 카테고리 */
    .category_list {
        gap: 30px;
    }

    /* 웨딩홀 */
    .weddinghall_swiper .swiper-slide {
        width: 700px;
    }
    

    /* 타입 */
    .weddingtype_list {
        gap: 30px;
    }
    .weddingtype_item .card .text_box {
        padding: 24px;
    }
    .weddingtype_item .card p {
        margin-top: 10px;
      }
}
@media all and (max-width: 960px) {
    .home_main .inner {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }
    .main_left {
        aspect-ratio: 1.4 / 1;
    }
}

@media all and (max-width: 900px) {
    section.best .sec_header,
    section.weddingitem .sec_header {
        justify-content: center;
    }
    .sec_header {
        text-align: center;
    }
    /* 메인 */
    .main_left {
        width: 100%;
        height: 100%;
    }
    .main_swiper .swiper-bottom-controls {
        padding: 12px 16px 0 0;
    }
    .main_swiper .swiper-custom-next,
    .main_swiper .swiper-custom-prev {
        width: 40px;
        height: 40px;
    }
    .home_main .card_detail .card_subtitle {
        margin-bottom: 10px;
    }
    .main_swiper .slide_title {        
        font-size: var(--ft28);
    }
   
    .home_main .card_detail .card_title {
        font-size: var(--ft22);
    }

 
    .main_swiper .swiper_detail {
        gap: 10px;
    }
    /* 카테고리 */
    .category_list {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0;
    }
    .category_item {
        padding: 30px;
    }
    .category_list h5 {
        font-size: var(--ft16);
    }
    .sec_2 .prd_card_list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 웨딩홀 */
    .swiper.weddinghall_swiper {
        overflow: visible;
    }
    .weddinghall_swiper .swiper-slide {
        transform: scale(1) !important;
    }
    .weddinghall .inner {
        padding: 0 20px;
    }
    .weddinghall_swiper .swiper-custom-prev {
        left: -10px;
     }
     .weddinghall_swiper .swiper-custom-next {
        right: -10px;
     }
    
     /* 타입 */
     .weddingtype_list {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .weddingtype_item .card .text_box {
        padding: 20px;
    }
    .weddingtype_item .card p {
        font-size: var(--ft16);
        margin-top: 14px;
    }
    .weddingtype_item .card p br {
        display: none;
    }
    /* insta */ 
    section.instagram .sec_content .inner.container-sm {
        padding: 0;
    }
    /* tab메뉴 */
    .tab_menu_list {
        flex-wrap: wrap;
        justify-content: center;
    }
    /* 더보기버튼 */
    section.best .primary_btn.line.pc_view {
        display: none;
    }
    section.best .primary_btn.line.mo_view {
        display: flex;
    }
    section.instagram .primary_btn,
    section.weddinghall .primary_btn {
        margin-top: 30px;
    }
  

}
@media (max-width: 840px) {
    
    /* popup */
    .popup_box {
        width: calc(100% - 40px);
        padding: 14px;
    }

    .popup_con {
        width: 100%;
        max-width: 400px;
    }

    .popup_slide {
        max-width: unset;
    }   
}

@media all and (max-width: 600px) {
   
    .sec_header {
        margin-bottom: 40px;
    }
    .sec_header .sub_title {
        margin-bottom: 10px;
    }
    .swip_btn_box {
        height: var(--btn-height);
    }
    .swip_btn_box .btn_handle {
        width: 40px;
        height: 40px;        
    }
    .main_swiper .swiper_detail {
        padding: 30px;
        padding-bottom: 100px;
        gap: 14px;
    }
    .main_swiper .slide_title {        
        font-size: var(--ft26);
    }
    .main_swiper .slide_desc {
        font-size: var(--ft18);
    }
    .main_swiper .slide_title,
    .main_swiper .slide_desc {
        width: 90%;
    }
    .main_swiper .swiper-custom-next,
    .main_swiper .swiper-custom-prev {
        width: 36px;
        height: 36px;
    }
    .swiper-custom-prev::after,
    .swiper-custom-next::after {
        mask-size: 20px;
    }
    .main_swiper .swiper-custom-pagination span {
        font-size: var(--ft16);
    }
     .home_main .card_detail .point_ft {
        font-size: var(--ft36);
    }
    .home_main .card_detail .card_title {
        font-size: var(--ft22);
    }
    
    .home_main .inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .main_left {
        aspect-ratio: 1;
    }
    .main_right {
        order: 2;
    }



    /* 카테고리 */   
     .category_item {
        padding: 12px;
    }
    .category_item .icon img {
        width: 50%;
        height: auto;
        aspect-ratio: 1;
    }
    .category_list h5 {
        font-size: var(--ft14);
    }
    /* 웨딩홀 */
    .weddinghall_swiper .swiper-slide {
        aspect-ratio: 1;
     }
     .weddinghall_swiper .swiper_detail {
        padding: 32px;
     }
   
    
    .weddingtype_item:first-child {
        aspect-ratio: 2 / 1;
        grid-row: span 1;
    }
}