﻿.invitation-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-bottom: 2rem;
}

.invitation-item {
    flex: 1 1 25%;
    max-width: 25%;
    text-align: center;
    box-sizing: border-box;
}

    .invitation-item .image-wrapper {
        width: 100%;
        aspect-ratio: 3 / 4; /* 可依你圖片長寬比調整，如 4:3, 3:4, 1:1 */
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .invitation-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 保持比例裁切填滿，也可用 contain 看需求 */
        display: block;
    }

.caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}


body {
    font-family: 'Noto Serif TC', serif;
    margin: 0;
    background-color: #fdfdfd;
    color: #333;
    margin-top: 100px;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #e2b4f0, #f8c2d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
    letter-spacing: 2px;
    text-align: center;
}

    h2.section-title::after {
        content: "";
        position: absolute;
        width: 60%;
        height: 4px;
        left: 20%;
        bottom: 0;
        background: linear-gradient(to right, #f8c2d4, #e2b4f0);
        border-radius: 4px;
        opacity: 0.9;
    }

.hero-carousel-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

    /* 輪播內的圖像設定 */
    .hero-carousel-section .carousel-inner,
    .hero-carousel-section .carousel-item,
    .hero-carousel-section .carousel-item img {
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }

/* 黑色遮罩層 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Hero 文字區塊 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 700;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    }


.carousel-indicators button {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active {
    background-color: #fff;
}

.countdown {
    font-size: 1rem;
    letter-spacing: 1px;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

    .countdown div {
        background: rgba(255, 235, 235, 0.5); /* 改成較深的半透明黑，不擋人臉 */
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

.wedding-location-section .section-title {
    font-size: 2rem;
    color: #f7941d;
}

.location-card {
    border-radius: 16px;
    overflow: hidden;
}

.location-img {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.map-container {
    pointer-events: none;
    height: 220px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.btn-pink {
    background-color: #f8c2d4; /* 淺粉紅 */
    color: #fff; /* 白字，視情況可改成深灰 */
    border: none;
}

    .btn-pink:hover {
        background-color: #f3aabe; /* hover 時稍微深一點 */
    }
.rsvp-section {
    text-align: center;
    margin-top: 3rem;
}

.rsvp-wrapper {
    display: flex;
    justify-content: center;
}

.rsvp-btncontain {
    display: inline-block;
    background: linear-gradient(to right, #e2b4f0, #f8c2d4);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .rsvp-btncontain:hover {
        background: linear-gradient(to right, #d89de3, #eea7bb);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
@media (max-width: 1024px) {
    .invitation-item {
        flex: 1 1 33.3333%;
        max-width: 33.3333%;
    }

    @media (max-width: 768px) {
        .invitation-item {
            flex: 1 1 50%;
            max-width: 50%;
        }

        .hero-static-section {
            position: relative;
            width: 100%;
            max-width: 400px; /* 你可以調整最大寬度 */
            margin: 0 auto;
        }

        .carousel-inner,
        .carousel-item {
            width: 100%;
            height: auto; /* 依內容撐開 */
        }

        .portrait-img {
            width: 100%;
            height: auto;
            aspect-ratio: 3 / 4; /* 假設照片是3:4直式，依照你的照片比例調 */
            object-fit: contain; /* 完整顯示圖片 */
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            margin: 0 auto;
            display: block;
        }

        .mobile-hero-content {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            text-align: center;
            padding: 0.8rem 1rem;
            color: #fff;
            pointer-events: none; /* ✅ 不會阻擋滑動操作 */
        }

            .mobile-hero-content h1,
            .mobile-hero-content p {
                text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
                background: rgba(255, 255, 255, 0.2);
            }

        h2.section-title {
            font-size: 2.5rem;
            font-weight: bold;
            background: linear-gradient(to right, #e2b4f0, #f8c2d4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            display: inline-block;
            padding-bottom: 0.6rem;
            letter-spacing: 2px;
            text-align: center;
        }

            h2.section-title::after {
                content: "";
                position: absolute;
                width: 60%;
                height: 4px;
                left: 20%;
                bottom: 0;
                background: linear-gradient(to right, #f8c2d4, #e2b4f0);
                border-radius: 4px;
                opacity: 0.9;
            }

        .countdown {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 8px;
            padding: 0.4rem 0.6rem;
            pointer-events: auto; /* 若未來要做互動可啟用 */
        }

            .countdown div {
                background: rgba(255, 255, 255, 0.2);
                padding: 0.3rem 0.5rem;
                border-radius: 6px;
                color: #fff;
                font-weight: bold;
            }

        .carousel-indicators.bottom-indicators {
            position: relative;
            margin-top: 0.5rem;
        }

        .wedding-location-section .section-title {
            font-size: 2rem;
            color: #f7941d;
        }

        .location-card {
            border-radius: 16px;
            overflow: hidden;
        }

        .location-img {
            height: 220px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
        }

        .map-container {
            pointer-events: none;
            height: 220px;
        }

        .map-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.25);
            color: white;
            font-size: 1.2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }

        .btn-pink {
            background-color: #f8c2d4; /* 淺粉紅 */
            color: #fff; /* 白字，視情況可改成深灰 */
            border: none;
        }

            .btn-pink:hover {
                background-color: #f3aabe; /* hover 時稍微深一點 */
            }

        @media (max-width: 480px) {
            .invitation-item {
                flex: 1 1 100%;
                max-width: 100%;
            }
        }
    }
}

