/* =========================================================
   MIDWEST SPORTSWEAR
   WORK GALLERY
   COMPLETE REBUILD
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

.work-gallery-page {

    --gallery-orange: #f07e21;
    --gallery-black: #080808;
    --gallery-dark: #101010;
    --gallery-text: #111111;
    --gallery-muted: #666666;
    --gallery-light: #f5f5f3;

    --gallery-border: rgba(0,0,0,.12);

    --gallery-condensed:
        var(--condensed,
        "Arial Narrow",
        "Roboto Condensed",
        Arial,
        sans-serif);

    --gallery-body:
        var(--body,
        Arial,
        sans-serif);

}


/* =========================================================
   PAGE
   ========================================================= */

.work-gallery-page {

    position: relative;

    width: 100%;

    overflow: clip;

    background: #ffffff;

    color: var(--gallery-text);

}


.work-gallery-page *,
.work-gallery-page *::before,
.work-gallery-page *::after {

    box-sizing: border-box;

}


.work-gallery-page img {

    max-width: 100%;

}


.work-gallery-page button,
.work-gallery-page a {

    -webkit-tap-highlight-color:
        transparent;

}


/* =========================================================
   SHELL
   ========================================================= */

.work-gallery-page .gallery-shell {

    width: min(
        calc(100% - 80px),
        1240px
    );

    margin-left: auto;
    margin-right: auto;

}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.work-gallery-page h1,
.work-gallery-page h2,
.work-gallery-page h3 {

    margin: 0;

    font-family:
        var(--gallery-condensed);

    font-weight: 900;

    text-transform: uppercase;

}


.work-gallery-page p {

    margin: 0;

    font-family:
        var(--gallery-body);

}


.gallery-orange {

    color:
        var(--gallery-orange);

}


.gallery-kicker {

    display: inline-block;

    font-family:
        var(--gallery-condensed);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;

}


/* =========================================================
   HERO
   ========================================================= */

.gallery-hero {

    position: relative;

    min-height: 700px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #050505 0%,
            #0c0c0c 55%,
            #131313 100%
        );

    color: #ffffff;

}


/* =========================================================
   HERO GRID
   ========================================================= */

.gallery-hero-grid {

    position: absolute;

    inset: 0;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(255,255,255,.045)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.045)
            1px,
            transparent 1px
        );

    background-size:
        90px 90px;

    pointer-events: none;

}


/* =========================================================
   HERO ORANGE GLOW
   ========================================================= */

.gallery-hero-glow {

    position: absolute;

    width: 700px;

    height: 700px;

    right: -250px;

    bottom: -430px;

    border-radius: 50%;

    border:
        1px solid
        rgba(240,126,33,.22);

    box-shadow:
        0 0 0 70px
        rgba(240,126,33,.035),

        0 0 0 140px
        rgba(240,126,33,.018);

    pointer-events: none;

}


/* =========================================================
   HERO WATERMARK
   ========================================================= */

.gallery-hero-watermark {

    position: absolute;

    right: -55px;

    bottom: -90px;

    font-family:
        var(--gallery-condensed);

    font-size:
        clamp(
            250px,
            34vw,
            600px
        );

    font-weight: 900;

    line-height: .72;

    letter-spacing: -28px;

    color:
        rgba(255,255,255,.025);

    user-select: none;

    pointer-events: none;

}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.gallery-hero .gallery-shell {

    position: relative;

    z-index: 5;

}


/* =========================================================
   HERO META
   ========================================================= */

.gallery-hero-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom:
        1px solid
        rgba(255,255,255,.12);

}


.gallery-hero-meta span {

    font-family:
        var(--gallery-condensed);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;

}


.gallery-hero-meta span:last-child {

    color:
        rgba(255,255,255,.38);

}


/* =========================================================
   HERO MAIN
   ========================================================= */

.gallery-hero-main {

    padding-top: 85px;

    padding-bottom: 85px;

}


.gallery-hero-copy {

    max-width: 1000px;

}


.gallery-hero-copy h1 {

    margin-top: 18px;

    font-size:
        clamp(
            75px,
            9vw,
            150px
        );

    line-height: .78;

    letter-spacing: -5px;

}


.gallery-hero-copy h1 span {

    display: block;

    color:
        var(--gallery-orange);

}


.gallery-orange-line {

    width: 65px;

    height: 3px;

    margin-top: 32px;

    margin-bottom: 30px;

    background:
        var(--gallery-orange);

    box-shadow:
        0 0 20px
        rgba(240,126,33,.25);

}


.gallery-hero-copy p {

    max-width: 650px;

    color:
        rgba(255,255,255,.58);

    font-size: 16px;

    line-height: 1.75;

}


/* =========================================================
   HERO FOOTER
   ========================================================= */

.gallery-hero-footer {

    display: grid;

    grid-template-columns:
        auto
        minmax(80px, 700px)
        auto;

    align-items: center;

    gap: 20px;

    padding-bottom: 45px;

    font-family:
        var(--gallery-condensed);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.7px;

    color:
        rgba(255,255,255,.38);

}


.gallery-hero-line {

    display: block;

    height: 1px;

    background:
        rgba(255,255,255,.14);

}


.gallery-hero-number {

    color:
        var(--gallery-orange);

}


/* =========================================================
   GALLERY SECTION
   ========================================================= */

.gallery-section {

    position: relative;

    padding-top: 115px;

    padding-bottom: 125px;

    background:
        #f5f5f3;

}


/* =========================================================
   SUBTLE BACKGROUND GRID
   ========================================================= */

.gallery-section::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: .55;

    background-image:
        linear-gradient(
            rgba(0,0,0,.025)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,.025)
            1px,
            transparent 1px
        );

    background-size:
        80px 80px;

    pointer-events: none;

}


/* =========================================================
   INTRO
   ========================================================= */

.gallery-intro {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, .55fr);

    gap: 80px;

    align-items: end;

    margin-bottom: 70px;

}


.gallery-intro-heading h2 {

    margin-top: 16px;

    font-size:
        clamp(
            55px,
            6vw,
            90px
        );

    line-height: .82;

    letter-spacing: -3px;

}


.gallery-intro-heading h2 span {

    display: block;

    color:
        var(--gallery-orange);

}


.gallery-intro-copy {

    max-width: 460px;

}


.gallery-intro-copy p {

    color:
        #606060;

    font-size: 15px;

    line-height: 1.75;

}


.gallery-intro-count {

    display: inline-block;

    margin-top: 24px;

    padding-top: 13px;

    border-top:
        1px solid
        rgba(0,0,0,.16);

    font-family:
        var(--gallery-condensed);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.7px;

    color:
        var(--gallery-orange);

}


/* =========================================================
   WORK GRID
   ========================================================= */

.work-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap: 12px;

}


/* =========================================================
   WORK CARD
   ========================================================= */

.work-card {

    position: relative;

    min-width: 0;

    overflow: hidden;

    background:
        #111111;

    opacity: 0;

    transform:
        translateY(45px);

    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.16,1,.3,1);

}


/* =========================================================
   CARD REVEAL
   ========================================================= */

.work-card.is-visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================================
   CARD DELAYS
   ========================================================= */

.work-card:nth-child(2) {

    transition-delay: .06s;

}


.work-card:nth-child(3) {

    transition-delay: .12s;

}


.work-card:nth-child(4) {

    transition-delay: .18s;

}


.work-card:nth-child(5) {

    transition-delay: .06s;

}


.work-card:nth-child(6) {

    transition-delay: .12s;

}


/* =========================================================
   CARD SIZING
   ========================================================= */

/*
   Editorial layout:

   01 = large
   02/03 = smaller
   04 = wide
   05 = tall
   etc.

   Everything remains inside normal CSS grid flow.
*/

.work-card-1 {

    grid-column:
        span 7;

    grid-row:
        span 2;

}


.work-card-2 {

    grid-column:
        span 5;

}


.work-card-3 {

    grid-column:
        span 5;

}


.work-card-4 {

    grid-column:
        span 5;

}


.work-card-5 {

    grid-column:
        span 7;

    grid-row:
        span 2;

}


.work-card-6 {

    grid-column:
        span 5;

}


.work-card-7 {

    grid-column:
        span 4;

}


.work-card-8 {

    grid-column:
        span 4;

}


.work-card-9 {

    grid-column:
        span 4;

}


.work-card-10 {

    grid-column:
        span 6;

}


.work-card-11 {

    grid-column:
        span 6;

}


.work-card-12 {

    grid-column:
        span 4;

}


.work-card-13 {

    grid-column:
        span 4;

}


.work-card-14 {

    grid-column:
        span 4;

}


.work-card-15 {

    grid-column:
        span 4;

}


.work-card-16 {

    grid-column:
        span 8;

}


.work-card-17 {

    grid-column:
        span 4;

}


.work-card-18 {

    grid-column:
        span 5;

}


.work-card-19 {

    grid-column:
        span 7;

}


.work-card-20 {

    grid-column:
        span 4;

}


.work-card-21 {

    grid-column:
        span 4;

}


.work-card-22 {

    grid-column:
        span 4;

}


.work-card-23 {

    grid-column:
        span 6;

}


.work-card-24 {

    grid-column:
        span 6;

}


.work-card-25 {

    grid-column:
        span 4;

}


.work-card-26 {

    grid-column:
        span 4;

}


.work-card-27 {

    grid-column:
        span 4;

}


/* =========================================================
   BUTTON
   ========================================================= */

.work-card-button {

    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    min-height: 330px;

    padding: 0;

    margin: 0;

    border: 0;

    background:
        #111111;

    color: #ffffff;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

}


/* =========================================================
   LARGE CARD
   ========================================================= */

.work-card-1
.work-card-button,
.work-card-5
.work-card-button {

    min-height: 510px;

}


/* =========================================================
   IMAGE
   ========================================================= */

.work-card-image {

    position: absolute;

    inset: 0;

    overflow: hidden;

}


.work-card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.04) 20%,
            rgba(0,0,0,.15) 50%,
            rgba(0,0,0,.90) 100%
        );

    z-index: 2;

    transition:
        background .45s ease;

}


.work-card-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter:
        grayscale(12%)
        contrast(1.02);

    transform:
        scale(1.001);

    transition:
        transform 1s cubic-bezier(.16,1,.3,1),
        filter .5s ease;

}


/* =========================================================
   CARD HOVER
   ========================================================= */

.work-card-button:hover
.work-card-image img {

    transform:
        scale(1.065);

    filter:
        grayscale(0%)
        contrast(1.06);

}


.work-card-button:hover
.work-card-image::after {

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.04) 10%,
            rgba(0,0,0,.20) 48%,
            rgba(0,0,0,.94) 100%
        );

}


/* =========================================================
   CARD OVERLAY
   ========================================================= */

.work-card-overlay {

    position: absolute;

    inset: 0;

    z-index: 4;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 25px;

}


/* =========================================================
   CARD TOP
   ========================================================= */

.work-card-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

}


.work-card-number {

    color:
        var(--gallery-orange);

    font-family:
        var(--gallery-condensed);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

}


.work-card-category {

    padding: 7px 10px;

    border:
        1px solid
        rgba(255,255,255,.22);

    background:
        rgba(0,0,0,.25);

    color:
        rgba(255,255,255,.72);

    backdrop-filter:
        blur(5px);

    font-family:
        var(--gallery-condensed);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* =========================================================
   CARD BOTTOM
   ========================================================= */

.work-card-bottom {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

}


.work-card-bottom h3 {

    max-width: 75%;

    color:
        #ffffff;

    font-size:
        clamp(
            25px,
            2.5vw,
            40px
        );

    line-height: .9;

    letter-spacing: -.5px;

}


.work-card-view {

    display: flex;

    align-items: center;

    gap: 9px;

    white-space: nowrap;

    color:
        var(--gallery-orange);

    font-family:
        var(--gallery-condensed);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    transform:
        translateX(-4px);

    transition:
        transform .3s ease;

}


.work-card-view span {

    font-size: 14px;

}


.work-card-button:hover
.work-card-view {

    transform:
        translateX(0);

}


/* =========================================================
   CTA
   ========================================================= */

.gallery-cta {

    position: relative;

    min-height: 560px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f07e21 0%,
            #f48629 50%,
            #ed7017 100%
        );

    color:
        #ffffff;

}


.gallery-cta-grid {

    position: absolute;

    inset: 0;

    opacity: .13;

    background-image:
        linear-gradient(
            rgba(0,0,0,.15)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,.15)
            1px,
            transparent 1px
        );

    background-size:
        80px 80px;

}


.gallery-cta-watermark {

    position: absolute;

    right: -50px;

    bottom: -100px;

    font-family:
        var(--gallery-condensed);

    font-size:
        clamp(
            250px,
            34vw,
            620px
        );

    font-weight: 900;

    line-height: .7;

    letter-spacing: -25px;

    color:
        rgba(0,0,0,.07);

    pointer-events: none;

}


/* =========================================================
   CTA CONTENT
   ========================================================= */

.gallery-cta-content {

    position: relative;

    z-index: 4;

    max-width: 900px;

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.16,1,.3,1);

}


.gallery-cta-content.is-visible {

    opacity: 1;

    transform:
        translateY(0);

}


.gallery-cta-content h2 {

    margin-top: 18px;

    font-size:
        clamp(
            65px,
            8vw,
            125px
        );

    line-height: .78;

    letter-spacing: -5px;

}


.gallery-cta-content h2 span {

    display: block;

    color:
        #111111;

}


.gallery-cta-content p {

    max-width: 650px;

    margin-top: 30px;

    color:
        rgba(255,255,255,.88);

    font-size: 16px;

    line-height: 1.75;

}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.gallery-cta-button {

    display: inline-flex;

    align-items: center;

    gap: 25px;

    margin-top: 35px;

    padding: 17px 22px;

    background:
        #111111;

    color:
        #ffffff;

    border:
        1px solid
        #111111;

    text-decoration: none;

    font-family:
        var(--gallery-condensed);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.3px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.gallery-cta-button span {

    font-size: 16px;

}


.gallery-cta-button:hover {

    background:
        #ffffff;

    color:
        #111111;

    transform:
        translateY(-2px);

}


/* =========================================================
   PROJECT MODAL
   ========================================================= */

.project-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 35px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.project-modal.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.project-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.88);

    backdrop-filter:
        blur(12px);

}


/* =========================================================
   MODAL WINDOW
   ========================================================= */

.project-modal-window {

    position: relative;

    z-index: 5;

    width: min(
        1180px,
        100%
    );

    max-height:
        calc(100vh - 70px);

    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, .65fr);

    overflow: hidden;

    background:
        #111111;

    color:
        #ffffff;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.5);

    transform:
        translateY(25px)
        scale(.98);

    transition:
        transform .4s cubic-bezier(.16,1,.3,1);

}


.project-modal.is-open
.project-modal-window {

    transform:
        translateY(0)
        scale(1);

}


/* =========================================================
   MODAL IMAGE
   ========================================================= */

.project-modal-image {

    position: relative;

    min-height: 620px;

    background:
        #080808;

    overflow: hidden;

}


.project-modal-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* =========================================================
   MODAL INFO
   ========================================================= */

.project-modal-info {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 55px;

    background:
        #111111;

}


.project-modal-meta {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;

}


.project-modal-number {

    color:
        var(--gallery-orange);

    font-family:
        var(--gallery-condensed);

    font-size: 12px;

    font-weight: 900;

}


.project-modal-category {

    color:
        rgba(255,255,255,.42);

    font-family:
        var(--gallery-condensed);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    text-transform: uppercase;

}


.project-modal-info h2 {

    font-size:
        clamp(
            40px,
            4vw,
            65px
        );

    line-height: .86;

    letter-spacing: -2px;

}


.project-modal-info p {

    margin-top: 25px;

    color:
        rgba(255,255,255,.58);

    font-size: 14px;

    line-height: 1.75;

}


/* =========================================================
   MODAL CONTROLS
   ========================================================= */

.project-modal-controls {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 45px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255,255,255,.12);

}


.project-modal-controls button {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.2);

    background:
        transparent;

    color:
        #ffffff;

    cursor: pointer;

    font-size: 18px;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;

}


.project-modal-controls button:hover {

    background:
        var(--gallery-orange);

    border-color:
        var(--gallery-orange);

    transform:
        translateY(-2px);

}


.project-modal-controls > span {

    color:
        rgba(255,255,255,.35);

    font-family:
        var(--gallery-condensed);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

}


.project-modal-controls strong {

    color:
        var(--gallery-orange);

}


/* =========================================================
   MODAL CLOSE
   ========================================================= */

.project-modal-close {

    position: absolute;

    top: 18px;

    right: 18px;

    z-index: 20;

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.2);

    background:
        rgba(0,0,0,.55);

    color:
        #ffffff;

    font-family:
        Arial,
        sans-serif;

    font-size: 27px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;

}


.project-modal-close:hover {

    background:
        var(--gallery-orange);

    transform:
        rotate(90deg);

}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.project-modal-open {

    overflow: hidden !important;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {


    .work-gallery-page .gallery-shell {

        width:
            min(
                calc(100% - 50px),
                900px
            );

    }


    .gallery-hero {

        min-height:
            620px;

    }


    .gallery-intro {

        grid-template-columns:
            1fr;

        gap: 30px;

    }


    .work-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .work-card,
    .work-card-1,
    .work-card-2,
    .work-card-3,
    .work-card-4,
    .work-card-5,
    .work-card-6,
    .work-card-7,
    .work-card-8,
    .work-card-9,
    .work-card-10,
    .work-card-11,
    .work-card-12,
    .work-card-13,
    .work-card-14,
    .work-card-15,
    .work-card-16,
    .work-card-17,
    .work-card-18,
    .work-card-19,
    .work-card-20,
    .work-card-21,
    .work-card-22,
    .work-card-23,
    .work-card-24,
    .work-card-25,
    .work-card-26,
    .work-card-27 {

        grid-column:
            span 1;

        grid-row:
            auto;

    }


    .work-card:nth-child(1),
    .work-card:nth-child(5) {

        grid-column:
            span 2;

    }


    .work-card:nth-child(1)
    .work-card-button,
    .work-card:nth-child(5)
    .work-card-button {

        min-height:
            450px;

    }


    .project-modal-window {

        grid-template-columns:
            1fr;

        overflow-y:
            auto;

    }


    .project-modal-image {

        min-height:
            450px;

        max-height:
            55vh;

    }


    .project-modal-info {

        padding:
            40px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {


    .work-gallery-page .gallery-shell {

        width:
            calc(100% - 34px);

    }


    .gallery-hero {

        min-height:
            600px;

    }


    .gallery-hero-meta {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            10px;

    }


    .gallery-hero-main {

        padding-top:
            65px;

        padding-bottom:
            65px;

    }


    .gallery-hero-copy h1 {

        font-size:
            clamp(
                55px,
                15vw,
                82px
            );

        letter-spacing:
            -2px;

    }


    .gallery-hero-copy p {

        font-size:
            14px;

    }


    .gallery-hero-footer {

        grid-template-columns:
            auto
            1fr;

        padding-bottom:
            30px;

    }


    .gallery-hero-label {

        display:
            none;

    }


    .gallery-section {

        padding-top:
            80px;

        padding-bottom:
            85px;

    }


    .gallery-intro {

        margin-bottom:
            45px;

    }


    .gallery-intro-heading h2 {

        font-size:
            55px;

        letter-spacing:
            -2px;

    }


    .work-grid {

        grid-template-columns:
            1fr;

        gap:
            10px;

    }


    .work-card,
    .work-card-1,
    .work-card-2,
    .work-card-3,
    .work-card-4,
    .work-card-5,
    .work-card-6,
    .work-card-7,
    .work-card-8,
    .work-card-9,
    .work-card-10,
    .work-card-11,
    .work-card-12,
    .work-card-13,
    .work-card-14,
    .work-card-15,
    .work-card-16,
    .work-card-17,
    .work-card-18,
    .work-card-19,
    .work-card-20,
    .work-card-21,
    .work-card-22,
    .work-card-23,
    .work-card-24,
    .work-card-25,
    .work-card-26,
    .work-card-27 {

        grid-column:
            span 1;

        grid-row:
            auto;

    }


    .work-card-button,
    .work-card-1 .work-card-button,
    .work-card-5 .work-card-button {

        min-height:
            390px;

    }


    .work-card-overlay {

        padding:
            20px;

    }


    .work-card-bottom {

        align-items:
            flex-end;

        flex-direction:
            column;

        gap:
            15px;

    }


    .work-card-bottom h3 {

        max-width:
            100%;

        font-size:
            32px;

    }


    .work-card-view {

        align-self:
            flex-start;

    }


    .gallery-cta {

        min-height:
            500px;

    }


    .gallery-cta-content h2 {

        font-size:
            62px;

        letter-spacing:
            -3px;

    }


    .gallery-cta-content p {

        font-size:
            14px;

    }


    .project-modal {

        padding:
            12px;

    }


    .project-modal-window {

        max-height:
            calc(100vh - 24px);

    }


    .project-modal-image {

        min-height:
            300px;

        max-height:
            42vh;

    }


    .project-modal-info {

        padding:
            30px 24px;

    }


    .project-modal-info h2 {

        font-size:
            45px;

    }


    .project-modal-controls {

        margin-top:
            30px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {


    .work-gallery-page .gallery-shell {

        width:
            calc(100% - 26px);

    }


    .gallery-hero {

        min-height:
            570px;

    }


    .gallery-hero-copy h1 {

        font-size:
            52px;

    }


    .gallery-intro-heading h2 {

        font-size:
            46px;

    }


    .work-card-button,
    .work-card-1 .work-card-button,
    .work-card-5 .work-card-button {

        min-height:
            340px;

    }


    .work-card-category {

        max-width:
            140px;

        text-align:
            right;

    }


    .gallery-cta-content h2 {

        font-size:
            52px;

    }


    .project-modal-image {

        min-height:
            250px;

    }


}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {


    .work-gallery-page *,
    .work-gallery-page *::before,
    .work-gallery-page *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }


    .work-card {

        opacity:
            1;

        transform:
            none;

    }


    .gallery-cta-content {

        opacity:
            1;

        transform:
            none;

    }

}