@charset "utf-8";

/* modal */
/* .ws-modal-open,
.ws-modal-open body { overflow: hidden; } */

.ws-modal-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: 100%; overflow: hidden; background: rgba(0,0,0,.7); opacity: 0; transition: opacity 0.25s ease;}
.ws-modal-wrap.ws-modal-visible { opacity: 1; }
.ws-modal-wrap.ws-modal-leave { opacity: 0; }

.ws-modal-outer {position:relative; flex:0 0 auto; width:100%; max-height:100%; padding:20px; overflow:auto; -ms-overflow-style:none;/* IE and Edge */ scrollbar-width:none;/* Firefox */}
.ws-modal-outer::webkit-scrollbar {display:none;}

.ws-modal-inner { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; background: #fff; overflow: hidden; opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s; padding: 40px; border-radius: 16px; }
.ws-modal-wrap.ws-modal-visible .ws-modal-inner { opacity: 1; transform: scale(1); }
.ws-modal-wrap.ws-modal-leave .ws-modal-inner { opacity: 0; transform: scale(0.85); transition-delay: 0s; }
.ws-modal-close { display: inline-block; width: 48px; height: 48px; background: url(../images/sub/modal-close.png) center no-repeat; background-size: contain; border: none; position: absolute; right: 20px; top: 20px; }

/* 기부자 예우 */
.ws-donate-tt { font-size: var(--font-size24); font-weight: 400; line-height: 1.5em; padding: 70px 0 40px; text-align: center; }
.ws-donate-tt strong { color: #121212; font-weight: 600;}

/* 기부자 예우 카드 */
.ws-donate-cards { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.ws-donate-card { flex: 1 1 calc(50% - 10px); display: flex; flex-direction: column; align-items: center; background: #f9f9f9; border-radius: 16px; text-align: center; padding: 30px; }
.ws-donate-num { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 700; line-height: 1em; margin-bottom: 18px; }
.ws-donate-card-tit { font-size: var(--font-size20); font-weight: 700; color: #121212; line-height: 1.4em; margin-bottom: 8px; }
.ws-donate-card-txt { line-height: 1.62em; }
.ws-donate-note { margin-top: 15px; }
.ws-donate-note p { color: #878787; line-height: 1.6em; margin-bottom: 4px; } 
.ws-donate-note p:last-child { margin-bottom: 0; }

/* 상세보기 */
.ws-modal-inner.detail { max-width: 930px; padding-top: 80px; }
.detail-swiper .item .thumb { padding-bottom: 66%; display: block; position: relative; overflow: hidden; }
.detail-swiper .item .thumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover;}
.detail-swiper .item .thumb::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; border: 1px solid #ddd;}
.detail-prev::after, .detail-next::after { display: none; }
.detail-prev, .detail-next { margin-top: 0; top: 55%; transform: translateY(-50%); width: 16px; height: 28px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.detail-prev { background-image: url(../images/sub/modal-prev.png); left: 25px; }
.detail-next { background-image: url(../images/sub/modal-next.png); right: 25px; }

/* 반응형 */
@media (max-width: 1024px) {
    .ws-modal-close { width: 26px; height: 26px; top: 10px; right: 10px; }
    .ws-modal-inner { padding: 25px 15px; border-radius: 5px; }
    .ws-header { padding-bottom: 15px; }
    .detail-prev, .detail-next { width: 11px; height: 19px; }
    .detail-prev { left: 10px; }
    .detail-next { right: 10px; }
}
@media (max-width: 640px) {
    .ws-donate-card { flex: 1 1 100%; }
    .ws-donate-card-tit { font-size: 15px; }
}
@media (max-width: 420px) {
    .ws-process .col { width: 100%;}
}