/*
Theme Name: Artist Gallery
Description: A simple CMS for artists to upload images and display them in a masonry layout.
Version: 1.0
Author: Your Name
*/

/* Reset default browser styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: <?php echo get_theme_mod( 'header_background_color', '#000' ); ?>;
    padding: 10px 0; /* Adjust padding as needed */
    text-align: center; /* Adjust alignment as needed */
    z-index: 1000; /* Ensure header is on top of other content */
}

.site-header img {
    max-height: <?php echo get_theme_mod( 'header_logo_size', '50px' ); ?>; /* Adjust logo height */
}

/* Main content area */
main {
    margin-top: 60px; /* Adjust based on header height */
    padding: 20px; /* Adjust content padding */
}

/* Masonry layout */
.masonry {
    display: flex;
    flex-wrap: wrap;
    margin: 0; /* Remove default margin */
    justify-content: space-between; /* Fill all space between items */
}

.masonry-item {
    flex: 1 0 calc(33.333% - 8px); /* Adjust item width for responsive design */
    margin-bottom: 16px; /* Adjust margin to create spacing between items */
    box-sizing: border-box;
    overflow: hidden; /* Ensure images don't overflow */
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Prevent images from stretching */
}

@media (max-width: 768px) {
    .masonry-item {
        flex: 1 0 calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .masonry-item {
        flex: 1 0 calc(100% - 8px);
    }
}

/* Footer styles */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    margin-top: 20px; /* Ensure footer is visible */
}

/* Load more button styles */
#load-more {
    display: none; /* Hide initially */
    margin: 20px auto; /* Center the button */
    background-color: black;
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
}

#load-more:hover {
    background-color: #333;
}
