


/* ===================================
   CABINET PAGE
=================================== */

.cabinet-page {
    padding:
        20px
        0
        24px;

    background: white;
}

.cabinet-heading {
    margin-bottom: 12px;
}

.cabinet-heading h1 {
    margin: 0;

    color: var(--title);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2rem;

    font-weight: 400;

    line-height: 1.15;
}

.cabinet-main {
    overflow: hidden;

    border-radius: 10px;

    background: #edf7fb;
}

.cabinet-main-image {
    position: relative;

    height:
        clamp(
            325px,
            42svh,
            430px
        );

    overflow: hidden;

    background: #ddebf2;
}

.cabinet-image-background {
    position: absolute;

    inset: -20px;

    width: calc(100% + 40px);
    height: calc(100% + 40px);

    object-fit: cover;

    filter:
        blur(18px)
        brightness(1.05);

    transform: scale(1.06);

    opacity: 0.58;
}

.cabinet-image-main {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;
}

.cabinet-description {
    position: relative;

    z-index: 3;

    padding:
        11px
        20px
        13px;

    background:
        rgba(
            237,
            247,
            251,
            0.96
        );

    text-align: center;
}

.cabinet-description p {
    margin: 0 auto;

    max-width: 930px;

    color: var(--text-light);

    font-size: 0.80rem;

    line-height: 1.45;
}

.cabinet-gallery {
    padding-top: 16px;
}

.cabinet-gallery-heading {
    margin-bottom: 8px;
}

.cabinet-gallery-heading h2 {
    margin: 0;

    color: var(--title);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.45rem;

    font-weight: 400;
}

.cabinet-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.cabinet-photo-card {
    margin: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #f4f9fb;

    border:
        1px solid
        var(--border);
}

.cabinet-photo {
    position: relative;

    height:
        clamp(
            195px,
            25svh,
            255px
        );

    overflow: hidden;

    background: #ddebf2;
}

.cabinet-photo-card figcaption {
    position: relative;

    z-index: 4;

    padding:
        7px
        11px;

    background: #f4f9fb;

    color: var(--title);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.82rem;
}


/* ===================================
   CABINET DESKTOP RESPONSIVE
=================================== */

@media (min-width: 1001px) and (max-height: 820px) {

    .cabinet-page {
        padding-top: 14px;
    }

    .cabinet-main-image {
        height:
            clamp(
                300px,
                39svh,
                345px
            );
    }

    .cabinet-photo {
        height:
            clamp(
                175px,
                22svh,
                205px
            );
    }

    .cabinet-gallery {
        padding-top: 13px;
    }

    .cabinet-gallery-heading {
        margin-bottom: 6px;
    }
}


@media (min-width: 1001px) and (min-height: 821px) and (max-height: 1050px) {

    .cabinet-main-image {
        height:
            clamp(
                340px,
                41svh,
                405px
            );
    }

    .cabinet-photo {
        height:
            clamp(
                205px,
                24svh,
                245px
            );
    }
}


@media (min-width: 1001px) and (min-height: 1051px) {

    .cabinet-main-image {
        height:
            clamp(
                390px,
                40svh,
                430px
            );
    }

    .cabinet-photo {
        height:
            clamp(
                225px,
                23svh,
                255px
            );
    }
}


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

@media (max-width: 1000px) {


    /* CABINET */

    .cabinet-main-image {
        height: 360px;
    }

    .cabinet-photo {
        height: 230px;
    }

}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 700px) {


    /* CABINET */

    .cabinet-page {
        padding:
            22px
            0
            34px;
    }

    .cabinet-heading h1 {
        font-size: 1.65rem;
    }

    .cabinet-main-image {
        height: auto;

        aspect-ratio: auto;
    }

    .cabinet-main-image .cabinet-image-background {
        display: none;
    }

    .cabinet-main-image .cabinet-image-main {
        position: relative;

        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .cabinet-description {
        text-align: left;

        padding:
            14px
            16px;
    }

    .cabinet-description p {
        font-size: 0.8rem;
    }

    .cabinet-gallery {
        padding-top: 24px;
    }

    .cabinet-gallery-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .cabinet-photo {
        height: auto;
    }

    .cabinet-photo .cabinet-image-background {
        display: none;
    }

    .cabinet-photo .cabinet-image-main {
        position: relative;

        width: 100%;
        height: auto;

        object-fit: contain;
    }

}
