#content2 {
    height: 650px;
}

#content2 .left-side {
    position: relative;
}

#content2 .item {
    position: absolute;
    height: 500px;
    width: 500px;
    background-position: center;
    background-size: cover;
}

#content2 .left-side .item {
    right: 50px;
    top: 50px;
    background-image: url("../../images/foto-1.png");
}

#content2 .right-side .item {
    left: 50px;
    top: 50px;
    background-image: url("../../images/foto-2.png");
}

#content2 .item .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    opacity: 1;
    transition: all 0.5s;
}

#content2 .item .overlay img {
    margin-top: 35%;
    width: 75px;
    margin-bottom: 15px;
}

#content2 .item .overlay h3 {
    font-weight: bold;
    font-size: 38px;
}

#content2 .item .overlay-hover {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(38, 60, 134, 0.9);
    color: white;
    text-align: center;
    opacity: 0;
    transition: all 0.5s;
}

#content2 .item .overlay-hover img {
    margin-top: 30%;
    width: 75px;
    margin-bottom: 15px;
}

#content2 .item .overlay-hover h3 {
    font-weight: bold;
    font-family: SubHeadline;
    font-size: 38px;
}

#content2 .item .overlay-hover li {
    text-align: left;
}

#content2 .item:hover .overlay {
    opacity: 0;
}

#content2 .item:hover .overlay-hover {
    opacity: 1;
}

/* FOR LAPTOP SMALL SIZE */

@media screen and (max-width: 1320px) and (min-width: 1024px) {
    #content2 {
        height: 550px;
    }
    #content2 .item .overlay img {
        width: 50px;
    }
    #content2 .item .overlay h3 {
        font-size: 28px;
    }
    #content2 .item {
        height: 350px;
        width: 350px;
    }
    #content2 .item .overlay-hover img {
        margin-top: 20%;
        width: 50px;
    }
    #content2 .item .overlay-hover h3 {
        font-size: 28px;
    }
    #content2 .item .overlay-hover li {
        font-size: 14px;
    }
}

/* FOR TABLET DEVICE */

@media screen and (max-width: 1023px) and (min-width: 600px) {
    #content2 {
        height: 450px;
    }
    #content2 .item .overlay img {
        width: 50px;
    }
    #content2 .item .overlay h3 {
        font-size: 26px;
    }
    #content2 .item {
        height: 300px;
        width: 300px;
    }
    #content2 .item .overlay-hover img {
        margin-top: 15%;
        width: 50px;
    }
    #content2 .item .overlay-hover h3 {
        font-size: 26px;
    }
    #content2 .item .overlay-hover li {
        font-size: 14px;
    }
}

/* FOR MOBILE DEVICE */

@media screen and (max-width: 600px) {
    #content2 {
        margin-bottom: 50px;
    }
    #content2 .item .overlay img {
        width: 50px;
    }
    #content2 .item .overlay h3 {
        font-size: 26px;
    }
    #content2 .left-side .item {
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        margin: auto;
        margin-bottom: 25px;
        margin-top: 25px
    }
    #content2 .right-side .item {
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        margin: auto;
    }
    #content2 .item {
        position: relative;
        height: 300px;
        width: 300px;
    }
    #content2 .item .overlay-hover img {
        margin-top: 15%;
        width: 50px;
    }
    #content2 .item .overlay-hover h3 {
        font-size: 26px;
    }
    #content2 .item .overlay-hover li {
        font-size: 14px;
    }
    #content2 .right-side {
        padding: 0px
    }
    #content2 .left-side {
        padding: 0px;
    }
}