.slider_content {
    position: relative;
    margin-top: 50px;
    caret-color: rgba(0, 0, 0, 0);
}

#next_arrow,
#prev_arrow {
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    font-size: 25px;
    border: none;
    top: calc(50% - 50px);
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    background: none;
    color: #ba4452 !important;
    padding: 0px;
    opacity: 40%;
}

#next_arrow:hover,
#prev_arrow:hover {
    opacity: 100%;
}

#prev_arrow {
    left: -35px;
}

#next_arrow {
    right: -35px;
}

.list_slider {
    overflow: hidden;
}

.element_slider {
    text-align: center;
}

.element_slider img {
    cursor: pointer;
}

.element_slider img:hover {
    opacity: 80%;
}

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    overflow: auto;
    color: #ba4452;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    caret-color: rgba(0, 0, 0, 0);
}

.modalContent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modalImg {
    max-width: 60%;
}

.modalTxt {
    margin-top: 15px;
}

/*
.close {
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}
*/
.modal.appear {
    opacity: 1;
    pointer-events: all;
}

.modal.appear .modalImg,
.modal.appear .modalTxt {
    animation: zoom 0.3s linear;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.slider_pointer .glider-dot {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #ba4452;
    opacity: .2;
    border-radius: 0;
    margin-top: -20px;
}

.slider_pointer .glider-dot:hover {
    opacity: .5;
}

.slider_pointer .glider-dot.active {
    opacity: 1;
}


/*GRID GALLERY*/

.grid_content {
    margin: 0px auto;
    margin-top: 50px;
    display: grid;
    grid-template-areas: "first first"
        "cami montseny"
        "postasol esglesia"
        "elbrull elbrull";
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
}

.image-a {
    grid-area: first;
}

.image-b {
    margin-top: 0px;
    grid-area: cami;
}

.image-c {
    grid-area: montseny;
}

.image-d {
    grid-area: postasol;
}

.image-e {
    grid-area: esglesia;
}

.image-f {
    grid-area: elbrull;
}

.image-style {
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

/*GALLERY*/

.gallery_grid {
    display: grid;
    gap: 13px;
    height: 900px;
}

.item1 {
    grid-row-start: 1;
    grid-row-end: 4;
    background-image: url('../../fotos/castell_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
    transition: all .5s;
}

.item1:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/castell_gallery.png');
    transform: scale(0.98);
}

.item2 {
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 3;
    background-image: url('../../fotos/suite_esmorzar_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item2:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/suite_esmorzar_gallery.png');
    transform: scale(0.98);
}

.item3 {
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column-start: 3;
    grid-column-end: 5;
    background-image: url('../../fotos/cuina_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item3:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/cuina_gallery.png');
    transform: scale(0.98);
}

.item4 {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 2;
    grid-column-end: 3;
    background-image: url('../../fotos/apartament_lavabo_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item4:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/apartament_lavabo_gallery.png');
    transform: scale(0.98);
}

.item5 {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 3;
    grid-column-end: 4;
    background-image: url('../../fotos/general_apartament_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item5:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/general_apartament_gallery.png');
    transform: scale(0.98);
}

.item6 {
    grid-row-start: 3;
    grid-row-end: 6;
    grid-column-start: 4;
    grid-column-end: 5;
    background-image: url('../../fotos/relax_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item6:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/relax_gallery.png');
    transform: scale(0.98);
}

.item7 {
    grid-row-start: 4;
    grid-row-end: 6;
    grid-column-start: 1;
    grid-column-end: 3;
    background-image: url('../../fotos/menjar_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item7:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/menjar_gallery.png');
    transform: scale(0.98);
}

.item8 {
    grid-row-start: 4;
    grid-row-end: 6;
    grid-column-start: 3;
    grid-column-end: 4;
    background-image: url('../../fotos/suite_lavabo_gallery.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    object-fit: cover;
}

.item8:hover {
    cursor: pointer;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../fotos/suite_lavabo_gallery.png');
    transform: scale(0.98);
}

.mod {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    overflow: auto;
    color: #ba4452;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    caret-color: rgba(0, 0, 0, 0);
}

.mod_content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modImg {
    max-width: 90%;
    max-height: 100%;
}

.modTxt {
    margin-top: 15px;
}

.mod.appear {
    opacity: 1;
    pointer-events: all;
}

.mod.appear .modImg,
.mod.appear .modTxt {
    animation: zoom 0.3s linear;
    cursor: pointer;
}


/*RESPONSIVE*/


@media (max-width: 736px) {
    .grid_content {
        width: 75%;
        grid-template-areas: "first"
            "cami"
            "montseny"
            "postasol"
            "esglesia"
            "elbrull";
        grid-template-rows: repeat(6, 1fr);
        grid-template-columns: 1fr;
    }

    .slider_content {
        width: 90%;
        margin: 0px auto;
        margin-top: 50px;
    }

    #next_arrow,
    #prev_arrow {
        font-size: 18px;
    }

    #prev_arrow {
        left: -25px;
    }

    #next_arrow {
        right: -25px;
    }

    .slider_pointer .glider-dot {
        width: 20px;
        height: 3px;
    }

    .modal {
        display: none !important;
    }

    .element_slider img {
        cursor: default;
    }

    .element_slider img:hover {
        opacity: 100%;
    }

}

@media (min-width: 0px) and (max-width: 736px) {

    .image-style {
        height: 100%;
    }

    .grid_content .image-style {
        height: 100%;
        width: 100% !important;
    }

    footer ul li .button-footer {
        margin-bottom: 220px;
    }

    #copyright .links-footer {
        margin-bottom: 50px !important;
    }
}

/* Footer */

@media (max-width: 1680px) {
    .image-footer {
        width: 90% !important;
    }

    .button-footer {
        margin-bottom: 20px !important;
    }

}

@media (max-width: 1280px) {
    .image-footer {
        width: 80% !important;
    }

    .button-footer {
        margin-bottom: 180px !important;
    }

    .links-footer {
        margin-bottom: 20px !important;
    }

    #ly_avis {
        margin-bottom: -70px !important;
    }

}

@media (max-width: 980px) {
    .gallery_grid {
        height: 700px;
    }
}

@media (max-width: 850px) {
    .gallery_grid {
        height: 650px;
    }
}

@media (max-width: 736px) {
    .gallery_grid {
        height: 550px;
    }
}

@media (max-width: 550px) {
    .gallery_grid {
        height: 420px;
    }
}