body .cel-obras__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

body .cel-obra-card {
    display: block;
    background: #fff;
    color: #1e2a35;
    text-decoration: none;
    border: 1px solid #e2e5ea;
    transition: box-shadow .25s, transform .25s;
}

body .cel-obra-card:hover {
    color: #1e2a35;
    box-shadow: 0 16px 40px rgba(30, 42, 53, .12);
    transform: translateY(-4px);
}

body .cel-obra-card__foto {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f5f7;
}

body .cel-obra-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

body .cel-obra-card:hover .cel-obra-card__img {
    transform: scale(1.05);
}

body .cel-obra-card__num {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: 40px;
    background: rgba(30, 42, 53, .85);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

body .cel-obra-card__txt {
    display: block;
    padding: 18px 20px 22px;
}

body .cel-obra-card__txt strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
}

body .cel-obra-card__txt span {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #f07d1a;
    font-weight: 600;
}

body .cel-obra__cab {
    --cex-cab-foto: url("../../../../imagenes/casa-terminada-placas.webp");
}

body .cel-obra__texto {
    max-width: 820px;
    margin-bottom: 40px;
}

body .cel-obra__fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

body .cel-obra-foto {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
}

body .cel-obra-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

body .cel-obra-foto:hover img {
    transform: scale(1.05);
}

body .cel-obra__botones {
    margin-top: 40px;
}

body .cel-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 24, .94);
}

body .cel-lb[hidden] {
    display: none;
}

body .cel-lb img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    user-select: none;
}

body .cel-lb button {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

body .cel-lb button:hover {
    background: #f07d1a;
}

body .cel-lb__cerrar {
    top: 16px;
    right: 16px;
}

body .cel-lb__ant {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body .cel-lb__sig {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

body .cel-lb__cont {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}

@media (max-width: 959px) {
    body .cel-obras__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    body .cel-obras__grid {
        grid-template-columns: 1fr;
    }

    body .cel-obra-card {
        text-align: center;
    }

    body .cel-obra__fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    body .cel-obra__texto {
        text-align: center;
    }

    body .cel-lb img {
        max-width: 100vw;
        max-height: calc(100vh - 140px);
    }

    body .cel-lb__ant,
    body .cel-lb__sig {
        top: auto;
        bottom: 12px;
        transform: none;
    }

    body .cel-lb__cont {
        bottom: 28px;
    }
}
