/* 2021-03  凱基捐款 & 相簿模組 (圖文文章) */

/* CSS Document */
/* * {
    box-sizing: border-box;
} */

.dnt-choose ul li {
    display: inline-block;
    float: left;
    width: 50%;
    padding: 10px 4%;
}

.dnt-choose a {
    background: #a67593;
    color: #fff;
    display: block;
    padding: 50px 10px;
    text-align: center;
    font-size: 1.5em;
    border-radius: 15px;
}

.dnt-choose i {
    font-size: 2.8125em;
    display: block;
    margin-bottom: 20px;
}

.dnt-choose p {
    font-size: 1.25em;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dnt-choose .notfirst {
    background: #efefef;
    color: #424242;
}

.donate-step {
    padding: 10px 5px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px #ccc solid;
}

.donate-step ul li {
    display: inline-block;
    font-size: 0.9375em;
    color: #ccc;
    padding: 0 0 0 20px;
    margin: 3px 0;
    position: relative;
}

.donate-step ul li.on {
    color: #853e6a;
    font-weight: bold;
}

.donate-step ul li:first-child {
    padding: 0;
}

.donate-step ul li i {
    font-size: 1.1875em;
    color: #853e6a;
    position: absolute;
    top: 0px;
    left: 6px;
}

.donatebox {
    padding: 10px 15px;
    display: none;
}

.donatebox.on {
    display: block;
}

.donatebox .box-hd {
    position: relative;
}

.donatebox .box-hd h2.title {
    font-size: 1.5em;
    margin-bottom: 20px;
    background: #853e6a;
    text-align: center;
    color: #fff;
    width: 250px;
    border-radius: 30px;
    padding: 5px 20px;
    display: inline-block;
}

.donatebox .box-hd a {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 20px;
    text-align: center;
    color: #853e6a;
    background: rgba(250, 250, 250, .25);
    /* min-width: 250px; */
    border: 1px solid #853e6a;
    border-radius: 30px;
    padding: 5px 60px;
    display: inline-block;
}

.donate,
.donate-confirm {
    font-size: 1em;
    color: #424242;
}

.donate .bar {
    position: relative;
    padding: 5px 0 5px 140px;
}

.donate b {
    position: absolute;
    top: 12px;
    left: 0;
}

.donate i {
    font-style: normal;
}

.donate .other {
    display: inline-block;
    width: 100%;
}

.donate .ratype,
.donate .cktype {
    display: inline-block;
    padding: 3px 0;
    margin: 3px 5px;
}

.donate .ratype span,
.donate .cktype span {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    background: rgba(250, 250, 250, .25);
    border: 1px solid #c1c1c1;
    vertical-align: top;
    margin: 0 3px 0 0;
}

.donate .ratype span,
.donate .ratype span:after {
    border-radius: 50%;
}

.donate .ratype span:after,
.donate .cktype span:after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    background-color: #fff;
    opacity: 0;
    -webkit-transition: all .15s ease-out;
    transition: all .15s ease-out;
    -webkit-transform: scale(.5);
    transform: scale(.5);
}

.donate .ratype input:checked+span:after,
.donate .cktype input:checked+span:after {
    background: #853e6a;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.donate .ratype input,
.donate .ratype input:disabled,
.donate .cktype input,
.donate .cktype input:disabled {
    position: absolute;
    opacity: 0;
}

.donate .ra-money span {
    width: 65px;
    height: 30px;
    border-radius: 20px;
    padding: 5px 10px 8px;
    margin: -4px 0 0 0;
    text-align: center;
    border: 1px #853e6a solid;
}

.donate .ra-money span::after {
    border-radius: 20px;
}

.donate .ra-money input:checked+span:after {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.donate .ra-money input:checked+span {
    color: #fff;
    z-index: 5;
}

.donate p {
    padding: 5px 0;
}

.donate .tl,
.donate .sel {
    padding: 5px 10px;
    border: 1px #ccc solid;
    border-radius: 5px;
    color: #606060;
    margin: 3px 0;
    display: inline-block;
}

.donate .tl {
    width: 100%;
}

.donate .tl::placeholder {
    color: #c1c1c1;
}

.donate .tl-mon,
.donate .tl-name,
.other-add {
    display: none;
}

.donate .tl-mon {
    min-width: 70px;
    width: 140px;
}

.donate .tl-name {
    width: 200px;
}

.form-info {
    padding: 10px 15px;
    margin: 0 0 8px 0;
    background: #f9eaf3;
    border-left: #853e6a 4px solid;
}

.btn-box {
    padding: 20px 0 0 0;
    text-align: center;
}

.btn-box .btn-sub,
.btn-box .btn-back {
    padding: 10px 15px;
    border-radius: 5px;
    border: 0;
    min-width: 180px;
    margin: 20px 5px 0;
    font-size: 1em;
}

.btn-box .btn-sub {
    background: #853e6a;
    color: #fff;
    float: right;
}

.btn-box .btn-back {
    background: #ecd1e2;
    color: #424242;
    float: left;
}

.donate-confirm ul li {
    padding: 5px 5px 5px 140px;
    margin-bottom: 3px;
    position: relative;
    color: #999999;
}

.donate-confirm b {
    position: absolute;
    top: 5px;
    left: 5px;
    color: #424242;
}

.su-fa h3.title {
    font-size: 1.625em;
}

.su-fa h3.title i {
    font-size: 2.8125em;
    display: block;
    margin-bottom: 5px;
}

.su-fa span {
    color: #853e6a;
    font-size: 1.25em;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    margin: 15px 0;
}

.su-fa span::before,
.su-fa span::after {
    content: '';
    display: block;
    width: 50%;
    height: 1px;
    background: #853e6a;
    position: absolute;
    top: 52%;
}

.su-fa.fail span::before,
.su-fa.fail span::after {
    width: 150%;
}

.su-fa span::before {
    right: 100%;
}

.su-fa span::after {
    left: 100%;
}

.success,
.fail {
    display: block;
    text-align: center;
    position: relative;
    padding: 40px 0 !important;
}

.success i {
    color: #a67593;
}

.fail i {
    color: #ecd1e2;
}

.info-box {
    width: 400px;
    margin: 0 auto;
    font-size: 1.0625em;
    text-align: left;
}

.info-box ul li {
    padding: 5px 5px 5px 115px;
    position: relative;
}

.info-box b {
    position: absolute;
    top: 5px;
    left: 5px;
}

.su-fa .btn-sub {
    float: none;
}

.su-fa .btn-box b {
    font-size: 0.9375em;
    display: block;
    padding: 5px 0;
    color: #797979;
}

/*-- 繁星故事 --*/
.list-story a {
    padding: 5px 10px 30px 215px;
    position: relative;
    display: block;
    height: 160px;
    border-bottom: 1px #ececec solid;
    margin-bottom: 10px;
}

.list-story a:hover {
    padding: 5px 0 10px 225px;
    opacity: 0.7;
    background: #ececec;
}

.story-img {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 200px;
    height: 145px;
    overflow: hidden;
}

.story-img img {
    width: 100%;
}

.story {
    padding: 10px 0;
    color: #666;
    font-size: 1.25em;
    position: relative;
}

.story em {
    display: block;
    margin: 0 0 10px 0;
    font-size: 0.9375em;
}

.story p {
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn-more {
    position: absolute;
    font-size: 0.9375em;
    display: block;
    padding-left: 18px;
    color: #666;
    bottom: 8px;
    right: 15px;

}

.btn-more i {
    position: absolute;
    font-size: 0.8125em;
    color: #853e6a;
    top: 3px;
    left: 0;
}

.list-story a:hover .btn-more {
    right: 10px;
}

.btn-more,
.list-story a:hover .btn-more {
    -webkit-transition: all .35s ease-in-out;
    -moz-transition: all .35s ease-in-out;
    -o-transition: all .35s ease-in-out;
    -ms-transition: all .35s ease-in-out;
    transition: all .35s ease-in-out;
}

/*-----*/
.masonrybox,
.masonrybox .it-wp {
    box-sizing: initial;
}

.masonrybox {
    padding: 15px 1.5%;
    margin-top: 20px;
}

.masonrybox::after {
    content: '';
    display: block;
    clear: both;
}

.masonrybox .it-wp {
    width: 30%;
    float: left;
    padding: 0 1% 15px;
}

.masonrybox .it-wp:hover {
    opacity: 0.7;
}

.masonrybox .it-wp img {
    width: 100%;
}

@media only screen and (max-width:1200px) {

    .donate .other,
    .donate .other-money {
        display: block;
        margin: 5px 0;
    }
}

@media only screen and (max-width:730px) {
    .donate .bar {
        padding: 40px 0 5px 0px;
    }
}

@media only screen and (max-width:600px) {

    .donatebox,
    .donate-confirm {
        padding: 0;
    }

    .donatebox .box-hd h2.title {
        font-size: 1.375em;
        margin-bottom: 45px;
        width: 90%;
    }

    .donatebox .box-hd a {
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 1.275em;
        margin-left: 0;
    }

    .donate .bar {
        position: relative;
        padding: 35px 0 5px;
    }

    .donate .ra-money,
    .donate .ra-money span {
        width: 100%;
        margin: 0;
    }

    .donate .tl-mon,
    .donate .tl-name {
        width: 100%;
    }

    .btn-box .btn-back,
    .btn-box .btn-sub {
        width: 100%;
        float: none;
        margin: 10px 0 0 0;
    }

    .donate-confirm ul li {
        padding: 30px 5px 5px;
    }

    .su-fa span {
        padding: 5px 10px;
    }

    .su-fa span::before,
    .su-fa span::after {
        width: 20px;
    }

    .su-fa.fail span::before,
    .su-fa.fail span::after {
        width: 80px;
    }

    .info-box {
        width: 100%;
    }

    /*繁星故事*/
    .list-story a {
        height: auto;
        padding: 73% 0 10px 0;
    }

    .list-story a:hover {
        padding: 73% 0 10px 0;
    }

    .story-img {
        width: 100%;
        padding: 64% 0 28px 0;
        top: 0;
        left: 0;
    }

    .story-img img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .story {
        font-size: 1.0625em;
        padding: 10px 0 35px;
    }

    .story p {
        -webkit-line-clamp: 2;
    }

    .story em {
        margin-bottom: 5px;
    }
}


@media only screen and (max-width:500px) {

    .masonrybox {
        padding: 15px 2%;
    }

    .masonrybox .it-wp {
        width: 46%;
        padding: 0 1% 10px;

    }
}