
h1 {
    text-align: center;
    font-size: 3.5rem;
}
p {
    width: 60%;
    margin: 2rem auto 0 auto;
    font-size: 1.8rem;
}
.story-image {
    width: 40rem;
    display: block;
    margin: 2rem auto 0 auto;
}

/* Style for the original images */
.clickable-image {
    cursor: zoom-in;
    transition: transform 0.2s;
    max-width: 500px; /* Example size */
    display: block;
    margin: 2rem auto 0 auto;
}

/* Overlay covering screen */
#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* When overlay is active */
#fullscreen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* The zoomed image */
.fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 90em) {

p {
    width: 80%;
    font-size: 1.6rem;
}

img {
    width: 100%;
    height: auto;
}
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    p {
        width: 90%;
        font-size: 1.2rem;
    }
    
    .story-image {
        width: 100%;
        max-width: 300px;
    }
    
    .clickable-image {
        max-width: 100%;
    }
    
    .close-btn {
        font-size: 28px;
        right: 15px;
    }
}