/* Text Formatting */
p {
    color: black;
    font-family: 'Concert One', cursive;
    text-align: center;
    
}
main h1 {
    margin-top: 1em;
    font-size: 300%;
    font-family: 'Concert One', cursive;
    color: black;
    text-align: center;
    font-weight: 300;
}
/* Image container tags */
.container {
    max-width: 1400px;
    padding: 3vh 2rem 6vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}
/* Artwork column gets most of the width, caption column sits close beside it */
.item:first-child {
    flex: 0 1 62%;
    text-align: center;
}
.item:last-child {
    flex: 0 1 30%;
}
.item p {
    font-family: 'Concert One', cursive;
    color: black;
    text-align: center;
    font-size: clamp(1.25rem, 1.6vw, 1.6rem);
    margin-bottom: 0.6em;
}
.item h1 {
    font-family: 'Concert One', cursive;
    color: black;
    font-size: clamp(2.75rem, 4.5vw, 4.5rem);
    margin-top: 0;
    margin-bottom: 0.4em;
}
.itemimg {
    max-width: 100%;
    max-height: 78vh;
    height: auto;
    border: 3px solid pink;
    border-radius: 10px;
    transition: 0.3s;
}
/* Video embeds (children's books) scale with the column instead of a fixed 500x315 */
iframe.itemimg {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}


/* The artwork and its Back button share a frame that shrinks to the artwork's width,
   so Back always lines up with the artwork's left edge. No JavaScript needed. */
.art-frame {
    display: inline-block;
    max-width: 100%;
    text-align: left;
}
.art-frame .itemimg {
    display: block;
}
.art-frame.video {
    display: block;
}
.back {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.45em 1.3em;
    border: 2px solid rgb(166, 3, 128);
    border-radius: 999px;
    background: #eeaee4;
    color: black;
    font-size: 1.35rem;
    line-height: 1.2;
    transition: transform 0.2s, box-shadow 0.2s;
}
.back:hover,
.back:focus {
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* Media queries */
@media only screen and (max-width: 1000px) {
    .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2vh 1rem 5vh;
    }
    .item:first-child, .item:last-child {
        flex: none;
        width: 100%;
    }
    .itemimg {
        max-height: 70vh;
    }
    h2 {
        padding-top: 30px;
    }
}
@media only screen and (max-width: 800px) {
    header {
        text-align: center;
    }
    #logoimage {
        float: none;
        display: block;
        margin: 0 auto;
    }
    #navlist {
        display: none;
    }

}