.memories {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    color: #222;
}

.memories p {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.memories-intro,
.memories-outro {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1rem;
}

.memories hr {
    width: 50%;
    border: 0px solid #000;
    margin: 1rem auto 2rem auto;
}

/* Ultra wide fotky */
.memories-image-wide {
    width: 100%;
    margin: 0;
}

.memories-image-wide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Překrytí nadpisu a čáry přes spodní část obrázku */
.memories-image-wide--overlay {
    position: relative;
}

.memories-overlay-title {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(30%);
    width: 80%;
    text-align: center;
    pointer-events: none;
}

.memories-overlay-title h3 {
    color: ghostwhite;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
    font-size: 80px;
    margin-bottom: 0%;
}

.memories-overlay-title hr {
    width: 40%;
    margin: 0 auto 0.5rem auto;
    border: none;
    height: 4px;
    background: linear-gradient(90deg, gold 0%, yellow 100%);
    border-radius: 5px;
    opacity: 0.85;
    margin-bottom: 15%;
}

/* Zajištění čitelnosti na menších obrazovkách */
@media (max-width: 700px) {
    .memories-overlay-title h3 {
        font-size: 50px;
        color: black;
        text-shadow: none;
    }
    .memories-overlay-title {
        position: relative;
        width: 95%;
        transform: translateX(-50%) translateY(10%);
    }
    .memories-overlay-title hr {
        width: 60%;
        height: 3px;
    }
    h3 {
        font-size: 50px;
    }
}

@media (min-width: 2000px) {
    .memories-overlay-title h3 {
        font-size: 120px;
        color: ghostwhite;
    }
    .memories-overlay-title hr {
        width: 60%;
        height: 4px;
    }
    .memories p {
        font-size: 1.6rem;
        padding: 3%;
    }
    .memories h3 {
        font-size: 80px;
    }
    .memories hr {
        width: 70%;
    }
}


/* Blok text + foto vedle sebe */
.memories-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 4rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.memories-text {
    flex: 1 1 500px;
}

.memories-text hr {
    margin: 1rem 0 1.5rem 0;
    margin-left: 0; /* zarovná hr pod nadpisem vlevo */
}

.memories-photo {
    flex: 1 1 600px;
}

.memories-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
