.phantasia-content-block {
    margin: 20px 0;
}

.phantasia-content-block-inner .content-item {
    display: flex;
    flex-direction: column;
}

.phantasia-content-block-inner .content-item:nth-of-type(3n+1) {
    align-items: flex-end;
}

.phantasia-content-block-inner .content-item:nth-of-type(3n+3) {
    align-items: flex-start;
}

.bg-wood-separator {
    z-index: -1;
    background-image: url("./../../assets/images/bg-wood-mobile.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.content-item:nth-of-type(3n+3) #phantasia-content-block-media {
    order: 1;
}

.content-item:nth-of-type(3n+3) #phantasia-content-block-text {
    order: 2;
}

#phantasia-content-block-media {
    height: 250px;
    width: 250px;
    box-shadow: 2px 2px 6px #5A3D2F;
    position: relative;
}

#phantasia-content-block-media::after{
    z-index: 200;
    content: '';
    display: flex;
    position: absolute;
    left:  20px;
    top:  20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: solid 1px #f7e9db;
    opacity: .7;
}


.content-item:nth-of-type(3n+1) #phantasia-content-block-text {
    text-align: right;
    padding: 0 0 40px;
}

.content-item:nth-of-type(3n+3) #phantasia-content-block-text {
    text-align: left;
    padding: 0 0 40px;
}

.content-item:nth-of-type(3n+1) #phantasia-content-block-media {
    margin-bottom: -75px;
    margin-right: -15px;
}

.content-item:nth-of-type(3n+3) #phantasia-content-block-media {
    margin-top: -75px;
    margin-left: -15px;
}

#phantasia-content-block-media .image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

#phantasia-content-block-text .button {
    margin: 0;
    border: none;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .content-item:nth-of-type(3n+1) #phantasia-content-block-text,
    .content-item:nth-of-type(3n+3) #phantasia-content-block-text {
        width: 80%;
    }

    .content-item:nth-of-type(3n+1) #phantasia-content-block-media,
    .content-item:nth-of-type(3n+3) #phantasia-content-block-media {
        width: 80%;
        margin-right: 0;
        margin-left: 0;
    }

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .phantasia-content-block {
        margin: 80px 0;
    }

    .phantasia-content-block-inner .content-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .phantasia-content-block-inner .content-item:nth-of-type(3n+1) {
        align-items: flex-start;
    }

    .phantasia-content-block-inner .content-item:nth-of-type(3n+3) {
        align-items: flex-end;
    }

    .bg-wood-separator {
        background-image: url("./../../assets/images/bg-wood-desktop.jpg");
        height: 290px;
    }

    .content-item:nth-of-type(3n+3) #phantasia-content-block-text {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: baseline;
    }

    #phantasia-content-block-media {
        height: 850px;
        width: 555px;
    }

    .content-item:nth-of-type(3n+1) #phantasia-content-block-text {
        flex: 0 1 55%;
        text-align: right;
        padding: 80px 40px 0;
    }

    .content-item:nth-of-type(3n+3) #phantasia-content-block-text {
        flex: 0 1 55%;
        text-align: left;
        padding: 0 40px 80px;
    }

    .content-item:nth-of-type(3n+1) #phantasia-content-block-media {
        flex: 0 1 45%;
        width: 100%;
        margin-bottom: -200px;
        margin-right: 0;
    }

    .content-item:nth-of-type(3n+3) #phantasia-content-block-media {
        flex: 0 1 45%;
        width: 100%;
        margin-top: -200px;
        margin-left: 0;
    }

}