/* EVICK projects, updates and article pages */

.updates-page,
.single-update {
    overflow: hidden;
    background: #090909;
}

.updates-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.updates-eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: currentColor;
}

.updates-hero {
    position: relative;
    min-height: 670px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    border-bottom: 5px solid var(--red);
}

.updates-hero__image,
.updates-hero__overlay {
    position: absolute;
    inset: 0;
}

.updates-hero__image {
    z-index: -3;
}

.updates-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.updates-hero__overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.67) 50%, rgba(0,0,0,.2)),
        linear-gradient(0deg, rgba(0,0,0,.82), transparent 55%);
}

.updates-hero__content {
    width: 100%;
    padding-top: 170px;
    padding-bottom: 90px;
}

.updates-hero h1 {
    max-width: 960px;
    margin-bottom: 1.3rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .96;
}

.updates-hero h1 span {
    color: var(--red);
}

.updates-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 1.12rem;
}

.updates-listing {
    background:
        radial-gradient(circle at 92% 4%, rgba(220,0,0,.08), transparent 25%),
        #0d0d0d;
}

.updates-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.5rem;
}

.updates-filters a {
    padding: .75rem 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: rgba(255,255,255,.68);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.updates-filters a:hover,
.updates-filters a.active {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.update-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #121212;
}

.update-card__image {
    display: block;
    height: 270px;
    overflow: hidden;
}

.update-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.update-card:hover .update-card__image img {
    transform: scale(1.045);
}

.update-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: #191919;
    color: var(--red);
    font-size: 2rem;
}

.update-card__content {
    padding: 1.6rem;
}

.update-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.48);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.update-card__meta span {
    color: var(--red);
    font-weight: 800;
}

.update-card h2 {
    margin-bottom: .8rem;
    font-size: 1.45rem;
    line-height: 1.12;
}

.update-card p {
    margin-bottom: 1.2rem;
    font-size: .92rem;
    line-height: 1.65;
}

.update-card__link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.update-card__link i {
    color: var(--red);
}

.updates-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.updates-pagination a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
}

.updates-pagination a.active,
.updates-pagination a:hover {
    border-color: var(--red);
    background: var(--red);
}

.updates-empty,
.single-update__missing {
    text-align: center;
}

.single-update__hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    border-bottom: 5px solid var(--red);
}

.single-update__image,
.single-update__overlay {
    position: absolute;
    inset: 0;
}

.single-update__image {
    z-index: -3;
}

.single-update__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-update__overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.63) 60%, rgba(0,0,0,.22)),
        linear-gradient(0deg, rgba(0,0,0,.9), transparent 58%);
}

.single-update__header {
    width: 100%;
    padding-top: 170px;
    padding-bottom: 80px;
}

.single-update__back {
    display: inline-flex;
    gap: .6rem;
    margin-bottom: 2.2rem;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.single-update__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1rem;
}

.single-update__meta span,
.single-update__meta time {
    padding: .38rem .7rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.single-update__meta span:first-child {
    border-color: var(--red);
    background: var(--red);
}

.single-update__header h1 {
    max-width: 1000px;
    margin-bottom: 1.2rem;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.single-update__header p {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 1.12rem;
}

.single-update__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.single-update__content {
    color: rgba(255,255,255,.76);
    font-size: 1.05rem;
    line-height: 1.85;
}

.single-update__content h2,
.single-update__content h3 {
    margin: 2.2rem 0 1rem;
    color: #fff;
}

.single-update__content h2 {
    font-size: 2.2rem;
}

.single-update__content h3 {
    font-size: 1.55rem;
}

.single-update__content ul,
.single-update__content ol {
    margin: 1.2rem 0 1.6rem 1.3rem;
}

.single-update__content ul {
    list-style: disc;
}

.single-update__content ol {
    list-style: decimal;
}

.single-update__content img {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.single-update__content a {
    color: var(--red);
    text-decoration: underline;
}

.single-update__aside {
    position: sticky;
    top: 120px;
}

.single-update__contact {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.09);
    background: #131313;
}

.single-update__contact h2 {
    margin-bottom: .8rem;
}

.single-update__contact p {
    font-size: .92rem;
}

.single-update__phone {
    display: block;
    margin-top: 1rem;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1050px) {
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-update__layout {
        grid-template-columns: 1fr;
    }

    .single-update__aside {
        position: static;
    }
}

@media (max-width: 700px) {
    .updates-hero,
    .single-update__hero {
        min-height: 650px;
    }

    .updates-hero__content,
    .single-update__header {
        padding-top: 140px;
        padding-bottom: 55px;
    }

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

    .updates-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .5rem;
    }

    .updates-filters a {
        flex: 0 0 auto;
    }
}

/* Project image gallery */
.project-gallery-section {
    padding: 0 0 7rem;
    background: #090909;
}

.project-gallery-heading {
    margin-bottom: 2rem;
}

.project-gallery-heading h2 {
    margin: .4rem 0 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 1rem;
}

.project-gallery-item {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    background: #151515;
    cursor: pointer;
}

.project-gallery-item:nth-child(5n + 1) {
    grid-column: span 8;
    grid-row: span 2;
}

.project-gallery-item:nth-child(5n + 4),
.project-gallery-item:nth-child(5n + 5) {
    grid-column: span 6;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.project-gallery-item span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0,0,0,.76);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

.project-gallery-item:hover img,
.project-gallery-item:focus img {
    transform: scale(1.04);
}

.project-gallery-item:hover span,
.project-gallery-item:focus span {
    opacity: 1;
    transform: translateY(0);
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    background: rgba(0,0,0,.95);
}

.project-lightbox.is-open {
    display: flex;
}

.project-lightbox figure {
    margin: 0;
    text-align: center;
}

.project-lightbox img {
    max-width: min(1400px, 86vw);
    max-height: 84vh;
    object-fit: contain;
}

.project-lightbox figcaption {
    margin-top: .8rem;
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}

.project-lightbox__close,
.project-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(0,0,0,.45);
    color: #fff;
    cursor: pointer;
}

.project-lightbox__close {
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    font-size: 3rem;
}

.project-lightbox__nav {
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.project-lightbox__nav--previous {
    left: 1.5rem;
}

.project-lightbox__nav--next {
    right: 1.5rem;
}

@media (max-width: 850px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }

    .project-gallery-item,
    .project-gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 560px) {
    .project-gallery-section {
        padding-bottom: 4.5rem;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .project-gallery-item,
    .project-gallery-item:nth-child(n),
    .project-gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-lightbox {
        padding: 4rem 1rem 5rem;
    }

    .project-lightbox img {
        max-width: 96vw;
        max-height: 76vh;
    }

    .project-lightbox__nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }
}

/* Search, breadcrumbs and related navigation */
.updates-hero--compact {
    min-height: 520px;
}

.site-search-form {
    max-width: 760px;
    display: flex;
    margin-top: 2rem;
    padding: .45rem;
    background: #fff;
}

.site-search-form input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 0;
    outline: 0;
    font: inherit;
}

.site-search-form button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 0 1.4rem;
    border: 0;
    background: #ed1c24;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-result-summary {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,.66);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.single-update__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,.62);
    font-size: .78rem;
}

.single-update__breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.single-update__breadcrumbs i {
    font-size: .55rem;
}

.single-update__breadcrumbs span {
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-projects {
    background: #101010;
}

.project-adjacent {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #090909;
}

.project-adjacent__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.project-adjacent a {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
}

.project-adjacent small {
    color: #ed1c24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.project-adjacent__next {
    text-align: right;
}

@media (max-width: 640px) {
    .site-search-form {
        flex-direction: column;
        background: transparent;
        gap: .6rem;
        padding: 0;
    }

    .site-search-form input,
    .site-search-form button {
        min-height: 54px;
    }

    .site-search-form button {
        justify-content: center;
    }

    .project-adjacent__inner {
        grid-template-columns: 1fr;
    }
}

