:root {
    --primary: #97a5a0;
    --secondary: #beafc4;
    --dark-purple: #7a3895;
    --accent: #f4ecd6;
    --text: #333;
    --text-light: #fff;
    --font-family: 'Georgia', serif;
    --background-c: white;
    --link-color: goldenrod;
    --link-hover: #5e776a;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-family);
    background: #A0AF99;
    background: linear-gradient(360deg, rgb(121 145 136) 0%, rgba(193, 166, 192, 0.61) 36%, rgb(255 253 248) 100%);
    color: var(--text);
    line-height: 1.6;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1; /* Fills the space between navbar and footer */
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-family);
    background: linear-gradient(360deg, rgb(121 145 136) 0%, rgba(193, 166, 192, 0.61) 36%, rgb(255 253 248) 100%);
    color: var(--text);
    line-height: 1.6;
}


.page-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.page-content {
    flex: 1;
}



/* Headings */
h1, h2, h3 {
    font-family: var(--font-family);
    color: #404443;
}
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s infinite linear;
}
h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 0.5rem auto;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Buttons */
a.btn,
button.btn,
input[type="submit"].btn {
    background-color: var(--primary) !important;
    color: var(--text-light) !important;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}
a.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover {
    background-color: var(--secondary) !important;
}

a.btn-gold,
button.btn-gold,
input[type="submit"].btn-gold {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    color: var(--text) !important;
    font-weight: bolder;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;

    animation: shimmer 5s infinite linear;
}




/* Landing Page */
.landing-wrapper {
    /* Use fixed positioning so it always exactly fits the viewport */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 2rem; /* Your desired padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;

    background-image: url(../images/bg/landing_page_background_1600x1200.jpg);
    background-size: cover;  /* Use cover to fill the space */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: white;
}


.landing-wrapper > * {
    position: relative;
    z-index: 3;
}

.overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    width: 600px; /* or adjust as needed */
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
    padding: 1.5rem;
    text-align: center;

    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(2px);

    border: 2px solid goldenrod;
    animation: shimmer-border 5s ease-in-out infinite;
    color: white;
}
.overlay h3 {
    color: white !important;
    font-weight: bolder;
}

@keyframes shimmer-border {
    0% { border-color: gold; }
    50% { border-color: #ffa600; }
    100% { border-color: goldenrod; }
}

/* Buttons on landing page */
.landing-wrapper .btn {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Error image + wrapper */
.error-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}
.error-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Wedding Info Page CSS */
.info-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.info-section {
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #ffffffe8;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    border: 2px gold solid;
}

.info-section h2 {
    color: #f5b513;
    margin-bottom: 0.5rem;
}

.between-section-sep {
    height: 53px;
    background-image: image-set(
            url('/images/assets/ring_asset.webp') type('image/webp'),
            url('/images/assets/ring_asset.png') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Wedding Photos Page CSS */

.wedding-wrapper {
    padding: 2rem 1rem;
    text-align: center;
}

/* make the gallery a flex container */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* center the items */
    gap: 1.5rem;              /* space between items */

    /* keep your existing “frosted glass” look */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 80%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    border: 2px gold solid;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

/* let each photo-item flex to a base size but wrap on smaller screens */
.photo-item {
    flex: 0 1 200px;      /* do not grow, can shrink, base width 200px */
    transition: transform 0.3s ease;
}

/* responsive tweaks (optional) */
@media (max-width: 600px) {
    .photo-item {
        flex: 0 1 45%;      /* two across on small tablets */
    }
}

@media (max-width: 400px) {
    .photo-item {
        flex: 0 1 90%;      /* one per row on phones */
    }
}


.photo-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.photo-item:hover {
    transform: scale(1.05);
}

/* Centered wrapper for your heading */
.gallery-header {
    text-align: center;
    margin: 2rem 0 1rem;
}

/* Wedding‑style script heading with flourishes & underline */
.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--dark-purple);
    padding: 0.2em 1em;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    margin-top: 1em;
}

.gallery-heading .flower-deco {
    opacity: 0.5;
    font-size: 1.2rem;
    color: var(--dark-purple);
    transform: translateY(-10%);
}
h2.gallery-subtitle {
    color: #404443;
}

/* Responsive */

@media (max-width: 768px) {
    html, body {
        background-color: var(--primary) !important;
    }


    .error-image {
        max-width: 300px;
    }

    .landing-wrapper {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }

    .overlay {
        max-width: 95vw;
        width: 100%;
        padding: 1.5rem;
    }

    .landing-wrapper h1 {
        font-size: 2.2rem;
    }

    .landing-wrapper p {
        font-size: 1rem;
    }
}