/*
==================================================
LASP
Projects
Style based on Archive Collections
Theme: Astra Child
File: /wp-content/themes/astra-child/assets/css/projects.css
==================================================
*/

/*
==================================================
BASE
==================================================
*/

.projects-page {
    width: 100%;
    background: #f0ece9;
    color: #111111;
    padding: 46px 0 110px;
}

.projects-page,
.projects-page * {
    box-sizing: border-box;
}

.projects-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 40px;
}

/*
==================================================
TOP / INTRO
==================================================
*/

.projects-hero {
    max-width: 980px;
    margin: 0 0 58px;
}

.projects-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
}

.projects-breadcrumbs a {
    color: #9a9a9a;
    text-decoration: none;
    transition: color .25s ease;
}

.projects-breadcrumbs a:hover {
    color: #111111;
}

.projects-title {
    margin: 0;
    color: #111111;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: .3px;
}

.projects-intro {
    margin: 24px 0 0;
}

.projects-intro p {
    margin: 0;
    color: #555555;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

.projects-intro p + p {
    margin-top: 8px;
}

/*
==================================================
LAYOUT
==================================================
*/

.projects-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 64px;
    align-items: flex-start;
}

/*
==================================================
SIDEBAR
==================================================
*/

.projects-sidebar {
    position: sticky;
    top: 115px;
    align-self: flex-start;
    padding: 4px 0 0;
}

.projects-sidebar-title {
    position: relative;
    margin: 0 0 26px;
    padding-left: 18px;
    color: #111111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.projects-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.projects-menu-item {
    margin: 0;
    padding: 0;
}

.projects-menu-item a {
    position: relative;
    display: block;
    padding: 13px 0 13px 18px;
    border-bottom: 1px solid #e7e2dc;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition:
        color .25s ease,
        padding-left .25s ease,
        background-color .25s ease;
}

.projects-menu-item a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: #111111;
    transform: translateY(-50%);
    transition: width .25s ease;
}

.projects-menu-item a:hover {
    color: #000000;
    padding-left: 30px;
    background: #faf8f5;
}

.projects-menu-item a:hover::before {
    width: 18px;
}

/*
==================================================
CONTENT
==================================================
*/

.projects-content {
    min-width: 0;
}

/*
==================================================
GRID
==================================================
*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 30px;
}

/*
==================================================
CARD
==================================================
*/

.project-card {
    min-width: 0;
    margin: 0;
    background: #ffffff;
}

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f2ee;
}

.project-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background .45s ease;
}

.project-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .7s ease;
}

.project-card-link:hover .project-card-image img {
    transform: scale(1.055);
}

.project-card-link:hover .project-card-image::after {
    background: rgba(0, 0, 0, .08);
}

.project-card-title {
    display: block;
    margin: 18px 0 0;
    color: #111111;
    text-align: center;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: color .25s ease;
}

.project-card-link:hover .project-card-title {
    color: #7b6a58;
}

.project-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #777777;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/*
==================================================
EMPTY
==================================================
*/

.projects-empty {
    width: 100%;
    padding: 48px 0;
    color: #777777;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
}

/*
==================================================
ASTRA / THEME COMPATIBILITY
==================================================
*/

.projects-page h1,
.projects-page h2,
.projects-page h3,
.projects-page p,
.projects-page ul {
    padding: 0;
}

.projects-page a:focus,
.projects-page button:focus {
    outline: 1px solid #111111;
    outline-offset: 4px;
}

.projects-page a:focus:not(:focus-visible),
.projects-page button:focus:not(:focus-visible) {
    outline: none;
}

/*
==================================================
RESPONSIVE
==================================================
*/

@media (max-width: 1500px) {
    .projects-container {
        padding-left: 36px;
        padding-right: 36px;
    }

    .projects-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 52px;
    }

    .projects-grid {
        gap: 38px 26px;
    }
}

@media (max-width: 1280px) {
    .projects-title {
        font-size: 48px;
    }

    .projects-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 42px;
    }

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

@media (max-width: 1024px) {
    .projects-page {
        padding-top: 38px;
        padding-bottom: 86px;
    }

    .projects-hero {
        margin-bottom: 46px;
    }

    .projects-layout {
        display: block;
    }

    .projects-sidebar {
        position: relative;
        top: auto;
        margin: 0 0 46px;
    }

    .projects-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 22px;
    }

    .projects-menu-item a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 820px) {
    .projects-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .projects-title {
        font-size: 40px;
    }

    .projects-intro p {
        font-size: 16px;
    }

    .projects-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-card-title {
        font-size: 15px;
        margin-top: 14px;
    }
}

@media (max-width: 580px) {
    .projects-page {
        padding-top: 30px;
        padding-bottom: 70px;
    }

    .projects-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .projects-hero {
        margin-bottom: 36px;
    }

    .projects-breadcrumbs {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .projects-title {
        font-size: 34px;
    }

    .projects-intro {
        margin-top: 18px;
    }

    .projects-intro p {
        font-size: 15px;
        line-height: 1.65;
    }

    .projects-sidebar {
        margin-bottom: 36px;
    }

    .projects-sidebar-title {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .projects-menu {
        grid-template-columns: 1fr;
    }

    .projects-menu-item a {
        font-size: 14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/*
==================================================
SINGLE PROJECT PAGE
==================================================
*/

.project-single-page {
    width: 100%;
    background: #f0ece9;
    color: #111111;
    padding: 46px 0 110px;
}

.project-single-page,
.project-single-page * {
    box-sizing: border-box;
}

.project-single-container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 40px;
}

/*
==================================================
SINGLE PROJECT HERO
==================================================
*/

.project-single-hero {
    max-width: 980px;
    margin: 0 0 54px;
}

.project-single-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
}

.project-single-breadcrumbs a {
    color: #9a9a9a;
    text-decoration: none;
    transition: color .25s ease;
}

.project-single-breadcrumbs a:hover {
    color: #111111;
}

.project-single-title {
    margin: 0;
    color: #111111;
    font-size: 52px;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: .3px;
}

/*
==================================================
COVER IMAGE
==================================================
*/

.project-single-cover {
    width: 100%;
    margin: 0 0 64px;
    overflow: hidden;
    background: #f5f2ee;
}

.project-single-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.85 / 1;
    object-fit: cover;
}

/*
==================================================
CONTENT
==================================================
*/

/*.project-single-content-section {
    max-width: 980px;
}*/

.project-single-content {
    color: #2c2c2c;
}

.project-single-content p {
    margin: 0 0 24px;
    color: #2c2c2c;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

.project-single-content h2 {
    margin: 64px 0 24px;
    color: #111111;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.project-single-content h3 {
    margin: 42px 0 18px;
    color: #111111;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.project-single-content ul,
.project-single-content ol {
    margin: 0 0 28px 22px;
    padding: 0;
}

.project-single-content li {
    margin-bottom: 10px;
    color: #2c2c2c;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
}

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

.project-single-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px !important;
    margin: 60px 0;
}

.project-single-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}

.project-single-content .wp-block-gallery figure.wp-block-image {
    position: relative;
    overflow: hidden;
    background: #f5f2ee;
}

.project-single-content .wp-block-gallery figure.wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1);
    transition: transform .7s ease;
}

.project-single-content .wp-block-gallery figure.wp-block-image:hover img {
    transform: scale(1.055);
}

.project-single-content .wp-block-image {
    margin: 46px 0;
}

.project-single-content .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

/*
==================================================
QUOTE
==================================================
*/

.project-single-content .wp-block-quote {
    margin: 64px 0;
    padding: 48px 56px;
    background: #111111;
    color: #ffffff;
    border: 0;
}

.project-single-content .wp-block-quote p {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.45;
}

.project-single-content .wp-block-quote cite {
    display: block;
    margin-top: 22px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    font-style: normal;
    font-weight: 300;
}

/*
==================================================
BACK LINK
==================================================
*/

.project-single-back {
    margin-top: 72px;
    padding-top: 34px;
    border-top: 1px solid #e5ded6;
}

.project-single-back a {
    display: inline-flex;
    align-items: center;
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .25s ease;
}

.project-single-back a:hover {
    color: #7b6a58;
}

/*
==================================================
SINGLE PROJECT RESPONSIVE
==================================================
*/

@media (max-width: 1280px) {
    .project-single-title {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .project-single-page {
        padding-top: 38px;
        padding-bottom: 86px;
    }

    .project-single-hero {
        margin-bottom: 46px;
    }

    .project-single-cover {
        margin-bottom: 52px;
    }

    .project-single-content-section {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .project-single-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .project-single-title {
        font-size: 40px;
    }

    .project-single-content p {
        font-size: 16px;
    }

    .project-single-content .wp-block-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px !important;
    }

    .project-single-cover img {
        aspect-ratio: 1.45 / 1;
    }
}

@media (max-width: 580px) {
    .project-single-page {
        padding-top: 30px;
        padding-bottom: 70px;
    }

    .project-single-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-single-breadcrumbs {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .project-single-title {
        font-size: 34px;
    }

    .project-single-cover {
        margin-bottom: 42px;
    }

    .project-single-content p,
    .project-single-content li {
        font-size: 15px;
        line-height: 1.65;
    }

    .project-single-content h2 {
        font-size: 28px;
        margin-top: 52px;
    }

    .project-single-content h3 {
        font-size: 22px;
    }

    .project-single-content .wp-block-gallery {
        grid-template-columns: 1fr;
        gap: 18px !important;
        margin: 42px 0;
    }

    .project-single-content .wp-block-quote {
        padding: 38px 24px;
    }

    .project-single-content .wp-block-quote p {
        font-size: 21px;
    }
}