@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --gallery-ink: #172827;
    --gallery-muted: #657573;
    --gallery-paper: #f5f4ef;
    --gallery-accent: #d7a76c;
}

html,
body {
    background-color: var(--gallery-paper) !important;
}

body {
    color: var(--gallery-ink) !important;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

header {
    overflow: visible;
    color: #fff;
}

header div.background {
    height: 100%;
    min-height: 114px;
    background: linear-gradient(115deg, #142c2b 0%, #1c3936 72%, #24433e 100%) !important;
    opacity: .98;
}

header div.meta-left {
    position: relative;
    z-index: 1;
    width: min(68%, 860px);
    padding: 18px 150px 10px max(24px, calc((100vw - 1180px) / 2));
}

header p.title {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

header p.author {
    margin: .45em 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

header a.gallery-home {
    position: absolute;
    z-index: 3;
    top: 25px;
    right: max(24px, calc((100vw - 1180px) / 2));
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

header a.gallery-home:hover,
header a.gallery-home:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--gallery-ink);
    opacity: 1;
}

header a.gallery-home span {
    color: var(--gallery-accent);
    font-size: 1rem;
}

.scrolled header.is-fixed div.background {
    min-height: 80px;
}

.scrolled header.is-fixed div.meta-left {
    padding-top: 8px;
}

.scrolled header.is-fixed a.gallery-home {
    top: 18px;
}

#thumbnailContainer {
    padding-top: 124px;
    background: var(--gallery-paper);
}

.has-header #thumbnailContainer {
    padding-top: 124px;
}

div.thumbnails {
    max-width: 1440px;
}

div.thumbnail {
    overflow: hidden;
    background: #e5e4de;
}

div.thumbnail img {
    border: 3px solid var(--gallery-paper) !important;
    transition: transform .35s ease, opacity .25s ease;
}

div.thumbnail:hover img {
    transform: scale(1.025);
}

#loupeContainer div.background {
    background-color: #101817 !important;
}

#loupeContainer .custom-colorable,
.custom-colorable {
    fill: #e7c18e !important;
}

@media screen and (max-width: 768px) {
    header div.meta-left {
        width: 72%;
        padding-right: 135px;
        padding-left: 20px;
    }

    header a.gallery-home {
        right: 18px;
    }

    .has-header #thumbnailContainer {
        padding-top: 110px;
    }
}

@media screen and (max-width: 568px) {
    header {
        min-height: 124px;
        padding-bottom: 0;
    }

    header div.background {
        min-height: 124px;
    }

    header div.meta-left {
        width: 100%;
        padding: 64px 18px 14px;
    }

    header p.title {
        padding: 0;
        font-size: 1.35rem;
        white-space: normal;
    }

    header p.author {
        margin-top: .35em;
        font-size: .64rem;
    }

    header a.gallery-home {
        top: 12px;
        right: 18px;
        min-height: 36px;
        padding: 0 13px;
    }

    .scrolled header.is-fixed {
        min-height: 124px;
        padding-bottom: 0;
    }

    .scrolled header.is-fixed div.meta-left {
        padding: 64px 18px 14px;
    }

    .scrolled header.is-fixed a.gallery-home {
        top: 12px;
    }

    .has-header #thumbnailContainer {
        padding-top: 132px;
    }

    div.thumbnail img {
        border-width: 2px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
