/* Base Container */
.base-container {
    padding-block: var(--space-sm);   /* top + bottom */
    padding-inline: var(--space-md); /* left + right */
}

nav .base-container {
    padding-block: 0;   /* top + bottom */
    padding-inline: var(--space-md); /* left + right */
}


.medium-container {
    max-width: 730px;
    margin: 0 auto;
    padding: 0 24px;
}

.medium-container .medium-highlight {
    font-weight: var(--weight-medium);
    font-style: italic;
}

.medium-container .bio-quote {
    text-align: left;
    font-size: var(--font-size-lg);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.medium-block {
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-secondary);
}

.medium-block-last-block {
    margin-bottom: 0;
    border-bottom: none;
}

.medium-block ul {
    margin: var(--space-sm) var(--space-2xl);
}

/* Navigation Bar */
nav {
    font: var(--font-lg);
    font-weight: bold;
    border-bottom: 1px solid var(--color-secondary); /* soft gray divider */
}

nav > .base-container {
    display: flex;
    justify-content: space-between; /* distribute items to far left and right */
    align-items: center; /* vertically center items in this flex row */
}

.nav-items {
    display: flex;
    gap: var(--space-lg); /* space between "Work" and "About" */
    cursor: pointer; /* makes it look clickable */
}


nav img {
    width: var(--img-xxs);
    height: var(--img-xxs);
}

@media (min-width: 768px) {
    nav img {
        width: var(--img-xs);
        height: var(--img-xs);
    }
}


/* Hero Section */
.section-card {
    background: var(--color-secondary);
    text-align: center;

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

.section-card h1 { margin: var(--space-md); }
.section-card p {
    margin: var(--space-md);
    max-width: 40ch;
}

#contact {
    margin: var(--space-lg) 0;
}

/* Mobile grid */
#gallery {
    display: grid;
    row-gap: var( --space-3xl); /* space between items */
    grid-template-columns: 1fr; /* default: 1 column */
    align-items: stretch;  /* makes items in a row the same height */
    margin: var(--space-md);
}

/* Desktop grid */
@media (min-width: 768px) {
    #gallery {
        grid-template-columns: 1fr 1fr;
        column-gap: var( --space-3xl); /* space between columns */
    }
}

.gallery-item { /* todo fix image wrap problem */
    color: var(--color-black);
    border: 1px solid var(--color-secondary); /* soft gray border */
    border-radius: 8px; /* rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;

    height: 100%; /* ensures card fills the grid cell */
    display: flex;
    flex-direction: column;  /* stack: image → title → text */
    align-items: center;     /* optional: center everything */
    justify-content: space-evenly; /* pushes content to fill height nicely */
    text-align: center;
    padding: var(--space-md);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    background-color: var(--color-secondary); /* light lilac hover */
}

.gallery-item p {
    max-width: 45ch;
}

#biography {
    margin: var(--space-md);
}

/* Footer */
footer {
    font: var(--font-sm);
    border-top: 1px solid var(--color-secondary); /* soft gray divider */
}

#footer-index-page {
    margin-top: var(--space-xl);
}

footer > .base-container {
    display: grid;
    grid-template-rows: auto auto;   /* always two rows */ /* todo redundant?*/
    justify-items: center;           /* center items horizontally */
    align-content: center;           /* center the whole block vertically if footer is tall */
}

footer img {
    width: var(--font-size-xl);
    height: var(--font-size-xl);
}

#icon-mail {
    width: var(--font-size-2xl);
    height: var(--font-size-2xl);
}

.image-container-blog {
    text-align: center;
}