/* =========================
   CUSTOM FONT
========================= */

@font-face {
    font-family: 'WeddingFont';
    src: url('static/fonts/font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   GENERAL STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'WeddingFont', serif;
    color: #3a3a3a;

    /* 🌸 romantic gradient */
    background: linear-gradient(
        135deg,
        #fff1f5 0%,
        #fde2e4 35%,
        #f9f5f7 70%,
        #fffafc 100%
    );

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   HEADER
========================= */

.header {
    text-align: center;
    padding: 60px 20px 30px;
}

.header h1 {
    font-family: 'WeddingFont', serif;
    font-size: 44px;
    font-weight: 500;
    color: #b86b77;
    letter-spacing: 1px;
}

.header p {
    font-size: 18px;
    color: #7a7a7a;
    margin-top: 8px;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.6);
    aspect-ratio: 1 / 1;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.07);
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 13px;
}

/* =========================
   MODAL (WELCOME POPUP)
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.modal-box {
    background: rgba(255,255,255,0.92);
    padding: 28px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;

    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-box h2 {
    font-size: 26px;
    color: #b86b77;
    margin-bottom: 14px;
}

.modal-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.modal-button {
    margin-top: 22px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #d88c9a, #b86b77);
    color: white;

    cursor: pointer;
    font-size: 15px;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 92%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 38px;
    color: white;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 42px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .header h1 {
        font-size: 34px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .nav-btn {
        font-size: 30px;
        padding: 8px 12px;
    }
}

/* =========================
   BACKGROUND FLOWERS (DESKTOP)
========================= */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("static/assets/kvety.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left top;

    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

/* =========================
   SECOND LAYER (right bottom subtle)
========================= */

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("static/assets/kvety.svg");
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: right bottom;

    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}