/* Global box-sizing to prevent padding/border issues */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* Default body styling */
body {
    --accent: #bf616a;
    --link-decoration: none;
    --background-light: #DCCFC6;
    --text-light: #2e3440;
    --border-light: #eceff4;
    --border-radius: 12px;
    --image-border-width: 12px;
    --padding: 5px;
    --gap: 10px;

    margin: 0;
    font-family: "Noto Serif". "Helvetica Neue", Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-light);
    padding-bottom: 50px;
}

/* Layout for the gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--gap);
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
}

/* Artwork container styling */
figure {
    margin: 0;
}

.artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Image styling */
img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    border: var(--image-border-width) solid var(--border-light);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(46, 52, 64, 0.25);
}

/* Title styling */
h1 {
    font-weight: 400;
    margin: 10px 0 20px;
    text-align: center;
    color: var(--text-light); /* Text color based on theme */
}

/* Other text styling */
p {
    font-weight: 200;
    margin: 10px 0 0;
    text-align: center;
    color: var(--text-light); /* Text color based on theme */
}

figcaption {
    font-weight: 400;
    margin: 10px 0 0;
    text-align: center;
    color: var(--text-light); /* Text color based on theme */
}
