@font-face {
    font-family: 'VeraScript';
    src: url('/fonts/levenimMt.eot');
    src: local('☺'), url('/fonts/levenimMt.woff') format('woff'), url('/fonts/levenimMt.ttf') format('truetype'), url('/fonts/levenimMt.svg') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VeraSerif';
    src: url('/fonts/HoratioDLig.eot');
    src: local('☺'), url('/fonts/HoratioDLig.woff') format('woff'), url('/fonts/HoratioDLig.ttf') format('truetype'), url('/fonts/HoratioDLig.svg') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --wrapper-width: 1000px;
    --sidebar-width: 150px;
    --menu-size: 31px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #fff;
    color: #000;
    font: 14px 'trebuchet ms', arial, sans-serif;
}

#wrapper {
    min-height: 100vh;
    width: var(--wrapper-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

header {
    padding-top: 24px;
    padding-bottom: 24px;
}

#logo {
    font-family: 'VeraScript', sans-serif;
    font-size: 40px;
    display: block;
}

#logo a {
    color: #000;
    text-decoration: none;
}

#content {
    display: flex;
    flex: 1;
}

#sidebar {
    width: var(--sidebar-width);
}

.menuRow {
    font-family: 'VeraSerif', sans-serif;
    font-size: var(--menu-size);
    line-height: 1;
    margin-bottom: 20px;
}

.menuRow a {
    text-decoration: none;
    color: #000;
}

#main {
    flex: 1;
    padding-left: 10px;
}

footer {
    padding: 18px 0;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    width: 170px;
    text-align: center;
    color: #000;
}

.gallery-item a {
    color: inherit;
    text-decoration: none;
}

.gallery-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 6px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    object-fit: cover;
}

.gallery-item:hover img {
    border-color: #000;
}

.desc {
    display: block;
    width: 150px;
    margin: 0 auto;
    font-size: 13px;
}

.page-copy h1 {
    font-family: 'VeraSerif', sans-serif;
    font-weight: normal;
    font-size: 28px;
    margin: 0 0 12px;
}

.page-copy p {
    margin: 0 0 12px;
}

.contact-form {
    max-width: 420px;
}

.contact-form label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #999;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form button {
    margin-top: 14px;
    background: #000;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.status {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    background: #f6f6f6;
}

.error {
    color: #b00020;
    font-size: 12px;
    margin-top: 4px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

body.detail {
    overflow: hidden;

    background: #000;
    color: #fff;
}

.editorial-detail {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.editorial-detail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #fff;
}

.detail-caption {
    font-family: 'VeraSerif', sans-serif;
    font-size: 18px;
    margin-top: 12px;
}

.detail-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
}

.detail-nav a {
    color: #000;
    text-decoration: none;
}

.detail-nav a:hover {
    text-decoration: underline;
}

.detail-back {
    margin: 0 auto;
}

@media (max-width: 1024px) {
    #wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    #content {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
        margin-bottom: 20px;
        justify-content: center;
        text-align: center;
    }

    .menuRow {
        margin-bottom: 0;
        flex: 1 1 120px;
    }

    #main {
        padding-left: 0;
    }

    .gallery {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --menu-size: 24px;
    }

    #wrapper {
        padding: 0 16px;
    }

    header {
        padding: 16px 0 18px;
        text-align: center;
    }

    #logo {
        font-size: 32px;
    }

    #sidebar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .menuRow {
        flex: 0 0 auto;
    }

    .gallery {
        justify-content: center;
        gap: 12px;
    }

    .gallery-item {
        width: calc(50% - 12px);
    }

    .gallery-item img {
        width: 100%;
    }

    .desc {
        width: auto;
    }

    .detail-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .detail-back {
        margin: 6px auto;
    }

    .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    #logo {
        font-size: 28px;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item img {
        max-width: 240px;
    }
}
