/* =========================================
   ECOWOOD SHOWROOM PAGE
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f8f6f1;
    color: #1f1f1f;
}

.showroom-page {
    padding: 22px 14px 60px;
}

/* BACK BUTTON */

.showroom-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b6f3a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* HEADING */

.showroom-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 34px;
}

.showroom-heading .small-title {
    color: #27824c;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 10px;
}

.showroom-heading h1 {
    margin: 0;
    color: #0c5f34;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
}

.showroom-heading p {
    margin: 14px auto 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   MASONRY SHOWROOM GALLERY
========================================= */

.showroom-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    columns: 2;
    column-gap: 10px;
}

.showroom-card {
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid;

    border-radius: 16px;
    overflow: hidden;

    background: #fff;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.10);
}

.showroom-card img {
    display: block;
    width: 100%;
    height: auto;

    object-fit: cover;

    cursor: pointer;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.showroom-card:hover img {
    transform: scale(1.025);
    filter: brightness(1.03);
}

/* Different visual heights */

.showroom-card:nth-child(4n+1) img {
    aspect-ratio: 4 / 5;
}

.showroom-card:nth-child(4n+2) img {
    aspect-ratio: 1 / 1;
}

.showroom-card:nth-child(4n+3) img {
    aspect-ratio: 4 / 3;
}

.showroom-card:nth-child(4n+4) img {
    aspect-ratio: 3 / 4;
}

/* =========================================
   LIGHTBOX
========================================= */

.showroom-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.95);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 18px;

    z-index: 999999;
}

.showroom-lightbox.active {
    display: flex;
}

.showroom-lightbox img {
    max-width: 96%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.35);
}

.showroom-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #0b6f3a;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 700px) {

    .showroom-page {
        padding: 30px 24px 75px;
    }

    .showroom-grid {
        columns: 3;
        column-gap: 14px;
    }

    .showroom-card {
        margin-bottom: 14px;
    }

    .showroom-heading h1 {
        font-size: 48px;
    }
}

/* =========================================
   DESKTOP
========================================= */

@media (min-width: 1100px) {

    .showroom-grid {
        columns: 4;
        column-gap: 18px;
    }

    .showroom-card {
        margin-bottom: 18px;
    }

    .showroom-heading h1 {
        font-size: 56px;
    }
}