/* index page styles extracted from the PHP template. */

.top-ad-padding{padding:15px;}
.top-ad-padding img{width:100%; padding:2px;}
.col-md-2{padding:0;}
@media only screen and (max-width: 767px){
    .top-ad-padding{padding:10px 30px 0;}
}

.myframe{ min-height:260px;}
@media only screen and (max-width: 767px){
    .myframe{ min-height:484px;}
}

.shorts_scroll {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 0;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shorts_scroll::-webkit-scrollbar {
  display: none;
}
.shorts_page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.short_item {
  min-width: 0;
}
.short_item .card,
.short_item .h-100,
.short_item .product-item {
  height: 100%;
}
.short_item .card {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.short_item .product-item__image2,
.short_item__link {
  position: relative;
  display: block;
  transition: none !important;
}
.short_item .card-img-top {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  transform: none !important;
  transition: none !important;
}
.short_item__overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px 10px 10px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0));
  transform: none !important;
  transition: none !important;
}
.short_item__title {
  margin-bottom: 0;
  width: 100%;
  color: #fff;
  font-size: 1.1em !important;
  font-weight: 700;
  line-height: 1.35 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transform: none !important;
  transition: none !important;
}
@media only screen and (max-width: 767px){
  .shorts_scroll {
    gap: 6px;
    padding-bottom: 0;
    scroll-snap-type: x proximity;
  }
  .shorts_page {
    display: contents;
  }
  .short_item {
    flex: 0 0 calc((100% - 18px) / 2.2);
    min-width: calc((100% - 18px) / 2.2);
    scroll-snap-align: start;
  }
  .short_item__overlay {
    padding: 20px 8px 8px;
  }
  .short_item__title {
    font-size: 1.1em !important;
    line-height: 1.25 !important;
  }
}

.show-toggle {
            background-color: #000;
            color: white;
            padding: 5px 120px;
            border-radius: 20px;
            cursor: pointer;
            border:1px solid #666;
            font-size: 14px;
            color:#FFF;
            display: block; /* 버튼을 블록 요소로 만들어 내용과 함께 내려가게 함 */
        }
        .show-toggle:hover {
            background-color: #333;
        }
        .extra-content {
            width:100%;
            display: none;
        }

.layui-btn-primary{#FFF !important;}
        .layui-btn-primary:hover{#FFF !important;}
        .layui-tab-title{white-space: unset; border:none; text-align: center; color:#FFF;}
        .layui-tab-brief > .layui-tab-title .layui-this{color:#FFF;}
        .layui-tab-brief > .layui-tab-title .layui-this::after, .layui-tab-brief > .layui-tab-more li.layui-this::after{border-color: #FF0000;}

.test{ display:flex; flex-wrap: wrap; justify-content: space-between; padding:0 0 20px 0;}
                .test li{width: 25%; padding:0 10px;}
                .test li img{width:100%; max-height:198px; border-radius: 5px;}
@media (max-width: 750px) {
                .test{ display:flex; flex-wrap: wrap; justify-content: space-between; padding:20px 10px;}
                .test li{width: 50%; padding:0 10px;}
                .test li img{width:100%; max-height:198px; border-radius: 5px;}

}

.demo-tab-header .layui-btn{color: #FFF;}
.demo-tab-header .layui-btn:hover{border-bottom:2px solid #FF0000;}
.demo-tab-header .layui-btn.layui-this{border-bottom:2px solid #FF0000;}

.demo-tab-body>div{display: none;}

html, body {
    overflow-x: hidden;
}
html.popup-scroll-lock,
body.popup-scroll-lock {
    overflow: hidden;
    overscroll-behavior: none;
}
.mobileset{display:flex; width:100%; margin-bottom: 60px; overflow-x: auto; margin:15px;}
.plus-mobileset{
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-left:0; margin-right:0;
}
.plus-mobileset::-webkit-scrollbar{
    display:none;
}
.yako-recommend-title{
    margin-top:10px;
}
.yako-recommend-desc{
    width:100%;
    margin:0 8px 18px 8px;
    color:#EEE;
    line-height:20px;
    font-size:1em;
}
.yako-recommend-set .card{
    background:transparent;
    border:0;
    box-shadow:none;
}
.yako-recommend-set{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    max-width:100%;
    overflow:visible;
    margin-bottom:25px;
}
.yako-recommend-set::-webkit-scrollbar{
    display:none;
}
.yako-recommend-item{
    flex:0 0 25%;
    max-width:25%;
    width:25%;
    margin-bottom:30px;
    padding-left:10px;
    padding-right:10px;
}
.shorts-before-recommend .mbkor{
    --mbkor-gap:10px;
}
@media (min-width: 751px) {
    .yako-recommend-wrap{
        padding-left:0 !important;
        padding-right:0 !important;
    }
    .yasmall-recommend-wrap{
        padding-left:15px !important;
        padding-right:15px !important;
    }
}
.gotitle{color:#FF0000; text-align:left; width:100%; margin:0 8px 0px 8px;}
.yako.gotitle{color:#FF0000; text-align:left; width:100%; margin:0 8px 0px 8px;}
.gohr{width:99%; display:block;height:2px; background:#333; margin-bottom:65px;}
.short_title{ margin-left:0px !important;}

@media (max-width: 750px) {
.gotitle{color:#FF0000; text-align:left; width:100%; margin:8px 16px !important;}
.yako.gotitle{color:#FF0000; text-align:left; width:100%; margin:8px 16px 14px !important;}


.shorts-before-recommend .mbkor{
    --mbkor-gap:0;
}
.mbkor{
    --mbkor-title-left:20px;
    --mbkor-title-right:10px;
    margin-left:0 !important;
    width:100% !important;
}
.mbkor > div:first-child{
    margin:10px 0 0 12px !important;
}
.mbkor .gotitle{
    width:calc(100% - var(--mbkor-title-left, 20px) - var(--mbkor-title-right, 10px)) !important;
    margin:5px 17px !important;
    box-sizing:border-box;
    overflow-wrap:break-word;
    word-break:keep-all;
}
.yako-recommend-desc{
    width:calc(100% - var(--mbkor-title-left, 20px) - var(--mbkor-title-right, 10px)) !important;
    margin:5px 15px !important;
    padding:0 2px !important;
    /*line-height:18px !important;*/
    box-sizing:border-box;
}
.gohr{width:99%; display:block;height:2px; background:#333; margin-bottom:30px;}

    .mobileset{display:flex; gap:6px; width:100%; overflow-x:scroll; margin:0 0 25px 0;}
    .recommend-match-list{
        flex-wrap:nowrap;
        overflow-x:auto;
        overflow-y:hidden;
        margin-bottom:25px;
        -webkit-overflow-scrolling:touch;
        -ms-overflow-style:none;
        scrollbar-width:none;
    }
    .recommend-match-list::-webkit-scrollbar{
        display:none;
    }
    .recommend-match-list > .col-12{
        flex:0 0 100%;
        max-width:100%;
        width:100%;
    }
    .recommend-inline-scroll,
    .yako-recommend-set,
    .yasmall-recommend-set{
        display:flex;
        flex-wrap:nowrap;
        gap:6px;
        overflow-x:auto;
        overflow-y:hidden;
        width:100%;
        margin-bottom:25px;
        -webkit-overflow-scrolling:touch;
        -ms-overflow-style:none;
        scrollbar-width:none;
    }
    .recommend-inline-scroll::-webkit-scrollbar,
    .yako-recommend-set::-webkit-scrollbar,
    .yasmall-recommend-set::-webkit-scrollbar{
        display:none;
    }
    .recommend-inline-item,
    .yako-recommend-set .recommend-inline-item,
    .yasmall-recommend-set .recommend-inline-item{
        flex:0 0 calc(100% - 26px);
        max-width:calc(100% - 26px);
        width:calc(100% - 26px);
        margin-bottom:0;
        padding-left:0;
        padding-right:0;
    }
    .yako-recommend-set .recommend-inline-item,
    .yasmall-recommend-set .recommend-inline-item{
        padding-left:0 !important;
        padding-right:0 !important;
    }
    .yasmall-recommend-title{
        margin:5px 0 5px 6px !important;
    }
    .plus-mobileset:not(.yako-recommend-set) > .cus-xl-3{
        flex:0 0 calc(100% - 26px);
        max-width:calc(100% - 26px);
        width:calc(100% - 26px);
    }
    .plus-mobileset:not(.yako-recommend-set) > .cus-xl-3{
        padding-left:0 !important;
        padding-right:0 !important;
    }
    .plus-mobileset:not(.yako-recommend-set) .card-title{
        display:block;
        max-width:100%;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
            #layui-layer1{width:100% !important;}
            .mobile-fixed-popup{
                top:0 !important;
                left:0 !important;
                width:100% !important;
                max-width:100% !important;
                height:var(--popup-viewport-height, 100vh) !important;
                border-radius:0;
            }
            .mobile-fixed-popup .layui-layer-content{
                height:calc(var(--popup-viewport-height, 100vh) - 52px) !important;
                max-height:calc(var(--popup-viewport-height, 100vh) - 52px) !important;
                overflow-y:auto !important;
                -webkit-overflow-scrolling:touch;
                overscroll-behavior:contain;
                padding-bottom:calc(15px + env(safe-area-inset-bottom));
                box-sizing:border-box;
            }
            .mobile-fixed-popup .dropdown-custom{
                min-height:100%;
                box-sizing:border-box;
            }
            .mm{margin-top:15px;}
        }
        .layui-layer{
            border:1px solid #1e2026;
            background:#1e2026;
            /*height:100% !important;*/
        }
        .layui-layer-title{
            color:#FFF;
            font-size:1.1em;
            font-weight:700;
            background:#1e2026;
            border-bottom:1px solid #333;
        }
        .layui-layer-setwin{
            top:10px;
        }
        .contact-card{
            background:transparent;

        }
        .card-body{
            padding:0px;
            padding-top:20px;
        }
        .contact-card .cp-img{
            margin:0;
        }
        .card-footer{
            background:transparent;
            border:none;
            color:#FFF;
            padding:10px 5px 20px 5px;
        }
        .contact-card .cp-img img{
            width:120px;
            height:120px;
        }
        .contact-card{
            cursor:pointer;
        }
        .contact-card:hover,.contact-card.on{
            background:red;
        }
        .taglist{margin-bottom:10px;}
        .taglist h2,.taglist li{
            color:#FFF;
            background: #333;
            cursor:pointer;
            border-radius:2px;
            padding:0 12px;
        }
        .taglist h2.on,.taglist li.on{
            background:red;
        }
        .taglist h2{
            font-weight:700;
            font-size:1em;
            line-height:22px;
            margin-right:10px;
            min-width:70px;
            text-align:center;
        }
        .taglist li{
            margin:0 2px 4px;
        }
        .taglist h2:hover, .taglist li:hover{
            background:red;
        }
/* 列表翻页 */
.pagination{ padding: 2px; margin-right: 16px;}
.pagination ul li{padding:10px; background:#111;}
.pagination ul li span{ line-height: 20px; color: #CCC; list-style-type: none; background-color: #FFF; padding: 5px 10px; margin: 0px 2px; border: solid 1px #F7F7F7; border-radius: 5px;}
.pagination ul li a span , .pagination ul li a:visited span{ color: #777; border-color: #F7F7F7;}
.pagination ul li a:hover span, .pagination li a:active span{ color: #000; background-color: #F7F7F7; padding: 6px 11px; border: none;}
.pagination ul li span.currentpage{ color:#FFF; font-weight: bold; background-color: #3A557D; padding: 6px 11px; border: none;}
.layui-laypage-curr{border:none !important;}
.layui-laypage-em{background:#FFF !important;}
.layui-laypage-curr em{
    font-weight:700 !important;
 color:#000 !important;
}
.layui-laypage-molv a{
    background:#333;
    border:1px solid #333;
    border-radius:2px;
    color:#FFF;
    font-weight:700 !important;
}
.layui-laypage-next, .layui-laypage-prev{border:1px solid #333 !important; color:#FFF !important;}
.layui-laypage-molv span,.layui-laypage-molv a{
    margin:1px 0;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em{
    padding:0;
}
.wp100{ width:85%;}
@media (max-width: 1400px) {
.wp100{ width:79%;}

}
.poplist{
     width:20%; padding:10px;
}
.layui-layer i.layui-icon{top:0;}
.card-title{
    margin-bottom:0;
}
.product-desc-price{
    color:#666 !important;
}
@media only screen and (max-width: 767px){
    .short_title{ margin-left:0 !important; margin-top:20px !important;}
    .is-mobile-nav {
      /*overflow: hidden;overflow-x:auto;white-space: nowrap; width:100%;
      flex-wrap:nowrap;*/
      margin:0 auto;
      text-align:center;
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
    }
    .is-mobile-nav li{
        margin-bottom:5px;
    }
    .project-subtap .nav-item a{
        margin:0 2px;
    }
    .poplist{
     width:50%; padding:10px;
    }
    .taglist{
        display:block !important;
    }
    .poplist{
     width:50%; padding:10px;
    }
    .taglist h2{
        width:62px;
        margin-bottom:2px;
        background:#000;
    }
    .taglist li{
        margin:2px 2px 0 0;
    }
    .taglistmobile{
/*        margin-top:5px;*/
    }
    .product-item .card-body.pb-25{
    }
}
