﻿/*메인*/
#dimodePage { display: block !important; }
.main-section1, .main-section2, .main-section3, .main-section4, .main-section5, .main-section6 { overflow: hidden; }

@keyframes aaa {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bbb {
    from { top: -10px }
    to { top: -2px; }
}

@keyframes ccc {
    from { left: -5px }
    to { left: 5px; }
}

a { color: black; text-decoration: none; transition: transform all .3s linear; }
a:hover { color: black; text-decoration: none; }
#main { width: 100%; height: 100%; /*background-color: red;*/ }
#section { /*font-family: 'Noto Sans KR', sans-serif;*/ font-family: NanumSquare, sans-serif; width: 100%; margin: 0 auto; overflow: hidden; }
.mainContainer { width: 100%; margin: 0 auto; padding: 4% 15%; box-sizing: border-box; background-color: white; }

/*슬라이더*/
#main { margin-top: 100px; }
#main .dimode-slider .slider-dots { bottom: 50px; }
#main .dimode-slider .slider-dots .each-dot { margin: 0 5px; height: 16px; width: 16px; }
#main .dimode-slider .slider-dots .each-dot.active { width: 42px; border-radius: 10px; background: black; border: 1px solid black; }
#main .dimode-slider .slider-wrapper .slick-list .slick-track .slide > div > h1 { font-size: 4.2vw; padding-top: 7%; letter-spacing: 3px; font-weight: bold; text-align: left; font-family: ui-sans-serif; }
#main .dimode-slider .slider-wrapper .slick-list .slick-track .slide { width: 100% !important; }
.move-btn { background: none !important; top: 44% !important; }
.next-btn { right: 5% !important; }
.prev-btn { left: 5% !important; }

/*맨 처음 흰 부분*/
.sermon { padding: 0%; }
.sermon-center { width: 100%; padding: 30px 0% 0; text-align: center; height: 0; padding-top: calc(450 / 1500* 100%); position: relative; }

.today_sermon { background: url(../../../Layouts/jembrace_Layout/Images/2_sermon_bg.jpg) no-repeat; background-size:cover !important; display: flex; justify-content: center; align-items: center; top: 0; left: 0; position: absolute; width: 100%; height: 100%; padding: 5%; }
.today_sermon > div { display: flex; justify-content: center; align-content: flex-start; height: fit-content; flex-wrap: wrap; }
.today_sermon > div > div:nth-child(1) { width: 12vw; height: auto; margin-right: 100px; }
.today_sermon > div > div:nth-child(2) { width: 44vw; height: auto; margin: 10px; display: flex; flex-wrap: wrap; align-content: flex-end; }
.today_sermon > div > div:nth-child(2) > div:first-of-type { width: 100%; height: 56%; margin: 0px; background: url(../../../Layouts/jembrace_Layout/Images/1.thumb_1.png) round; display: flex; flex-wrap: wrap; align-content: flex-end; }
.sermonbar { width: 100%; height: 40%; background-color: #4F7DDD; border: 1px solid white; display: table; }
.today_sermon > div > div:nth-child(3) { width: 44vw; height: auto; margin: 10px; display: flex; flex-wrap: wrap; align-content: flex-end; }
.today_sermon > div > div:nth-child(3) > div:first-of-type { width: 100%; height: 56%; margin: 0px; background: url(../../../Layouts/jembrace_Layout/Images/1.thumb_2.png) round; display: flex; flex-wrap: wrap; align-content: flex-end; }
.today_sermon > div:first-child > div > h2 { margin-bottom: 40px; font-size: 50px }
.today_sermon > div:first-child > div > p { font-family: 'Noto Sans KR', sans-serif; font-weight: bold; color: #4A78DB; font-size: 20px }

.sb-1 { text-align: left; /*padding: 85px 7%*/; color: black; line-height: 3; flex-direction: column; font-weight: bold; }
.lineheight0 { line-height: inherit; }
.sb-1 > a { color: black; }
.sb-1 h4 { font-size: 20px; font-weight: bold; }
.sb-1 h4.sermon-title { border-bottom: 1px solid; width: fit-content; padding-bottom: 10px; }
.sb-1 h2 { font-size: 35px; margin: 2.3vw 0 1vw; font-weight: bold; word-break: keep-all; }
.sb-1 p { font-size: 18px; }
.sb-2 { text-align: left; /*padding: 3%;*/ color: white; line-height: 0; }
.sb-2:hover { animation: aaa 0.7s alternate 1; animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.sb-3 { align-items: center; justify-content: flex-end !important; /*padding-right: 7%;*/ }
.sb-3 > a { display: block; position: relative; transition: all 0.3s ease-out; /*width: 155px;*/ width: 48%; height: 155px; margin: 1%; }
.sb-3 > a > p { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 22px; line-height: 1.2; font-weight: bold; color: white; width: 100%; }
.sb-3 > a:nth-of-type(1) { background-color: #3E64AD; }
.sb-3 > a:nth-of-type(2) { background-color: #8BB454; }
.sb-3 > a:nth-of-type(3) { background-color: #3E64AD; }
.sb-3 > a:nth-of-type(4) { background-color: #8BB454; }
.sb-3 > a:nth-of-type(1) > p { color: white; }
.sb-3 > a:hover { transform: scale(1.05); z-index: 2; }

/*예배안내 등 아이콘 부분  */
.info { background: url(../../../Layouts/jembrace_Layout/Images/3_quick_bg.jpg) no-repeat; width: 100%; height: auto; text-align: center; color: white; }
.info > h2 { font-size: 37px; margin-bottom: 2%; }
.info > p { font-size: 19px; line-height: 1.7; }
.info-icon { position: relative; display: flex; flex-wrap: nowrap; justify-content: center; }
.info-icon > a { background: url(../../../Layouts/jembrace_Layout/Images/4_box.png) no-repeat; width: 100%; height: auto; margin: 1%; padding: 3% 1%; }
.info-icon > a:hover > img { }
.info-icon p { font-size: 15px; color: #747474; }
.info-icon h3 { font-size: 24px; font-weight: bold; }
.info .info-circle {  width: 8vw; height: 8vw; position: relative; margin: auto; border: 1px solid #fff; border-radius: 100%; }
.info a:hover .info-circle { background: url(../../../Layouts/jembrace_Layout/Images/3_circle_on.png) no-repeat; background-size: contain; background-position: center; }
.info .info-circle img { position: absolute; top: 50%; transform: translate(-50%, -50%); left: 50%; }
.margin015 { margin: 0 15px; width: 10%; }
.margin015 > a > img { width: 125px; margin-bottom: 40px; }
.margin015 > a > p { color: white; font-weight: bold; font-size: 20px; white-space: nowrap; margin-top: 30px; }
.margin015:hover { transform: translateY(-10px); transition: all 0.3s ease-out; }

/*교육 부분*/
.education { width: 100%; height: auto; padding: 3.3% 0; text-align: center; color: white; position: relative; display: flex; flex-wrap: nowrap; }
.education .flex { text-align: left; margin-left: 200px; margin-top: 150px; }
.education .flex h1 { margin: 0px 0px 70px 0px; font-size: 2.5rem; }
.education hr { width: 15%; z-index: 3; position: relative; }
.education h3 { font-size: 25px; line-height: 1.3; z-index: 3; color: white; position: relative; margin-top: 50px; margin-bottom: 114px; }
.education p { font-size: 23px; z-index: 3; position: relative; color: white; }
.education .education-right > div { width: 820px; }
.education .education-right > div > div { margin: 8px -7px; }
perwidth { width: 25.333333% !important; }
.education-left { height: 100%; background: url(../../../Layouts/jembrace_Layout/Images/4_ng_bg.jpg) no-repeat; width: 100%; position: absolute; top: 0; left: 0; }
.education-right { display: flex; align-items: center; }
.education-icon a p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.education-icon a:hover p { font-size: 25px; transition: all 0.2s ease-out; }
.mainContainer.education { padding: 0; height: 0; padding-top: calc(650/1920* 100%); }
.education-button { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.education-button > a { width: 16%; }
.education-button > a > div { position: relative; padding: 0 15px; text-decoration: none; transition: .9s; }
.education-button > a > div > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color:#fff;white-space:nowrap;}
.education-button > a > div:hover { top: -15px; }

/*갤러리 부분*/
.gallery { width: 100%; height: auto; padding: 0.3% 0; color: white; position: relative; display: flex; flex-wrap: nowrap; background-color: #ebebeb; min-height: 600px; }
.gallery > div > h1 { color: black; margin: 80px 0px 30px 0px;font-weight:bold; }
.gallery > div > h1 > span { color: #979797; font-weight: 100; font-size: 33px; }
.galleryheight { /*height: 55vh;*/ }
.paddingno { padding-right: 0px !important; padding-left: 0px !important; }
.photo a img { background-position: 50%; width: 330px; height: 200px; background-size: cover; box-shadow: 0 6px 10px rgba(0,0,0,0.22); }

.photo p { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; color: white; font-size: 20px; }
.photo a { display: block; }
.photo a:hover p { display: block; }
.photo a:hover img { filter: brightness(0.7); transition: all 0.2s ease-out; }

@media(min-width:768px) {
    .mainContainer { padding: 4% calc(50vw - 375px); }
}

@media(min-width:992px) {
    .mainContainer { padding: 4% calc(50vw - 485px); }
}

@media(min-width:1200px) {
    .mainContainer { padding: 4% calc(50vw - 585px); }
}

@media(min-width:1450px) {
    .container { width: 1450px; }
    .mainContainer { padding: 4% calc(50vw - 725px); }
}

@media(max-width:1550px) {
    p { font-size: 1.2rem !important; }
    .sermon-icon h4 { font-size: 1.2vw; }

    .education .flex { margin-left: 7vw; margin-top: 5vw; }
    .education .education-right > div { width: 53vw; }
    .photo a img { width: 250px; height: 190px; }
    .gallery { min-height: 500px; }
}

@media(max-width:1199px) {
    .sb-3 { /*padding-right: 5%; */ }
    .info-icon { padding: 2%; }

    .sb-3 > a { width: 10vw; height: 10vw; }
    .info-icon p { word-break: keep-all; }

    .education h1 { font-size: 30px; }
    .education h3 { font-size: 22px; }

    .photo a img { width: 200px; height: 170px; }
}

@media(max-width:991px) {
    h3 { font-size: 2.5vw !important; }
    p { font-size: 0.9rem !important; }
    .sermon-bottom p { font-size: 1vw !important; }
    .margin015 > a > img { margin-bottom: 20px; }
    .sb-3 > a { width: 8vw; height: 8vw; }
    
    .info .info-circle img {width:80%;}

    .education { padding: 3% 5%; }
    .education h1 { font-size: 25px; }
    .education h3 { font-size: 18px !important; margin-bottom: 54px; }
    .education .flex { margin-left: 4vw; margin-top: 3vw; }
    .mainContainer.education { padding-top: 0; height: auto; }
    .education-left { position: relative; top: unset; left: unset; padding-top: 20px; padding-bottom: 20px; }
    .education-button > a {width:30%;}
    .education .flex h1 { margin: 0px 0px 40px 0px; }

    .photo.flex > div { width: 50%; padding: 10px; }
    .photo a img { width: 340px; }
    .gallery { min-height: 630px; }
}

@media(max-width:769px) {
    #main {margin-top:60px;}
    .slider .move-btn { display: none; }
    #main .dimode-slider .slider-dots { display: none; }

    p { font-size: 2.8vw !important; }
    h2 { font-size: 1.1rem !important; }
    h3 { font-size: 1.0rem !important; }
    .sermon-center p { font-size: 2.4vw !important; }
    .today_sermon { flex-wrap: wrap; background-size: auto 92vw;padding:2%;position:relative;top:unset;left:unset; }
    .today_sermon > div { width:50%;}
    .sb-1 h4 {font-size:13px;white-space:nowrap;}
    .sb-3 { width: 100% !important; justify-content: center !important; }
    .sermon-icon { flex-wrap: wrap; justify-content: center; }
    .sermon-center { background-position: bottom; background-size: auto 150vw; padding-top: unset; height:auto; }

    .info { background-size: auto 200vw; background: #9d8c70; }
    .info-icon { flex-wrap: wrap; }
    .education { flex-wrap: wrap; }
    .education > a { background-position: 50% 50%; width: 50%; }
    .sb-2 img { max-width: 19vw; padding: 10%; }
    .sb-1 { padding: 5% 7%; }
    .sb-3 { padding-right: 10%; }
    .sb-3 > a { width: 15vw; height: 15vw; }

    .info .margin015 { margin: 0;width:25%; }
    .margin015 > a > p { margin-top: 10px; }
    .info { padding: 3% 0; }

    .mainContainer.education { padding: 0; height: auto; }
    .education .education-right > div { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; }
    .education-right { padding: 5% 0 0; }
    .education-icon > div { width: 33.33%; }
    .education-button > a { width: 33%; margin-bottom: 2%; }
    .education .flex h1{margin-bottom:20px;}
    .education-left { position: relative; top: unset; left: unset; padding-top: 20px; padding-bottom: 20px; }
    .education .flex h1{font-size:1.5rem;}
    .education-button > a > div > span { font-size: 13px; }

    .photo a img { width: calc(50vw - 35px); }
    .gallery > div > h1 { margin: 40px 0px 30px 0px; }
    
}

@media(max-width:440px) {
    .sermon-center p { font-size: 3vw !important; }
    #main .dimode-slider .slider-dots { bottom: 2vw; }
    .move-btn { display: none; }
    .info { background-size: auto 400vw; }
    .info-icon { padding: 2% 10%; }
    .education > a { width: 100%; }

    .sb-3 { padding-bottom: 10%; }
    .sb-2 { padding: 0 0 9%; }
    .sb-2 img { padding: 0%; }

    .education-icon > div { width: 50%; }

    .photo a img { width: 100%; }
    .photo.flex > div { width: 100%; }
}
