/* Reset some default styles for better consistency */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Update the existing CSS styles or add these styles at the end of your stylesheet */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

nav {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative; /* Set the main content to a relative position */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds viewport height */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px -10px; /* Add margin to space out items and center them */
}

.artwork {
    flex: 0 0 calc(40% - 20px); /* Adjust the width of each artwork item */
    max-width: calc(40% - 20px); /* Maximum width for each item */
    background-color: #fff;
    margin: 10px; /* Add margin to space out items */
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* Add a transition for a hover effect */
}

.artwork:hover {
    transform: scale(1.05); /* Add a hover effect to scale up the item */
}

.artwork img {
    max-width: 100%;
    height: auto;
    cursor: pointer; /* Add a pointer cursor to indicate that the images are clickable */
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2; /* Set the popup to a higher z-index to appear in front of the content */
    text-align: center;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Style footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
