/* Dot button style for homepage nav links */
.dot-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}
.dot-nav a {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    background: #ffd6e0;
    border: 2px solid #e6397e;
    text-indent: -9999px;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(230, 57, 126, 0.12);
    cursor: pointer;
}
.dot-nav a:hover, .dot-nav a:focus {
    border-color: #ff3366;
    box-shadow: 0 4px 16px rgba(230, 57, 126, 0.18);
}
/* Gallery image captions */
.caption {
    display: block;
    width: 100%;
    max-width: 640px;
    text-align: center;
    font-size: 1rem;
    color: #6d214f;
    margin-top: 8px;
    font-style: italic;
    word-break: break-word;
}
/* Centered image container with fixed height */
.image-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    padding: 1rem 0;
    box-sizing: border-box;
}
/* Enable vertical scrolling for gallery */
.gallery {
    height: 1000px;
    overflow-y: auto;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
}
/* Gallery images grid styling */
.images-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.images-grid img {
    width: 100%;
    max-width: 640px;
    max-height: 480px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(230, 57, 126, 0.12);
    border: 3px solid #ffd6e0;
    box-sizing: border-box;
    display: block;
    margin-bottom: 8px;
}
body {
    background: linear-gradient(120deg, #ffe0ec 0%, #ffd6e0 100%);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff0f6;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(255, 0, 80, 0.08);
    padding: 32px 24px 24px 24px;
    text-align: center;
}

header h1 {
    color: #e6397e;
    font-size: 2.2rem;
    margin-bottom: 0.5em;
}

.heart {
    color: #ff3366;
    font-size: 1.3em;
    vertical-align: middle;
}

.message-section h2 {
    color: #d72660;
    margin-bottom: 0.3em;
}

.message {
    font-size: 1.2rem;
    color: #6d214f;
    margin-bottom: 1.5em;
}

.images-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.valentine-img {
    width: 100%;
    max-width: 640px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(230, 57, 126, 0.12);
    border: 3px solid #ffd6e0;
}

@media (max-width: 700px) {
    .container {
        padding: 12px 2vw;
        margin: 16px 0;
        max-width: 98vw;
    }
    .valentine-img,
    .images-grid img {
        width: 100%;
        max-width: 98vw;
        height: auto;
    }
    header h1 {
        font-size: 1.2rem;
    }
    .message-section h2 {
        font-size: 1.1rem;
    }
    .message {
        font-size: 1rem;
    }
    .gallery {
        padding: 0.5rem;
        max-width: 99vw;
    }
    .images-grid {
        gap: 12px;
    }
    .image-frame {
        min-height: 120px;
        padding: 0.5rem 0;
    }
    .caption {
        font-size: 0.95rem;
    }
    .dot-nav {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    .dot-nav a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        text-indent: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffd6e0;
        border-radius: 50%;
        border: 2px solid #e6397e;
        color: #e6397e;
        box-shadow: 0 2px 8px rgba(230, 57, 126, 0.12);
        transition: box-shadow 0.2s, border-color 0.2s;
        cursor: pointer;
        padding: 0;
    }
    .dot-nav a:hover, .dot-nav a:focus {
        border-color: #ff3366;
        box-shadow: 0 4px 16px rgba(230, 57, 126, 0.18);
    }
    .signature {
        font-size: 1.1rem;
        padding: 0.5em 0;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 4px 1vw;
    }
    header h1 {
        font-size: 1rem;
    }
    .signature {
        font-size: 0.95rem;
    }
}
