/*
Theme Name: mattphoto
Theme URI: https://mattphoto.de/
Author: mattphoto
Description: Custom frontend for mattphoto.
Version: 0.1.0
Text Domain: mattphoto
*/

:root {
    --page-width: 1600px;
    --space: clamp(20px, 3vw, 56px);
    --mattphoto-stage-height: var(--mattphoto-stage-height);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #fff;
    color: #111;
}

body {
    margin: 0;
    font-family: Lato, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-header,
.site-main,
.site-footer {
    width: min(100% - (2 * var(--space)), var(--page-width));
    margin-inline: auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 88px;
}

.site-title {
    font-weight: 700;
    text-decoration: none;
}

.site-main {
    padding-block: 6vh 12vh;
}

.project-meta {
    margin-block: 1rem 3rem;
}

.project-gallery {
    display: grid;
    gap: var(--space);
}

.site-footer {
    padding-block: 4rem 2rem;
}


/* === MATTPHOTO PROJECT 2A.1 START === */

/*
 * Functional Project foundation.
 * No JS and no horizontal interaction yet.
 */

.mattphoto-project {
width: 100%;
margin: 0;
padding: 0;
overflow: clip;
}

.mattphoto-project__article,
.mattphoto-project__hero,
.mattphoto-project__gallery,
.mattphoto-project__gallery-item {
margin: 0;
}

.mattphoto-project__hero {
position: relative;
width: 100%;
background: #f2f2f2;
}

.mattphoto-project__hero-image {
display: block;
width: 100%;
height: auto;
}


/* PROJECT INFORMATION */

.mattphoto-project__information {
width: min(100%, 1800px);
margin-inline: auto;
padding:
clamp(2.25rem, 5vw, 6rem)
clamp(1.25rem, 4vw, 5rem)
clamp(3rem, 7vw, 8rem);
}

.mattphoto-project__header {
display: grid;
grid-template-columns:
minmax(0, 1fr)
minmax(15rem, 0.36fr);
gap: clamp(2rem, 6vw, 8rem);
align-items: start;
}

.mattphoto-project__title {
max-width: 13ch;
margin: 0;
font-size: clamp(2.5rem, 6.5vw, 7rem);
font-weight: 400;
line-height: 0.94;
letter-spacing: -0.045em;
text-wrap: balance;
}

.mattphoto-project__subtitle {
margin:
clamp(1rem, 2vw, 1.75rem)
0
0;
font-size: clamp(1rem, 1.5vw, 1.35rem);
font-weight: 400;
line-height: 1.35;
letter-spacing: 0;
}


/* TAXONOMIES */

.mattphoto-project__classification {
display: grid;
gap: 1.5rem;
padding-top: 0.35rem;
}

.mattphoto-project__taxonomy-label,
.mattphoto-project__section-title {
margin: 0 0 0.5rem;
font-size: 0.72rem;
font-weight: 700;
line-height: 1.2;
letter-spacing: 0.11em;
text-transform: uppercase;
}

.mattphoto-project__term-list {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.7rem;
margin: 0;
padding: 0;
list-style: none;
}

.mattphoto-project__term {
font-size: 1rem;
line-height: 1.45;
}

.mattphoto-project__term a {
color: inherit;
text-decoration-thickness: 1px;
text-underline-offset: 0.16em;
}


/* OPTIONAL EDITORIAL CONTENT */

.mattphoto-project__content {
max-width: 52rem;
margin-top: clamp(2.5rem, 5vw, 5rem);
font-size: clamp(1rem, 1.25vw, 1.2rem);
line-height: 1.65;
}

.mattphoto-project__content > :first-child {
margin-top: 0;
}

.mattphoto-project__content > :last-child {
margin-bottom: 0;
}


/* CREDITS */

.mattphoto-project__credits {
max-width: 56rem;
margin-top: clamp(2.5rem, 5vw, 5rem);
}

.mattphoto-project__credit-list {
display: grid;
gap: 0;
margin: 0;
}

.mattphoto-project__credit {
display: grid;
grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
gap: 1.5rem;
padding: 0.65rem 0;
border-top: 1px solid currentColor;
}

.mattphoto-project__credit:last-child {
border-bottom: 1px solid currentColor;
}

.mattphoto-project__credit dt,
.mattphoto-project__credit dd {
margin: 0;
font-size: 0.95rem;
line-height: 1.45;
}

.mattphoto-project__credit dt {
font-weight: 700;
}


/* GALLERY */

.mattphoto-project__gallery {
display: grid;
gap: clamp(0.9rem, 2vw, 2rem);
width: min(100%, 2000px);
margin-inline: auto;
padding:
0
clamp(0.75rem, 2vw, 2.5rem)
clamp(3rem, 6vw, 7rem);
}

.mattphoto-project__gallery-item {
width: 100%;
}

.mattphoto-project__gallery-image {
display: block;
width: 100%;
height: auto;
background: #f2f2f2;
}

.mattphoto-project__caption {
max-width: 48rem;
margin-top: 0.55rem;
font-size: 0.82rem;
line-height: 1.45;
}


/* FOCUS */

.mattphoto-project a:focus-visible {
outline: 2px solid currentColor;
outline-offset: 4px;
}


/* MOBILE */

@media (max-width: 760px) {

.mattphoto-project__information {
padding:
2rem
1.15rem
3.5rem;
}

.mattphoto-project__header {
grid-template-columns: minmax(0, 1fr);
gap: 2rem;
}

.mattphoto-project__title {
max-width: none;
font-size: clamp(2.35rem, 12vw, 4.5rem);
line-height: 0.96;
}

.mattphoto-project__classification {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.5rem;
}

.mattphoto-project__credit {
grid-template-columns: minmax(0, 1fr);
gap: 0.15rem;
}

.mattphoto-project__gallery {
gap: 0.8rem;
padding:
0
0.65rem
3rem;
}

}


/* VERY SMALL MOBILE */

@media (max-width: 420px) {

.mattphoto-project__classification {
grid-template-columns: minmax(0, 1fr);
}

}


/* REDUCED MOTION FOUNDATION */

@media (prefers-reduced-motion: reduce) {

.mattphoto-project *,
.mattphoto-project *::before,
.mattphoto-project *::after {
scroll-behavior: auto !important;
}

}

/* === MATTPHOTO PROJECT 2A.1 END === */


/* === MATTPHOTO GRID 2A.2 START === */

/*
 * mattphoto Grid
 *
 * Progressive enhancement:
 *
 * Without JavaScript:
 *   existing vertical gallery remains intact.
 *
 * Desktop with JavaScript:
 *   Fluxus-inspired packed horizontal image field.
 *
 * No forced mouse-wheel translation.
 */


/* ---------------------------------------------------------
 * DESKTOP / TABLET GRID
 * --------------------------------------------------------- */

@media (min-width: 769px) {

    .mattphoto-project__gallery.is-grid-enhanced {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            0
            clamp(0.75rem, 2vw, 2.5rem)
            clamp(3rem, 6vw, 7rem);

        overflow-x: auto;
        overflow-y: hidden;

        overscroll-behavior-x: contain;

        scrollbar-width: thin;

        outline: none;
    }


    .mattphoto-project__gallery.is-grid-enhanced:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -2px;
    }


    .mattphoto-project__gallery-grid {
        position: relative;

        width: 100%;
        min-width: 100%;

        height: var(--mattphoto-stage-height);
    }


    .mattphoto-project__gallery.is-grid-enhanced
    .mattphoto-project__gallery-grid {
        opacity: 0;

        transition:
            opacity 220ms ease;
    }


    .mattphoto-project__gallery.is-grid-ready
    .mattphoto-project__gallery-grid {
        opacity: 1;
    }


    .mattphoto-project__gallery.is-grid-enhanced
    .mattphoto-project__gallery-item {
        position: absolute;

        margin: 0;

        overflow: hidden;

        background: #eeeeee;

        transition:
            left 360ms ease,
            top 360ms ease,
            width 360ms ease,
            height 360ms ease;
    }


    .mattphoto-project__gallery.is-grid-enhanced
    .mattphoto-project__gallery-image {
        display: block;

        width: 100%;
        max-width: none;

        height: 100%;
        max-height: none;

        object-fit: cover;
        object-position: center center;

        background: #eeeeee;
    }


    /*
     * Captions remain available in the document.
     * If used, they become a restrained image overlay.
     */

    .mattphoto-project__gallery.is-grid-enhanced
    .mattphoto-project__caption {
        position: absolute;

        right: 0;
        bottom: 0;
        left: 0;

        width: auto;
        max-width: none;

        margin: 0;
        padding:
            1.8rem
            0.8rem
            0.7rem;

        color: #ffffff;

        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0.55),
                rgba(0, 0, 0, 0)
            );

        font-size: 0.78rem;
        line-height: 1.35;

        pointer-events: none;
    }

}


/* ---------------------------------------------------------
 * MOBILE
 * --------------------------------------------------------- */

@media (max-width: 768px) {

    /*
     * JavaScript may already have inserted the gallery wrapper.
     * On mobile the wrapper simply behaves as a normal vertical list.
     */

    .mattphoto-project__gallery-grid {
        display: grid;

        width: 100%;
        height: auto;

        gap: 0.8rem;
    }


    .mattphoto-project__gallery-item {
        position: relative;

        width: 100%;
        height: auto;
    }


    .mattphoto-project__gallery-image {
        display: block;

        width: 100%;
        height: auto;

        object-fit: initial;
    }

}


/* ---------------------------------------------------------
 * REDUCED MOTION
 * --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .mattphoto-project__gallery-grid,
    .mattphoto-project__gallery-item {
        transition: none !important;
    }

}

/* === MATTPHOTO GRID 2A.2 END === */


/* === MATTPHOTO GRID 2A.2.1 START === */

/*
 * During live browser resizing the grid must track the viewport
 * immediately rather than visually chasing its old coordinates.
 */

@media (min-width: 769px) {

    .mattphoto-project__gallery.is-grid-resizing
    .mattphoto-project__gallery-item {
        transition: none;
    }

}

/* === MATTPHOTO GRID 2A.2.1 END === */


/* === MATTPHOTO GRID 2A.4 START === */


/*
 * ---------------------------------------------------------
 * Fluxus-style horizontal behaviour
 * ---------------------------------------------------------
 *
 * Fluxus keeps a native browser horizontal scrollbar.
 * We deliberately preserve that visual cue.
 */

@media (min-width: 769px) {

    .mattphoto-project__gallery.is-grid-enhanced {
        /*
         * Deliberately "scroll", not "auto":
         * the horizontal scrollbar is part of the visual language.
         */
        overflow-x: scroll;
        overflow-y: hidden;

        /*
         * Fluxus itself uses the browser-native scrollbar.
         * Do not artificially thin or hide it.
         */
        scrollbar-width: auto;

        cursor: default;
    }


    /*
     * Grab cursor only over the actual photographic field.
     * The scrollbar keeps its native browser interaction.
     */

    .mattphoto-project__gallery.is-grid-scrollable
    .mattphoto-project__gallery-grid {
        cursor: grab;
    }


    .mattphoto-project__gallery.is-grid-dragging
    .mattphoto-project__gallery-grid {
        cursor: grabbing;
        user-select: none;
    }


    .mattphoto-project__gallery.is-grid-dragging
    .mattphoto-project__gallery-image {
        pointer-events: none;
    }


    .mattphoto-project__gallery-image {
        -webkit-user-drag: none;
        user-select: none;
    }


    /*
     * -----------------------------------------------------
     * Navigation tip
     * -----------------------------------------------------
     *
     * Intentionally restrained, following the Fluxus idea:
     * small copy + two bordered arrow buttons.
     */

    .mattphoto-grid-nav {
        display: none;

        box-sizing: border-box;

        align-items: center;
        justify-content: flex-end;

        gap: 0;

        width: min(100%, 2000px);

        margin:
            0
            auto;

        padding:
            0.7rem
            clamp(0.75rem, 2vw, 2.5rem)
            clamp(2.5rem, 4vw, 4.5rem);

        font-size: 0.76rem;
        line-height: 24px;

        color: inherit;
    }


    .mattphoto-grid-nav.is-visible {
        display: flex;
    }


    .mattphoto-grid-nav__label {
        margin-right: 10px;

        opacity: 0.72;
    }


    .mattphoto-grid-nav__button {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        width: 24px;
        height: 24px;

        margin: 0 5px;
        padding: 0;

        border: 1px solid #eaeaea;

        border-radius: 0;

        background: transparent;

        color: inherit;

        font: inherit;
        font-size: 17px;
        line-height: 1;

        cursor: pointer;

        transition:
            border-color 160ms ease,
            opacity 160ms ease;
    }


    .mattphoto-grid-nav__button +
    .mattphoto-grid-nav__button {
        margin-left: 0;
    }


    .mattphoto-grid-nav__button:hover {
        border-color: #bdbdbd;
    }


    .mattphoto-grid-nav__button.is-active {
        border-color: #888;
    }


    .mattphoto-grid-nav__button:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }


    .mattphoto-grid-nav__button:disabled {
        opacity: 0.25;
        cursor: default;
    }

}


/*
 * Mobile:
 * native vertical layout, therefore no horizontal navigation tip.
 */

@media (max-width: 768px) {

    .mattphoto-grid-nav {
        display: none !important;
    }

}


/*
 * Reduced motion:
 * navigation remains fully functional,
 * but without smooth animated transitions.
 */

@media (prefers-reduced-motion: reduce) {

    .mattphoto-grid-nav__button {
        transition: none;
    }

}

/* === MATTPHOTO GRID 2A.4 END === */


/* === MATTPHOTO PROJECT 2A.5 START === */

/*
 * Project composition pass.
 *
 * One consistent photographic axis for:
 *
 * Hero
 * Project information
 * Credits
 * Gallery
 * Grid navigation
 */

.mattphoto-project {
    --mp-project-gutter:
        clamp(
            1.15rem,
            5vw,
            6rem
        );

    --mp-project-max:
        1800px;

    --mp-project-text-max:
        1550px;
}


/* ---------------------------------------------------------
 * HERO
 * --------------------------------------------------------- */

.mattphoto-project__hero {
    width:
        min(
            calc(
                100% -
                (
                    var(--mp-project-gutter) *
                    2
                )
            ),
            var(--mp-project-max)
        );

    margin-inline: auto;

    background: transparent;
}


.mattphoto-project__hero-image {
    display: block;

    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
 * INFORMATION BLOCK
 * --------------------------------------------------------- */

.mattphoto-project__information {
    box-sizing: border-box;

    width:
        min(
            calc(
                100% -
                (
                    var(--mp-project-gutter) *
                    2
                )
            ),
            var(--mp-project-text-max)
        );

    margin-inline: auto;

    padding:
        clamp(
            2.8rem,
            5.5vw,
            6.5rem
        )
        0
        clamp(
            3.6rem,
            6vw,
            6.5rem
        );
}


.mattphoto-project__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(
            13rem,
            0.28fr
        );

    gap:
        clamp(
            3rem,
            8vw,
            10rem
        );

    align-items: start;
}


/* ---------------------------------------------------------
 * TITLE
 * --------------------------------------------------------- */

.mattphoto-project__title {
    max-width: 11.5ch;

    margin: 0;

    font-size:
        clamp(
            3rem,
            5.7vw,
            6.5rem
        );

    font-weight: 400;

    line-height: 0.93;

    letter-spacing: -0.045em;
}


.mattphoto-project__subtitle {
    max-width: 34rem;

    margin:
        clamp(
            1.1rem,
            1.8vw,
            1.6rem
        )
        0
        0;

    font-size:
        clamp(
            0.95rem,
            1vw,
            1.12rem
        );

    line-height: 1.45;
}


/* ---------------------------------------------------------
 * DISCIPLINE / INDUSTRY
 * --------------------------------------------------------- */

.mattphoto-project__classification {
    display: grid;

    gap:
        clamp(
            1.3rem,
            2vw,
            2rem
        );

    padding-top: 0.25rem;
}


.mattphoto-project__taxonomy-label,
.mattphoto-project__section-title {
    margin:
        0
        0
        0.45rem;

    font-size: 0.68rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.mattphoto-project__term-list {
    gap:
        0.2rem
        0.65rem;
}


.mattphoto-project__term {
    font-size: 0.92rem;

    line-height: 1.4;
}


/* ---------------------------------------------------------
 * CREDITS
 * --------------------------------------------------------- */

.mattphoto-project__credits {
    width: min(100%, 56rem);

    margin-top:
        clamp(
            3rem,
            5vw,
            5rem
        );
}


.mattphoto-project__credit {
    grid-template-columns:
        minmax(
            8.5rem,
            0.38fr
        )
        minmax(0, 1fr);

    gap: 1.4rem;

    padding:
        0.58rem
        0;

    border-top:
        1px solid
        currentColor;
}


.mattphoto-project__credit dt,
.mattphoto-project__credit dd {
    font-size: 0.9rem;

    line-height: 1.4;
}


/* ---------------------------------------------------------
 * GALLERY
 * --------------------------------------------------------- */

.mattphoto-project__gallery {
    box-sizing: border-box;

    width:
        min(
            calc(
                100% -
                (
                    var(--mp-project-gutter) *
                    2
                )
            ),
            var(--mp-project-max)
        );

    max-width: none;

    margin-inline: auto;

    padding:
        0
        0
        clamp(
            0.5rem,
            1vw,
            1rem
        );
}


/*
 * Grid itself should begin immediately on the same outer axis.
 */

.mattphoto-project__gallery-grid {
    margin: 0;
}


/* ---------------------------------------------------------
 * GRID NAVIGATION
 * --------------------------------------------------------- */

.mattphoto-grid-nav {
    box-sizing: border-box;

    width:
        min(
            calc(
                100% -
                (
                    var(--mp-project-gutter) *
                    2
                )
            ),
            var(--mp-project-max)
        );

    margin-inline: auto;

    padding:
        0.55rem
        0
        clamp(
            3rem,
            5vw,
            5rem
        );
}


/*
 * Keep Fluxus-like understatement.
 */

.mattphoto-grid-nav__label {
    font-size: 0.72rem;

    opacity: 0.58;
}


/* ---------------------------------------------------------
 * DESKTOP GRID HEIGHT
 * --------------------------------------------------------- */

@media (min-width: 961px) {

    .mattphoto-project__gallery-grid {
        height:
            clamp(
                500px,
                68vh,
                790px
            );
    }

}


/* ---------------------------------------------------------
 * TABLET
 * --------------------------------------------------------- */

@media (
    min-width: 769px
)
and (
    max-width: 1100px
) {

    .mattphoto-project__header {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(
                11rem,
                0.34fr
            );

        gap: 3rem;
    }


    .mattphoto-project__gallery-grid {
        height: var(--mattphoto-stage-height);
    }

}


/* ---------------------------------------------------------
 * MOBILE
 * --------------------------------------------------------- */

@media (max-width: 768px) {

    .mattphoto-project {
        --mp-project-gutter:
            1.05rem;
    }


    .mattphoto-project__hero,
    .mattphoto-project__information,
    .mattphoto-project__gallery {
        width:
            calc(
                100% -
                (
                    var(--mp-project-gutter) *
                    2
                )
            );
    }


    .mattphoto-project__information {
        padding:
            2.2rem
            0
            3.2rem;
    }


    .mattphoto-project__header {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 2rem;
    }


    .mattphoto-project__title {
        max-width: none;

        font-size:
            clamp(
                2.6rem,
                12vw,
                4.6rem
            );

        line-height: 0.95;
    }


    .mattphoto-project__classification {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 1.5rem;
    }


    .mattphoto-project__credits {
        margin-top: 2.8rem;
    }


    .mattphoto-project__credit {
        grid-template-columns:
            minmax(7.5rem, 0.42fr)
            minmax(0, 1fr);

        gap: 1rem;
    }


    .mattphoto-project__gallery {
        padding-bottom: 2.5rem;
    }

}


/* ---------------------------------------------------------
 * SMALL MOBILE
 * --------------------------------------------------------- */

@media (max-width: 480px) {

    .mattphoto-project__classification {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .mattphoto-project__credit {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 0.1rem;
    }

}

/* === MATTPHOTO PROJECT 2A.5 END === */


/* === MATTPHOTO HEADER 2B.1 START === */


/*
 * ---------------------------------------------------------
 * BASE
 * ---------------------------------------------------------
 */

.mattphoto-site-header {
position: relative;

z-index: 100;

width: 100%;

background: #fff;

border-top:
1px solid #111116;
}


.mattphoto-site-header__inner {
display: flex;

align-items: stretch;

box-sizing: border-box;

width: 100%;

min-height: 67px;

padding:
0
16px;
}


/*
 * ---------------------------------------------------------
 * BRAND
 * ---------------------------------------------------------
 *
 * Deliberately recalls the Fluxus mattphoto header:
 * dedicated left brand area + subtle separator.
 */

.mattphoto-site-brand {
display: flex;

flex: 0 0 272px;

flex-direction: column;

align-items: center;
justify-content: center;

box-sizing: border-box;

margin-right: 28px;

padding:
12px
28px
11px
12px;

border-right:
1px solid #ebebeb;
}


.mattphoto-site-brand__wordmark {
display: block;

margin: 0;

color: #111116;

font-family:
Lato,
Arial,
sans-serif;

font-size: 13px;

font-weight: 700;

line-height: 1;

letter-spacing: -0.025em;

text-decoration: none;
}


.mattphoto-site-brand__description {
margin:
3px
0
-5px;

color: #bdbdbd;

font-family:
Lato,
Arial,
sans-serif;

font-size: 13px;

font-weight: 400;

line-height: 1.5;

text-align: center;

white-space: nowrap;
}


/*
 * ---------------------------------------------------------
 * NAVIGATION
 * ---------------------------------------------------------
 */

.mattphoto-site-navigation {
display: flex;

flex: 1 1 auto;

align-items: center;

min-width: 0;
}


.mattphoto-primary-navigation {
flex: 1 1 auto;
}


.mattphoto-secondary-navigation {
flex: 0 0 auto;

margin-left: auto;
}


.mattphoto-nav {
display: flex;

align-items: center;

gap: 0;

margin: 0;

padding: 0;

list-style: none;
}


.mattphoto-nav li {
position: relative;

margin:
0
7px
0
0;

padding: 0;
}


.mattphoto-nav a {
position: relative;

display: inline-block;

padding:
6px
10px;

color: #8a8a8a;

font-family:
Lato,
Arial,
sans-serif;

font-size: 13px;

font-weight: 400;

line-height: 1.2;

letter-spacing: 0.03em;

text-transform: uppercase;

text-decoration: none;

transition:
color 140ms ease,
background-color 140ms ease;
}


.mattphoto-nav a:hover {
color: #111116;
}


/*
 * Active marker as on the live site: the Fluxus customizer there replaces
 * the yellow default with near-black text on white (fluxus-customize.css).
 */

.mattphoto-nav .current-menu-item > a,
.mattphoto-nav .current-menu-parent > a,
.mattphoto-nav .current-menu-ancestor > a,
.mattphoto-nav a.is-current,
.mattphoto-nav a[aria-current] {
color: #111111;

background: transparent;
}


.mattphoto-nav--secondary li {
margin:
0
0
0
4px;
}


/*
 * ---------------------------------------------------------
 * SKIP LINK
 * ---------------------------------------------------------
 */

.mattphoto-skip-link {
position: fixed;

top: 8px;
left: 8px;

z-index: 10000;

padding:
0.7rem
1rem;

background: #111116;

color: #fff;

font-size: 14px;

text-decoration: none;

transform:
translateY(-150%);
}


.mattphoto-skip-link:focus {
transform:
translateY(0);
}


/*
 * ---------------------------------------------------------
 * MOBILE TOGGLE
 * ---------------------------------------------------------
 */

.mattphoto-menu-toggle {
display: none;

align-items: center;

gap: 10px;

margin-left: auto;

padding: 0;

border: 0;

background: transparent;

color: #111116;

font: inherit;

cursor: pointer;
}


.mattphoto-menu-toggle__label {
font-family:
Lato,
Arial,
sans-serif;

font-size: 11px;

letter-spacing: 0.04em;

text-transform: uppercase;
}


.mattphoto-menu-toggle__icon {
position: relative;

display: block;

width: 20px;
height: 14px;
}


.mattphoto-menu-toggle__icon span {
position: absolute;

left: 0;

display: block;

width: 20px;
height: 1px;

background: currentColor;

transition:
transform 180ms ease,
top 180ms ease;
}


.mattphoto-menu-toggle__icon span:first-child {
top: 3px;
}


.mattphoto-menu-toggle__icon span:last-child {
top: 10px;
}


.mattphoto-site-header.is-menu-open
.mattphoto-menu-toggle__icon span:first-child {
top: 7px;

transform:
rotate(45deg);
}


.mattphoto-site-header.is-menu-open
.mattphoto-menu-toggle__icon span:last-child {
top: 7px;

transform:
rotate(-45deg);
}


/*
 * ---------------------------------------------------------
 * MID-SIZE
 * ---------------------------------------------------------
 */

@media (
max-width: 1180px
)
and (
min-width: 821px
) {

.mattphoto-site-brand {
flex-basis: 220px;

margin-right: 18px;

padding-right: 20px;
}


.mattphoto-site-brand__description {
font-size: 10px;
}


.mattphoto-nav li {
margin-right: 2px;
}


.mattphoto-nav a {
padding:
7px
6px;

font-size: 11px;
}

}


/*
 * ---------------------------------------------------------
 * MOBILE
 * ---------------------------------------------------------
 */

@media (max-width: 820px) {

.mattphoto-site-header {
position: sticky;

top: 0;

z-index: 1000;
}


.admin-bar
.mattphoto-site-header {
top: 46px;
}


.mattphoto-site-header__inner {
position: relative;

display: flex;

align-items: center;

min-height: 64px;

padding:
0
1.05rem;
}


.mattphoto-site-brand {
flex:
0 1 auto;

align-items: flex-start;

margin: 0;

padding:
9px
0;

border-right: 0;
}


.mattphoto-site-brand__wordmark {
font-size: 13px;
}


.mattphoto-site-brand__description {
margin-top: 4px;

font-size: 9.5px;

text-align: left;

white-space: normal;
}


.mattphoto-menu-toggle {
display: flex;
}


.mattphoto-site-navigation {
position: absolute;

top: 100%;
right: 0;
left: 0;

display: none;

box-sizing: border-box;

padding:
1rem
1.05rem
1.4rem;

border-top:
1px solid #ebebeb;

background: #fff;

box-shadow:
0
12px
24px
rgba(0, 0, 0, 0.06);
}


.mattphoto-site-header.is-menu-open
.mattphoto-site-navigation {
display: block;
}


.mattphoto-primary-navigation,
.mattphoto-secondary-navigation {
width: 100%;

margin: 0;
}


.mattphoto-nav {
display: grid;

grid-template-columns:
repeat(
2,
minmax(0, 1fr)
);

gap:
0
1rem;

width: 100%;
}


.mattphoto-nav li,
.mattphoto-nav--secondary li {
margin: 0;

border-bottom:
1px solid #efefef;
}


.mattphoto-nav a {
display: block;

padding:
0.8rem
0;

font-size: 12px;
}


.mattphoto-secondary-navigation {
margin-top: 1rem;
}


.mattphoto-nav--secondary a {
color: #555;
}

}


/*
 * ---------------------------------------------------------
 * SMALL MOBILE
 * ---------------------------------------------------------
 */

@media (max-width: 460px) {

.mattphoto-nav {
grid-template-columns:
minmax(0, 1fr);
}


.mattphoto-site-brand__description {
max-width: 190px;
}

}


/*
 * ---------------------------------------------------------
 * WP ADMIN BAR
 * ---------------------------------------------------------
 */

@media (
min-width: 821px
)
and (
max-width: 782px
) {

.admin-bar
.mattphoto-site-header {
top: 46px;
}

}


/*
 * ---------------------------------------------------------
 * REDUCED MOTION
 * ---------------------------------------------------------
 */

@media (prefers-reduced-motion: reduce) {

.mattphoto-nav a,
.mattphoto-menu-toggle__icon span {
transition: none;
}

}


/* ---------------------------------------------------------
 * REAL MATTPHOTO SVG LOGO
 * --------------------------------------------------------- */

.mattphoto-site-brand__logo {
    display: block;

    width: auto;
    height: 14px;

    max-width: 100%;
}


/* === MATTPHOTO HEADER LIVE PARITY 2C.3D.2A.2 START === */

/*
 * Desktop geometry copied from the existing mattphoto /
 * Fluxus header.
 *
 * Live reference:
 *
 * header inner:
 *   padding 12px 16px
 *
 * logo container:
 *   width 272px
 *   margin-right 32px
 *   padding 16px 0
 *
 * navigation:
 *   li margin-right 8px
 *
 * The V2 HTML structure remains unchanged.
 */

@media (min-width: 1181px) {

    .mattphoto-site-header__inner {
        align-items: center;

        min-height: 0;

        padding:
            12px
            16px;
    }


    .mattphoto-site-brand {
        flex:
            0
            0
            272px;

        align-items: flex-end;
        justify-content: center;

        margin:
            0
            32px
            0
            0;

        padding:
            16px
            12px
            16px
            0;

        border-right:
            1px solid #ebebeb;
    }


    .mattphoto-site-brand__wordmark {
        display: block;

        line-height: 0;

        text-align: right;
    }


    .mattphoto-site-brand__logo {
        display: inline-block;

        width: 190px;
        height: auto;

        max-width: 100%;

        transform:
            scale(1.16);

        transform-origin:
            right
            bottom;
    }


    .mattphoto-site-brand__description {
        margin-top: 3px;
        margin-bottom: -5px;

        color: #bdbdbd;

        font-size: 13px;
        font-weight: 400;

        text-align: right;
    }


    .mattphoto-nav li,
    .mattphoto-nav--secondary li {
        margin:
            0
            8px
            0
            0;
    }


    .mattphoto-nav a {
        padding:
            6px
            10px;

        color: #8a8a8a;

        font-size: 13px;

        letter-spacing: 0.03em;

        text-transform: uppercase;
    }

}

/* === MATTPHOTO HEADER LIVE PARITY 2C.3D.2A.2 END === */


/* === MATTPHOTO HEADER 2B.1 END === */


/* === MATTPHOTO FOOTER 2B.2 START === */

.mattphoto-site-footer {
position: relative;
z-index: 10;

width: 100%;

background: #fff;
color: #8d8d8d;
}


.mattphoto-site-footer__inner {
display: flex;
align-items: center;

box-sizing: border-box;

width: 100%;
min-height: 54px;

padding:
0
clamp(
1.15rem,
5vw,
6rem
);

border-top:
1px solid #ededed;
}


/* LEGAL NAV */

.mattphoto-footer-navigation {
flex: 0 0 auto;
}


.mattphoto-footer-nav {
display: flex;
align-items: center;

gap: 0;

margin: 0;
padding: 0;

list-style: none;
}


.mattphoto-footer-nav li {
margin:
0
16px
0
0;

padding: 0;
}


.mattphoto-footer-nav a {
color: inherit;

font-family:
Lato,
Arial,
sans-serif;

font-size: 11px;
font-weight: 400;
line-height: 1.3;

letter-spacing: 0.015em;

text-decoration: none;

transition:
color 140ms ease;
}


.mattphoto-footer-nav a:hover {
color: #111116;
}


.mattphoto-footer-nav a:focus-visible {
outline:
2px solid currentColor;

outline-offset:
3px;
}


/* COPYRIGHT */

.mattphoto-site-footer__copyright {
margin:
0
0
0
auto;

font-family:
Lato,
Arial,
sans-serif;

font-size: 11px;
font-weight: 400;
line-height: 1.3;

letter-spacing: 0.01em;
}


/* MOBILE */

@media (max-width: 640px) {

.mattphoto-site-footer__inner {
align-items: flex-start;
flex-direction: column;

gap: 0.7rem;

min-height: 0;

padding:
1.2rem
1.05rem
1.3rem;
}


.mattphoto-site-footer__copyright {
margin-left: 0;
}


.mattphoto-footer-nav li {
margin-right: 14px;
}

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

.mattphoto-footer-nav a {
transition: none;
}

}

/* === MATTPHOTO FOOTER 2B.2 END === */


/* === MATTPHOTO ARCHIVE 2C.1 START === */


.mattphoto-portfolio-archive {
--mp-archive-gutter:
clamp(
1.15rem,
5vw,
6rem
);

--mp-archive-max:
1800px;

width: 100%;
}


/* HEADER */

.mattphoto-portfolio-archive__header {
box-sizing: border-box;

width:
min(
calc(
100% -
(
var(--mp-archive-gutter) *
2
)
),
1550px
);

margin-inline:
auto;

padding:
clamp(
3rem,
6vw,
7rem
)
0
clamp(
2.8rem,
5vw,
5.5rem
);
}


.mattphoto-portfolio-archive__eyebrow {
margin:
0
0
0.65rem;

font-size:
0.68rem;

font-weight:
700;

letter-spacing:
0.1em;

text-transform:
uppercase;
}


.mattphoto-portfolio-archive__title {
margin: 0;

font-size:
clamp(
3.2rem,
7vw,
7.5rem
);

font-weight:
400;

line-height:
0.92;

letter-spacing:
-0.045em;
}


.mattphoto-portfolio-archive__description {
max-width:
46rem;

margin-top:
1.4rem;

font-size:
clamp(
0.95rem,
1vw,
1.1rem
);

line-height:
1.6;
}


/* GRID */

.mattphoto-archive-grid {
box-sizing: border-box;

width:
min(
calc(
100% -
(
var(--mp-archive-gutter) *
2
)
),
var(--mp-archive-max)
);

margin-inline:
auto;

overflow-x:
scroll;

overflow-y:
hidden;

scrollbar-width:
auto;

outline:
none;
}


.mattphoto-archive-grid__inner {
position:
relative;

width:
100%;

height:
clamp(
500px,
68vh,
790px
);
}


.mattphoto-archive-grid.is-enhanced
.mattphoto-archive-grid__item {
position:
absolute;

overflow:
hidden;

margin:
0;

background:
#ededed;
}


.mattphoto-archive-grid__link {
position:
relative;

display:
block;

width:
100%;

height:
100%;

color:
inherit;

text-decoration:
none;
}


.mattphoto-archive-grid__image {
display:
block;

width:
100%;

height:
100%;

object-fit:
cover;

object-position:
center center;

transition:
transform 300ms ease;
}


/* PROJECT LABEL */

.mattphoto-archive-grid__overlay {
position:
absolute;

right:
0;

bottom:
0;

left:
0;

box-sizing:
border-box;

padding:
2.6rem
0.9rem
0.8rem;

color:
#fff;

background:
linear-gradient(
to top,
rgba(0, 0, 0, 0.62),
rgba(0, 0, 0, 0)
);

opacity:
0;

transform:
translateY(4px);

transition:
opacity 180ms ease,
transform 180ms ease;
}


.mattphoto-archive-grid__project-title {
margin:
0;

font-size:
clamp(
1rem,
1.25vw,
1.35rem
);

font-weight:
400;

line-height:
1.05;
}


.mattphoto-archive-grid__subtitle {
margin:
0.35rem
0
0;

font-size:
0.76rem;

line-height:
1.3;

opacity:
0.88;
}


.mattphoto-archive-grid__link:hover
.mattphoto-archive-grid__overlay,

.mattphoto-archive-grid__link:focus-visible
.mattphoto-archive-grid__overlay {
opacity:
1;

transform:
translateY(0);
}


.mattphoto-archive-grid__link:hover
.mattphoto-archive-grid__image {
transform:
scale(1.012);
}


.mattphoto-archive-grid__link:focus-visible {
outline:
3px solid #fff;

outline-offset:
-3px;
}


/* DRAG */

.mattphoto-archive-grid.is-scrollable
.mattphoto-archive-grid__inner {
cursor:
grab;
}


.mattphoto-archive-grid.is-dragging
.mattphoto-archive-grid__inner {
cursor:
grabbing;

user-select:
none;
}


/* NAVIGATION */

.mattphoto-archive-grid-nav {
display:
none;

align-items:
center;

justify-content:
flex-end;

box-sizing:
border-box;

width:
min(
calc(
100% -
(
var(--mp-archive-gutter) *
2
)
),
var(--mp-archive-max)
);

margin-inline:
auto;

padding:
0.55rem
0
clamp(
3rem,
5vw,
5rem
);

font-size:
0.72rem;

line-height:
24px;
}


.mattphoto-archive-grid-nav.is-visible {
display:
flex;
}


.mattphoto-archive-grid-nav__label {
margin-right:
10px;

opacity:
0.58;
}


.mattphoto-archive-grid-nav__button {
display:
inline-flex;

align-items:
center;

justify-content:
center;

box-sizing:
border-box;

width:
24px;

height:
24px;

margin:
0
5px;

padding:
0;

border:
1px solid #eaeaea;

border-radius:
0;

background:
transparent;

color:
inherit;

font:
inherit;

font-size:
17px;

cursor:
pointer;
}


.mattphoto-archive-grid-nav__button +
.mattphoto-archive-grid-nav__button {
margin-left:
0;
}


.mattphoto-archive-grid-nav__button:disabled {
opacity:
0.25;

cursor:
default;
}


/* EMPTY */

.mattphoto-portfolio-archive__empty {
width:
min(
calc(
100% -
(
var(--mp-archive-gutter) *
2
)
),
1550px
);

margin:
0
auto;

padding-bottom:
6rem;
}


/* MOBILE */

@media (max-width: 768px) {

.mattphoto-portfolio-archive {
--mp-archive-gutter:
1.05rem;
}


.mattphoto-portfolio-archive__header {
padding:
2.3rem
0
2.8rem;
}


.mattphoto-portfolio-archive__title {
font-size:
clamp(
2.8rem,
14vw,
5rem
);
}


.mattphoto-archive-grid {
overflow:
visible;
}


.mattphoto-archive-grid__inner {
display:
grid;

gap:
11.7px;

width:
100%;

height:
auto;
}


.mattphoto-archive-grid__item {
position:
relative;

width:
100%;

height:
auto;

aspect-ratio:
3 / 2;
}


.mattphoto-archive-grid__overlay {
opacity:
1;

transform:
none;
}


.mattphoto-archive-grid-nav {
display:
none !important;
}

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

.mattphoto-archive-grid__image,
.mattphoto-archive-grid__overlay {
transition:
none;
}

}

/* === MATTPHOTO ARCHIVE 2C.1 END === */

/* =========================================================
   PROJECT GALLERY — HORIZONTAL 
   Phase 2C.3.A - rebuild
   fluxus-inspired single-row project sequence
   ======================================================= */

@media (min-width: 769px) {

    .mattphoto-project__gallery--horizontal {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 11.7px;

        width: 100%;
        max-width: none;
        margin: 0;

        padding:
            0
            clamp(0.75rem, 2vw, 2.5rem)
            clamp(3rem, 6vw, 7rem);

        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        box-sizing: border-box;
    }

    .mattphoto-project__gallery--horizontal
    .matthoto-project__gallery-item {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }

    .mattphoto-project__gallery--horizontal
    .matthoto-project__gallery-image {
        display: block;
        width: auto;
        height: 78vh;
        max-height: 78vh;
        object-fit: contain;
        background: #f2f2f2;
    }

    .mattphoto-project__gallery--horizontal
    .mattphoto-project__caption {
        max-width: 32rem;
    }
}

@media (max-width: 768px) {

    .matthoto-project__gallery--horizontal {
        display: grid;
        width: 100%;
        gap: 0.8rem;
        padding: 0 0.65rem 3rem;
        overflow: visible;
    }

    .matthoto-project__gallery--horizontal
    .mattphoto-project__gallery-item {
        width: 100%;
    }

    .mattphoto-project__gallery--horizontal
    .mattphoto-project__gallery-image {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: initial;
    }
}

/* === MATTPHOTO PROJECT HORIZONTAL 2C.3B === */

@media (min-width: 769px) {

    .mattphoto-project__gallery--horizontal {
        height: var(--mattphoto-stage-height);

        display: flex;
        flex-flow: row nowrap;
        align-items: flex-start;
        gap: 11.7px;

        width: 100%;
        max-width: none;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .mattphoto-project__gallery--horizontal
    .mattphoto-project__gallery-item {
        flex: 0 0 auto;
        width: auto;
        height: 100%;
    }

    .mattphoto-project__gallery--horizontal
    .mattphoto-project__gallery-image {
        display: block;

        width: auto;
        height: 100%;
        max-width: none;
        max-height: none;

        object-fit: contain;
    }
}

/* === MATTPHOTO PROJECT HORIZONTAL 2C.3B END === */

/* === MATTPHOTO COMPACT PROJECT TOP 2C.3D.2B-2B ===
 *
 * Single Project only.
 * Compact information hierarchy before the linear / horizontal gallery.
 *
 * Does NOT modify:
 * - archive Matrix
 * - gallery packing
 * - horizontal interaction
 * - stage engine
 */

.mattphoto-project .mattphoto-project__article {
    row-gap: 0;
}

.mattphoto-project .mattphoto-project__information {
    padding-top: clamp(28px, 3vw, 42px);
    padding-bottom: clamp(20px, 2.2vw, 30px);
    margin-bottom: 0;
}

.mattphoto-project .mattphoto-project__header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(230px, 0.34fr);
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 18px;
    align-items: start;
    margin: 0;
}

.mattphoto-project .mattphoto-project__heading {
    min-width: 0;
}

.mattphoto-project .mattphoto-project__title {
    margin: 0;
    max-width: 720px;

    font-family: Lato, Arial, sans-serif;
    font-size: clamp(44px, 4.2vw, 60px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.mattphoto-project .mattphoto-project__subtitle {
    margin:
        clamp(12px, 1.2vw, 16px)
        0
        0;

    max-width: 620px;

    font-size: 14px;
    line-height: 1.45;
}

.mattphoto-project .mattphoto-project__classification {
    display: grid;
    grid-template-columns:
        repeat(2, max-content);
    gap: 16px 30px;

    align-items: start;
    justify-content: start;

    padding-top: 5px;
    margin: 0;
}

.mattphoto-project .mattphoto-project__taxonomy {
    margin: 0;
}

.mattphoto-project .mattphoto-project__taxonomy-label {
    margin: 0 0 5px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mattphoto-project .mattphoto-project__term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;

    margin: 0;
    padding: 0;
}

.mattphoto-project .mattphoto-project__term {
    margin: 0;

    font-size: 13px;
    line-height: 1.35;
}

/*
 * Credits:
 * desktop = compact horizontal row instead of tall table.
 */

.mattphoto-project .mattphoto-project__credits {
    margin-top: clamp(22px, 2.4vw, 34px);
    padding: 0;
}

.mattphoto-project .mattphoto-project__section-title {
    margin: 0 0 7px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mattphoto-project .mattphoto-project__credit-list {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px 28px;

    margin: 0;
    padding: 0;

    border: 0;
}

.mattphoto-project .mattphoto-project__credit {
    display: block;

    margin: 0;
    padding: 7px 0 0;

    border: 0;
    border-top: 1px solid #bdbdbd;
}

.mattphoto-project .mattphoto-project__credit dt,
.mattphoto-project .mattphoto-project__credit dd {
    margin: 0;
    padding: 0;

    font-family: Lato, Arial, sans-serif;
    line-height: 1.35;
}

.mattphoto-project .mattphoto-project__credit dt {
    font-size: 11px;
    font-weight: 700;
}

.mattphoto-project .mattphoto-project__credit dd {
    margin-top: 3px;

    font-size: 13px;
    font-weight: 400;
}

.mattphoto-project .mattphoto-project__gallery,
.mattphoto-project .mattphoto-project__gallery--horizontal {
    margin-top: 0;
}


/* Compact Project Top — tablet */

@media (max-width: 900px) {

    .mattphoto-project .mattphoto-project__header {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .mattphoto-project .mattphoto-project__title {
        max-width: 680px;
        font-size: clamp(40px, 7vw, 52px);
    }

    .mattphoto-project .mattphoto-project__classification {
        grid-template-columns:
            repeat(2, max-content);
        padding-top: 0;
    }

    .mattphoto-project .mattphoto-project__credit-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* Compact Project Top — mobile */

@media (max-width: 600px) {

    .mattphoto-project .mattphoto-project__information {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .mattphoto-project .mattphoto-project__title {
        font-size: 38px;
        line-height: 0.98;
    }

    .mattphoto-project .mattphoto-project__classification {
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
    }

    .mattphoto-project .mattphoto-project__credit-list {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}

/* === MATTPHOTO COMPACT PROJECT TOP 2C.3D.2B-2B END === */


/* === MATTPHOTO PROJECT RAIL 2C.3D.2B-2D ===
 *
 * Desktop Single Project:
 *
 * project information rail | linear photography
 *
 * Archive Matrix, Stage Engine and horizontal JS stay untouched.
 */

@media (min-width: 769px) {

    /*
     * =========================================================
     * SINGLE PROJECT SHELL
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__article {

        display: grid;

        grid-template-columns:
            clamp(
                250px,
                21.5vw,
                294px
            )
            minmax(
                0,
                1fr
            );

        grid-template-rows:
            auto
            auto;

        column-gap:
            clamp(
                24px,
                2.4vw,
                34px
            );

        row-gap: 0;

        align-items: start;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }


    /*
     * =========================================================
     * PROJECT RAIL
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__rail {

        grid-column: 1;
        grid-row: 1 / span 2;

        box-sizing: border-box;

        width: 100%;
        min-width: 0;

        min-height:
            var(--mattphoto-stage-height);

        padding:
            10px
            clamp(
                20px,
                2vw,
                28px
            )
            24px
            clamp(
                22px,
                2.4vw,
                34px
            );

        border-right:
            1px solid #e4e4e4;

        text-align: right;
    }


    /*
     * =========================================================
     * INFORMATION
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__information {

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }


    .mattphoto-project
    .mattphoto-project__header {

        display: block;

        margin: 0;
        padding: 0;
    }


    /*
     * =========================================================
     * TITLE
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__heading {

        display: flex;

        flex-direction: column;

        align-items: flex-end;

        width: 100%;
        min-width: 0;
    }


    /*
     * DOM:
     *
     * H1
     * subtitle
     *
     * Visual:
     *
     * subtitle
     * H1
     */

    .mattphoto-project
    .mattphoto-project__subtitle {

        order: 1;

        max-width: 100%;

        margin:
            0
            0
            5px;

        font-family:
            Lato,
            Arial,
            sans-serif;

        font-size: 11px;

        font-weight: 400;

        line-height: 1.3;

        letter-spacing: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__title {

        order: 2;

        width: 100%;
        max-width: 100%;

        margin: 0;

        font-family:
            Lato,
            Arial,
            sans-serif;

        font-size:
            clamp(
                25px,
                2.15vw,
                31px
            );

        font-weight: 500;

        line-height: 0.98;

        letter-spacing:
            -0.025em;

        text-align: right;

        text-transform: uppercase;
    }


    /*
     * =========================================================
     * DISCIPLINE / INDUSTRY
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__classification {

        display: grid;

        grid-template-columns:
            minmax(
                0,
                1fr
            );

        gap: 20px;

        justify-items: end;

        width: 100%;

        margin:
            28px
            0
            0;

        padding: 0;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy {

        position: relative;

        width: 100%;

        margin: 0;

        padding-top: 16px;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy::before {

        content: "";

        position: absolute;

        top: 0;
        right: 0;

        width: 14px;

        border-top:
            2px solid #111;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy-label {

        margin:
            0
            0
            7px;

        font-size: 11px;

        font-weight: 700;

        line-height: 1.2;

        letter-spacing:
            0.04em;

        text-align: right;

        text-transform: uppercase;
    }


    .mattphoto-project
    .mattphoto-project__term-list {

        display: flex;

        flex-wrap: wrap;

        justify-content: flex-end;

        gap:
            3px
            8px;

        margin: 0;
        padding: 0;
    }


    .mattphoto-project
    .mattphoto-project__term {

        margin: 0;

        font-size: 12px;

        line-height: 1.35;

        text-align: right;
    }


    /*
     * =========================================================
     * OPTIONAL PROJECT TEXT
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__content {

        width: 100%;
        max-width: none;

        margin:
            24px
            0
            0;

        padding: 0;

        font-size: 12px;

        line-height: 1.5;

        text-align: right;
    }


    /*
     * =========================================================
     * CREDITS
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__credits {

        width: 100%;
        max-width: none;

        margin:
            22px
            0
            0;

        padding: 0;
    }


    /*
     * Roles are self-explanatory.
     * Do not add a large generic CREDITS heading.
     */

    .mattphoto-project
    .mattphoto-project__section-title {

        display: none;
    }


    .mattphoto-project
    .mattphoto-project__credit-list {

        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        border: 0;
    }


    .mattphoto-project
    .mattphoto-project__credit {

        position: relative;

        display: block;

        width: 100%;

        margin:
            18px
            0
            0;

        padding:
            17px
            0
            0;

        border: 0;
    }


    .mattphoto-project
    .mattphoto-project__credit::before {

        content: "";

        position: absolute;

        top: 0;
        right: 0;

        width: 14px;

        border-top:
            2px solid #111;
    }


    .mattphoto-project
    .mattphoto-project__credit dt,
    .mattphoto-project
    .mattphoto-project__credit dd {

        width: 100%;

        margin: 0;
        padding: 0;

        font-family:
            Lato,
            Arial,
            sans-serif;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__credit dt {

        font-size: 11px;

        font-weight: 700;

        line-height: 1.25;

        letter-spacing:
            0.02em;

        text-transform: uppercase;
    }


    .mattphoto-project
    .mattphoto-project__credit dd {

        margin-top: 7px;

        font-size: 12px;

        font-weight: 400;

        line-height: 1.4;

        color: #858585;
    }


    /*
     * =========================================================
     * PHOTOGRAPHY STAGE
     * =========================================================
     *
     * Keep existing Horizontal / Stage Engine behavior.
     * Only position the existing gallery inside column 2.
     */

    .mattphoto-project
    .mattphoto-project__gallery,
    .mattphoto-project
    .mattphoto-project__gallery--horizontal {

        grid-column: 2;
        grid-row: 1;

        min-width: 0;

        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            0
            clamp(
                12px,
                1.4vw,
                22px
            )
            0
            0;
    }


    /*
     * Existing gallery navigation.
     */

    .mattphoto-project
    .mattphoto-project__article
    > .mattphoto-grid-nav {

        grid-column: 2;
        grid-row: 2;

        box-sizing: border-box;

        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            8px
            clamp(
                12px,
                1.4vw,
                22px
            )
            14px
            0;
    }

}


/*
 * Under 961px the existing stacked responsive
 * Single Project layout remains active.
 */

/* === MATTPHOTO PROJECT RAIL 2C.3D.2B-2D END === */


/* === MATTPHOTO PROJECT RAIL V2 2C.3D.2B-2E ===
 *
 * Fine tuning:
 *
 * - information starts on image top axis
 * - all rail content right aligned
 * - title aligned to logo divider
 * - credits before taxonomy
 * - tighter spacing
 */

@media (min-width: 769px) {

    /*
     * =========================================================
     * SHELL
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__article {

        grid-template-columns:
            clamp(
                228px,
                18.6vw,
                272px
            )
            minmax(
                0,
                1fr
            );

        column-gap:
            clamp(
                10px,
                1vw,
                16px
            );
    }


    /*
     * =========================================================
     * RAIL
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__rail {

        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        width: 100%;

        margin: 0;

        padding:
            0
            8px
            22px
            0;

        text-align: right;
    }


    /*
     * Remove intermediate layout boxes so heading,
     * credits and taxonomy can be ordered directly
     * inside the rail.
     */

    .mattphoto-project
    .mattphoto-project__information,
    .mattphoto-project
    .mattphoto-project__header {

        display: contents;
    }


    /*
     * =========================================================
     * HEADING
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__heading {

        order: 1;

        display: flex;
        flex-direction: column;

        align-items: flex-end;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__subtitle {

        order: 1;

        display: block;

        width: 100%;
        max-width: 100%;

        margin:
            0
            0
            4px;

        padding: 0;

        font-family:
            Lato,
            Arial,
            sans-serif;

        font-size: 11px;
        font-weight: 400;
        line-height: 1.25;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__title {

        order: 2;

        display: block;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        font-family:
            Lato,
            Arial,
            sans-serif;

        font-size:
            clamp(
                24px,
                1.95vw,
                30px
            );

        font-weight: 400;

        line-height: 0.96;

        letter-spacing:
            -0.02em;

        text-align: right !important;

        text-transform: uppercase;
    }


    /*
     * =========================================================
     * CREDITS
     * =========================================================
     *
     * Visual order:
     *
     * TITLE
     * CLIENT
     * ART DIRECTION
     * STYLIST
     * DISCIPLINE
     * INDUSTRY
     */

    .mattphoto-project
    .mattphoto-project__credits {

        order: 2;

        width: 100%;
        max-width: none;

        margin:
            24px
            0
            0;

        padding: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__section-title {

        display: none;
    }


    .mattphoto-project
    .mattphoto-project__credit-list {

        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        border: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__credit {

        position: relative;

        display: block;

        width: 100%;

        margin:
            16px
            0
            0;

        padding:
            14px
            0
            0;

        border: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__credit::before {

        content: "";

        position: absolute;

        top: 0;
        right: 0;

        width: 14px;

        border-top:
            2px solid #111;
    }


    .mattphoto-project
    .mattphoto-project__credit dt,
    .mattphoto-project
    .mattphoto-project__credit dd {

        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__credit dt {

        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;

        letter-spacing:
            0.02em;

        text-transform: uppercase;
    }


    .mattphoto-project
    .mattphoto-project__credit dd {

        margin-top: 6px;

        font-size: 12px;
        font-weight: 400;
        line-height: 1.35;

        color: #858585;
    }


    /*
     * =========================================================
     * DISCIPLINE / INDUSTRY
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__classification {

        order: 3;

        display: grid;

        grid-template-columns:
            minmax(
                0,
                1fr
            );

        gap: 18px;

        justify-items: end;

        width: 100%;

        margin:
            22px
            0
            0;

        padding: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy {

        position: relative;

        width: 100%;

        margin: 0;

        padding-top: 14px;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy::before {

        content: "";

        position: absolute;

        top: 0;
        right: 0;

        width: 14px;

        border-top:
            2px solid #111;
    }


    .mattphoto-project
    .mattphoto-project__taxonomy-label {

        display: block;

        width: 100%;

        margin:
            0
            0
            6px;

        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;

        letter-spacing:
            0.04em;

        text-align: right;

        text-transform: uppercase;
    }


    .mattphoto-project
    .mattphoto-project__term-list {

        display: flex;

        flex-direction: column;

        align-items: flex-end;

        gap: 2px;

        width: 100%;

        margin: 0;
        padding: 0;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__term {

        display: block;

        width: 100%;

        margin: 0;

        font-size: 12px;
        line-height: 1.3;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__term a {

        display: block;

        width: 100%;

        text-align: right;
    }


    /*
     * =========================================================
     * OPTIONAL CONTENT
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__content {

        order: 4;

        width: 100%;
        max-width: none;

        margin:
            22px
            0
            0;

        padding: 0;

        font-size: 12px;
        line-height: 1.45;

        text-align: right;
    }


    /*
     * =========================================================
     * IMAGE STAGE
     * =========================================================
     */

    .mattphoto-project
    .mattphoto-project__gallery,
    .mattphoto-project
    .mattphoto-project__gallery--horizontal {

        padding:
            0
            8px
            0
            0;
    }


    .mattphoto-project
    .mattphoto-project__article
    > .mattphoto-grid-nav {

        padding:
            8px
            8px
            14px
            0;
    }

}

/* === MATTPHOTO PROJECT RAIL V2 2C.3D.2B-2E END === */


/* === MATTPHOTO PROJECT RAIL V3 2C.3D.2B-2F ===
 *
 * Fluxus-style Single Project horizontal flow.
 *
 * Desktop:
 *
 * [ project rail ][ image ][ image ][ image ] ...
 *
 * Project information becomes the first item inside
 * the SAME native horizontal scroll container.
 */

@media (min-width: 769px) {

    /*
     * ---------------------------------------------------------
     * AXIS
     * ---------------------------------------------------------
     *
     * Designed to meet the vertical logo divider.
     */

    .mattphoto-project {

        --mattphoto-project-rail-flow-width:
            clamp(
                260px,
                20.4vw,
                282px
            );
    }


    /*
     * ---------------------------------------------------------
     * ARTICLE
     * ---------------------------------------------------------
     *
     * V1/V2 used a two-column article grid.
     * V3 no longer needs it.
     */

    .mattphoto-project
    .mattphoto-project__article {

        display: block;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }


    /*
     * ---------------------------------------------------------
     * ONE HORIZONTAL FLOW
     * ---------------------------------------------------------
     */

    .mattphoto-project
    .mattphoto-project__gallery--horizontal {

        display: flex;

        flex-flow:
            row
            nowrap;

        align-items: flex-start;

        gap: 11.7px;

        box-sizing: border-box;

        width: 100%;
        max-width: none;

        height:
            var(--mattphoto-stage-height);

        margin: 0;

        padding:
            0
            8px
            0
            0;

        overflow-x: auto;
        overflow-y: hidden;

        overscroll-behavior-x: contain;

        /*
         * Match legacy Fluxus:
         * native desktop horizontal scrollbar.
         */
        scrollbar-width: auto;
        scrollbar-color: auto;
    }


    /*
     * ---------------------------------------------------------
     * PROJECT RAIL = FIRST SCROLL ITEM
     * ---------------------------------------------------------
     */

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail {

        flex:
            0
            0
            var(
                --mattphoto-project-rail-flow-width
            );

        box-sizing: border-box;

        width:
            var(
                --mattphoto-project-rail-flow-width
            );

        min-width:
            var(
                --mattphoto-project-rail-flow-width
            );

        max-width:
            var(
                --mattphoto-project-rail-flow-width
            );

        height: 100%;
        min-height: 0;

        margin: 0;

        padding:
            0
            8px
            0
            0;

        border-right:
            1px solid #e4e4e4;

        overflow-x: hidden;
        overflow-y: auto;

        scrollbar-width: none;

        text-align: right;
    }


    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail::-webkit-scrollbar {

        display: none;
    }


    /*
     * ---------------------------------------------------------
     * HARD RIGHT ALIGNMENT
     * ---------------------------------------------------------
     */

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__heading,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__title,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__subtitle,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__credits,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__credit,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__classification,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__taxonomy,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__term,

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    a {

        text-align: right;
    }


    /*
     * Top of information = top of photography.
     */

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__rail
    .mattphoto-project__heading {

        margin-top: 0;
        padding-top: 0;
    }


    /*
     * ---------------------------------------------------------
     * IMAGE ITEMS
     * ---------------------------------------------------------
     */

    .mattphoto-project
    .mattphoto-project__gallery--horizontal
    > .mattphoto-project__gallery-item {

        flex:
            0
            0
            auto;

        width: auto;

        height: 100%;
    }


    /*
     * ---------------------------------------------------------
     * NAVIGATION
     * ---------------------------------------------------------
     *
     * Controls remain underneath the photography area.
     */

    .mattphoto-project
    .mattphoto-project__article
    > .mattphoto-grid-nav {

        box-sizing: border-box;

        width:
            calc(
                100% -
                var(
                    --mattphoto-project-rail-flow-width
                ) -
                11.7px
            );

        max-width: none;

        margin:
            0
            0
            0
            calc(
                var(
                    --mattphoto-project-rail-flow-width
                ) +
                11.7px
            );

        padding:
            8px
            8px
            14px
            0;
    }

}

/* === MATTPHOTO PROJECT RAIL V3 2C.3D.2B-2F END === */

/* === MATTPHOTO COMPACT FOOTER 2C.4E === */

.mattphoto-site-footer {
    padding: 8px 0 10px;
}

.mattphoto-site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 0;
    padding: 0 var(--space);
}

.mattphoto-footer-navigation {
    margin: 0;
}

.mattphoto-footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.mattphoto-footer-nav li {
    margin: 0;
    padding: 0;
}

.mattphoto-footer-nav a,
.mattphoto-site-footer__copyright {
    font-size: 11px;
    line-height: 1.2;
}

.mattphoto-site-footer__copyright {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mattphoto-site-footer {
        padding: 8px 0 10px;
    }

    .mattphoto-site-footer__inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px 16px;
    }

    .mattphoto-site-footer__copyright {
        white-space: normal;
    }
}

/* === MATTPHOTO COMPACT FOOTER 2C.4E END === */

/* === MATTPHOTO FLUXUS FOOTER ALIGNMENT === */

@media (min-width: 769px) {

    .mattphoto-site-footer__inner {
        justify-content: flex-end;
        gap: 0;
    }

    .mattphoto-footer-navigation {
        margin: 0;
    }

    .mattphoto-footer-nav {
        display: flex;
        align-items: center;
        gap: 0;

        margin: 0;
        padding: 0;
    }

    .mattphoto-footer-nav li {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .mattphoto-footer-nav li + li::before,
    .mattphoto-site-footer__copyright::before {
        content: "/";
        display: inline-block;

        margin: 0 14px;

        color: #d7d7d7;
        font-weight: 300;
    }

    .mattphoto-site-footer__copyright {
        display: flex;
        align-items: center;

        margin: 0;
        padding: 0;

        white-space: nowrap;
    }

}

/* === MATTPHOTO FLUXUS FOOTER ALIGNMENT END === */

/* === MATTPHOTO SINGLE NAV IN FOOTER === */

@media (min-width: 769px) {

    .mattphoto-site-footer__inner
    > .mattphoto-grid-nav {

        display: flex;
        flex: 0 0 auto;

        align-items: center;
        justify-content: flex-end;

        width: auto;
        max-width: none;

        margin:
            0
            24px
            0
            0;

        padding: 0;

        gap: 6px;
    }


    .mattphoto-site-footer__inner
    > .mattphoto-grid-nav
    .mattphoto-grid-nav__label {

        margin:
            0
            8px
            0
            0;

        white-space: nowrap;

        font-size: 11px;
        line-height: 1.2;
    }


    .mattphoto-site-footer__inner
    > .mattphoto-grid-nav
    .mattphoto-grid-nav__button {

        display: inline-flex;

        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        width: 22px;
        height: 22px;

        margin: 0;
        padding: 0;

        border:
            1px solid
            #e7e7e7;

        border-radius: 0;

        background: #fff;
        color: #777;

        font-family:
            Arial,
            sans-serif;

        font-size: 11px;
        font-weight: 400;
        line-height: 1;

        cursor: pointer;
    }


    .mattphoto-site-footer__inner
    > .mattphoto-grid-nav
    .mattphoto-grid-nav__button:hover {

        border-color: #cfcfcf;
        color: #222;
    }

}

/* === MATTPHOTO SINGLE NAV IN FOOTER END === */

/* === MATTPHOTO SCROLLBAR SPACING + CLEAN FOOTER === */

@media (min-width: 769px) {

    /*
     * Visual breathing room between photography
     * and the native horizontal scrollbar.
     */
    .mattphoto-project
    .mattphoto-project__gallery--horizontal {
        padding-bottom: 16px;
    }

}


/*
 * Footer stays visually open:
 * no horizontal divider above it.
 */
.mattphoto-site-footer {
    border-top: 0;
}

.mattphoto-site-footer::before {
    display: none;
    content: none;
}

/* === MATTPHOTO SCROLLBAR SPACING + CLEAN FOOTER END === */

/* === MATTPHOTO FOOTER — REMOVE HORIZONTAL DIVIDER === */

.mattphoto-site-footer,
.mattphoto-site-footer__inner {
    border-top: 0 !important;
    box-shadow: none !important;
}

.mattphoto-site-footer::before,
.mattphoto-site-footer::after {
    border-top: 0 !important;
    box-shadow: none !important;
}

/* === MATTPHOTO FOOTER DIVIDER END === */


/*
 * ---------------------------------------------------------
 * HOVER EASING + NO HOVER FLICKER WHILE SCROLLING
 * ---------------------------------------------------------
 */

.mattphoto-archive-grid__image {
transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
backface-visibility: hidden;
}

.mattphoto-archive-grid__overlay {
transition:
opacity 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mattphoto-archive-grid__link:hover .mattphoto-archive-grid__image {
will-change: transform;
transform: scale(1.02);
}

.mattphoto-archive-grid.is-scrolling .mattphoto-archive-grid__link,
.mattphoto-project__gallery.is-scrolling .mattphoto-project__gallery-item {
pointer-events: none;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
.mattphoto-archive-grid__link:hover .mattphoto-archive-grid__image {
transform: none;
}

.mattphoto-archive-grid__image,
.mattphoto-archive-grid__overlay {
transition: none;
}
}


/* =========================================================
   ROOT GRID LIKE FLUXUS (feedback Matthias, 23.11.2026)
   - hover: whole tile fades (radial overlay), no zoom
   - label centred, 5 % above the middle; Fluxus typography
   - tiles glide to new spots on window resize
   ========================================================= */

.mattphoto-archive-grid {
opacity: 0;
transition: opacity 0.4s ease-in;
}

.mattphoto-archive-grid.is-ready,
.mattphoto-archive-grid:not(.is-enhanced) {
opacity: 1;
}

.mattphoto-archive-grid.is-vertical {
overflow: hidden;
}

.mattphoto-archive-grid.is-animated .mattphoto-archive-grid__item {
transition: top 0.5s, left 0.5s;
}

.mattphoto-archive-grid__image,
.mattphoto-archive-grid__link:hover .mattphoto-archive-grid__image {
transform: none;
transition: none;
will-change: auto;
object-position: var(--mp-crop, center center);
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__overlay {
inset: 0;
padding: 0;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.66) 100%);
opacity: 0;
transform: none;
transition: all 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__link:hover .mattphoto-archive-grid__overlay,
.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__link:focus-visible .mattphoto-archive-grid__overlay {
opacity: 1;
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__label {
position: absolute;
top: 45%;
left: 0;
box-sizing: border-box;
width: 100%;
padding: 0 10px;
color: #fff;
text-align: center;
transform: translateY(-50%);
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__subtitle {
display: block;
margin: 0;
font: normal 12px/1em "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.01em;
opacity: 1;
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__project-title {
margin: 6px 0 0;
font: 700 24px/1 "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.04em;
text-transform: uppercase;
overflow-wrap: break-word;
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__subtitle + .mattphoto-archive-grid__project-title {
margin-top: 6px;
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__label > :first-child {
margin-top: 0;
}

/* Touch screens without hover (Fluxus .mobile-device): label always visible, bottom left. */
@media (hover: none) and (pointer: coarse) {
.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__overlay {
opacity: 1;
background: linear-gradient(10deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 10%, rgba(255, 255, 255, 0) 100%);
}

.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__label {
top: auto;
bottom: 0;
padding: 16px;
text-align: left;
transform: none;
}
}

@media (prefers-reduced-motion: reduce) {
.mattphoto-archive-grid,
.mattphoto-archive-grid.is-animated .mattphoto-archive-grid__item,
.mattphoto-archive-grid.is-enhanced .mattphoto-archive-grid__overlay {
transition: none;
}
}

/* === ROOT GRID LIKE FLUXUS END === */


/* === MATTPHOTO MOBILE MENU PANEL 30.11. START ===
 * Handy-Menü als Panel von rechts (Vorbild: uncode „Creative Lab“):
 * große Bereichsnamen, zweite Gruppe kleiner, Kontakt unten,
 * Seite dahinter abgedunkelt. Desktop unverändert.
 */

.mattphoto-menu-contact {
    display: none;
}

@media (max-width: 820px) {

    .mattphoto-site-header .mattphoto-menu-toggle {
        position: relative;
        z-index: 1102;

        justify-content: flex-end;

        width: 44px;
        height: 44px;

        margin-right: -6px;
    }

    .mattphoto-site-header .mattphoto-menu-toggle__label {
        position: absolute;

        width: 1px;
        height: 1px;

        overflow: hidden;

        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .mattphoto-site-header .mattphoto-menu-toggle__icon {
        width: 24px;
        height: 16px;
        margin-right: 6px;
    }

    .mattphoto-site-header .mattphoto-menu-toggle__icon span {
        width: 24px;
        height: 1.5px;

        transition:
            transform 400ms cubic-bezier(0.77, 0, 0.18, 1),
            top 400ms cubic-bezier(0.77, 0, 0.18, 1);
    }

    .mattphoto-site-header .mattphoto-menu-toggle__icon span:first-child {
        top: 3px;
    }

    .mattphoto-site-header .mattphoto-menu-toggle__icon span:last-child {
        top: 11px;
    }

    .mattphoto-site-header.is-menu-open .mattphoto-menu-toggle__icon span:first-child,
    .mattphoto-site-header.is-menu-open .mattphoto-menu-toggle__icon span:last-child {
        top: 7px;
    }

    /* Abdunklung hinter dem Panel */
    .mattphoto-site-header::after {
        content: "";

        position: fixed;
        inset: 0;
        z-index: 1100;

        background: rgba(17, 17, 22, 0.42);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 500ms ease,
            visibility 0s linear 500ms;
    }

    .mattphoto-site-header.is-menu-open::after {
        opacity: 1;
        visibility: visible;

        transition: opacity 500ms ease;
    }

    /* Panel */
    .mattphoto-site-header .mattphoto-site-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1101;

        display: flex;
        flex-direction: column;

        width: min(calc(100% - 44px), 440px);
        height: 100vh;
        height: 100dvh;

        padding:
            96px
            36px
            calc(32px + env(safe-area-inset-bottom, 0px));

        overflow-y: auto;
        overscroll-behavior: contain;

        border: 0;
        background: #fff;
        box-shadow: none;

        transform: translateX(100%);
        visibility: hidden;

        transition:
            transform 550ms cubic-bezier(0.77, 0, 0.18, 1),
            visibility 0s linear 550ms;
    }

    .mattphoto-site-header.is-menu-open .mattphoto-site-navigation {
        display: flex;

        transform: none;
        visibility: visible;

        transition: transform 550ms cubic-bezier(0.77, 0, 0.18, 1);
    }

    .mattphoto-site-header .mattphoto-nav {
        display: block;
    }

    .mattphoto-site-header .mattphoto-site-navigation {
        align-items: stretch;
    }

    .mattphoto-site-header .mattphoto-primary-navigation,
    .mattphoto-site-header .mattphoto-secondary-navigation {
        flex: 0 0 auto;
    }

    .mattphoto-site-header .mattphoto-nav li,
    .mattphoto-site-header .mattphoto-nav--secondary li {
        margin: 0;
        border: 0;
    }

    .mattphoto-site-header .mattphoto-nav a {
        display: inline-block;

        padding: 3px 0;

        color: #111116;

        font-size: clamp(30px, 9vw, 40px);
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: -0.015em;

        text-transform: capitalize;
    }

    .mattphoto-site-header .mattphoto-nav a.is-current,
    .mattphoto-site-header .mattphoto-nav .current-menu-item > a {
        color: #a3a3a3;
    }

    .mattphoto-site-header .mattphoto-secondary-navigation {
        margin-top: 44px;
    }

    .mattphoto-site-header .mattphoto-nav--secondary a {
        color: #111116;

        font-size: 22px;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .mattphoto-site-header .mattphoto-menu-contact {
        display: block;

        margin-top: auto;
        padding-top: 44px;
    }

    .mattphoto-menu-contact__label {
        margin: 0 0 6px;

        color: #111116;

        font-size: 16px;
        font-weight: 700;
    }

    .mattphoto-menu-contact a {
        display: block;

        padding: 2px 0;

        color: #111116;

        font-size: 16px;
        line-height: 1.5;
        text-decoration: none;
    }

    /* Einträge gleiten nacheinander herein */
    .mattphoto-site-header .mattphoto-nav li,
    .mattphoto-site-header .mattphoto-menu-contact {
        opacity: 0;
        transform: translateX(28px);

        transition:
            opacity 300ms ease,
            transform 300ms ease;
    }

    .mattphoto-site-header.is-menu-open .mattphoto-nav li,
    .mattphoto-site-header.is-menu-open .mattphoto-menu-contact {
        opacity: 1;
        transform: none;

        transition:
            opacity 500ms ease var(--mp-delay, 200ms),
            transform 650ms cubic-bezier(0.22, 1, 0.36, 1) var(--mp-delay, 200ms);
    }

    .mattphoto-nav--primary li:nth-child(1) { --mp-delay: 180ms; }
    .mattphoto-nav--primary li:nth-child(2) { --mp-delay: 220ms; }
    .mattphoto-nav--primary li:nth-child(3) { --mp-delay: 260ms; }
    .mattphoto-nav--primary li:nth-child(4) { --mp-delay: 300ms; }
    .mattphoto-nav--primary li:nth-child(5) { --mp-delay: 340ms; }
    .mattphoto-nav--primary li:nth-child(6) { --mp-delay: 380ms; }
    .mattphoto-nav--primary li:nth-child(n+7) { --mp-delay: 420ms; }
    .mattphoto-nav--secondary li:nth-child(1) { --mp-delay: 440ms; }
    .mattphoto-nav--secondary li:nth-child(n+2) { --mp-delay: 480ms; }
    .mattphoto-site-header .mattphoto-menu-contact { --mp-delay: 540ms; }

    html.mp-menu-open,
    html.mp-menu-open body {
        overflow: hidden;
    }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {

    .mattphoto-site-header::after,
    .mattphoto-site-header .mattphoto-site-navigation,
    .mattphoto-site-header .mattphoto-nav li,
    .mattphoto-site-header .mattphoto-menu-contact,
    .mattphoto-site-header.is-menu-open .mattphoto-nav li,
    .mattphoto-site-header.is-menu-open .mattphoto-menu-contact {
        transition: none;
    }
}

/* Kopf auf dem Handy wie live (Fluxus): Logo 40 px hoch und mittig,
 * Unterzeile zentriert darunter, Menüknopf rechts. */
@media (max-width: 820px) {

    .mattphoto-site-header .mattphoto-site-header__inner {
        justify-content: center;

        min-height: 101px;
    }

    .mattphoto-site-header .mattphoto-site-brand {
        flex: 0 1 auto;

        align-items: center;

        margin: 0 auto;
        padding: 19px 0 17px;
    }

    .mattphoto-site-header .mattphoto-site-brand__wordmark {
        display: block;

        line-height: 0;
    }

    .mattphoto-site-header .mattphoto-site-brand__logo {
        width: auto;
        height: 40px;
        max-width: calc(100vw - 150px);

        object-fit: contain;
    }

    .mattphoto-site-header .mattphoto-site-brand__description {
        max-width: none;

        margin-top: 3px;

        font-size: 13px;
        line-height: 20px;

        text-align: center;
    }

    .mattphoto-site-header .mattphoto-menu-toggle {
        position: absolute;
        top: 50%;
        right: 1.05rem;

        margin: -22px -6px 0 0;
    }
}

/* === MATTPHOTO MOBILE MENU PANEL 30.11. END === */
