/* ---------- Fonts ---------- */

/* Heading font — Laguna (Bold) */
@font-face {
    font-family: 'Laguna';
    src: url('../font/Laguna-Bold.woff2') format('woff2'),
         url('../font/Laguna-Bold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*
 * Body font — Formular Regular.
 * Drop the Formular web-font files into /font and uncomment the
 * @font-face below. Until then the stack falls back to a neutral grotesque.
 */
/*
@font-face {
    font-family: 'Formular';
    src: url('../font/Formular-Regular.woff2') format('woff2'),
         url('../font/Formular-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
*/

/* ---------- Base ---------- */

:root {
    --heading-font: 'Laguna', Georgia, serif;
    --body-font: 'Formular', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* keep the footer pinned to the bottom on short pages */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.footer-copy {
    font-size: 15px;
    line-height: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    letter-spacing: 0;
}

.display-hero {
    font-size: 72px;
    line-height: 70px;
    margin: 0;
}

/* smaller heading + logo on tablets / phones */
@media (max-width: 767.98px) {
    .display-hero {
        font-size: 46px;
        line-height: 46px;
    }

    header .site-logo {
        font-size: 20px;
        line-height: 20px;
        margin-top: 10px;
    }
}

@media (max-width: 479.98px) {
    .display-hero {
        font-size: 34px;
        line-height: 34px;
    }

    header .site-logo {
        font-size: 20px;
        line-height: 20px;
    }
}

.lead {
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
}

.eyebrow {
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
}

a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 1px;
}

a:hover {
    color: #000000;
}

/* keep the nav row height independent of the logo */
header nav {
    position: relative;
}

/* Centered logo / link back to home — absolutely placed so it doesn't
   change the height of the nav row (otherwise the menu shifts down) */
.site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 16px;
    display: inline-block;
    font-family: var(--heading-font);
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    line-height: 32px;
    white-space: nowrap;
    color: #000000;
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 7px;
}

/* animated over-line, same as the nav links */
.site-logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    height: 1px;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-logo:hover::before {
    transform: scaleX(1);
}

/* ---------- Mobile burger menu (hidden on desktop) ---------- */
.nav-burger,
.mobile-menu {
    display: none;
}

@media (max-width: 767.98px) {
    /* hide the inline nav link groups, keep the centered logo */
    header nav .col {
        display: none;
    }

    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7px;
        position: fixed;
        top: 1.6rem;
        right: 1.25rem;
        z-index: 60;
        width: 42px;
        height: 42px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .nav-burger span {
        display: block;
        width: 26px;
        height: 1.5px;
        background-color: #000000;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    body.menu-open .nav-burger span:nth-child(1) {
        transform: translateY(4.25px) rotate(45deg);
    }

    body.menu-open .nav-burger span:nth-child(2) {
        transform: translateY(-4.25px) rotate(-45deg);
    }

    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        inset: 0;
        z-index: 55;
        background-color: #ffffff;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    body.menu-open .mobile-menu {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
    }

    .mobile-menu-link {
        font-family: var(--heading-font);
        font-weight: 400;
        font-size: 34px;
        line-height: 1;
        color: #000000;
        border-bottom: none;
        padding-bottom: 0;
        opacity: 0;
        transform: translateY(20px);
        transition:
            opacity 0.5s ease,
            transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    /* items rise in one after another once the menu opens */
    body.menu-open .mobile-menu-link {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .mobile-menu-link:nth-child(1) { transition-delay: 0.12s; }
    body.menu-open .mobile-menu-link:nth-child(2) { transition-delay: 0.20s; }
    body.menu-open .mobile-menu-link:nth-child(3) { transition-delay: 0.28s; }
    body.menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.36s; }

    /* language switch at the bottom of the menu */
    .mobile-menu-lang {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2.5rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition:
            opacity 0.5s ease,
            transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    body.menu-open .mobile-menu-lang {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.46s;
    }

    .mobile-lang-link {
        position: relative;
        padding-top: 7px;
        font-family: var(--body-font);
        font-size: 15px;
        line-height: 18px;
        color: #000000;
        border-bottom: none;
    }

    .mobile-lang-link.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #000000;
    }
}

/* Site navigation links — plain, with animated over-line */
.nav-link-site {
    position: relative;
    display: inline-block;
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 7px;
    font-size: 15px;
    line-height: 18px;
}

/* the line above the text */
.nav-link-site::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    height: 1px;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* grow it on hover and for the active item */
.nav-link-site:hover,
.nav-link-site.is-active {
    opacity: 1;
}

.nav-link-site:hover::before,
.nav-link-site.is-active::before {
    transform: scaleX(1);
}

/* ---------- Biography ---------- */

.bio-slider {
    position: relative;
}

/* sliding photos (stacked, cross-faded) */
.bio-photo-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 4rem;
    overflow: hidden;
}

/* photo keeps a left indent on desktop; the caption stays flush left */
@media (min-width: 992px) {
    .bio-photo-stack {
        width: 83.334%;
        margin-left: 16.666%;
    }
}

.bio-slide-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.bio-slide-photo.is-active {
    opacity: 1;
    transform: scale(1);
}

/* slider progress indicator (the line above the caption) */
.bio-progress {
    width: 100%;
    max-width: 540px;
    height: 1px;
    background-color: transparent;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.bio-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000000;
    transform-origin: left center;
    transform: scaleX(0);
}

/* sliding captions */
.bio-caption-stack {
    position: relative;
}

.bio-slide-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.bio-slide-caption.is-active {
    position: relative;
    pointer-events: auto;
}

/* each word reveals on its own (stagger set inline from JS) */
.bio-slide-caption .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(4px);
    transition:
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.5s ease;
}

.bio-slide-caption.is-active .word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .bio-slide-caption .word {
        transform: none;
        filter: none;
        transition: opacity 0.4s ease;
    }
}

.bio-quote {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 25px;
    line-height: 32px;
    max-width: 540px;
    margin: 0;
}

/* right-hand running text */
.bio-text p {
    font-size: 19px;
    line-height: 31px;
    margin: 0;
    text-indent: 2em;
    opacity: 0;
    animation: bio-text-in 1s ease forwards;
}

/* subtle, barely-there fade-up for the running text */
@keyframes bio-text-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-text p:nth-child(1) { animation-delay: 0.1s; }
.bio-text p:nth-child(2) { animation-delay: 0.25s; }
.bio-text p:nth-child(3) { animation-delay: 0.4s; }
.bio-text p:nth-child(4) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    .bio-text p {
        animation-duration: 0.5s;
        transform: none;
    }
}

/* ---------- Contact ---------- */

/* blocks fade in one after another */
@keyframes contact-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-note,
.contact-item {
    opacity: 0;
    animation: contact-in 0.7s ease forwards;
}

.contact-note {
    font-size: 15px;
    line-height: 22px;
    margin: 0 0 2.5rem;
    animation-delay: 0s;
}

.contact-item {
    margin-bottom: 0.25rem;
}

.contact-item:nth-of-type(1) {
    animation-delay: 0.3s;
}

.contact-item:nth-of-type(2) {
    animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
    .contact-note,
    .contact-item {
        animation-duration: 0.4s;
        transform: none;
    }
}

.contact-value {
    position: relative;
    display: inline-block;
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 30px;
    line-height: 38px;
    color: #000000;
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 8px;
}

/* animated over-line on hover, same as the nav links */
.contact-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    height: 1px;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.contact-value:hover {
    color: #000000;
}

.contact-value:hover::before {
    transform: scaleX(1);
}

/* on mobile shrink email/phone to the work-title size */
@media (max-width: 767.98px) {
    .contact-value {
        font-size: 20px;
        line-height: 24px;
    }
}

/* ---------- Events (cards) ---------- */

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1040px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .events-grid {
        grid-template-columns: 1fr;
        /* vertical gap matches the page's horizontal side padding */
        gap: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }

    .event-card {
        min-height: 0;
        padding: 1.75rem 1.5rem 2rem;
    }
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 2.25rem 2rem 2.5rem;
    overflow-wrap: break-word;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* soft reveal on load */
    opacity: 0;
    animation: event-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* gentle lift on hover (black & white only) */
a.event-card:hover {
    transform: translateY(-4px);
}

/* external-link mark (top-right) */
.event-card-arrow {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a.event-card:hover .event-card-arrow {
    transform: translate(3px, -3px);
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.16s; }
.event-card:nth-child(3) { animation-delay: 0.27s; }
.event-card:nth-child(4) { animation-delay: 0.38s; }

@keyframes event-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.event-card-year {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 44px;
    line-height: 1;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid currentColor; /* inverts with the card on hover */
}

.event-date {
    display: block;
    font-family: var(--body-font);
    letter-spacing: 0.02em;
    font-size: 14px;
    margin-bottom: 0.9rem;
}

.event-venue {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.18;
    margin: 0 0 1rem;
}

.event-text {
    font-size: 15px;
    line-height: 23px;
    margin: 0;
}


/* ---------- Coming soon splash ---------- */

.coming {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.coming-inner {
    animation: coming-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes coming-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coming-name {
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 104px);
    line-height: 1.02;
    margin: 0;
}

.coming-title {
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.02em;
    margin: 1.25rem 0 0;
}

/* ---------- Home entry blocks ---------- */

.home-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    align-content: center; /* centre the squares in the remaining height */
    padding-bottom: 1.5rem;
}

.home-block {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* equal squares, sized by column width */
    overflow: hidden;
    border-bottom: none;
    padding-bottom: 0;
}

.home-block-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-block:hover .home-block-img {
    transform: scale(1.03);
}

/* subtle, barely-there darkening under the label */
.home-block::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.home-block-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    z-index: 2;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
}

/* stack the squares on phones */
@media (max-width: 767.98px) {
    .home-blocks {
        grid-template-columns: 1fr;
    }
}

/* ---------- Single work ---------- */

/* header + work fill the full viewport; footer sits below the fold */
.page-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.work-main {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* image area fills the space above the caption */
.work-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* prev / next navigation arrows — slim, refined line arrows */
.work-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    border-bottom: none;
    padding: 0 1.5rem;
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    transition: transform 0.35s ease;
}

.work-arrow:hover {
    color: #000000;
}

.work-arrow--prev {
    left: 0;
}

.work-arrow--prev:hover {
    transform: translateX(-5px);
}

.work-arrow--next {
    right: 0;
}

.work-arrow--next:hover {
    transform: translateX(5px);
}

/* wrapper is invisible on desktop — arrows stay at the image sides,
   caption pinned to the bottom */
.work-footer {
    display: contents;
}

/* desktop: arrows emerge from the centre outwards on load */
@media (min-width: 768px) {
    .work-arrow--prev {
        animation: arrow-in-prev 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    }

    .work-arrow--next {
        animation: arrow-in-next 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    }

    @keyframes arrow-in-prev {
        from {
            opacity: 0;
            transform: translateX(28px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes arrow-in-next {
        from {
            opacity: 0;
            transform: translateX(-28px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* on mobile, arrows flank the caption on the same row, at the edges */
@media (max-width: 767.98px) {
    .work-footer {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 1.25rem 1.5rem;
    }

    .work-footer .work-caption {
        flex: 1 1 auto;
        padding: 0;
    }

    .work-arrow {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        flex-shrink: 0;
        padding: 0;
        font-size: 34px;
        line-height: 24px;
    }

    .work-arrow--prev:hover,
    .work-arrow--next:hover {
        transform: none;
    }
}

/* image wrapper + loading spinner */
.work-figure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
}

.work-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transition: opacity 0.4s ease;
}

.work-spinner.is-hidden {
    opacity: 0;
}

.work-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100%;
}

.work-detail-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    /* fit within the stage, leaving room for header + caption */
    max-height: calc(100vh - 17rem);
    max-height: calc(100svh - 17rem);
    object-fit: contain;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.work-detail-img.is-loaded {
    opacity: 1;
}

/* caption pinned to the bottom of the page */
.work-caption {
    flex-shrink: 0;
    text-align: center;
    padding: 0 1rem 1.5rem;
}

.work-caption-title {
    display: block;
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
}

.work-caption-meta {
    display: block;
    font-family: var(--body-font);
    font-size: 12px;
    line-height: 15px;
    margin-top: 0.1rem;
}

/* ---------- Gallery ---------- */

.gallery-thumb {
    display: block;
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.gallery-link {
    display: block;
    position: relative;
    border-bottom: none;
    padding-bottom: 0;
}

/* the work shrinks slightly on hover */
.gallery-link .work-square img {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* shrink on hover — larger works shrink a touch more to clear the caption */
.gallery-link:hover .work-square.scale-large img.lozad {
    transform: translateY(-5%) scale(0.96);
}

.gallery-link:hover .work-square.scale-medium img.lozad {
    transform: translateY(-5%) scale(0.97);
}

.gallery-link:hover .work-square.scale-small img.lozad {
    transform: translateY(-5%) scale(0.98);
}

/* title strictly inside the tile, near the bottom, revealed on hover */
.work-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 0.75rem;
    text-align: center;
    font-size: 12px;
    line-height: 15px;
    color: #000000;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}

.gallery-link:hover .work-title {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Paintings — white square + scaled image ---------- */

/* the conventional white square */
.work-square {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* loading spinner shown on the square until the image is ready */
.work-square::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transition: opacity 0.4s ease;
}

/* hide the spinner once the image has loaded (:has supported in modern browsers) */
.work-square:has(img.is-loaded)::before {
    opacity: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* image centred and contained inside the square */
.work-square img {
    width: auto;
    height: auto;
    object-fit: contain;
}

/* reveal animation: soft fade + rise once lazy-loaded */
.work-square img.lozad {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-square img.lozad.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .work-square img.lozad {
        transition: opacity 0.4s ease;
        transform: none;
    }
}

/* three scales — share of the square the work fills */
.work-square.scale-small img {
    max-width: 50%;
    max-height: 50%;
}

.work-square.scale-medium img {
    max-width: 70%;
    max-height: 70%;
}

.work-square.scale-large img {
    max-width: 90%;
    max-height: 90%;
}

figcaption {
    font-size: 15px;
    line-height: 18px;
}
