/* 314media modern portfolio single */
.single-portfolio .content,
.single-portfolio_page .content,
.single-portfolio .wrapper,
.single-portfolio_page .wrapper {
    background: #ffffff;
}

.single-portfolio .title_outer,
.single-portfolio_page .title_outer,
.single-portfolio .q_slider,
.single-portfolio_page .q_slider {
    display: none !important;
}

.p314-modern-portfolio {
    background: #ffffff;
    color: #242424;
    padding: 64px 24px 84px;
}

.p314-modern-portfolio * {
    box-sizing: border-box;
}

.p314-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.p314-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 34px;
}

.p314-back-link:hover {
    color: #111;
}

.p314-case-hero {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 42px;
    padding-bottom: 42px;
}

.p314-case-kicker,
.p314-section-heading p,
.p314-meta-item span {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.p314-case-hero h1 {
    color: #1c1c1c;
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: .96;
    margin: 12px 0 20px;
    max-width: 950px;
}

.p314-case-lede {
    color: #555;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    max-width: 880px;
    margin: 0;
}

.p314-case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.p314-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 2px solid #1b1b1b;
    background: #1b1b1b;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    padding: 15px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.p314-button:hover {
    transform: translateY(-1px);
}

.p314-button-secondary {
    background: #ffffff;
    color: #1b1b1b !important;
}

.p314-media-section,
.p314-content-section,
.p314-project-meta {
    margin-top: 46px;
}

.p314-section-heading {
    align-items: end;
    border-bottom: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 14px;
}

.p314-section-heading h2 {
    color: #1f1f1f;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.p314-section-heading p {
    margin: 0;
    text-align: right;
}

.p314-media-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.p314-media-card {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.p314-lightbox-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.p314-lightbox-trigger img {
    display: block;
    height: 230px;
    object-fit: contain;
    object-position: top center;
    padding: 12px;
    width: 100%;
}

.p314-lightbox-trigger span {
    align-items: center;
    background: rgba(0, 0, 0, .72);
    bottom: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    opacity: 0;
    padding: 9px 12px;
    position: absolute;
    right: 12px;
    text-transform: uppercase;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.p314-lightbox-trigger:hover span,
.p314-lightbox-trigger:focus span {
    opacity: 1;
    transform: translateY(0);
}

.p314-video-card iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    width: 100%;
}

.p314-case-content {
    color: #363636;
    font-size: 18px;
    line-height: 1.75;
    max-width: 1040px;
}

.p314-case-content > *:first-child {
    margin-top: 0;
}

.p314-case-content p,
.p314-case-content li {
    font-size: 18px;
    line-height: 1.75;
}

.p314-case-content h2,
.p314-case-content h3,
.p314-case-content h4 {
    color: #1f1f1f;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-top: 36px;
}

.p314-case-content h2 {
    font-size: 34px;
}

.p314-case-content h3 {
    font-size: 26px;
}

.p314-case-content ul,
.p314-case-content ol {
    padding-left: 1.25em;
}

.p314-case-content a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.p314-project-meta {
    border-top: 1px solid #e8e8e8;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding-top: 24px;
}

.p314-meta-item {
    background: #f7f7f7;
    border: 1px solid #e9e9e9;
    padding: 18px;
}

.p314-meta-item span {
    display: block;
    margin-bottom: 8px;
}

.p314-meta-item strong,
.p314-meta-item a {
    color: #222;
    display: block;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}

.p314-modern-portfolio .portfolio_navigation {
    border-top: 1px solid #e8e8e8;
    margin-top: 42px;
    padding-top: 24px;
}

.p314-modal-open {
    overflow: hidden;
}

.p314-modal {
    align-items: center;
    background: rgba(0, 0, 0, .86);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 34px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999999;
}

.p314-modal[hidden] {
    display: none;
}

.p314-modal-inner {
    max-height: 92vh;
    max-width: min(1180px, 94vw);
    position: relative;
    width: 100%;
}

.p314-modal img {
    background: #fff;
    display: block;
    margin: 0 auto;
    max-height: 86vh;
    max-width: 100%;
    object-fit: contain;
}

.p314-modal-caption {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-top: 12px;
    text-align: center;
}

.p314-modal-close {
    align-items: center;
    background: #ffffff;
    border: 0;
    color: #111111;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -12px;
    top: -16px;
    width: 44px;
}

@media (max-width: 768px) {
    .p314-modern-portfolio {
        padding: 38px 18px 58px;
    }

    .p314-case-hero {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .p314-section-heading {
        align-items: start;
        display: block;
    }

    .p314-section-heading p {
        margin-top: 8px;
        text-align: left;
    }

    .p314-media-grid {
        grid-template-columns: 1fr;
    }

    .p314-lightbox-trigger img {
        height: 210px;
    }

    .p314-case-content,
    .p314-case-content p,
    .p314-case-content li {
        font-size: 16px;
    }

    .p314-modal {
        padding: 18px;
    }

    .p314-modal-close {
        right: 0;
        top: -52px;
    }
}
