/* ========================================================================== 
   MALABAR — SINGLE PROJECT
   Full-viewport hero + gallery left / sticky information right.
   ========================================================================== */

body.single-projeto {
    background: var(--malabar-cream);
    color: var(--malabar-blue);
}

.malabar-project-single {
    width: 100%;
    overflow: clip;
    background: var(--malabar-cream);
    color: var(--malabar-blue);
}

.malabar-project-single.no-hero {
    padding-top: var(--malabar-compact-header-height);
}

/* Hero */
.malabar-project-single__hero {
    position: relative;
    isolation: isolate;
}

.malabar-project-single__hero-image {
    z-index: 0;
}

.malabar-project-single__hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .10) 0%,
        rgba(0, 0, 0, .02) 46%,
        rgba(0, 0, 0, .48) 100%
    );
    pointer-events: none;
}

.malabar-project-single__hero-topline,
.malabar-project-single__hero-content {
    position: absolute;
    z-index: 2;
    left: var(--page-margin);
    color: #fff;
}

.malabar-project-single__hero-topline {
    top: calc(var(--malabar-compact-header-height) + 16px);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    display: none;
}

.malabar-project-single__hero-topline a,
.malabar-project-single__hero-topline span {
    color: #fff !important;
    text-decoration: none;
}

.malabar-project-single__hero-content {
    right: var(--page-margin);
    bottom: clamp(28px, 4vw, 62px);
    max-width: 700px;
}

.malabar-project-single__hero-description {
    max-width: 560px;
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
}

.malabar-project-single__hero-title,
.malabar-project-single__hero-location {
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -.025em;
}

.malabar-project-single__hero-title {
    margin: 0;
    font-size: clamp(32px, 3.1vw, 52px);
    line-height: .98;
}

.malabar-project-single__hero-location {
    margin: 3px 0 0;
    font-size: clamp(24px, 2.25vw, 38px);
    line-height: 1;
}

/* Main gallery + sticky information */
.malabar-project-single__body {
    display: grid;
    grid-template-columns: minmax(0, 58.333%) minmax(0, 41.667%);
    width: 100%;
    padding: 60px 0;
    align-items: stretch;
    background: var(--malabar-cream);
}

.malabar-project-single__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 4px;
    min-width: 0;
    background: var(--malabar-cream);
}

.malabar-project-single__gallery-item {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #e9e6cb;
}

/* Every project image occupies a full row, matching the product single rhythm. */
.malabar-project-single__gallery-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.malabar-project-single__information-column {
    position: relative;
    min-width: 0;
    align-self: stretch;
    background: var(--malabar-cream);
}

.malabar-project-single__information {
    position: sticky;
    top: calc(var(--malabar-compact-header-height) + 34px);
    width: min(459px, calc(100% - 64px));
    margin: 0 auto;
    padding: 46px 0 64px;
}

.admin-bar .malabar-project-single__information {
    top: calc(var(--malabar-compact-header-height) + 66px);
}

.malabar-project-single__description {
    color: var(--malabar-blue);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.malabar-project-single__description > * {
    max-width: 100%;
}

.malabar-project-single__description p {
    margin: 0;
    color: inherit;
    font-family: var(--font-primary, "Switzer", sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.malabar-project-single__description p + p {
    margin-top: 20px;
}

.malabar-project-single__description a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.malabar-project-single__description img {
    height: auto;
}

.malabar-project-single__details {
    width: 100%;
    margin: 34px 0 0;
    padding: 0;
    border-top: 1px solid rgba(19, 82, 137, .72);
}

.malabar-project-single__detail-row {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 16px;
    min-height: 35px;
    padding: 8px 0 7px;
    align-items: start;
    border-bottom: 1px solid rgba(19, 82, 137, .72);
    color: var(--malabar-blue);
}

.malabar-project-single__detail-row dt,
.malabar-project-single__detail-row dd {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.malabar-project-single__detail-row dt,
.malabar-project-single__detail-row dd {
    font-family: var(--font-primary, "Switzer", sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
}

.malabar-project-single__detail-row dd {
    overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
    .malabar-project-single__body {
        grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    }

    .malabar-project-single__information {
        width: min(459px, calc(100% - 40px));
    }
}

@media (max-width: 820px) {
    .malabar-project-single__hero-topline {
        top: calc(var(--malabar-compact-header-height) + 12px);
    }

    .malabar-project-single__body {
        display: flex;
        flex-direction: column;
    }

    .malabar-project-single__information-column {
        order: -1;
    }

    .malabar-project-single__information {
        position: static;
        width: auto;
        margin: 0;
        padding: 42px var(--page-margin) 48px;
    }

    .malabar-project-single__gallery {
        grid-template-columns: 1fr;
        gap: 4px;
    }

}

@media (max-width: 520px) {
    .malabar-project-single__hero-content {
        bottom: 26px;
    }

    .malabar-project-single__hero-description {
        font-size: 13px;
        line-height: 18px;
    }

    .malabar-project-single__hero-title {
        font-size: 31px;
        line-height: 32px;
    }

    .malabar-project-single__hero-location {
        font-size: 24px;
        line-height: 26px;
    }

    .malabar-project-single__detail-row {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 16px;
    }
}

/* ========================================================================== 
   OTHER PROJECTS
   ========================================================================== */
.malabar-project-other {
    padding: clamp(46px, 5vw, 78px) var(--page-margin) clamp(54px, 6vw, 92px);
    background: var(--malabar-blue);
    color: #fff;
}

.malabar-project-other__title {
    margin: 0 0 22px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.035em;
}

.malabar-project-other__title sup {
    position: relative;
    top: -.25em;
    margin-left: 2px;
    font-size: .62em;
    line-height: 1;
}

.malabar-project-other__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.malabar-project-other__card,
.malabar-project-other__media {
    margin: 0;
}

.malabar-project-other__link,
.malabar-project-other__link:hover,
.malabar-project-other__link:focus,
.malabar-project-other__link:visited {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
}

.malabar-project-other__media {
    width: 100%;
    aspect-ratio: 1.52 / 1;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.malabar-project-other__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .45s ease;
}

.malabar-project-other__link:hover .malabar-project-other__image,
.malabar-project-other__link:focus-visible .malabar-project-other__image {
    transform: scale(1.018);
}

.malabar-project-other__meta {
    display: flex;
    margin-top: 7px;
    flex-direction: column;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 16px;
}

.malabar-project-other__meta strong {
    font-weight: 600;
}

.malabar-project-other__meta span {
    font-weight: 500;
}

.malabar-project-single__hero-topline-mobile {
    display: none;
}

/* ========================================================================== 
   MOBILE — SINGLE PROJECT / FIGMA
   ========================================================================== */
@media (max-width: 700px) {
.malabar-project-single__hero {
    height: 80vh;
    min-height: 360px;
    max-height: 470px;
}

    .malabar-project-single__hero-image {
        object-position: center center;
    }

    .malabar-project-single__hero-shade {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.18) 0%,
            rgba(0,0,0,.02) 42%,
            rgba(0,0,0,.50) 100%
        );
    }

    .malabar-project-single__hero-topline {
        display: block;
        top: 48px;
        left: 10px;
        font-family: var(--font-mono);
        font-size: 9px;
        font-weight: 500;
        line-height: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .admin-bar .malabar-project-single__hero-topline {
        top: 94px;
    }

    .malabar-project-single__hero-topline-desktop {
        display: none;
    }

    .malabar-project-single__hero-topline-mobile {
        display: inline;
    }

    .malabar-project-single__hero-content {
        right: 10px;
        bottom: 27px;
        left: 10px;
        max-width: 320px;
    }

    .malabar-project-single__hero-description {
        max-width: 225px;
        margin: 0 0 7px;
        font-size: 15px;
        font-weight: 600;
        line-height: 18px;
    }

    .malabar-project-single__hero-title {
        max-width: 250px;
        font-size: 27px;
        line-height: 27px;
        letter-spacing: -.035em;
    }

    .malabar-project-single__hero-location {
        max-width: 250px;
        margin-top: 1px;
        font-size: 27px;
        line-height: 27px;
        letter-spacing: -.035em;
    }

    .malabar-project-single__body {
        padding: 0 0 44px;
    }

    .malabar-project-single__information {
        padding: 26px 10px 22px;
    }

    .malabar-project-single__description {
        font-size: 15px;
        line-height: 20px;
    }

    .malabar-project-single__description p + p {
        margin-top: 15px;
    }

    .malabar-project-single__details {
        margin-top: 23px;
    }

    .malabar-project-single__detail-row {
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 0;
        gap: 5px;
        padding: 5px 0 4px;
    }

    .malabar-project-single__detail-row dt,
    .malabar-project-single__detail-row dd {
        font-size: 15px;
        line-height: 20px;
    }

    .malabar-project-single__gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 10px;
        background: var(--malabar-cream);
    }

    .malabar-project-single__gallery-item {
        min-width: 0;
        background: transparent;
    }

    .malabar-project-single__gallery-item:nth-child(n + 3) {
        grid-column: 1 / -1;
    }

    .malabar-project-single__gallery-image {
        width: 100%;
        height: auto;
    }

    .malabar-project-featured-pieces {
        padding: 45px 10px 38px;
    }

.malabar-project-featured-pieces .malabar-lifestyle-related__label {
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: .11em;
}

    .malabar-project-featured-pieces .malabar-lifestyle-related__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .malabar-project-featured-pieces .malabar-lifestyle-related-card__media {
        aspect-ratio: 1 / 1;
        min-height: 0;
        background: var(--malabar-cream);
    }

    .malabar-project-featured-pieces .malabar-lifestyle-related-card__image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

.malabar-project-featured-pieces .malabar-lifestyle-related-card__meta {
    margin-top: 4px;
    gap: 2px;
    font-size: 12px;
    line-height: 15px;
}

    .malabar-project-other {
        padding: 31px 8px 42px;
    }

    .malabar-project-other__title {
        margin-bottom: 18px;
        font-size: 27px;
        line-height: 27px;
        letter-spacing: -.035em;
    }

    .malabar-project-other__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .malabar-project-other__media {
        aspect-ratio: 1.52 / 1;
    }
.malabar-project-other__meta {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
}
}

@media (max-width: 360px) {
    .malabar-project-single__hero-content {
        max-width: 285px;
    }

    .malabar-project-single__hero-title,
    .malabar-project-single__hero-location {
        font-size: 25px;
        line-height: 25px;
    }
}

/* SEO semantic restoration: preserve the exact current Project appearance. */
.malabar-project-single__description .malabar-project-reference-link,
.malabar-project-single__description .malabar-project-reference-link:visited,
.malabar-project-single__description .malabar-project-reference-link:hover,
.malabar-project-single__description .malabar-project-reference-link:active,
.malabar-project-single__description .malabar-project-reference-link:focus {
    color: inherit;
    text-decoration: none;
}

.malabar-project-single__description .malabar-project-semantic-heading {
    margin: 0 0 20px;
    color: inherit;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

@media (max-width: 700px) {
    .malabar-project-single__description .malabar-project-semantic-heading {
        margin-bottom: 15px;
    }
}

