:root {
    --pj-red: #f34635;
    --pj-dark: #11191c;
    --pj-text: #202629;
    --pj-muted: #666d70;
    --pj-line: #e2e6e7;
    --pj-soft: #f4f5f5;
}

body.single-project a,
body.single-project .site-header--custom a,
body.single-project .site-footer a {
    text-decoration: none !important;
}

.project-detail-page {
    padding-top: 0 !important;
    overflow-x: hidden;
    color: var(--pj-text);
    font-size: 15px;
}

.pj-icons {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.project-detail-page svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero */
.pj-hero {
    height: 326px;
    color: #fff;
    background-color: var(--pj-dark);
    background-image:
        linear-gradient(90deg,
            rgba(7, 14, 17, .86),
            rgba(7, 14, 17, .24) 70%,
            rgba(7, 14, 17, .45)),
        var(--pj-image,
            linear-gradient(135deg, #11191c 0%, #2b3539 100%));
    background-position: center;
    background-size: cover;
}

.pj-hero__inner {
    height: 100%;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.pj-hero nav {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d9dddf;
    font-size: 14px;
}

.pj-hero nav a {
    color: #fff;
}

.pj-hero nav a:hover {
    color: var(--pj-red);
}

.pj-hero nav [aria-current="page"] {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pj-hero__inner>p {
    margin: 0 0 6px;
    color: var(--pj-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.pj-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 37px;
    line-height: 1.12;
    text-transform: none;
}

.pj-hero__inner>div {
    max-width: 680px;
    margin-top: 12px;
    color: #edf0f1;
    font-size: 14px;
    line-height: 1.55;
}

/* Overview */
.pj-overview {
    padding: 28px 0 20px;
}

.pj-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: 38px;
}

.pj-overview__grid>.pj-summary:only-child {
    grid-column: 1 / -1;
    max-width: 760px;
}

.pj-gallery {
    min-width: 0;
}

.pj-gallery--placeholder {
    height: 398px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f4f5;
}

.pj-gallery--placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pj-gallery__main {
    position: relative;
    height: 398px;
    overflow: hidden;
    border-radius: 4px;
    background: #e9ebec;
}

.pj-gallery__main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pj-gallery__main>a {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 24, 27, .78);
    color: #fff;
    cursor: zoom-in;
    transition: .2s;
}

.pj-gallery__main>a:hover {
    background: var(--pj-red);
}

.pj-gallery__main svg {
    width: 19px;
    height: 19px;
}

.pj-gallery__controls {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 31px;
    align-items: center;
    gap: 8px;
}

.pj-gallery__controls>button {
    width: 31px;
    height: 31px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #d6dbdd;
    border-radius: 50%;
    background: #fff;
    color: var(--pj-text);
    cursor: pointer;
    transition: .2s;
}

.pj-gallery__controls>button:hover:not(:disabled) {
    border-color: var(--pj-red);
    color: var(--pj-red);
}

.pj-gallery__controls>button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.pj-gallery__controls>button svg {
    width: 16px;
    height: 16px;
}

.pj-gallery__thumbs {
    margin-top: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pj-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.pj-gallery__thumbs button {
    width: auto;
    height: 70px;
    padding: 0;
    flex: 0 0 calc((100% - 32px) / 5);
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 3px;
    background: #eee;
    cursor: pointer;
}

.pj-gallery__thumbs button.is-active {
    border-color: var(--pj-red);
}

.pj-gallery__thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Summary */
.pj-summary {
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pj-summary>span {
    color: var(--pj-red);
    font-size: 13px;
    font-weight: 700;
}

.pj-summary p.pj-summary__title {
    margin: 6px 0 9px;
    color: var(--pj-text);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
}

.pj-summary>p {
    margin: 0 0 18px;
    color: var(--pj-muted);
    font-size: 14px;
    line-height: 1.65;
}

.pj-summary__facts {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pj-line);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pj-summary__facts li {
    min-width: 0;
    padding: 18px 8px 0;
    text-align: center;
    border-right: 1px solid var(--pj-line);
}

.pj-summary__facts li:last-child { border-right: 0; }

.pj-summary__facts svg {
    width: 38px;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 4px;
    color: var(--pj-red);
}

.pj-summary__facts span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.pj-summary__facts small {
    color: var(--pj-muted);
    font-size: 12px;
    line-height: 1.35;
}

.pj-summary__facts strong {
    overflow-wrap: anywhere;
    color: var(--pj-text);
    font-size: 13px;
    line-height: 1.45;
}

.pj-summary__consultation {
    margin: 4px 0 20px;
}

.pj-summary__consultation>span {
    font-size: 13px;
    color: var(--pj-muted);
}

.pj-summary__consultation h3 {
    margin: 8px 0;
    color: var(--pj-red);
    font-size: 22px;
    line-height: 1.4;
}

.pj-summary__consultation p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pj-muted);
}

.pj-summary__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pj-summary__actions>a {
    min-height: 46px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 3px;
    border: 1px solid var(--pj-red);
    background: var(--pj-red);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
    text-align: center;
    line-height: 1.5;
}

.pj-summary__actions>a:hover {
    background: #d93427;
}

.pj-summary__actions>a:last-child {
    background: #fff;
    color: var(--pj-text);
    border-color: #bfc4c7;
}

.pj-summary__actions>a:last-child:hover {
    color: var(--pj-red);
    border-color: var(--pj-red);
    background: #fff5f3;
}

.pj-summary__actions>a svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Project information */
.pj-content {
    padding: 25px 0 30px;
}

.pj-information__grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.pj-specs {
    padding: 20px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f7f7f7;
}

.pj-specs h2 {
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    font-size: 17px;
    text-transform: uppercase;
}

.pj-specs dl {
    margin: 0;
    padding: 0;
}

.pj-specs dl>div {
    padding: 9px 0;
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--pj-line);
    font-size: 12px;
    line-height: 1.4;
}

.pj-specs dl>div:last-child {
    border-bottom: 0;
}

.pj-specs dt {
    color: #555;
    font-weight: 400;
}

.pj-specs dd {
    margin: 0;
    color: var(--pj-muted);
    line-height: 1.5;
}

/* Tabs */
.pj-tabs {
    min-width: 0;
}

.pj-tabs .pj-tablist {
    width: 100%;
    min-height: 54px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow-x: auto;
    border: 1px solid #e4e7e8;
    border-radius: 6px;
    background: #f4f5f5;
    scrollbar-width: none;
}

.pj-tabs .pj-tablist::-webkit-scrollbar {
    display: none;
}

.pj-tabs .pj-tablist button {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #676e71;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
}

.pj-tabs .pj-tablist button:hover {
    color: var(--pj-red);
}

.pj-tabs .pj-tablist button.is-active {
    border-color: #f0c2bd;
    background: #fff;
    color: var(--pj-red);
    box-shadow: 0 2px 8px rgba(20, 29, 33, .07);
}

.pj-tabs .pj-panels {
    padding-top: 0;
}

.pj-tabs .pj-panels>article {
    min-height: 0;
    padding: 26px 4px 4px;
    display: none;
    animation: pjFade .25s ease;
}

.pj-tabs .pj-panels>article.is-active {
    display: block;
}

.pj-tabs .pj-panels h2 {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--pj-red);
    color: var(--pj-text);
    font-size: 18px;
    line-height: 1.35;
}

.pj-tabs .pj-panels p,
.pj-tabs .pj-panels li {
    margin: 0 0 12px;
    color: #545c60;
    line-height: 1.75;
}

.pj-tabs .pj-panels ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.pj-copy {
    max-width: 76ch;
}

.pj-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.pj-two-cols>div {
    min-width: 0;
}

.pj-two-cols>div+div {
    padding-left: 28px;
    border-left: 1px solid var(--pj-line);
}

.pj-data-list {
    margin: 0;
}

.pj-data-list>div {
    padding: 13px 0;
    border-bottom: 1px solid var(--pj-line);
}

.pj-data-list>div:first-child {
    padding-top: 0;
}

.pj-data-list>div:last-child {
    border-bottom: 0;
}

.pj-data-list dt {
    font-size: 14px;
    font-weight: 700;
}

.pj-data-list dd {
    margin: 5px 0 0;
    color: var(--pj-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Gallery tab */
.pj-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pj-panel-gallery {
    display: grid;
    grid-auto-columns: minmax(210px, 34%);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pj-panel-gallery::-webkit-scrollbar {
    display: none;
}

.pj-panel-gallery a {
    height: 235px;
    display: block;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.pj-panel-gallery a:focus-visible {
    outline: 2px solid var(--pj-red);
    outline-offset: 2px;
}

.pj-panel-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}

.pj-panel-gallery a:hover img {
    transform: scale(1.035);
}

/* Documents */
.pj-documents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pj-documents a {
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid var(--pj-line);
    border-left: 3px solid var(--pj-red);
    border-radius: 4px;
    color: var(--pj-text);
}

.pj-documents a:hover {
    border-color: var(--pj-red);
}

.pj-documents strong {
    color: var(--pj-red);
    font-size: 12px;
}

/* Related projects */
.pj-related {
    padding: 22px 0 48px;
    border-top: 1px solid var(--pj-line);
}

.pj-section-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pj-section-head h2 {
    margin: 0;
    font-size: 21px;
    text-transform: uppercase;
}

.pj-section-head>a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pj-red);
    font-size: 14px;
}

.pj-section-head .pj-section-head__arrow {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    overflow: visible;
}

.pj-related__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.pj-related article {
    min-width: 0;
    border: 1px solid var(--pj-line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: .25s;
}

.pj-related article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 27, 32, .1);
}

.pj-related article>a {
    height: 154px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #eef0f1 0%, #dde2e4 100%);
}

.pj-related article>a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: .35s;
}

.pj-related article:hover>a img {
    transform: scale(1.035);
}

.pj-related article>div {
    position: relative;
    min-height: 117px;
    padding: 11px 12px 13px;
    display: flex;
    flex-direction: column;
}

.pj-related article span {
    color: var(--pj-red);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.pj-related h3 {
    margin: 5px 0 8px;
    min-height: 2.8em;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pj-related h3 a {
    color: var(--pj-text);
}

.pj-related p {
    margin: auto 0 0;
    padding-right: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--pj-muted);
    font-size: 12px;
    line-height: 1.4;
}

.pj-related p .pj-related__pin {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9;
}

.pj-related__arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pj-line);
    border-radius: 50%;
    color: var(--pj-text);
}

.pj-related__arrow:hover {
    border-color: var(--pj-red);
    color: var(--pj-red);
}

.pj-related__arrow svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    overflow: visible;
}

/* Focus states */
.pj-gallery__controls>button:focus-visible,
.pj-gallery__thumbs button:focus-visible,
.pj-tabs .pj-tablist button:focus-visible,
.pj-summary>a:focus-visible,
.pj-documents a:focus-visible,
.pj-section-head>a:focus-visible,
.pj-related a:focus-visible {
    outline: 2px solid var(--pj-red);
    outline-offset: 2px;
}

/* Lightbox2 */
.lightboxOverlay {
    --lb-overlay-opacity: .9;
    cursor: zoom-out;
}

.lightbox {
    font-family: inherit;
}

.lightbox .lb-image {
    object-fit: contain;
}

.lb-data .lb-caption {
    font-size: 14px;
    line-height: 1.45;
}

.lb-data .lb-number {
    padding-top: 5px;
    font-size: 12px;
}

.lb-outerContainer,
.lb-dataContainer {
    max-width: calc(100vw - 28px);
}

@keyframes pjFade {
    from {
        opacity: .2;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .pj-overview__grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .pj-gallery__main {
        height: 360px;
    }

    .pj-information__grid {
        grid-template-columns: 330px minmax(0, 1fr);
        gap: 24px;
    }

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

    .pj-related article:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 860px) {
    .pj-hero {
        height: 305px;
    }

    .pj-overview__grid {
        grid-template-columns: 1fr;
    }

    .pj-gallery__main {
        height: 430px;
    }

    .pj-gallery--placeholder {
        height: 430px;
    }

    .pj-summary__facts {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pj-summary__facts li {
        padding: 18px 8px 0;
        border-right: 1px solid var(--pj-line);
        border-bottom: 0;
    }

    .pj-summary__facts li:first-child {
        padding-left: 8px;
    }

    .pj-summary__facts li:last-child {
        border-right: 0;
    }

    .pj-information__grid {
        grid-template-columns: 1fr;
    }

    .pj-specs {
        order: 2;
    }

    .pj-tabs {
        order: 1;
    }

    .pj-two-cols {
        grid-template-columns: 1fr;
    }

    .pj-two-cols>div+div {
        padding: 22px 0 0;
        border-top: 1px solid var(--pj-line);
        border-left: 0;
    }

    .pj-panel-gallery {
        grid-auto-columns: minmax(210px, 70%);
    }
}

@media (max-width: 620px) {
    .project-detail-page {
        font-size: 14px;
    }

    .pj-hero {
        height: 345px;
        background-position: 62% center;
        background-image:
            linear-gradient(90deg, rgba(7, 14, 17, .88), rgba(7, 14, 17, .62)),
            var(--pj-image, linear-gradient(135deg, #11191c, #2b3539));
    }

    .pj-hero__inner {
        padding-top: 62px;
        padding-bottom: 30px;
        justify-content: flex-end;
    }

    .pj-hero nav {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .pj-hero nav [aria-current="page"] {
        display: none;
    }

    .pj-hero h1 {
        font-size: 29px;
    }

    .pj-hero__inner>div {
        font-size: 12px;
    }

    .pj-overview {
        padding-top: 18px;
    }

    .pj-overview__grid {
        gap: 20px;
    }

    .pj-gallery__main {
        height: 260px;
    }

    .pj-gallery--placeholder {
        height: 260px;
    }

    .pj-gallery__controls {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
    }

    .pj-gallery__controls>button {
        width: 28px;
        height: 28px;
    }

    .pj-gallery__thumbs button {
        height: 57px;
        flex-basis: 74px;
    }

    .pj-summary p.pj-summary__title {
        font-size: 24px;
    }

    .pj-summary__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 0;
    }

    .pj-summary__facts li,
    .pj-summary__facts li:first-child {
        padding: 16px 10px;
        border-bottom: 1px solid var(--pj-line);
    }

    .pj-summary__facts li:nth-child(even) { border-right: 0; }
    .pj-summary__facts li:nth-child(n+3) { border-bottom: 0; }
    .pj-summary__actions { grid-template-columns: 1fr; }
    .pj-summary__consultation h3 { font-size: 20px; }

    .pj-information__grid {
        gap: 24px;
    }

    .pj-specs {
        padding: 20px 18px;
    }

    .pj-specs h2 {
        font-size: 17px;
    }

    .pj-tabs .pj-tablist {
        display: flex;
        overflow-x: auto;
    }

    .pj-tabs .pj-tablist button {
        padding-inline: 17px;
        flex: 0 0 auto;
    }

    .pj-tabs .pj-panels>article {
        min-height: 0;
    }

    .pj-panel-gallery {
        grid-auto-columns: 86%;
    }

    .pj-panel-gallery a {
        height: 235px;
    }

    .pj-documents {
        grid-template-columns: 1fr;
    }

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

    .pj-related article:nth-child(n+4) {
        display: block;
    }

    .pj-related article:nth-child(5) {
        display: none;
    }

    .pj-related article>a {
        height: 128px;
    }
}

@media (max-width: 390px) {
    .pj-related__grid {
        grid-template-columns: 1fr;
    }

    .pj-related article:nth-child(n+4) {
        display: none;
    }

    .pj-related article>a {
        height: 205px;
    }
}
