.troodos_2021_photo_gallery_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_photo_gallery_item {
    flex: 1 0 49.9%;
    max-width: 50%;
    position: relative;
    /* aspect-ratio: 1 / 1; */
    overflow: hidden;
    height: calc(70vh - 80px);
    border-color: #fff;
    border-width: 0 2px 2px 0;
    border-style: solid;
}

.troodos_2021_photo_gallery_item:nth-of-type(even) {
    border-width: 0 0 2px 0;
}

.troodos_2021_photo_gallery_item_inner_container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
}

.troodos_2021_photo_gallery_main_img {
    position: relative;
    min-width: 100%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* top: 50%; */
}

.troodos_2021_photo_gallery_hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.5s all ease-in-out;
}

.troodos_2021_photo_gallery_hover_inner_container {
    width: 100%;
    position: absolute;
    bottom: -85px;
    transition: 0.5s all ease-in-out;
    z-index: 99;
}

.troodos_2021_photo_gallery_item_inner_container_not_shown {
    display: none;
}

.troodos_2021_photo_gallery_hover_text {
    font: 400 1.5vw 'Alegreya Sans', sans-serif;
    margin: 0;
    position: relative;
    width: 100%;
    text-align: center;
    overflow: hidden;
    color: #fff;
    padding: 10px 0;
}

.troodos_2021_photo_gallery_hover_button {
    padding: 10px 25px;
    margin: 20px 0 0 0;
    font: 600 var(--troodos_2021_font_size)/var(--troodos_2021_line_height) 'Alegre';
    letter-spacing: 2px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    transition: 0.5s all ease-in-out;
    cursor: pointer;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.troodos_2021_photo_gallery_hover_button:hover {
    background-color: #fff;
    color: #000;
    transition: 0.5s all ease-in-out;
}

.troodos_2021_photo_gallery_hover::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: -100%;
    left: 0;
    /* height: 100%; */
    /* background: linear-gradient( 0deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.35) 25%, transparent 55%, hsla(0, 0%, 100%, 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 .5s;
    transform: translateY(-25%);
    will-change: transform;
    /* transform: translateY(0); onHover */
    /* transition: 0.5s all ease-in-out; */
}

.troodos_2021_photo_gallery_item:hover .troodos_2021_photo_gallery_hover::after {
    transition: 0.5s all ease-in-out;
    transform: translateY(-50%);
}

.troodos_2021_photo_gallery_item:hover .troodos_2021_photo_gallery_hover_inner_container {
    bottom: 50%;
    transform: translateY(50%);
}

.troodos_2021_photo_gallery_figcaption {
    display: none;
}

@media screen and (orientation: portrait) and (max-width: 1050px) {
    .troodos_2021_photo_gallery_item {
        flex: 1 0 100%;
        max-width: 100%;
        height: unset;
        border-width: 0 0 2px 0;
    }
    .troodos_2021_photo_gallery_main_img {
        position: relative;
        width: 100%;
        height: unset;
        left: 0;
        transform: none;
    }
    .troodos_2021_photo_gallery_hover_inner_container {
        bottom: 50%;
        transform: translateY(50%);
    }
    .troodos_2021_photo_gallery_hover_text {
        font: 400 6vw 'Alegreya Sans', sans-serif;
    }
    .troodos_2021_photo_gallery_hover_button {
        margin: 0px 0 0 0;
    }
    .troodos_2021_photo_gallery_hover::after {
        height: 100%;
        bottom: 0;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
    }
}

@media screen and (orientation: landscape) and (max-width: 1050px) {
    .troodos_2021_photo_gallery_item {
        flex: 1 0 100%;
        max-width: 100%;
        height: unset;
        border-width: 0 0 2px 0;
    }
    .troodos_2021_photo_gallery_main_img {
        position: relative;
        width: 100%;
        height: unset;
        left: 0;
        transform: none;
    }
    .troodos_2021_photo_gallery_hover_inner_container {
        bottom: 50%;
        transform: translateY(50%);
    }
    .troodos_2021_photo_gallery_hover_text {
        font: 400 6vw 'Alegreya Sans', sans-serif;
    }
    .troodos_2021_photo_gallery_hover_button {
        margin: 0px 0 0 0;
    }
    .troodos_2021_photo_gallery_hover::after {
        height: 100%;
        bottom: 0;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
    }
}