/* =========================================================
   MI FURNITURES - PROJECTS
========================================================= */

.mi-projects-page {
    background: #fff;
    color: #111;
}

.mi-project-container {
    padding-left: 30px;
    padding-right: 30px;
}


/* =========================
   HEADING
========================= */

.project-heading {
    gap: 30px;
}

.project-heading h1 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.heading-line {
    display: block;
    width: 220px;
    height: 1px;
    background: #777;
}


/* =========================
   CATEGORY TABS
========================= */

.project-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.project-tab {
    border: 0;
    background: transparent;
    padding: 5px 0;
    font-size: 20px;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-tab:hover {
    color: #777;
}

.project-tab.active {
    color: #aaa;
}


/* =========================
   PROJECT CARD
========================= */

.project-card {
    width: 100%;
}

.project-image-btn {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: #eee;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.project-image {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.6,.3,1);
}

.project-image-btn:hover .project-image {
    transform: scale(1.035);
}


/* View project overlay */

.project-image-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
}

.project-image-btn:hover::after {
    background: rgba(0, 0, 0, 0.12);
}

.project-view {
    position: absolute;
    left: 30px;
    bottom: 25px;
    z-index: 2;

    color: #fff;
    font-size: 14px;
    font-weight: 500;

    opacity: 0;
    transform: translateY(10px);

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

.project-image-btn:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   PROJECT DETAILS
========================= */

.project-info {
    padding: 18px 10px 10px 10px;
}

.project-info h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 16px;

    font-size: 14px;
    color: #222;
}

.project-location span {
    width: 65px;
    height: 1px;
    background: #777;
}


/* =========================
   FILTER ANIMATION
========================= */

.project-item {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.project-item.filter-hide {
    opacity: 0;
    transform: translateY(20px);
}

.project-item.d-none {
    display: none !important;
}


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

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.project-lightbox.show {
    opacity: 1;
    visibility: visible;
}


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

.lightbox-content {
    width: min(1250px, 86vw);
    height: 88vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-image-wrapper {
    position: relative;

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

    width: 100%;
    height: calc(88vh - 100px);

    overflow: hidden;
}

#lightboxImage {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity 0.25s ease,
        transform 0.35s ease;
}

#lightboxImage.changing {
    opacity: 0;
    transform: scale(0.98);
}


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

.lightbox-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    padding-top: 20px;

    color: #fff;
}

.lightbox-details h3 {
    margin: 0 0 8px;

    font-size: 22px;
    font-weight: 500;
}

.lightbox-location {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lightbox-location span {
    width: 45px;
    height: 1px;
    background: #aaa;
}

.lightbox-location p {
    margin: 0;

    color: #ccc;
    font-size: 14px;
}

.lightbox-counter {
    color: #aaa;
    font-size: 14px;
}


/* =========================
   CLOSE BUTTON
========================= */

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;

    z-index: 5;

    width: 50px;
    height: 50px;

    border: 0;
    background: transparent;

    color: #fff;
    font-size: 42px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}


/* =========================
   PREVIOUS / NEXT
========================= */

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 5;

    transform: translateY(-50%);

    width: 60px;
    height: 80px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 38px;
    font-weight: 200;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}


/* Prevent page scroll */

body.lightbox-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .project-image {
        height: 380px;
    }

    .project-tabs {
        gap: 30px;
    }

    .lightbox-content {
        width: 82vw;
    }

}


@media (max-width: 767.98px) {

    .mi-project-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-heading {
        gap: 20px;
    }

    .project-heading h1 {
        font-size: 28px;
    }

    .heading-line {
        flex: 1;
        width: auto;
    }

    .project-tabs {
        gap: 22px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .project-tab {
        flex: 0 0 auto;
        font-size: 17px;
    }

    .project-image {
        height: 360px;
    }

    .project-info {
        padding-left: 0;
        padding-right: 0;
    }

    .project-info h2 {
        font-size: 20px;
    }


    /* Lightbox */

    .lightbox-content {
        width: calc(100% - 30px);
        height: 85vh;
    }

    .lightbox-image-wrapper {
        height: calc(85vh - 100px);
    }

    .lightbox-close {
        top: 10px;
        right: 12px;
    }

    .lightbox-nav {
        width: 45px;
        height: 60px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-details h3 {
        font-size: 18px;
    }

}


@media (max-width: 575.98px) {

    .project-image {
        height: 300px;
    }

    .project-tabs {
        gap: 25px;
    }

    .project-view {
        display: none;
    }

}