#ProjectBanner {
    position: relative;
    overflow: hidden;
    padding-bottom: 4%;
    background-color: #f7f7f5;
}

#ProjectBanner::before {
    content: "B";
    position: absolute;
    left: -4.5rem;
    bottom: -9rem;
    color: rgba(179, 154, 114, 0.055);
    font-size: clamp(16rem, 28vw, 31rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

#ProjectBanner .project-banner__inner {
    position: relative;
    min-height: 310px;
    padding: 3rem 0 3.5rem;
    background: linear-gradient(135deg, #d4d4d1 0%, #c7c7c4 52%, #d9d9d6 100%);
}

#ProjectBanner .project-banner__inner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(36vw, 470px);
    height: 9px;
    background-color: #b39a72;
}

#ProjectBanner .container,
#ProjectListing .container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
}

#ProjectBanner .project-banner__breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2.2rem;
    color: rgba(65, 64, 66, 0.62);
    font-size: 0.8rem;
    font-weight: 600;
}

#ProjectBanner .project-banner__breadcrumb a {
    color: rgba(65, 64, 66, 0.78);
    text-decoration: none;
}

#ProjectBanner .project-banner__breadcrumb a:hover {
    color: #8f7755;
}

#ProjectBanner .project-banner__content {
    display: grid;
    gap: 1.1rem;
    max-width: 760px;
}

#ProjectBanner .project-banner__eyebrow {
    color: rgba(65, 64, 66, 0.56);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
}

#ProjectBanner h1 {
    position: relative;
    width: min(100%, 1040px);
    margin: 0;
    padding-bottom: 1.35rem;
    color: #8f8474;
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    font-weight: 500;
    line-height: 1;
}

#ProjectBanner h1::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.85);
}

#ProjectListing {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 0 6.5rem;
    background:
        radial-gradient(circle at top left, rgba(179, 154, 114, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f7f5 0%, #fff 18%);
}

#ProjectListing::before {
    content: "B";
    position: absolute;
    right: -5rem;
    top: 6rem;
    color: rgba(65, 64, 66, 0.03);
    font-size: clamp(18rem, 30vw, 34rem);
    font-weight: 800;
    line-height: 0.82;
    pointer-events: none;
}

.project-listing__head {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.project-listing__intro {
    max-width: 760px;
}

.project-listing__intro span {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: #9a835d;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.project-listing__intro span::before {
    content: "";
    width: 44px;
    height: 1px;
    background-color: #b39a72;
}

.project-listing__intro h2 {
    margin: 0;
    color: #7f766b;
    font-size: clamp(1.95rem, 3.8vw, 3.35rem);
    font-weight: 500;
    line-height: 1.12;
}

.project-listing__intro p {
    max-width: 640px;
    margin: 1rem 0 0;
    color: rgba(65, 64, 66, 0.72);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.82;
}

.project-listing__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.project-listing__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.3rem;
    border: 1px solid rgba(179, 154, 114, 0.22);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.76);
    color: #6f665b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(33, 27, 21, 0.05);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-listing__filter:hover,
.project-listing__filter:focus,
.project-listing__filter.active {
    border-color: #b39a72;
    background-color: #b39a72;
    color: #fff;
    transform: translateY(-1px);
}

.project-listing__results {
    position: relative;
    transition: opacity 0.2s ease;
}

.project-listing__results.is-loading {
    opacity: 0.45;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(179, 154, 114, 0.12);
    border-radius: 1.8rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 243, 0.98));
    box-shadow: 0 22px 54px rgba(29, 24, 18, 0.08);
}

.project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 16, 14, 0.06) 0%, rgba(18, 16, 14, 0.32) 100%);
}

.project-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(17, 15, 13, 0.54);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    backdrop-filter: blur(8px);
}

.project-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.55rem 1.45rem 1.5rem;
}

.project-card__title {
    margin: 0;
    color: #2c261f;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.28;
}

.project-card__text {
    margin: 0.9rem 0 0;
    color: #6d655c;
    font-size: 0.96rem;
    line-height: 1.8;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 1.4rem;
    color: #b39a72;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.project-card__link:hover,
.project-card__link:focus {
    color: #94784b;
}

.project-card__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(179, 154, 114, 0.12);
    font-size: 1.1rem;
    line-height: 1;
}

.project-listing__empty {
    padding: 3.2rem 1.5rem;
    border: 1px solid rgba(179, 154, 114, 0.14);
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: 0 20px 48px rgba(33, 27, 21, 0.05);
}

.project-listing__empty p {
    margin: 0;
    color: rgba(65, 64, 66, 0.72);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

@media only screen and (max-width: 991.98px) {
    #ProjectBanner .project-banner__inner {
        min-height: 268px;
        padding-top: 4.1rem;
    }

    #ProjectListing {
        padding: 2rem 0 5rem;
    }
}

@media only screen and (max-width: 767.98px) {
    #ProjectBanner {
        padding-bottom: 4.5%;
    }

    #ProjectBanner::before {
        left: -3rem;
        bottom: -5.5rem;
        font-size: 15rem;
    }

    #ProjectBanner .project-banner__inner {
        min-height: 192px;
        padding: 4.7rem 0 2.2rem;
    }

    #ProjectBanner .project-banner__inner::after {
        width: 58vw;
        height: 7px;
    }

    #ProjectBanner .project-banner__breadcrumb {
        margin-bottom: 0.75rem;
        font-size: 0.74rem;
    }

    #ProjectBanner .project-banner__eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    #ProjectBanner h1 {
        padding-bottom: 1rem;
    }

    #ProjectListing {
        padding: 1.6rem 0 4.5rem;
    }

    .project-listing__head {
        margin-bottom: 1.6rem;
    }

    .project-listing__intro h2 {
        line-height: 1.2;
    }

    .project-listing__filters {
        gap: 0.65rem;
    }

    .project-listing__filter {
        width: 100%;
        min-height: 46px;
        padding: 0.8rem 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .project-card {
        border-radius: 1.4rem;
    }

    .project-card__body {
        padding: 1.2rem 1.1rem 1.2rem;
    }

    .project-card__title {
        font-size: 1.08rem;
    }

    .project-card__text {
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

#ProjectDetailSection {
    position: relative;
    overflow: hidden;
    padding: 1rem 0 3rem;
    background:
        radial-gradient(circle at top left, rgba(179, 154, 114, 0.08), transparent 25%),
        linear-gradient(180deg, #f7f7f5 0%, #fcfcfa 100%);
}

#ProjectDetailSection::before {
    content: "B";
    position: absolute;
    left: -4rem;
    bottom: -7rem;
    color: rgba(65, 64, 66, 0.035);
    font-size: clamp(16rem, 26vw, 28rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.project-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 2rem;
    align-items: stretch;
}

.project-detail__media,
.project-detail__content {
    min-width: 0;
}

.project-detail__media {
    position: relative;
    min-height: 640px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 26px 62px rgba(33, 27, 21, 0.14);
    background-color: #e7e1d9;
}

.project-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail__content {
    display: flex;
    align-items: stretch;
}

.project-detail__content-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 640px;
    padding: 2.1rem 1.9rem 1.85rem;
    border: 1px solid rgba(179, 154, 114, 0.16);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 244, 239, 0.98));
    box-shadow: 0 24px 58px rgba(33, 27, 21, 0.08);
}

.project-detail__title {
    margin: 0;
    color: #2d2822;
    font-size: clamp(1.65rem, 2.1vw, 2.35rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.project-detail__slogan {
    margin: 0.9rem 0 0;
    color: #9a835d;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.75;
}

.project-detail__description-wrap {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 1.1rem;
    padding-top: 1rem;
    padding-right: 0.45rem;
    border-top: 1px solid rgba(179, 154, 114, 0.16);
    overflow: hidden;
}

.project-detail__description {
    height: 100%;
    padding-right: 0.45rem;
    overflow-y: auto;
    color: #61584d;
    font-size: 0.95rem;
    line-height: 1.9;
}

.project-detail__description p {
    margin-bottom: 1rem;
}

.project-detail__description p:last-child {
    margin-bottom: 0;
}

.project-detail__description::-webkit-scrollbar {
    width: 7px;
}

.project-detail__description::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: rgba(179, 154, 114, 0.45);
}

.project-detail__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.project-action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 168px;
    padding: 1.4rem 1.25rem 1.25rem;
    border: 1px solid rgba(179, 154, 114, 0.16);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 236, 0.98));
    color: #2f2923;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(33, 27, 21, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.project-action-card--button {
    width: 100%;
    border: 1px solid rgba(179, 154, 114, 0.16);
}

.project-action-card:hover,
.project-action-card:focus {
    transform: translateY(-4px);
    border-color: rgba(179, 154, 114, 0.34);
    color: #2f2923;
    box-shadow: 0 24px 56px rgba(33, 27, 21, 0.1);
}

.project-action-card.is-disabled {
    pointer-events: none;
    opacity: 0.58;
}

.project-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 1rem;
    background: rgba(179, 154, 114, 0.14);
    color: #9c825a;
    font-size: 1.3rem;
}

.project-action-card__label {
    margin-top: 1.7rem;
    color: #3a332c;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.project-action-card__meta {
    margin-top: 1rem;
    color: #9a835d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#ProjectGallerySection {
    position: relative;
    padding: 1rem 0 6rem;
    background: linear-gradient(180deg, #fcfcfa 0%, #fff 100%);
}

.project-gallery__heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.project-gallery__heading h2 {
    margin: 0;
    color: #7f766b;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 500;
}

.project-gallery__heading p {
    margin: 1rem 0 0;
    color: rgba(65, 64, 66, 0.72);
    font-size: 0.98rem;
    line-height: 1.82;
}

.project-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(33, 27, 21, 0.08);
}

.project-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 17, 15, 0.08) 0%, rgba(19, 17, 15, 0.54) 100%);
    transition: opacity 0.2s ease;
}

.project-gallery__icon {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.project-gallery__item:hover .project-gallery__image,
.project-gallery__item:focus .project-gallery__image {
    transform: scale(1.06);
}

.lg-backdrop {
    z-index: 20000;
}

.lg-outer {
    z-index: 20010;
}

@media only screen and (max-width: 1199.98px) {
    .project-detail__hero {
        grid-template-columns: 1fr;
    }

    .project-detail__media,
    .project-detail__content-inner {
        min-height: 560px;
    }

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

@media only screen and (max-width: 767.98px) {
    #ProjectDetailSection {
        padding: 0.4rem 0 2.5rem;
    }

    .project-detail__hero {
        gap: 1.1rem;
    }

    .project-detail__media,
    .project-detail__content-inner {
        min-height: auto;
    }

    .project-detail__media {
        height: 340px;
        border-radius: 1.35rem;
    }

    .project-detail__content-inner {
        padding: 1.35rem 1.1rem;
        border-radius: 1.35rem;
    }

    .project-detail__title {
        font-size: 1.5rem;
    }

    .project-detail__slogan {
        font-size: 0.92rem;
    }

    .project-detail__description-wrap {
        overflow: visible;
    }

    .project-detail__description {
        max-height: auto;
    }

    .project-detail__actions {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 1.1rem;
    }

    .project-action-card {
        min-height: 136px;
        padding: 1.15rem 1rem 1rem;
        border-radius: 1.1rem;
    }

    #ProjectGallerySection {
        padding: 0.5rem 0 4.5rem;
    }

    .project-gallery__heading {
        margin-bottom: 1.5rem;
    }
}
