/* Resets default spacing and includes padding/borders in element sizes */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top navigation: gallery name and page links in a row */ 
.top-nav{ 
    width: 100%;
    height: 100%;
    font-size: 15px; 
    text-align: right;
    gap: 10px;
    display: flex;
    flex-direction: row;
}

/* Top navigation links */ 
.top-nav a {
    font-weight:bold; 
}
/* Gallery heading: pushes the navigation links to the right side  */ 
h1 {
    font-family: Arial, Helvetica, sans-serif;
    margin-right: auto;
    font-size: 30px;
    text-align: left;
}

/* Category navigation: nine columns on larger screens */ 
.boxsize {
    display: grid;
    gap: 0rem;
    grid-template-columns: repeat(9, 1fr);
}

/* Individual category links */ 
.box {
    background-color:#0561ec;
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}


/* Artwork gallery: three columns on larger screens */ 
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1320px;
    margin: 2rem auto;
    gap: 20px;
    background-color:#feffff;
    padding: 20px;
}

/* Artwork cards: allows shrinking within the grid and add a border */
.card {
    min-width: 0;
    background-color:#feffff;
    border: 1px solid black;
    border-radius: 10px;
    padding: 5px;
    font-size: 30px;
    text-align: center;
}

/* Artwork images: fills the available width and crop to a fixed height */
.card img {
    display: block; 
    width: 100%; 
    height: 300px;
    object-fit: cover;
}

/* Figure: positioning reference for its caption */ 
figure {
    margin: 0; 
    min-width: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5);
    position: relative; 
}

/* Caption: overlays the image bottom with a semi.transparent background */ 
figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5);
    color:#feffff;
    border-radius: 2px;
    width: 100%;
    padding: 5px;
}

.exhibition-intro {
    padding: 2rem;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}


/* About page: Spacing, font and line height for the main content */ 
.about-me {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/*About page: Story and Mission side by side */
.about-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Footer: general text settings */ 
footer {
    text-align: center;
    color: #0561ec;
    font-size: 15px;
}

/* Footer navigation: three equally sized columns */
.footersize {
    display: grid;
    gap: 0rem;
    grid-template-columns: repeat(3, 1fr);
}

/* Individual footer links */
.fz {
    background-color:#0561ec;
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Screens up to 768px:- (Tablets) two artwork and three category columns*/ 
@media (max-width: 768px) {
    .container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .boxsize {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Screens up to 480px: - (Mobile) stack artworks and About sections */  
@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-columns {
        grid-template-columns: 1fr; 
    }
}