/* =========================================================
   Portfolio Item Detail Page
   ========================================================= */

.portfolio-item-page {
    width: 100%;
}


/* ---------------------------------------------------------
   Back Link
   --------------------------------------------------------- */

.portfolio-item-back {
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
}

.portfolio-item-back a {
    color: #222;
    text-decoration: none;
    font-size: 0.95rem;
}

.portfolio-item-back a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.portfolio-item-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-item-header h1 {
    margin-top: 0;
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Detail Layout
   --------------------------------------------------------- */

.portfolio-item-detail {
    max-width: 1000px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Full-Size Image
   --------------------------------------------------------- */

.portfolio-item-detail-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portfolio-item-detail-image img {
    display: block;

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

    max-height: 850px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.portfolio-item-detail-description {
    max-width: 800px;

    margin: 2rem auto 0 auto;

    padding-top: 1.5rem;

    border-top: 1px solid #bbb;
}

.portfolio-item-detail-description p {
    margin: 0;

    font-size: 1rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Bottom Navigation
   --------------------------------------------------------- */

.portfolio-item-footer-nav {
    max-width: 1000px;

    margin: 2.5rem auto 0 auto;
    padding-top: 1.5rem;

    border-top: 1px solid #bbb;

    text-align: center;
}

.portfolio-item-footer-nav a {
    display: inline-block;

    padding: 0.7rem 1.25rem;

    border: 1px solid #222;

    color: #222;
    background: #fff;

    text-decoration: none;
    font-size: 0.95rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.portfolio-item-footer-nav a:hover {
    background: #222;
    color: #fff;
}


/* ---------------------------------------------------------
   Not Found
   --------------------------------------------------------- */

.portfolio-item-not-found {
    max-width: 700px;

    margin: 2rem auto;

    text-align: center;
}

.portfolio-item-not-found h1 {
    margin-top: 0;
}

.portfolio-item-not-found a {
    color: #222;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

    .portfolio-item-back {
        margin-bottom: 1rem;
    }

    .portfolio-item-header {
        margin-bottom: 1.5rem;
    }

    .portfolio-item-detail-image img {
        max-height: none;
    }

    .portfolio-item-detail-description {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

}


@media (max-width: 480px) {

    .portfolio-item-header h1 {
        font-size: 1.6rem;
    }

    .portfolio-item-detail-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .portfolio-item-footer-nav a {
        width: 100%;
        box-sizing: border-box;
    }

}