#header {
    top: 0;
    height: 110px;
    position: absolute;
}

#main {
    position: absolute;
    top: 0;
    padding-top: 110px;
}

.page_banner {
    /*margin-top: 55px;*/
    height: 437px;
    padding: 0;
}

.page_banner h1 {
    text-shadow: 2px 5px 8px rgba(0, 0, 0, 0.5)
}

.wedding_list {
    background-color: #FFFFFF;
    padding: 104px 120px 0 120px;
}

.card {
    /*max-width: 1200px;*/
    border: none;
    border-bottom: 1px solid #DCDCDC;
    margin-bottom: 80px;
    margin-bottom: 80px;
}

.card-body {
    padding: 0;
}

.card:last-child {
    border-bottom: none;
}

.card-title {
    font-size: 28px;
    line-height: 50.4px;
    letter-spacing: 0.05em;
    color: rgba(26, 26, 26, 1);
}

.card-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.wedding_list_pic {
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-bottom: 0;
}

.wedding_list_pic img {
    height: 248px;
    position: relative;
    background-color: transparent;
    -webkit-box-shadow: 2px 5px 8px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.05);
}

.wedding_list_name {
    left: 8px;
    transform: translate(0, 50%);
    font-size: 16px;
    line-height: 28.8px;
    letter-spacing: 0.05em;
    color: #FEFEFE;
}

.wedding_item {
    margin-bottom: 80px;
}

.wedding_item p {
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 28.8px;
    letter-spacing: 0.05em;
    color: rgba(112, 112, 112, 1);
}

.wedding_list_title {
    color: rgba(26, 26, 26, 1);
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0.05em;
    margin-top: 40px;
}

.slick-track {
    display: flex;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slick-track:before,
.slick-track:after {
    display: none;
}

.slick-slide {
    margin: 0 20px;
}

.slick-list {
    margin: 0 -20px;
}

.slick-arrow {
    position: absolute;
    left: unset;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    background: #DD96B4 !important;
    z-index: 10;
    transition: .3s;
}

.slick-arrow:hover,
.slick-arrow:focus {
    opacity: .8;
}

.slick-prev {
    left: -80px;
}

.slick-next {
    right: -80px;
}


.slick-next::before {
    content: '';
    position: absolute;
    top: 45%;
    width: 10px;
    height: 10px;
    border: 2px solid #FEFEFE;
    border-radius: 2px;
    border-left: transparent;
    border-bottom: transparent;
    transform: translate(-50%, -27%) rotate(45deg);
    z-index: 11;
    transition: .3s;
}

.slick-prev::before {
    content: '';
    position: absolute;
    top: 45%;
    width: 10px;
    height: 10px;
    border: 2px solid #FEFEFE;
    border-radius: 2px;
    border-left: transparent;
    border-bottom: transparent;
    transform: translate(-50%, -27%) rotate(225deg);
    z-index: 11;
    transition: .3s;
}

@media screen and (max-width: 600px) {
    .wedding_list_name {
        left: 50%;
        transform: translate(-50%, 50%);
    }

    /*.slick-track {*/
    /*    display: grid;*/
    /*    grid-template-columns: repeat(1, minmax(0, 1fr));*/
    /*}*/
    .wedding_list {
        padding: 104px 40px;
    }

    .slick-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.75;
    }

    .slick-prev {
        left: -20px;
    }

    .slick-next {
        right: -20px;
    }

    .slick-slide {
        padding: 0;
    }

    .card-title {
        font-size: 24px;
        text-align: center;
    }

    .card-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .wedding_list_title {
        text-align: center;
    }
}

/*---page:文章內頁---*/

/*---block:文字---*/
.wedding_detail {
    background-color: #FFFFFF;
}

.wedding_detail_pic {
    display: flex;
    justify-content: center;
    height: 437px;
}

.wedding_detail_back {
    background-color: transparent;
    width: 180px;
    color: #FEFEFE !important;
    font-size: 20px;
    top: 0;
    left: 0;
    position: relative;
    box-shadow: none;
    background-color: transparent !important;
    cursor: pointer !important;
}

.wedding_detail_back:hover,
.wedding_detail_back:focus {
    opacity: .5 !important;
}

.wedding_detail_text {
    padding: 62px 0;
}

.wedding_detail_text h1 .text {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: #1A1A1A;
    background-color: transparent;
}

.wedding_detail_date {
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0.1em;
    color: #707070;
}

.wedding_detail_tag .tag_content a {
    padding: 8px 20px;
    background-color: #DD96B4;
    box-shadow: 2px 5px 8px 0px #00000014;
    color: #FEFEFE;
    font-size: 16px;
    font-weight: 500;
    line-height: 28.8px;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.wedding_detail_tag .tag_content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 32px 0;
}

.wedding_detail_content p {
    font-size: 18px;
    font-weight: 400;
    line-height: 32.4px;
    letter-spacing: 0.1em;
    color: #4B4B4B;
    margin-bottom: 0;
}

.gap-5rem {
    gap: 5rem;
}

@media screen and (max-width: 1023px) {
    .wedding_detail {
        margin-top: 0;
    }
}

/*---block:返回文章目錄---*/
.page-section {
    padding: 104px 0;
    width: 100vw;
    background-color: #F5F5F5;
    box-shadow: inset rgba(0, 0, 0, 0.5) 0px 0px 10px -5px;
}


.btn-group {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.btn-group .btn-warp {
    position: relative;
    display: flex;
}

.btn-group .btn-warp .btn {
    background-color: transparent;
    color: #707070;
    display: flex;
}

.btn-group .btn-warp .btn:hover {
    color: #DD96B4;
    transition: .3s;
    transition-duration: .3s;
    transition-property: revert;
}

.btn-group .btn-warp .btn:hover i::before, .btn-group .btn-warp .btn:hover i::after {
    border-color: #DD96B4;
}


.btn-group .btn-warp.next > a i, .btn-group .btn-warp.prev > a i {
    display: inline-flex;
    position: relative;
    align-items: center;
}

.btn-group .btn-warp.next > a i::before, .btn-group .btn-warp.next > a i::after, .btn-group .btn-warp.prev > a i::before, .btn-group .btn-warp.prev > a i::after {
    content: '';
    display: inline-block;
}

.btn-group .btn-warp.prev > a i {
    margin-right: 8px;
}

.btn-group .btn-warp.prev > a i::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid #707070;
    border-bottom: 2px solid #707070;
    transform: rotate(135deg);
    position: absolute;
    left: -12px;
}

.btn-group .btn-warp.next > a i {
    margin-left: 8px;
}

.btn-group .btn-warp.next > a i::before {
    width: 8px;
    height: 8px;
    border-right: 2px solid #707070;
    border-bottom: 2px solid #707070;
    transform: rotate(-45deg);
    position: absolute;
    right: -12px;
}

/*---block:熱門文章---*/
.wedding_detail_hot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 104px 0;
}

.wedding_detail_hot h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 50.4px;
    letter-spacing: 0.1em;
    color: #DD96B4;
    margin-bottom: 64px;
}

.wedding_detail_hot_pic img {
    width: 100%;
    height: 100%;
    aspect-ratio:400/248;
}

.wedding_detail_hot_text {
    margin-top: 20px;
    color: #707070;
}

.wedding_detail_hot_text span {
    font-size: 18px;
    font-weight: 400;
    line-height: 32.4px;
    letter-spacing: 0.1em;
}

.wedding_detail_hot_text span:first-child {
    font-weight: 500;
}

.wedding_detail_hot_text h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0.1em;
    color: #434343;
}

.wedding_detail_hot_dec {
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 28.8px;
    letter-spacing: 0.05em;
    color: rgba(112, 112, 112, 1);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


@media screen and (max-width: 1024px) {
    .page-section {
        padding: 0;
    }

    .btn-group {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .btn-group .btn-warp.goback .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-group .btn-warp.m-hider {
        display: none;
    }

    .btn-group .btn-warp .btn {
        margin: 20px 0;
    }
}


/*@media screen and (max-width: 1023px) {*/
/*    !*.wedding_detail,*!*/
/*    !*.page-section {*!*/
/*    !*    padding: 40px 16px;*!*/
/*    !*}*!*/
/*}*/

@media screen and (max-width: 768px) {
    .wedding_detail_text h1 .text {
        font-size: 20px;
    }

    .wedding_detail_content p {
        font-size: 18px;
    }


}

@media screen and (max-width: 991px) {
    .page_banner,
    .wedding_detail_pic {
        height: 200px;
    }


    #header {
        height: 80px;
    }

    #main {
        padding-top: 80px;
    }
}



/* 文章內 CKEditor 5 表格（figure.table）：補上編輯器的框線／內距，首列當表頭，手機可左右滑 */
.wedding_detail_content figure.table {
    display: block;
    /* width:0 + min-width:100%：寬表格不會把 #main（position:absolute、寬度隨內容）撐開，超出部分改在 figure 內左右滑 */
    width: 0;
    min-width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wedding_detail_content figure.table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dfdfdf;
    font-size: 16px;
    line-height: 1.6;
}

.wedding_detail_content figure.table td,
.wedding_detail_content figure.table th {
    border: 1px solid #dfdfdf;
    min-width: 7em; /* 欄位多時每欄至少約 7 個字寬，改成左右滑而不是一格一兩個字 */
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
}

.wedding_detail_content figure.table tr:first-child td,
.wedding_detail_content figure.table th {
    background-color: #f6ebff;
    color: #a4519b;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.wedding_detail_content figure.table tr:nth-child(2n+3) td {
    background-color: #fcf9ff;
}

@media screen and (max-width: 768px) {
    .wedding_detail_content figure.table table {
        font-size: 15px;
    }

    .wedding_detail_content figure.table td,
    .wedding_detail_content figure.table th {
        padding: 8px 10px;
    }
}

/* 文章內 CKEditor 5 圖片（figure.image）：縮放比例、對齊、圖說 */
.wedding_detail_content figure.image {
    display: table;
    clear: both;
    margin: 1.5em auto;
    text-align: center;
    max-width: 100%;
}

.wedding_detail_content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    min-width: 100%;
    height: auto;
}

.wedding_detail_content figure.image.image_resized {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
}

.wedding_detail_content figure.image.image_resized img {
    width: 100%;
}

.wedding_detail_content figure.image.image-style-side {
    float: right;
    max-width: 50%;
    margin: 0 0 1em 1.5em;
}

.wedding_detail_content figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    padding: 0.6em;
    font-size: 14px;
    color: #777;
    background-color: #f7f7f7;
    word-break: break-word;
}

.wedding_detail_content img.image_resized {
    height: auto;
}

/* 文章內引言區塊 */
.wedding_detail_content blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #a4519b;
    background-color: #fcf9ff;
    color: #555;
}

.wedding_detail_content blockquote p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .wedding_detail_content figure.image.image-style-side {
        float: none;
        max-width: 100%;
        margin: 1.5em auto;
    }
}
