/* Ensure footer is always at the bottom */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
/* CSS Variables for easy design changes */
:root {
    --background: #f8f8f6;
    --font-family: 'Jura', 'Helvetica Neue', Arial, sans-serif;
    --font-color: #222;
    --card-bg: #fff;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --frame-color: #222;
    --gap: 2rem;
    --section-padding: 2.5rem 1.5rem;
    --footer-bg: #f0f0ed;
    --footer-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
body {
    background: var(--background);
    font-family: var(--font-family);
    color: var(--font-color);
    margin: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
header {
    padding: 1.5rem 1rem 0.5rem 1rem;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-bottom: 1px solid var(--frame-color);
}
h1 {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    font-family: var(--font-family);
}
nav {
    display: flex;
    gap: 1.5rem;
}
nav a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
nav a:hover {
    border-bottom: 2px solid var(--frame-color);
}
.intro {
    padding: var(--section-padding);
    text-align: center;
}
.main-sections {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: center;
    padding: var(--section-padding);
}
.section-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--frame-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-card h2 {
    margin-top: 0;
    font-family: var(--font-family);
}
.section-link {
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--frame-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.section-link:hover {
    background: #444;
}

footer {
    background: var(--footer-bg);
    box-shadow: var(--footer-shadow);
    padding: 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 10;
    border-top: 1px solid var(--frame-color);
}
.footer-strip {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
}
.social-links {
    display: flex;
    gap: 1.2rem;
}
.social-links img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.signature {
    font-size: 1.1rem;
    color: var(--frame-color);
    opacity: 0.7;
    background: var(--card-bg);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    max-width: 100%;
    overflow-wrap: break-word;
}
.signature img {
    height: 2.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.gallery-thumb {
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0.5rem;
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
    transition: box-shadow 0.2s;
    background: #fff;
    border: 1px solid var(--frame-color);
}
.gallery-thumb:focus {
    outline: 2px solid var(--frame-color);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    background: #fff;
}
.lightbox .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1010;
}
.lightbox-nav {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}
.lightbox-nav button {
    background: var(--card-bg);
    color: var(--frame-color);
    border: 1px solid var(--frame-color);
    border-radius: 6px;
    font-size: 1.5rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.lightbox-nav button:hover {
    background: #eee;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--frame-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.2rem 1rem;
    min-width: 180px;
    max-width: 220px;
    height: 320px;
    position: relative;
    transition: box-shadow 0.2s;
}
.category-card:hover, .category-card:focus {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.category-signature {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--frame-color);
    margin-bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}
.category-label {
    font-size: 1.1rem;
    color: var(--frame-color);
    font-weight: 500;
    text-align: center;
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    width: 100%;
}
.category-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
}
.category-gallery-card {
    background: var(--card-bg);
    border: 2px solid var(--frame-color);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 340px;
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.category-gallery-close {
    position: static;
    font-size: 2rem;
    color: var(--frame-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 912;
}
.category-gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--frame-color);
    text-align: left;
    margin: 0;
    position: relative;
    background: none;
    z-index: 911;
    flex: none;
}
.category-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 911;
    border-bottom: 1px solid var(--frame-color);
    margin-bottom: 1rem;
    min-height: 3rem;
    padding: 0 1rem;
    width: 100%;
}
.category-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    overflow-y: auto;
    flex: 1;
}
@media (max-width: 700px) {
    .main-sections {
        flex-direction: column;
        gap: 1.2rem;
    }
    .section-card {
        max-width: 98vw;
    }
    .footer-strip {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}
