/* ===== Body ===== */
body {
    background: url("images-culture/agrigento-statue.png") no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* ===== Main Scrollable Images (Big) ===== */
.main-image img {
    width: 450px;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.image-item p {
    margin-top: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.4em;       
    font-weight: normal;
    text-align: center;
    color: #bbb3af;
    background: rgba(0, 0, 0, 0.541);
    padding: 8px 12px;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* shadow for readability */
    display: inline-block;
    letter-spacing: 2px
}

/* ===== Content-row Images ===== */
.content-row img {
    width: 450px;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* ===== Content Rows Layout ===== */
.content-row,
.content-row.center-text {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    margin: 40px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.content-row.center-text .middle {
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

/* ===== Paragraphs ===== */
.paragraph:first-of-type,
.paragraph:nth-of-type(2),
.content-text:first-of-type,
.content-text:nth-of-type(2) {
    background: rgba(0, 0, 0, 0.477);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    line-height: 1.6;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.7);
    max-width: 1200px;
    margin: 20px 40px;
    font-size: 1.5em;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
}