/* global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* palette & tokens */
:root {
    --bg: #f5f5f5;
    --fg: #111111;
    --border: #dddddd;
    --muted: #999999;
    --accent-red: #e4574f; /* warm red on hover */
}

/* base typography & page */
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        sans-serif; /* helvetica-like, cross-browser */
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase; /* all text in miniscules */
}

/* links */
a {
    color: inherit;
    text-decoration: none; /* no underline */
    transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent-red);
    outline: none;
}

/* grid shell */
.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    padding: 24px;
}

/* main blocks sit inside the 12-col grid */
.site-header,
.site-footer {
    grid-column: 2 / span 10; /* centered column span */
}

.site-header{
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.site-main {
    grid-column: 1 / -1;  /* instead of 2 / span 10 */
    display: flex;
    align-items: center;
}



/* responsive: stack more simply on small screens */
@media (max-width: 768px) {
    .page {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 16px;
        gap: 16px;
    }

    .site-header,
    .site-main,
    .site-footer {
        grid-column: 1 / -1;
    }
}

/* header nav */
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.nav-left {
    justify-self: flex-start;
}

.nav-center {
    justify-self: center;
}

.nav-right {
    justify-self: flex-end;
}

/* main / gallery */
.site-main {
    display: flex;
    align-items: center;
}

.gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding-block: 40px;
    cursor: ew-resize;
    position: relative;
    z-index: 10; /* make sure it sits above other sections */
}


.gallery-frame {
    position: relative;
    width: 100%;
    /* height defines the top + bottom constraints of the image */
    height: min(70vh, 520px); /* adjust this to taste */
    background: none;
    overflow: visible; /* allow image to bleed out horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* image taller-constrained, free to overflow sideways */
.gallery-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;              /* no stretching to full width */
    transform: translate(-50%, -50%);
    display: block;
}



/* footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.footer-left p + p {
    margin-top: 4px;
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
