body {
    margin: 0;
    padding: 0;
}

.flex_grid {
    background-color: transparent!important;
}

.contentFixedElement {
    position: relative; 
}

/* Variacion tamaño */
.contentFixedElement.w640,
.contentFixedElement.w640 .content-img-fixed {
    width: 640px;
    margin: 0 auto;
}

.contentFixedElement.w980,
.contentFixedElement.w980 .content-img-fixed {
    width: 980px;
    margin: 0 auto;
}

/* Variacion posicion */
.contentFixedElement.right .text-fixed p {
    justify-content: flex-end;
}

.contentFixedElement.right .content-img-fixed {
    justify-content: flex-start;
}

.contentFixedElement.left .text-fixed p {
    justify-content: flex-start;
}

.contentFixedElement.left .content-img-fixed {
    justify-content: flex-end;
}

.contentFixedElement img {
    max-width: 100%;
    height: 80vh;
    width: 100vw;
    object-fit: cover;
    margin: 10vh 0;
}

.text-fixed {
    width: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.text-fixed p {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-fixed p:first-child {
    padding-top: 100vh;
}

.text-fixed p:last-child {
    padding-bottom: 70vh;
}

.text-fixed span {
    width: 60%;
    background-color: #fff;
    padding: 40px;
    margin: 0 40px;
}

.block-fixed {
    z-index: -99;
}

.content-img-fixed {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 1s;
}

.contentFixedElement img {
    height: inherit;
}

.content-img-fixed:nth-child(1) {
    opacity: 1;
}

.fixed_top .content-img-fixed:nth-child(1) {
    opacity: 0;
}

.container-imgs {
    position: relative;
}

.visible {
    opacity: 1!important;
    position: absolute;
    top: 0;
}

.absolute_bottom .content-img-fixed,
.absolute_bottom {
    position: absolute !important;
    bottom: 0 !important;
    top: inherit !important;
}

.absolute_bottom .content-img-fixed:nth-child(1) {
    opacity: 0;
}

.fixed_top .content-img-fixed,
.fixed_top {
    position: fixed !important;
    top: 0 !important;
    bottom: inherit !important;
}

.buttons-position {
    position: fixed;
    right: 0;
    padding: 30px;
    z-index: 999999;
}

.buttons-position ul {
    padding: 0;
    margin: 0;
}

.buttons-position li {
    list-style-type: none;
    display: inline-block;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    background: #ccc;
    color: #fff;
    cursor: pointer;
    width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .text-fixed p {
        margin: 0;
        padding: 20px;
    }

    .text-fixed span {
        margin: 0;
        width: 90%;
        padding: 30px;
        font-size: 12px;
        line-height: 1.6;
    }

    .contentFixedElement,
    .contentFixedElement.w980,
    .contentFixedElement.w980 .content-img-fixed,
    .contentFixedElement.w640,
    .contentFixedElement.w640 .content-img-fixed {
        width: 100vw;
    }

    .img-block-fixed {
        width: 100%;
    }

    .content-img-fixed {
        height: 100vh;
    }

    .content-img-fixed img {
        height: inherit;
    }
}
