@import url("sub.css");



.gallery .flex {
	flex-direction: row;
    flex-wrap: wrap;
}
.gallery .flex > div {
    max-width: calc(33.333% - 27px);
    margin-right: 40px;
    margin-bottom: 40px;
}
.gallery .flex > div:nth-child(3n) {
	margin-right: 0;
}
.gallery .flex > div .box {
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}
.gallery .flex > div .thumb button {
    position: relative;
    display: block;
    text-align: left;
    height: 0;
    overflow: hidden;
    padding-bottom: 56%;
}
.gallery .flex > div .thumb img {
	width: 100%;
}
.gallery .flex > div.h70 .thumb img {
	margin-top: -70%;
}
.gallery .flex > div.h60 .thumb img {
	margin-top: -60%;
}
.gallery .flex > div.h50 .thumb img {
	margin-top: -50%;
}
.gallery .flex > div .thumb .text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 3, 81, 0.5);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    padding: 20px;
    font-family: 'GmarketSans';
    box-sizing: border-box;
}



.modal .close {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 30px;
    z-index: 1;
    transform: translateX(-50%);
}
.modal .modal-content {
    overflow-y: auto;
    background: transparent;
    padding: 0;
    max-width: 1560px;
    max-height: 90%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.modal .modal-content::-webkit-scrollbar {
    display: none;
}
.modal .video {
    position: relative;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding-top: 80px;
    box-sizing: border-box;
}
.modal .video .slick {
    position: static;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.modal .video .slick-slide {
    position: relative;
    height: 70vh;
}
.modal .video .slick-slide iframe {
    display: block;
    width: 100%;
    height: 70vh;
}
.modal .video .slick-slide img {
    height: 80vh;
    margin: 0 auto;
}
.modal .video .slick-prev {
    background: url("../images/arrow-left-white.svg")no-repeat 50% 50% / 100%;
    width: 30px;
    height: 60px;
    left: 0;
}
.modal .video .slick-next {
    background: url("../images/arrow-right-white.svg")no-repeat 50% 50% / 100%;
    width: 30px;
    height: 60px;
    right: 0;
}
.modal .video .slick-prev:before,
.modal .video .slick-next:before {
    display: none;
}
.modal .video .slick-dots {
    position: static;
    margin-top: 15px;
    margin-bottom: 10px;
}
.modal .video .slick-dots li {
    width: 50px;
    height: 15px;
}
.modal .video .slick-dots li button {
    width: 50px;
    height: 5px;
    background: linear-gradient(0deg, #FFFFFF, #FFFFFF), linear-gradient(0deg, #FFFFFF, #FFFFFF), #FFFFFF;
    opacity: 0.5;
}
.modal .video .slick-dots li.slick-active button {
    opacity: 1;
}
.modal .video .slick-dots li button:before {
    display: none;
}
.modal .brochure .thumb {
    text-align: center;
}
.modal .brochure .thumb img {
    width: 100%;
    max-width: 550px;
}
.modal .brochure a {
    display: block;
    width: 100%;
    max-width: 550px;
    height: 70px;
    line-height: 70px;
    margin: 50px auto 30px;
    text-align: center;
    font-size: 20px;
}
.modal .slick-slide.brochure a img {
    position: static!important;
    width: 22px!important;
    height: auto!important;
    display: inline-block;
    vertical-align: -1px;
}




@media screen and (max-width: 1140px){
    .gallery .flex > div {
        margin-right: 20px;
        margin-bottom: 20px;
        max-width: calc(33.333% - 14px);
    }
    .gallery .flex > div .thumb .text {
        font-size: 14px;
        padding: 10px;
    }


    .modal .close {
        width: 25px;
    }
    .modal .video {
        padding-top: 60px;
    }
    .modal .video .slick-slide {
        min-height: auto;
    }
    .modal .video .slick-slide iframe {
        height: 60vh;
    }
    .modal .video .slick-prev,
    .modal .video .slick-next {
        width: 20px;
        height: 45px;
        z-index: 1;
    }
    .modal .video .slick-dots li {
        width: 40px;
        height: 10px;
    }
    .modal .video .slick-dots li button {
        width: 40px;
        height: 7px;
        padding: 0;
    }
}
@media screen and (max-width: 768px){
    .gallery .flex > div {
        max-width: calc(50% - 10px);
    }
    .gallery .flex > div:nth-child(3n) {
        margin-right: 20px;
    }
    .gallery .flex > div:nth-child(2n) {
        margin-right: 0;
    }


    .modal .video .slick {
        width: 88%;
    }
    .modal .video .slick-prev, 
    .modal .video .slick-next {
        width: 15px;
        height: 35px;
    }

    .gallery .flex > div .modal .video .slick-slide img {
        width: 100%;
        height: auto;
    }
    .gallery .flex > div.h50 .modal .video .slick-slide img,
    .gallery .flex > div.h60 .modal .video .slick-slide img,
    .gallery .flex > div.h70 .modal .video .slick-slide img {
        width: auto;
        height: 70vh;
    }
}
@media screen and (max-width: 480px){
    .gallery .flex {
        display: block;
    }
    .gallery .flex > div {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }
}