/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

/* Artwork Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adjust the gap between items */
    justify-content: center; /* Center the items */
    padding-bottom: 20px; /* Add padding to the bottom to reduce whitespace */
}

.art-item img {
    display:flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
}

.art-item p {
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

/* Literary Pieces */
article {
    margin-bottom: 20px;
}

article h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

article p {
    margin: 0;
    color: #555;
}

article a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: 600;
}

article a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 20px;
}

.gallery .art-item{
    flex: 1 1 300px;
    max-width: 300px;
    flex-direction: column;
    margin: 0; /* Remove any margin */
    
}

.gallery .art-item img {
    width: 100%;
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
