/* =========================================================
   MORE HOME PAGE
   EVERYTHING MOBILEHOME LLC
========================================================= */


/* =========================================================
   MAIN HOME IMAGE
========================================================= */

.home-main-image {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}


.home-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform .4s ease;
}


.home-main-image:hover img {
    transform: scale(1.02);
}


.gallery-open-button {
    position: absolute;
    right: 22px;
    bottom: 22px;
    border: none;
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
}


.gallery-open-button:hover {
    background: var(--gold);
}



/* =========================================================
   GALLERY GRID
========================================================= */

.home-gallery-grid {
    margin-top: 15px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}


.home-gallery-item {
    position: relative;

    height: 180px;

    padding: 0;

    border: none;

    overflow: hidden;

    background: #eee;

    cursor: pointer;

    border-radius: 4px;
}


.home-gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .35s ease,
        opacity .35s ease;
}


.home-gallery-item:hover img {
    transform: scale(1.06);
}


.home-gallery-item.active {
    outline:
        3px solid var(--gold);

    outline-offset:
        -3px;
}


.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0,0,0,.58);

    color: #fff;

    font-weight: 800;

    font-size: 17px;
}



/* =========================================================
   HOME SPECIFICATIONS
========================================================= */

.home-spec-grid {
    grid-template-columns:
        repeat(4, 1fr);
}


.home-spec-card {
    text-align: center;
}


.home-spec-card .icon {
    margin-left: auto;
    margin-right: auto;
}


.home-spec-card h3 {
    margin-bottom: 8px;
}


.home-spec-card p {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
}



/* =========================================================
   DESCRIPTION
========================================================= */

.home-description {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}


.home-description-photo {
    width: 100%;
    min-height: 430px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}


.home-description-photo img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
}



/* =========================================================
   FLOOR PLAN
========================================================= */

.floor-plan-wrapper {
    position: relative;

    background: #fff;

    border-radius: 6px;

    overflow: hidden;

    padding: 20px;
}


.floor-plan-wrapper img {
    width: 100%;

    max-height: 800px;

    object-fit: contain;

    display: block;
}


.floor-plan-view {
    position: absolute;

    right: 30px;

    bottom: 30px;

    border: none;

    background: var(--navy);

    color: #fff;

    padding: 13px 19px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}


.floor-plan-view:hover {
    background: var(--gold);
}


.floor-plan-empty {
    text-align: center;

    padding: 70px 30px;
}


.floor-plan-empty .icon {
    margin-left: auto;
    margin-right: auto;
}


.floor-plan-empty h3 {
    margin-bottom: 10px;
}


.floor-plan-empty p {
    margin-bottom: 25px;
}



/* =========================================================
   NO GALLERY
========================================================= */

.no-gallery {
    text-align: center;

    background: var(--cream);

    padding: 80px 30px;

    border-radius: 6px;
}


.no-gallery i {
    font-size: 50px;

    color: var(--gold);

    margin-bottom: 20px;
}


.no-gallery h3 {
    color: var(--navy);

    margin-bottom: 10px;
}


.no-gallery p {
    color: #777;
}



/* =========================================================
   FULL SCREEN GALLERY
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    background:
        rgba(8, 18, 35, .96);

    padding: 40px 90px;
}


.gallery-lightbox.show {
    display: flex;
}


.gallery-lightbox-content {
    position: relative;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;
}


.gallery-lightbox-content img {
    max-width: 90vw;

    max-height: 86vh;

    object-fit: contain;

    user-select: none;
}



/* =========================================================
   CLOSE BUTTON
========================================================= */

.gallery-close {
    position: absolute;

    top: 22px;

    right: 25px;

    z-index: 10;

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 50%;

    background: #fff;

    color: var(--navy);

    cursor: pointer;

    font-size: 20px;
}


.gallery-close:hover {
    background: var(--gold);

    color: #fff;
}



/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.gallery-prev,
.gallery-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background: #fff;

    color: var(--navy);

    cursor: pointer;

    font-size: 18px;
}


.gallery-prev {
    left: 25px;
}


.gallery-next {
    right: 25px;
}


.gallery-prev:hover,
.gallery-next:hover {
    background: var(--gold);

    color: #fff;
}



/* =========================================================
   COUNTER
========================================================= */

.gallery-counter {
    position: absolute;

    bottom: 20px;

    left: 50%;

    transform:
        translateX(-50%);

    background:
        rgba(0,0,0,.75);

    color: #fff;

    padding: 9px 18px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 700;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1000px) {

    .home-spec-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .home-gallery-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}



@media (max-width: 768px) {

    .home-main-image {
        height: 430px;
    }


    .home-gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }


    .home-gallery-item {
        height: 145px;
    }


    .home-description-photo {
        min-height: 320px;
    }


    .home-description-photo img {
        min-height: 320px;
    }


    .floor-plan-wrapper {
        padding: 10px;
    }


    .floor-plan-view {
        right: 15px;
        bottom: 15px;
    }


    .gallery-lightbox {
        padding: 20px 50px;
    }


    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
    }


    .gallery-prev {
        left: 8px;
    }


    .gallery-next {
        right: 8px;
    }

}



@media (max-width: 550px) {

    .home-main-image {
        height: 300px;
    }


    .home-spec-grid {
        grid-template-columns: 1fr;
    }


    .home-gallery-item {
        height: 120px;
    }


    .gallery-open-button {
        right: 10px;

        bottom: 10px;

        padding: 11px 14px;

        font-size: 11px;
    }


    .home-description-photo {
        min-height: 280px;
    }


    .home-description-photo img {
        min-height: 280px;
    }


    .gallery-lightbox {
        padding: 15px 42px;
    }


    .gallery-close {
        width: 42px;

        height: 42px;

        top: 10px;

        right: 10px;
    }


    .gallery-prev,
    .gallery-next {
        width: 38px;

        height: 38px;

        font-size: 14px;
    }


    .gallery-prev {
        left: 3px;
    }


    .gallery-next {
        right: 3px;
    }


    .gallery-lightbox-content img {
        max-width: 100%;

        max-height: 78vh;
    }

}