:root {
    /* CONSTANT COLOR THEME */
    --primary-color: #008C9E;
    --secondary-color: #00A8B5;
    --gradient-background: linear-gradient(135deg, #006D77, #008C9E, #00A8B5);
    --primary-font-family: 'Poppins', sans-serif;
    --secondary-font-family: 'Open Sans', sans-serif;
    --third-font-family: 'REM', sans-serif;
    --fourth-font-family: 'Varela Round', sans-serif;
    --primary-width: 100%;
    --primary-height: 100%;
    --secondary-height: 100vh;

    /* DARK THEME COLOR COMBINATIONS */
    --primary-box-shadow: 15px 15px 30px rgb(25, 25, 25),
        -15px -15px 30px rgb(60, 60, 60);
        --text-color: #333333 ; 
        --background-color:linear-gradient(to right, #ffffff, #ececec);
        --second-box-shadow:0 10px 10px -10px rgba(0, 0, 0, 0.35);
}

* {
    font-family: var(--primary-font-family);
}


#portfolio {
    margin-top: 5rem;
    height: 100vh;
    width: 100%;
}

a,
a:hover {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

#pageHeaderTitle {
    margin: 5vh 0;
    text-transform: uppercase;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--primary-font-family);
}

/* Cards */
.postcard {
    display: flex;
    box-shadow: var(--primary-box-shadow);
    border-radius: 10px;
    margin: 8vh auto 5rem auto;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    width: 90%;
    height: auto;
}

.postcard.dark {
    background-color: #18151f;
}

.postcard.light {
    background-color: #e1e5ea;
}

.postcard .t-dark {
    color: #18151f;
}

.postcard a {
    color: inherit;
    text-decoration: none;
}

.postcard h1,
.postcard .h1 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.postcard .small {
    font-size: 2rem;
}

.postcard .postcard__title {
    font-size: 4rem;
}

.postcard .postcard__img {
    /* max-height: 180px; */
    width: 100%;
    object-fit: cover;
    position: relative;
}

.postcard .postcard__img_link {
    display: contents;
}

/* .postcard .postcard__img_link img{

} */

.postcard .postcard__bar {
    width: 50px;
    height: 5px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #424242;
    transition: width 0.2s ease;
}

.post_card_body {
    display: flex;
    align-items: flex-start;
    width: 90%;
}

.postcard .postcard__text {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.postcard .postcard__preview-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
    height: auto;
    width: 100%;
    margin-right: 12rem;
}

.postcard .postcard__preview-img {
    width: 30vw;
}

.postcard .postcard__preview-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.postcard .postcard__preview-txt h4 {
    font-weight: 700;
    font-size: 2.5rem;
}

.postcard .postcard__preview-txt ul {
    margin-left: 8%;
}

.postcard .postcard__preview-txt ul li h5 {
    font-size: 1.7rem;
}

.postcard .postcard__tagbox {
    display: flex;
    flex-flow: row wrap;
    font-size: 14px;
    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center;
}

.postcard .postcard__tagbox .tag__item {
    display: inline-block;
    background: rgba(83, 83, 83, 0.4);
    border-radius: 3px;
    padding: 2.5px 10px;
    margin: 0 5px 5px 0;
    cursor: default;
    user-select: none;
    transition: background-color 0.3s;
}

.postcard .postcard__tagbox .tag__item:hover {
    background: rgba(83, 83, 83, 0.8);
}

.postcard:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(-70deg, #424242, transparent 50%);
    opacity: 1;
    border-radius: 10px;
}

.postcard:hover .postcard__bar {
    width: 100px;
}

#portfolio .owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 25vh;
    left: 2%;
    font-size: 10rem;
}

#portfolio .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 25vh;
    right: 2%;
    font-size: 10rem;
}

@media only screen and (max-width: 480px) {
    .postcard {
        display: flex;
        box-shadow: var(--primary-box-shadow);
        border-radius: 10px;
        margin: 0vh auto 5rem auto;
        overflow: hidden;
        position: relative;
        color: #ffffff;
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .postcard .postcard__text {
        padding: 1.5rem;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .postcard .postcard__title {
        font-size: 6vw;
    }

    .postcard .small {
        font-size: 4vw;
    }

    #portfolio .owl-carousel .owl-nav button.owl-prev {
        position: absolute;
        top: 40%;
        left: -3%;
        font-size: 10rem;
    }

    #portfolio .owl-carousel .owl-nav button.owl-next {
        position: absolute;
        top: 40%;
        right: -3%;
        font-size: 10rem;
    }

    .post_card_body {
        display: flex;
        align-items: baseline;
        flex-direction: column;
    }

    .postcard .postcard__preview-txt h4 {
        font-weight: 700;
        font-size: 5vw;
    }

    .postcard .postcard__preview-txt ul li h5 {
        font-size: 3vw;
    }

    .postcard .postcard__preview-txt {
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        height: auto;
        width: 100%;
    }
}

@media screen and (min-width: 480px) and (max-width: 769px) {
    .postcard {
        display: flex;
        box-shadow: var(--primary-box-shadow);
        border-radius: 10px;
        margin: 0vh auto 5rem auto;
        overflow: hidden;
        position: relative;
        color: #ffffff;
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .postcard .postcard__text {
        padding: 1.5rem;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .postcard .postcard__title {
        font-size: 6vw;
    }

    .postcard .small {
        font-size: 4vw;
    }

    #portfolio .owl-carousel .owl-nav button.owl-prev {
        position: absolute;
        top: 40%;
        left: -3%;
        font-size: 10rem;
    }

    #portfolio .owl-carousel .owl-nav button.owl-next {
        position: absolute;
        top: 40%;
        right: -3%;
        font-size: 10rem;
    }

    .post_card_body {
        display: flex;
        align-items: baseline;
        flex-direction: column;
    }

    .postcard .postcard__preview-txt h4 {
        font-weight: 700;
        font-size: 5vw;
    }

    .postcard .postcard__preview-txt ul li h5 {
        font-size: 3vw;
    }

    .postcard .postcard__preview-txt {
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        height: auto;
        width: 100%;
    }

    .postcard .postcard__img {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        position: relative;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .postcard {
        display: flex;
        box-shadow: var(--primary-box-shadow);
        border-radius: 10px;
        margin: 0vh auto 5rem auto;
        overflow: hidden;
        position: relative;
        color: #ffffff;
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .postcard .postcard__text {
        padding: 1.5rem;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .postcard .postcard__title {
        font-size: 6vw;
    }

    .postcard .small {
        font-size: 4vw;
    }

    #portfolio .owl-carousel .owl-nav button.owl-prev {
        position: absolute;
        top: 40%;
        left: -3%;
        font-size: 10rem;
    }

    #portfolio .owl-carousel .owl-nav button.owl-next {
        position: absolute;
        top: 40%;
        right: -3%;
        font-size: 10rem;
    }

    .post_card_body {
        display: flex;
        align-items: baseline;
        flex-direction: column;
    }

    .postcard .postcard__preview-txt h4 {
        font-weight: 700;
        font-size: 5vw;
    }

    .postcard .postcard__preview-txt ul li h5 {
        font-size: 3vw;
    }

    .postcard .postcard__preview-txt {
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        height: auto;
        width: 100%;
    }

    .postcard .postcard__preview-img {
        width: 30vw;
        display: none;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .postcard .postcard__img_link {
        display: none;
    }

    .post_card_body {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    .postcard .postcard__preview-txt h4 {
        font-weight: 700;
        font-size: 2rem;
    }

    .postcard .postcard__text {
        padding: 2rem;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .postcard .postcard__preview-txt {
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: justify;
        height: auto;
        width: 100%;
        margin-right: 3rem;
    }

    #portfolio .owl-carousel .owl-nav button.owl-prev {
        position: absolute;
        top: 40%;
        left: 0%;
        font-size: 10rem;
    }

    #portfolio .owl-carousel .owl-nav button.owl-next {
        position: absolute;
        top: 40%;
        right: 0%;
        font-size: 10rem;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1400px) {
    .postcard .postcard__img_link {
        display: none;
    }

    .postcard .postcard__text {
        padding: 3rem;
        position: relative;
        display: flex;
        flex-direction: column;
    }
}

@media screen and (min-width: 1400px) and (max-width: 1600px) {
    .postcard .postcard__img_link {
        display: none;
    }

    .postcard .postcard__text {
        padding: 3rem;
        position: relative;
        display: flex;
        flex-direction: column;
    }
}

/* COLORS */
.postcard .postcard__tagbox .green.play:hover {
    background: var(--primary-color);
    color: black;
}

.green .postcard__title:hover {
    color: var(--primary-color);
}

.green .postcard__bar {
    background-color: var(--primary-color);
}

.green::before {
    background-image: linear-gradient(-30deg, rgba(121, 221, 9, 0.1), transparent 50%);
}

.green:nth-child(2n)::before {
    background-image: linear-gradient(30deg, rgba(121, 221, 9, 0.1), transparent 50%);
}

.postcard .postcard__tagbox .blue.play:hover {
    background: #0076bd;
}

.blue .postcard__title:hover {
    color: #0076bd;
}

.blue .postcard__bar {
    background-color: #0076bd;
}

.blue::before {
    background-image: linear-gradient(-30deg, rgba(0, 118, 189, 0.1), transparent 50%);
}

.blue:nth-child(2n)::before {
    background-image: linear-gradient(30deg, rgba(0, 118, 189, 0.1), transparent 50%);
}

.postcard .postcard__tagbox .red.play:hover {
    background: #bd150b;
}

.red .postcard__title:hover {
    color: #bd150b;
}

.red .postcard__bar {
    background-color: #bd150b;
}

.red::before {
    background-image: linear-gradient(-30deg, rgba(189, 21, 11, 0.1), transparent 50%);
}

.red:nth-child(2n)::before {
    background-image: linear-gradient(30deg, rgba(189, 21, 11, 0.1), transparent 50%);
}

.postcard .postcard__tagbox .yellow.play:hover {
    background: #bdbb49;
    color: black;
}

.yellow .postcard__title:hover {
    color: #bdbb49;
}

.yellow .postcard__bar {
    background-color: #bdbb49;
}

.yellow::before {
    background-image: linear-gradient(-30deg, rgba(189, 187, 73, 0.1), transparent 50%);
}

.yellow:nth-child(2n)::before {
    background-image: linear-gradient(30deg, rgba(189, 187, 73, 0.1), transparent 50%);
}

@media screen and (min-width: 769px) {
    .green::before {
        background-image: linear-gradient(-80deg, rgba(121, 221, 9, 0.1), transparent 50%);
    }

    .green:nth-child(2n)::before {
        background-image: linear-gradient(80deg, rgba(121, 221, 9, 0.1), transparent 50%);
    }

    .blue::before {
        background-image: linear-gradient(-80deg, rgba(0, 118, 189, 0.1), transparent 50%);
    }

    .blue:nth-child(2n)::before {
        background-image: linear-gradient(80deg, rgba(0, 118, 189, 0.1), transparent 50%);
    }

    .red::before {
        background-image: linear-gradient(-80deg, rgba(189, 21, 11, 0.1), transparent 50%);
    }

    .red:nth-child(2n)::before {
        background-image: linear-gradient(80deg, rgba(189, 21, 11, 0.1), transparent 50%);
    }

    .yellow::before {
        background-image: linear-gradient(-80deg, rgba(189, 187, 73, 0.1), transparent 50%);
    }

    .yellow:nth-child(2n)::before {
        background-image: linear-gradient(80deg, rgba(189, 187, 73, 0.1), transparent 50%);
    }
}