*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Inter,sans-serif;

    background:#111;

    color:white;

    overflow-x:hidden;

}

.hero{

    height:100vh;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background-image:url("../images/hero.jpg");

    background-size:cover;

    background-position:center center;


}

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

}

.hero-content{

    position:relative;
    z-index:2;
    max-width:900px;
    padding:40px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    transform:translateY(60px);

    opacity:0;
    animation:heroFade .9s ease forwards;
    animation-delay:.2s;

}

.hero h1{

    font-size:64px;

    font-weight:800;

}

.hero h2{

    margin-top:15px;

    font-size:36px;

    font-weight:300;

}

.hero p{

    margin-top:30px;

    font-size:22px;

    color:#ddd;

}

.button{

    display:inline-block;

    margin-top:20px;

    padding:18px 38px;

    border-radius:100px;

    text-decoration:none;

    background:white;

    color:#111;

    font-weight:700;

    transition:.3s;

}

.button:hover{

    transform:translateY(-3px);

}

#categories{

    padding:90px 7%;

}

.intro{

    text-align:center;

    margin-bottom:60px;

}

.intro h2{

    font-size:46px;

    margin-bottom:15px;

}

.intro p{

    color:#bbb;

    font-size:20px;

}

.cards{

    display:grid;

    grid-template-columns:1fr;

    gap:8px;

}

.card{

    position:relative;

    height:250px;

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    background-size:cover;

    background-position:center;

    transition:transform .35s ease;

    display:flex;

    align-items:flex-end;

}

     .card:hover{

    transform:scale(1.03);

}


.card::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.55) 18%,
        rgba(0,0,0,.22) 42%,
        rgba(0,0,0,0) 70%
    );

    z-index:1;

    transition:opacity .35s ease;

}

.card:hover::before{

    opacity:.60;

}

.card h3{

    position:relative;

    z-index:2;

    margin:25px;

    font-size:28px;

    font-weight:700;

    transition:
        transform .30s ease,
        letter-spacing .30s ease;

}

.card:hover h3{

    transform:scale(1.06);

    letter-spacing:.4px;

}

.topbar{

    position:absolute;
    top:0;
    left:0;
    width:100%;

    padding:22px 20px;

    z-index:100;

}

.topbar img{

    width:460px;
    max-width:90%;

}

#viewer{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.96);

    opacity:0;

    visibility:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:opacity .35s ease;

    z-index:5000;

}

#viewerImage{

    display:block;

    max-width:92vw;
    max-height:82vh;

    width:auto;
    height:auto;

    margin:0 auto 50px;

    border-radius:20px;

    opacity:1;

    transition:opacity .25s ease;

}

#close{

    position:absolute;

    top:40px;
    right:40px;

    font-size:42px;
    font-weight:300;

    color:rgba(255,255,255,.65);

    transition:.25s;

    cursor:pointer;

}

#close:hover{

    color:white;
    transform:scale(1.08);

}

#counter{

    position:absolute;

    bottom:50px;

    color:rgba(255,255,255,.70);

    font-size:18px;

    font-weight:400;

    letter-spacing:2px;

}

#viewer.show{

    opacity:1;

    visibility:visible;

}

.nav-arrow{

    position:absolute;

    top:50%;
    transform:translateY(-50%);

    width:70px;
    height:70px;

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

    font-size:48px;
    line-height:1;

    color:#fff;

    cursor:pointer;
    user-select:none;

    opacity:.75;

    transition:all .25s ease;

}

.nav-arrow:hover{

    opacity:1;

    transform:translateY(-50%) scale(1.08);

}

#prev{
    left:20px;
    z-index:7000;
}

#next{
    right:20px;
    z-index:7000;
}

#returnLink{

    position:absolute;

    top:40px;

    left:50px;

    color:rgba(255,255,255,.55);
    text-decoration:none;
    font-size:18px;
    font-weight:600;
    transition:color .25s ease;
    z-index:200;

}

#returnLink:hover{

    color:#fff;

}

.cards-header{

    display:flex;

    justify-content:flex-start;

    margin-bottom:20px;

}

#cardsReturnLink{

    color:rgba(255,255,255,.55);

    transition:color .25s ease;

}

#cardsReturnLink:hover{

    color:#fff;

}

.hero-logo{

    display:block;
    width:550px;
    margin:0 auto 5px;
    opacity:.85;

}

.card{

    opacity:0;

    transform:translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.card.show{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================================
   GALLERY INTRO
   ========================================================== */

#galleryIntro{

    position:absolute;

    top:47%;
    left:50%;

    transform:translate(-50%,-50%);

    text-align:center;

    z-index:6000;

    opacity:0;

    pointer-events:none;

    transition:opacity 1.2s ease-in-out;

}

#galleryIntro h1{

    font-size:54px;

    font-weight:700;

    letter-spacing:10px;

    line-height:.95;

    text-transform:uppercase;

    color:#fff;

    margin-bottom:18px;

}

#galleryIntro p{

    font-size:18px;

    letter-spacing:5px;

    line-height:1.35;

    text-transform:uppercase;

    color:rgba(255,255,255,.90);

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:768px){

    /* ---------- Commercial Gallery Intro ---------- */

    #galleryIntro{

        width:90vw;
        top:47%;

    }

    #galleryIntro h1{

        font-size:clamp(26px,7vw,36px);

        line-height:.92;

        letter-spacing:2px;

        margin-bottom:12px;

    }

    #galleryIntro p{

        margin-top:0;

        font-size:clamp(12px,3vw,16px);

        letter-spacing:2px;

        line-height:1.25;

        color:rgba(255,255,255,.90);

    }


    /* ---------- Hero ---------- */

    .hero{

        height:100vh;

    }

    .topbar{

        padding:40px 24px 20px;

    }

    .topbar img{

        width:240px;

        max-width:80%;

    }

    .hero h1{

        font-size:36px;

        line-height:1;

    }

    .hero h2{

        font-size:28px;

    }

    .hero p{

        display:none;

    }

    .button{

        margin-top:0;

        padding:16px 34px;

        font-size:18px;

    }


    /* ---------- Categories ---------- */

    #categories{

        padding:70px 24px;

    }

    .card h3{

        font-size:18px;

        margin:20px;

    }

    .hero-logo{

        width:85vw;

        margin:90px auto 30px;

    }


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

    #prev{

        left:8px;

    }

    #next{

        right:8px;

    }

    .nav-arrow{

        font-size:56px;

        padding:18px;

        opacity:.60;

        z-index:7000;

    }

    #close{

        top:18px;

        right:18px;

        font-size:40px;

    }

    #counter{

        bottom:22px;

        font-size:18px;

    }

    #viewerImage{

        max-width:96vw;

        max-height:72vh;

        border-radius:14px;

    }

}


/* ==========================================================
   LANDSCAPE PHONES
   ========================================================== */

@media (max-width:768px) and (orientation:landscape){

    #galleryIntro{

        width:76vw;
		top:46%;

    }

    #galleryIntro h1{

        font-size:34px;

        line-height:.92;

        letter-spacing:2px;

        margin-bottom:10px;

    }

    #galleryIntro p{

        font-size:14px;

        letter-spacing:2px;

        line-height:1.2;

    }

    #viewerImage{

        max-width:98vw;

        max-height:86vh;

    }

}


/* ==========================================================
   HERO ANIMATION
   ========================================================== */

@keyframes heroFade{

    from{

        opacity:0;

        transform:translateY(90px);

    }

    to{

        opacity:1;

        transform:translateY(60px);

    }

}


/* ==========================================================
   VIEWER
   ========================================================== */

#viewerContent{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

}
/*

==========================================================

   BEFORE / AFTER COMPARISON (ARCHIVED)

==========================================================

#compare{

    display:none;

    position:relative;

    width:min(92vw,1200px);
    height:min(82vh,800px);

    overflow:hidden;

    border-radius:20px;

    background:#000;

}

#afterImage,
#beforeImage{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:contain;

    object-position:center center;

    user-select:none;

    pointer-events:none;

}

#compareOverlay{

    position:absolute;

    top:0;
    left:0;

    width:50%;
    height:100%;

    overflow:hidden;

}

#compareHandle{

    position:absolute;

    left:50%;

    top:0;
    bottom:0;

    width:4px;

    background:#fff;

    transform:translateX(-50%);

}
*/