/* Ported from original design: portfolio */

/* =========================================================
   THK PORTFOLIO
   UNIQUE WORDPRESS SAFE CSS
   ========================================================= */

.thk-port-section {
    --thk-green:var(--mc-deep);
    --thk-green-dark:var(--mc-deep);
    --thk-bg:var(--mc-cream);
    --thk-card:#ffffff;
    --thk-text:var(--mc-deep);
    --thk-muted:#68756f;
    --thk-border:var(--mc-line);
    --thk-soft:var(--mc-beige);
    --thk-gold:#c8a56a;

    width:100%;
    padding:16px 20px 0px;
    background:var(--thk-bg);
    overflow:hidden;
}

.thk-port-section *,
.thk-port-section *::before,
.thk-port-section *::after {
    box-sizing:border-box;
}

.thk-port-container {
    width:100%;
    max-width:1180px;
    margin:0 auto;
}


/* =========================================================
   FILTER
   ========================================================= */

.thk-port-filter-wrap {
    width:100%;
    margin-bottom:42px;
    padding-bottom:14px;
    border-bottom:1px solid var(--thk-border);
}

.thk-port-filter-list {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
}

.thk-port-filter {
    appearance:none;
    border:0;
    outline:none;

    padding:10px 17px;

    border-radius:50px;

    background:var(--mc-beige);
    color:#333b37;

    font-family:Arial, sans-serif;
    font-size:12px;
    font-weight:700;

    line-height:1;

    white-space:nowrap;
    cursor:pointer;

    transition:all .25s ease;
}

.thk-port-filter:hover {
    background:#e4dece;
    transform:translateY(-1px);
}

.thk-port-filter.active {
    background:var(--thk-green);
    color:#fff;

    box-shadow:0 5px 15px rgba(103,131,88,.15);
}


/* =========================================================
   GRID
   ========================================================= */

.thk-port-grid {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:28px;
    align-items:stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.thk-port-card {
    width:100%;
    min-width:0;

    display:flex;
    flex-direction:column;

    background:var(--thk-card);

    border:1px solid var(--thk-border);
    border-radius:17px;

    overflow:hidden;

    box-shadow:0 2px 6px rgba(103,131,88,.06);

    transition:transform .3s ease,
        box-shadow .3s ease;
}

.thk-port-card:hover {
    transform:translateY(-5px);

    box-shadow:0 18px 38px rgba(103,131,88,.12);
}

.thk-port-card.thk-port-hide {
    display:none;
}


/* =========================================================
   BEFORE / AFTER IMAGE
   ========================================================= */

.thk-port-media {
    position:relative;

    width:100%;

    /*
     * Screenshot jaisa image proportion
     */
    aspect-ratio:1.58 / 1;

    overflow:hidden;

    background:#ddd;
}


/* =========================================================
   BEFORE / AFTER 50%-50%
   ========================================================= */

.thk-port-image {
    position:absolute;
    top:0;
    bottom:0;

    width:50%;

    overflow:hidden;
}

.thk-port-image-before {
    left:0;
}

.thk-port-image-after {
    right:0;
}


/* =========================================================
   ACTUAL IMAGES
   ========================================================= */

.thk-port-image img {
    display:block;

    width:100%;
    height:100%;

    max-width:none;

    object-fit:cover;

    transition:transform .5s ease;
}

.thk-port-image-before img {
    object-position:center center;
}

.thk-port-image-after img {
    object-position:center center;
}

.thk-port-card:hover .thk-port-image img {
    transform:scale(1.025);
}


/* =========================================================
   CENTER DIVIDER
   ========================================================= */

.thk-port-divider {
    position:absolute;

    top:0;
    bottom:0;
    left:50%;

    width:2px;

    transform:translateX(-50%);

    background:rgba(255, 255, 255, .95);

    z-index:5;

    box-shadow:0 0 5px rgba(0, 0, 0, .18);
}


/* =========================================================
   CENTER ROUND ARROW
   ========================================================= */

.thk-port-switch {
    position:absolute;

    top:50%;
    left:50%;

    width:45px;
    height:45px;

    display:flex;
    align-items:center;
    justify-content:center;

    transform:translate(-50%, -50%);

    background:var(--mc-card);

    border:2px solid var(--thk-green);

    border-radius:50%;

    color:var(--thk-green);

    font-size:17px;

    z-index:10;

    box-shadow:0 4px 12px rgba(0, 0, 0, .16);
}


/* =========================================================
   BEFORE / AFTER BADGES
   ========================================================= */

.thk-port-label {
    position:absolute;

    top:20px;

    z-index:10;

    padding:8px 14px;

    border-radius:50px;

    color:#fff;

    font-family:Arial, sans-serif;

    font-size:11px;
    font-weight:800;

    line-height:1;

    letter-spacing:.7px;
}

.thk-port-label-before {
    left:20px;
    background:rgba(34, 40, 38, .88);
}

.thk-port-label-after {
    right:20px;
    background:rgba(103,131,88,.94);
}


/* =========================================================
   CATEGORY BADGE
   ========================================================= */

.thk-port-category {
    position:absolute;

    left:20px;
    bottom:20px;

    z-index:10;

    padding:9px 15px;

    background:rgba(255, 255, 255, .95);

    color:var(--thk-green);

    border-radius:50px;

    font-family:Arial, sans-serif;

    font-size:11px;
    font-weight:800;

    line-height:1;

    letter-spacing:.5px;

    box-shadow:0 2px 8px rgba(0, 0, 0, .09);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.thk-port-content {
    display:flex;
    flex-direction:column;
    flex:1;

    padding:27px 28px 25px;
}


/* =========================================================
   TITLE
   ========================================================= */

.thk-port-title {
    margin:0 0 12px;

    color:var(--thk-text);

    font-family:Georgia, "Times New Roman", serif;

    font-size:21px;
    font-weight:700;

    line-height:1.35;

    letter-spacing:-.2px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.thk-port-description {
    display:-webkit-box;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;

    overflow:hidden;

    margin:0 0 16px;

    color:var(--thk-muted);

    font-family:Arial, sans-serif;

    font-size:14px;

    line-height:1.6;
}


/* =========================================================
   SERVICE
   ========================================================= */

.thk-port-service {
    display:flex;
    align-items:center;

    gap:8px;

    min-width:0;

    padding-top:11px;

    border-top:1px solid var(--mc-line);

    color:var(--mc-deep);

    font-family:Arial, sans-serif;

    font-size:12px;

    line-height:1.4;
}

.thk-port-service i {
    flex:0 0 auto;

    color:var(--mc-sage);

    font-size:14px;
}

.thk-port-service span {
    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;
}


/* =========================================================
   META
   ========================================================= */

.thk-port-meta {
    display:flex;
    align-items:center;

    gap:17px;

    margin-top:9px;
    margin-bottom:22px;

    color:#76817b;

    font-family:Arial, sans-serif;

    font-size:11px;
}

.thk-port-meta-item {
    display:inline-flex;
    align-items:center;

    gap:6px;
}

.thk-port-meta-item i {
    color:var(--mc-sage);

    font-size:11px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.thk-port-button {
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    margin-top:auto;

    padding:13px 15px;

    border:0;
    border-radius:12px;

    background:var(--thk-soft);

    color:var(--thk-green) !important;

    font-family:Arial, sans-serif;

    font-size:12px;

    font-weight:800;

    line-height:1;

    letter-spacing:.2px;

    text-decoration:none !important;

    transition:all .25s ease;
}

.thk-port-button i {
    color:var(--thk-gold);

    font-size:14px;
}

.thk-port-button:hover {
    background:var(--thk-green);

    color:#fff !important;

    transform:translateY(-1px);
}

.thk-port-button:hover i {
    color:#fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .thk-port-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:24px;
    }

    .thk-port-content {
        padding:23px 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .thk-port-section {
        padding:12px 12px 50px;
    }

    /*
     * FILTER HORIZONTAL SCROLL
     */

    .thk-port-filter-wrap {
        margin-left:-12px;
        margin-right:-12px;

        margin-bottom:28px;

        padding:0 12px 13px;

        overflow-x:auto;

        scrollbar-width:none;
    }

    .thk-port-filter-wrap::-webkit-scrollbar {
        display:none;
    }

    .thk-port-filter-list {
        width:max-content;

        justify-content:flex-start;

        flex-wrap:nowrap;
    }

    .thk-port-filter {
        padding:9px 14px;

        font-size:11px;
    }


    /*
     * ONE CARD PER ROW
     */

    .thk-port-grid {
        grid-template-columns:1fr;

        gap:22px;
    }


    /*
     * IMAGE
     */

    .thk-port-media {
        aspect-ratio:1.5 / 1;
    }


    /*
     * LABELS
     */

    .thk-port-label {
        top:12px;

        padding:7px 11px;

        font-size:9px;
    }

    .thk-port-label-before {
        left:12px;
    }

    .thk-port-label-after {
        right:12px;
    }


    /*
     * CENTER BUTTON
     */

    .thk-port-switch {
        width:38px;
        height:38px;

        font-size:14px;
    }


    /*
     * CATEGORY
     */

    .thk-port-category {
        left:12px;
        bottom:12px;

        padding:8px 12px;

        font-size:9px;
    }


    /*
     * CONTENT
     */

    .thk-port-content {
        padding:21px 18px 19px;
    }

    .thk-port-title {
        font-size:19px;
    }

    .thk-port-description {
        font-size:13px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .thk-port-section {
        padding-left:10px;
        padding-right:10px;
    }

    .thk-port-media {
        aspect-ratio:1.45 / 1;
    }

    .thk-port-label {
        padding:6px 9px;

        font-size:8px;
    }

    .thk-port-switch {
        width:34px;
        height:34px;

        font-size:13px;
    }

    .thk-port-category {
        padding:7px 10px;
    }

    .thk-port-title {
        font-size:18px;
    }

    .thk-port-meta {
        gap:10px;
    }

}
