/*
   =========================================================
   ZOOM PHOTO STUDIO - PORTFOLIO.CSS v1.1
   =========================================================
*/

.portfolio_page {
    --portfolio-cream: #f8f3ed;
    --portfolio-soft: #eee5dc;
    --portfolio-border: #e1d7cd;
    --portfolio-text: #211e1b;
    --portfolio-muted: #6f675f;
    --portfolio-accent: #b98750;
    background: #fff;
}

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

.portfolio_hero {
    display: grid;
    grid-template-columns: 62% 38%;
    min-height: 680px;
    background: var(--portfolio-cream);
}

.portfolio_hero_image {
    min-height: 680px;
    overflow: hidden;
}

.portfolio_hero_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio_hero_panel {
    display: flex;
    padding: clamp(50px, 6vw, 90px);
    flex-direction: column;
    justify-content: center;
}

.portfolio_eyebrow, .portfolio_kicker {
    margin: 0 0 18px;
    color: var(--portfolio-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.portfolio_hero_panel h1 {
    margin: 0;
    color: var(--portfolio-text);
    font-family: var(--zoom-serif);
    font-size: clamp(3.125rem, 5vw, 4.875rem);
    font-weight: 400;
    line-height: 1.02;
}

.portfolio_intro {
    max-width: 500px;
    margin: 26px 0 0;
    color: var(--portfolio-muted);
    font-size: var(--zoom-body-size);
    line-height: 1.8;
}

.portfolio_hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.portfolio_button {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--zoom-charcoal);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portfolio_button_dark {
    background: var(--zoom-charcoal);
    color: #ffffff;
}

.portfolio_button_outline {
    background: transparent;
    color: var(--zoom-charcoal);
}

.portfolio_button_dark:hover,
.portfolio_button_outline:hover {
    background: var(--zoom-bronze);
    border-color: var(--zoom-bronze);
    color: #ffffff;
}

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

.portfolio_gallery_section {
    padding: clamp(60px, 7vw, 100px) 24px;
    background: #fff;
}

.portfolio_gallery_intro {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.portfolio_gallery_intro h2 {
    margin: 0;
    color: var(--portfolio-text);
    font-family: var(--zoom-serif);
    font-size: clamp(2.375rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
}

.portfolio_gallery_intro p:last-child {
    margin: 16px 0 0;
    color: var(--portfolio-muted);
    font-size: var(--zoom-body-size);
}

.portfolio_gallery {
    display: grid;
    max-width: 1240px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.portfolio_item {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #f2ede8;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.portfolio_item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 15, 0);
    transition: background .28s ease;
    pointer-events: none;
}

.portfolio_item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.portfolio_item:hover img {
    transform: scale(1.035);
}

.portfolio_item:hover::after {
    background: rgba(20, 17, 15, .08);
}

/*
   =========================================================
   LIGHTBOX
   =========================================================
*/

.portfolio_lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 14, 12, .95);
}

.portfolio_lightbox.is_open {
    display: flex;
}

.portfolio_lightbox_stage {
    position: relative;
    display: flex;
    width: min(86vw, 1400px);
    height: min(86vh, 950px);
    align-items: center;
    justify-content: center;
}

.portfolio_lightbox_stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .35);
}

.portfolio_lightbox_close {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.625rem;
    font-weight: 200;
    line-height: 1;
}

.portfolio_lightbox_arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 58px;
    height: 58px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.875rem;
    font-weight: 200;
    line-height: 1;
}

.portfolio_lightbox_prev {
    left: 28px;
}

.portfolio_lightbox_next {
    right: 28px;
}

.portfolio_lightbox_counter {
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .82);
    font-size: var(--zoom-body-size);
    font-weight: 700;
    letter-spacing: .12em;
}

/*
   =========================================================
   TABLET
   =========================================================
*/

@media (max-width: 1000px) {

    .portfolio_hero {
        grid-template-columns: 1fr;
}

    .portfolio_hero_image {
        min-height: 62vw;
}

    .portfolio_hero_panel {
        padding: 50px 30px 58px;
}

    .portfolio_gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
}

}

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

@media (max-width: 700px) {

    .portfolio_hero_image {
        min-height: 88vw;
}

    .portfolio_hero_panel {
        padding: 42px 24px 48px;
}

    .portfolio_hero_panel h1 {
        font-size: 3.125rem;
}

    .portfolio_hero_actions {
        width: 100%;
        flex-direction: column;
    }

    .portfolio_button {
        width: 100%;
}

    .portfolio_gallery_section {
        padding: 52px 12px 70px;
}

    .portfolio_gallery_intro {
        padding: 0 14px;
        margin-bottom: 34px;
}

    .portfolio_gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
}

    .portfolio_lightbox_stage {
        width: 92vw;
        height: 78vh;
}

    .portfolio_lightbox_close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
}

    .portfolio_lightbox_arrow {
        top: auto;
        bottom: 24px;
        width: 50px;
        height: 50px;
        transform: none;
        background: rgba(255, 255, 255, .12);
        font-size: 2.5rem;
}

    .portfolio_lightbox_prev {
        left: 20px;
}

    .portfolio_lightbox_next {
        right: 20px;
}

    .portfolio_lightbox_counter {
        bottom: -28px;
}

}
