@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(241, 241, 241, 0.4);
    }
    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(241, 241, 241, 0);
    }
    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(241, 241, 241, 0);
    }
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(241, 241, 241, 0.4);
        box-shadow: 0 0 0 0 rgba(241, 241, 241, 0.4);
    }
    70% {
        -moz-box-shadow: 0 0 0 10px rgba(241, 241, 241, 0);
        box-shadow: 0 0 0 10px rgba(241, 241, 241, 0);
    }
    100% {
        -moz-box-shadow: 0 0 0 0 rgba(241, 241, 241, 0);
        box-shadow: 0 0 0 0 rgba(241, 241, 241, 0);
    }
}

.firstRow, .secondRow, .thirdRow, .fourthRow {
    height: 86vh;
    position: relative;
}

.firstRow:first-of-type {
    margin-top: 14vh;
}

.imgBackground {
    z-index: 0;
    width: 100%;
    height: 100%;
}

.imgBackground img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 0% 90%;
}

.textProject {
    position: absolute;
    z-index: 10;
}

.firstRow .textProject {
    top: 100%;
    left: 0;
    transform: translate(25%, -228%);
}

.secondRow .textProject {
    top: 100%;
    left: 0;
    transform: translate(19%, -165%);
}

.thirdRow .textProject {
    top: 100%;
    left: 0;
    transform: translate(21%, -200%);
}

.fourthRow .textProject {
    top: 100%;
    left: 0;
    transform: translate(25%, -209%);
}

.textProject h2 {
    margin: 0;
    font-family: 'Playfair Display';
    font-weight: 600;
    font-size: 3.5em;
    color: rgb(242, 242, 242);
    padding-bottom: 1.5vh;
    box-sizing: border-box;
}

.textProject p {
    margin: 0;
    font-family: 'Source Sans 3';
    font-weight: 400;
    font-size: 1.1em;
    color: rgb(242, 242, 242);
}

.contentGalery {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 55%;
    aspect-ratio: 17 / 9;
    transform: translate(-80%, -52%);
}

.swiper {
    height: 100%;
    padding: 1.1vh 1%;
}

.swiper .swiper-button-next {
    top: 50%;
    left: 50%;
    transform: translate(170%, -50%);
    width: 5%;
    height: 10%;
    border-radius: 50%;
    overflow: hidden;
}

.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after {
    display: none;
}

.galeryImage {
    height: 100%;
}

.galeryImage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 37px;
    border: 4px solid #ffffff;
}

.textEvent {
    z-index: 10;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -130%);
    text-align: center;
    cursor: pointer;
}

.textEvent p {
    font-family: 'Source Sans 3';
    color: rgb(242, 242, 242);
    font-weight: 400;
    font-size: 1.1em;
    margin: 0;
    font-style: italic;
    padding-bottom: 0.3vh;
}

.arrowImage {
    margin: 0 auto;
    width: 6.5%;
}

.arrowImage svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    padding: 20%;
}

.arrowImage svg:hover {
    animation: pulse 1.5s infinite;
}

/*Flechas Swiper hover*/
.swiper-button-next {
    transition: all 0.15s ease-in-out;
}

.swiper-button-next:hover {
    transform: translate(170%, -50%) scale(1.05);
}

.swiper-button-next:active {
    transform: translate(170%, -50%) scale(0.85);
}
/**/

@media only screen and (max-width: 1600px) {

    .firstRow .textProject {
        top: 100%;
        left: 0;
        transform: translate(10%, -228%);
    }

    .secondRow .textProject {
        top: 100%;
        left: 0;
        transform: translate(11%, -175%);
    }

    .thirdRow .textProject {
        top: 100%;
        left: 0;
        transform: translate(11%, -200%);
    }

    .fourthRow .textProject {
        top: 100%;
        left: 0;
        transform: translate(11%, -209%);
    }

    .textProject {
        width: 35%;
    }

    .textProject h2 {
        font-size: 3.2em;
    }

    .textProject p br {
        display: none;
    }

    .contentGalery {
        min-height: 50vh;
        transform: translate(-76%, -52%)
    }

}

@media only screen and (max-width: 1200px) {

    .contentGalery {
        width: 63%;
    }

    .textProject h2 {
        font-size: 2.7em;
    }

    .textProject p, .eventText p {
        font-size: 1em;
    }

}

@media only screen and (max-width: 1100px) {

    .firstRow:first-of-type {
        margin-top: 9vh;
    }

}

@media only screen and (max-width: 1000px) {

    .contentGalery {
        width: 72%;
    }

}

@media only screen and (max-width: 800px) {

    .contentGalery {
        width: 60%
    }

    .textProject {
        width: 37%;
    }

    .textProject h2 {
        font-size: 2em;
    }

    .swiper .swiper-button-next {
        width: 9%;
    }

}

@media only screen and (max-width: 600px) {

    .firstRow .textProject p br {
        display: block;
    }

    .firstRow, .secondRow, .thirdRow, .fourthRow {
        display: flex;
        flex-direction: column;
    }

    .imgBackground {
        position: absolute;
        top: 0;
        left: 0;
    }

    .imgBackground img {
        object-position: 10% 90%;
    }

    .firstRow .textProject, .secondRow .textProject, .thirdRow .textProject, .fourthRow .textProject {
        top: auto;
        left: 0;
        transform: none;
        position: relative;
        width: 100%;
        padding: 4vh 5%;
        box-sizing: border-box;
    }

    .contentGalery {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding-left: 5%;
        width: 105%;
        min-height: auto;
        max-height: 38vh;
        aspect-ratio: 13 / 10;
    }

    .textProject p, .textEvent p {
        font-size: 0.9em;
    }

    .swiper .swiper-button-next {
        width: 14%;
    }

}

/*Ipads*/
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (orientation: portrait) 
    and (-webkit-min-device-pixel-ratio: 1) {

    .contentGalery {
        aspect-ratio: 10/9;
    }

}

@media only screen and (max-width: 440px) and (max-height: 800px) {
    
    .textProject p, .textEvent p {
        font-size: 0.8em;
    }

    .contentGalery {
        max-height: 35vh;
    }

}