/* =========================================================
   ELAINE DING PROPERTY
   PAGE 03 — SECTION 03
   PROPERTY GALLERY
========================================================= */

.ed-property-gallery,
.ed-property-gallery * {
    box-sizing: border-box;
}

.ed-property-gallery {
    --ed-white: #ffffff;
    --ed-dark: #1c1c1c;
    --ed-text: #625e58;
    --ed-muted: #948c82;
    --ed-line: #ddd6cc;
    --ed-accent: #957d62;

    width: 100%;
    padding: 110px 0;

    background: #f7f4ef;

    color: var(--ed-dark);

    font-family: "Manrope", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.ed-property-gallery__container {
    width: min(1580px, calc(100% - 90px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.ed-property-gallery__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, .5fr);

    gap: 80px;

    align-items: end;

    margin-bottom: 48px;
}

.ed-property-gallery__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 20px;

    color: #81796f;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ed-property-gallery__eyebrow span {
    color: var(--ed-dark);
}

.ed-property-gallery__eyebrow i {
    width: 45px;
    height: 1px;

    background: #aaa095;
}

.ed-property-gallery__header h2 {
    margin: 0;

    font-family: "DM Serif Display", serif;

    font-size: clamp(56px, 5vw, 86px);
    line-height: .96;

    font-weight: 400;

    letter-spacing: -.045em;
}

.ed-property-gallery__header h2 em {
    display: block;

    color: var(--ed-accent);

    font-weight: 400;
}

.ed-property-gallery__header > p {
    margin: 0;

    color: var(--ed-text);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.ed-property-gallery__grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    grid-template-rows:
        320px
        320px;

    gap: 15px;
}

.ed-property-gallery__item {
    position: relative;

    padding: 0;

    border: 0;

    background: #ddd;

    cursor: pointer;

    overflow: hidden;
}

.ed-property-gallery__item--large {
    grid-row: 1 / 3;
}

.ed-property-gallery__item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .65s ease;
}

.ed-property-gallery__item:hover img {
    transform: scale(1.04);
}

.ed-property-gallery__item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(0,0,0,.38) 100%
        );
}

.ed-property-gallery__item > span {
    position: absolute;

    z-index: 3;

    left: 18px;
    bottom: 17px;

    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   FOOTER
========================================================= */

.ed-property-gallery__footer {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--ed-line);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.ed-property-gallery__footer > span {
    color: var(--ed-text);

    font-size: 11px;
}

.ed-property-gallery__view-all {
    min-height: 46px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    border: 1px solid #b7ada1;

    background: transparent;

    color: var(--ed-dark);

    cursor: pointer;

    font-family: "Manrope", sans-serif;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .ed-property-gallery__container {
        width: min(100% - 50px, 1050px);
    }

    .ed-property-gallery__grid {
        grid-template-columns: 1.2fr 1fr;

        grid-template-rows:
            300px
            300px
            280px;
    }

    .ed-property-gallery__item--large {
        grid-row: 1 / 3;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .ed-property-gallery {
        padding: 80px 0;
    }

    .ed-property-gallery__container {
        width: calc(100% - 36px);
    }

    .ed-property-gallery__header {
        display: block;
    }

    .ed-property-gallery__header > p {
        margin-top: 24px;
    }

    .ed-property-gallery__grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            380px
            220px
            220px;
    }

    .ed-property-gallery__item--large {
        grid-column: 1 / 3;
        grid-row: auto;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .ed-property-gallery__header h2 {
        font-size: clamp(48px, 14vw, 64px);
    }

    .ed-property-gallery__grid {
        display: block;
    }

    .ed-property-gallery__item {
        width: 100%;
        height: 260px;

        margin-bottom: 12px;
    }

    .ed-property-gallery__item--large {
        height: 390px;
    }

    .ed-property-gallery__footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .ed-property-gallery__view-all {
        width: 100%;

        justify-content: space-between;
    }

}