/* card */
.rcard {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    display: flex;
    box-sizing: border-box;
    margin: 50px 0;
}

.rcard-img {
    max-width: 300px;
    width: 300px;
    max-height: 300px;
}
.rcard-img img {
    height: 100%;
    width: 100%;
}

.rcard-description {
    padding: 10px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scrollbar-width: none;
    max-height: 300px;
    box-sizing: border-box;
}
.rcard-description::-webkit-scrollbar {
    display: none;
}

.rcard-title {
    display: inline-block;
}
.rcard-title:after {
    content: '';
    display: block;
    height: 2px;
    width: inherit;
    margin-top: 20px;
    background: #EEE;
    margin-bottom: 0;
}
.rcard-title > b {
    font-size: 1.2em;
}
.rcard-title > p {
    font-style: italic;
}
.rcard .tags {
    color: #BBB;
    text-align: right;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cards-wrapper .rcard:nth-child(2n) {
    flex-direction: row-reverse;
}
.cards-wrapper .rcard:nth-child(2n) > .rcard-description {
    text-align: right;
}

@media (max-width: 900px) {
    .rcard {
        flex-wrap: wrap;
        max-width: 400px;
        margin: 50px auto;
    }
    .rcard-img {
        width: 100%;
        max-width: 500px;
        max-height: 500px;
    }
    .rcard-description {
        max-height: initial;
        text-align: initial !important;
    }
    header {
        max-height: 100px;
    }
}
