.troodos_2021_services_container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

.troodos_2021_services_gallery_figure {
    flex: 0 1 32%;
    position: relative;
    margin: 0 2% 0.5% 0;
    overflow: hidden;
}

.troodos_2021_services_gallery_figure:nth-of-type(3n) {
    margin: 0 0% 0.5% 0;
}

.troodos_2021_services_gallery_figure>a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: -100%;
    left: 0;
    background: linear-gradient( 0deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .65) 25%, transparent 55%, hsla(0, 0%, 100%, 0));
    transition: transform .8s;
    transform: translateY(-25%);
    will-change: transform;
    /* transform: translateY(0); onHover */
    transition: 0.5s all ease-in-out;
    transition-delay: 1s;
}

.troodos_2021_services_gallery_img {
    width: 100%;
    position: relative;
}

.troodos_2021_services_gallery_figcaption {
    font: 300 1.5vw 'Alegreya Sans', sans-serif;
    position: absolute;
    color: #fff;
    margin: 0;
    text-align: center;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    transition: 0.5s all ease-in-out;
    transition-delay: 1s;
}

.troodos_2021_services_hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10vw;
    height: 10vw;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.5s all ease-in-out;
    transition-delay: 0.5s;
}

.troodos_2021_services_hover_text {
    font: 400 1.5vw 'Alegreya Sans', sans-serif;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    overflow: hidden;
    color: #000;
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
    transition: 0.5s all ease-in-out;
}

.troodos_2021_services_gallery_figure:hover .troodos_2021_services_gallery_figcaption {
    bottom: -10%;
    transition: 0.5s all ease-in-out;
}

.troodos_2021_services_gallery_figure:hover>a::after {
    transform: translateY(0);
    transition: 0.5s all ease-in-out;
}

.troodos_2021_services_gallery_figure:hover .troodos_2021_services_hover {
    transform: translate(-50%, -50%) scale(1, 1);
    transition: 0.5s all ease-in-out;
    transition-delay: 0.5s;
}

.troodos_2021_services_gallery_figure:hover .troodos_2021_services_hover_text {
    width: 100%;
    text-align: center;
    transition: 0.5s all ease-in-out;
    transition-delay: 1s;
}

@media screen and (orientation: portrait) and (max-width: 1050px) {
    .troodos_2021_services_container {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-content: flex-start;
        align-items: center;
    }
    .troodos_2021_services_gallery_figure {
        flex: 0 1 100%;
        margin: 0 0% 0.5% 0!important;
    }
    .troodos_2021_services_gallery_figcaption,
    .troodos_2021_services_hover_text {
        font: 300 4.5vw 'Alegreya Sans', sans-serif;
    }
    .troodos_2021_services_hover {
        width: 30vw;
        height: 30vw;
    }
    .troodos_2021_services_gallery_figure:hover .troodos_2021_services_gallery_figcaption {
        bottom: -20%;
    }
}

@media screen and (orientation: landscape) and (max-width: 1050px) {
    .troodos_2021_services_container {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-content: flex-start;
        align-items: center;
    }
    .troodos_2021_services_gallery_figure {
        flex: 0 1 49%;
        margin: 0 2% 2% 0!important;
    }
    .troodos_2021_services_gallery_figure:nth-of-type(2n) {
        margin: 0 0% 2% 0!important;
    }
    .troodos_2021_services_gallery_figcaption,
    .troodos_2021_services_hover_text {
        font: 300 4.5vw 'Alegreya Sans', sans-serif;
    }
    .troodos_2021_services_hover {
        width: 20vw;
        height: 20vw;
    }
    .troodos_2021_services_gallery_figure:hover .troodos_2021_services_gallery_figcaption {
        bottom: -20%;
    }
}