.welcome {
    height: 100dvh;
    background: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.welcome-inner {
    display: grid;
    grid-template-columns: minmax(25%, 0.8fr) minmax(55%, 1.2fr);
    align-items: center;
    width: 100%;
    max-width: 2000px;
    height: 100%;
    position: relative;
}

/* === Levá část (grafika nebo prázdné místo) === */
.welcome-decor {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Obrázek květin */
.decor-img {
    position: absolute;
    left: 10%;
    bottom: 5%;
    width: auto;
    height: 90%;
    max-width: none;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.05));
}

/* === Pravá část s fotkou === */
.welcome-photo-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.photo-frame {
    position: relative;
    border: 8px solid var(--accent-yellow);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 90%;
    height: 90%;
    background: var(--white);
    max-height: 75%;
}

.welcome-content {
    position: absolute;
    left: -40%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90%;
}

.names {
    font-family: 'Parisienne', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: var(--primary);
}

/* === Podtitul === */
.welcome-content h2 {
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0.2rem 0 2rem 0;
    font-family: 'Poppins', sans-serif;
    max-width: 400px;
    text-align: center;
    color: var(--primary);
}

/* === Informace o svatbě === */
.welcome-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
    text-align: center;
    letter-spacing: 0.1rem;
}

.welcome-date {
    font-size: 1rem;
    color: var(--brown);
    font-weight: 500;
}

@media (max-width: 1400px) {
    .welcome-content {
        left: -60%;
        max-width: 65%;
    }
}

@media (max-width: 1250px) {
    .photo-frame {
        height: 70%;
    }
}

@media (max-width: 1060px) {
    .names {
        font-size: 4rem;
        flex-direction: column;
        gap: 0;
    }

    .welcome-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 800px) {
    .welcome-inner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        position: relative;
        height: 100dvh;
    }

    .welcome-decor {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
    }

    .decor-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.7;
        filter: blur(1px);
    }

    .welcome-photo-wrapper {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
    }

    .welcome-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(90%);
    }

    .names {
        font-size: 3.7rem;
        flex-direction: row;
        gap: 4%;
    }

    .welcome-content {
        position: absolute;
        top: 68%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1.5rem 2rem;
        margin: 0 auto;
      }

    .welcome-content h2 {
        font-size: 1.15rem;
    }

    .welcome-info {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 1.2rem;
    }

    .dot {
        display: none;
    }
}

@media (max-width: 550px) {
    .welcome-content {
        padding: 1rem 1rem;
        width: 75%;
        max-width: 300px;
        top: 70%;
    }

    .names {
        font-size: 2.7rem;
        flex-direction: column;
        gap: 0;
    }

    .photo-frame {
        height: 55%;
        top: -15%;
    }
}

@media (min-aspect-ratio: 8/5) and (max-width: 1060px){
    .names {
        font-size: 3rem;
        flex-direction: row;
        gap: 4%;
    }

    .welcome-info {
        font-size: 1.2rem;
    }

    .welcome-content h2 {
        font-size: 1.15rem;
    }

    .photo-frame {
        height: 100%;
    }
}

@media ((min-aspect-ratio: 8/5) or (max-height: 900px)) and (max-width: 800px) and (min-width: 550px){
    .welcome-content {
        top: 50%;
    }
}

/* === Animace === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}