/* =========================================================
   DIABOS – PROJECT SHOWCASE
   Homepage selected projects

   Brand palette:
   Red:   #cd282c
   Light: #d5dae5
   Dark:  #222d37
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.di-projects-showcase {
    --dp-red: #cd282c;
    --dp-red-dark: #ad2024;

    --dp-light: #d5dae5;
    --dp-dark: #222d37;

    --dp-muted: #68737d;
    --dp-border: #cbd2d8;

    --dp-bg: #f3f6f8;
    --dp-white: #ffffff;

    position: relative;
    overflow: hidden;

    padding:
        clamp(72px, 7vw, 110px)
        0
        clamp(68px, 7vw, 105px);


}


/* =========================================================
   CONTAINER
   ========================================================= */

.di-projects-showcase .di-projects-container {
    width: min(1480px, calc(100% - 96px));
    max-width: none !important;

    margin-right: auto;
    margin-left: auto;

    padding-right: 0;
    padding-left: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.di-projects-showcase .di-projects-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 50px;

    margin-bottom:
        clamp(30px, 3vw, 42px);
}


.di-projects-showcase .di-projects-heading {
    max-width: 700px;
}


/* =========================================================
   KICKER
   ========================================================= */

.di-projects-showcase .di-projects-kicker {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 0 0 13px;

    color: #57636d;

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.25;

    letter-spacing: .075em;

    text-transform: uppercase;
}


.di-projects-showcase .di-projects-kicker-line {
    width: 38px;
    height: 2px;

    flex: 0 0 38px;

    background: var(--dp-red);
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.di-projects-showcase .di-projects-title {
    max-width: 650px;

    margin: 0;

    color: var(--dp-dark);

    font-family:
        "Roboto Condensed",
        "Arial Narrow",
        Arial,
        sans-serif;

    font-size:
        clamp(38px, 3.7vw, 58px);

    font-weight: 800;

    line-height: .98;

    letter-spacing: -.015em;

    text-transform: uppercase;
}


/* =========================================================
   ALL PROJECTS BUTTON
   ========================================================= */

.di-projects-showcase .di-projects-all {
    display: flex;

    justify-content: flex-end;
}


.di-projects-showcase .di-projects-all-link {
    min-height: 54px;

    padding: 0 22px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 34px;

    border: 1px solid #9da7af;

    color: var(--dp-dark);

    background: transparent;

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none !important;

    transition:
        color .22s ease,
        background-color .22s ease,
        border-color .22s ease,
        transform .22s ease;
}


.di-projects-showcase .di-projects-all-link svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .22s ease;
}


.di-projects-showcase .di-projects-all-link:hover {
    color: #ffffff;

    background: var(--dp-dark);

    border-color: var(--dp-dark);

    transform: translateY(-2px);
}


.di-projects-showcase .di-projects-all-link:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   SLIDER WRAPPER
   ========================================================= */

.di-projects-showcase .di-projects-slider {
    position: relative;
}


/* =========================================================
   PROJECT TRACK
   ========================================================= */

.di-projects-showcase .di-projects-track {
    margin: 0;
}


/*
 * Fallback when Slick is not initialized.
 */

.di-projects-showcase
.di-projects-track:not(.slick-initialized) {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.di-projects-showcase
.di-projects-track:not(.slick-initialized) > * {
    width: 100% !important;

    max-width: none !important;

    padding: 0 !important;
}


/* =========================================================
   SLICK SPACING
   ========================================================= */

.di-projects-showcase
.di-projects-track.slick-initialized
.slick-list {
    margin-right: -7px;
    margin-left: -7px;
}


.di-projects-showcase
.di-projects-track.slick-initialized
.slick-slide {
    padding-right: 7px;
    padding-left: 7px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.di-projects-showcase .di-project-card {
    position: relative;

    height: 100%;

    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.di-projects-showcase .di-project-card__image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #cbd1d5;

    text-decoration: none;
}


.di-projects-showcase .di-project-card__image img {
    position: absolute;

    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    transform: scale(1.001);

    transition:
        transform .55s cubic-bezier(.22, .61, .36, 1),
        filter .35s ease;
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.di-projects-showcase .di-project-card__overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(34, 45, 55, .01) 38%,
            rgba(34, 45, 55, .16) 100%
        );

    opacity: .45;

    pointer-events: none;

    transition:
        opacity .35s ease;
}


/* =========================================================
   IMAGE CORNER ARROW
   ========================================================= */

.di-projects-showcase .di-project-card__corner {
    position: absolute;

    right: 14px;
    bottom: 14px;

    z-index: 3;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    color: #ffffff;

    background: var(--dp-red);

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity .28s ease,
        transform .28s ease,
        background-color .28s ease;
}


.di-projects-showcase
.di-project-card__corner svg {
    width: 18px;
    height: 18px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CARD IMAGE HOVER
   ========================================================= */

.di-projects-showcase
.di-project-card:hover
.di-project-card__image img {
    transform: scale(1.045);

    filter:
        saturate(1.05)
        contrast(1.03);
}


.di-projects-showcase
.di-project-card:hover
.di-project-card__overlay {
    opacity: .18;
}


.di-projects-showcase
.di-project-card:hover
.di-project-card__corner {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.di-projects-showcase
.di-project-card .blog-content,
.di-projects-showcase
.di-project-card__content {
    padding: 14px 0 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* =========================================================
   PROJECT TITLE
   ========================================================= */

.di-projects-showcase
.di-project-card .blog-title,
.di-projects-showcase
.di-project-card__title {
    position: relative;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;
    border-bottom: 0 !important;

    color: var(--dp-dark);

    background: transparent !important;
    background-image: none !important;

    font-family:
        "Roboto Condensed",
        "Arial Narrow",
        Arial,
        sans-serif;

    font-size:
        clamp(16px, 1.25vw, 20px);

    font-weight: 700;

    line-height: 1.17;

    letter-spacing: -.01em;

    text-decoration: none !important;
}


/* =========================================================
   REMOVE CONSTRUZ ORIGINAL LONG RED LINE

   Parent theme adds its own line through pseudo-elements.
   Disable it completely.
   ========================================================= */

.di-projects-showcase
.di-project-card .blog-title::before,

.di-projects-showcase
.di-project-card .blog-title::after,

.di-projects-showcase
.di-project-card__title::before,

.di-projects-showcase
.di-project-card__title::after {
    content: none !important;

    display: none !important;

    width: 0 !important;
    height: 0 !important;

    border: 0 !important;

    background: none !important;
}


/* =========================================================
   PROJECT TITLE LINK

   Title ALWAYS remains dark.
   ========================================================= */

.di-projects-showcase
.di-project-card__title a {
    position: relative;

    display: inline-block;

    color: var(--dp-dark) !important;

    background: transparent !important;

    border: 0 !important;

    text-decoration: none !important;

    transition: none;
}


/*
 * Prevent parent theme from changing
 * the heading color on hover.
 */

.di-projects-showcase
.di-project-card__title a:hover,

.di-projects-showcase
.di-project-card:hover
.di-project-card__title a,

.di-projects-showcase
.blog-title a:hover,

.di-projects-showcase
.blog-card:hover
.blog-title a {
    color: var(--dp-dark) !important;
}


/* =========================================================
   OUR SHORT RED TITLE LINE

   Hidden normally.
   ========================================================= */

.di-projects-showcase
.di-project-card__title a::after {
    content: "" !important;

    position: absolute;

    left: 0;

    bottom: -6px;

    display: block !important;

    width: 0 !important;
    height: 2px !important;

    border: 0 !important;

    background: var(--dp-red) !important;

    opacity: 1 !important;

    transform: none !important;

    pointer-events: none;

    transition:
        width .30s cubic-bezier(.22, .61, .36, 1) !important;
}


/* =========================================================
   SHORT RED LINE ON CARD HOVER
   ========================================================= */

.di-projects-showcase
.di-project-card:hover
.di-project-card__title a::after,

.di-projects-showcase
.di-project-card__title a:hover::after {
    width: 38px !important;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.di-projects-showcase
.di-project-card .blog-meta,

.di-projects-showcase
.di-project-card__meta {
    display: block;

    margin: 10px 0 0 !important;

    padding: 0 !important;

    border: 0 !important;

    color: #69747d;

    background: transparent !important;

    font-family:
        "Roboto",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.4;

    text-transform: none;
}


/* =========================================================
   REMOVE OLD META DECORATION
   ========================================================= */

.di-projects-showcase
.di-project-card__meta::before,

.di-projects-showcase
.di-project-card__meta::after,

.di-projects-showcase
.blog-meta::before,

.di-projects-showcase
.blog-meta::after {
    content: none !important;

    display: none !important;
}


/* CATEGORY LINK */

.di-projects-showcase
.di-project-card__meta a {
    margin: 0 !important;

    padding: 0 !important;

    color: inherit !important;

    background: transparent !important;

    border: 0 !important;

    font-size: inherit !important;

    font-weight: inherit !important;

    text-decoration: none !important;

    transition:
        color .20s ease;
}


.di-projects-showcase
.di-project-card__meta a:hover {
    color: var(--dp-red) !important;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.di-projects-showcase .di-projects-arrow {
    position: absolute;

    top: 39%;

    z-index: 20;

    width: 48px;
    height: 48px;

    padding: 0;

    display: grid;

    place-items: center;

    border:
        1px solid #d4d9dd;

    border-radius: 50%;

    color: #69747d;

    background:
        rgba(255, 255, 255, .96);

    box-shadow:
        0 7px 22px rgba(34, 45, 55, .08);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color .22s ease,
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


.di-projects-showcase
.di-projects-arrow svg {
    width: 19px;
    height: 19px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* PREVIOUS */

.di-projects-showcase
.di-projects-arrow-prev {
    left: -24px;
}


/* NEXT */

.di-projects-showcase
.di-projects-arrow-next {
    right: -24px;
}


/* ARROW HOVER */

.di-projects-showcase
.di-projects-arrow:hover {
    color: #ffffff;

    background: var(--dp-red);

    border-color: var(--dp-red);

    box-shadow:
        0 8px 22px rgba(205, 40, 44, .20);
}


.di-projects-showcase
.di-projects-arrow-prev:hover {
    transform:
        translate(-3px, -50%);
}


.di-projects-showcase
.di-projects-arrow-next:hover {
    transform:
        translate(3px, -50%);
}


/* DISABLED */

.di-projects-showcase
.di-projects-arrow.slick-disabled {
    opacity: .35;

    cursor: default;

    pointer-events: none;
}


/* =========================================================
   REMOVE OLD CONSTRUZ BLOG ELEMENTS
   ========================================================= */

.di-projects-showcase .blog-date,
.di-projects-showcase .blog-card .btn {
    display: none !important;
}


/*
 * Remove old Construz card styling.
 */

.di-projects-showcase .blog-card,
.di-projects-showcase .blog-content {
    border: 0 !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

.di-projects-showcase
.di-project-card__image:focus-visible,

.di-projects-showcase
.di-project-card__title a:focus-visible,

.di-projects-showcase
.di-project-card__meta a:focus-visible,

.di-projects-showcase
.di-projects-all-link:focus-visible,

.di-projects-showcase
.di-projects-arrow:focus-visible {
    outline:
        3px solid rgba(205, 40, 44, .32);

    outline-offset: 3px;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1180px) {

    .di-projects-showcase
    .di-projects-container {
        width:
            min(100% - 56px, 1200px);
    }


    .di-projects-showcase
    .di-projects-title {
        font-size:
            clamp(36px, 4.5vw, 50px);
    }


    .di-projects-showcase
    .di-projects-arrow-prev {
        left: -20px;
    }


    .di-projects-showcase
    .di-projects-arrow-next {
        right: -20px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .di-projects-showcase {
        padding:
            64px 0 70px;
    }


    .di-projects-showcase
    .di-projects-container {
        width:
            calc(100% - 40px);
    }


    .di-projects-showcase
    .di-projects-header {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    .di-projects-showcase
    .di-projects-all {
        justify-content: flex-start;
    }


    .di-projects-showcase
    .di-projects-all-link {
        min-height: 50px;
    }


    .di-projects-showcase
    .di-projects-track:not(.slick-initialized) {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .di-projects-showcase
    .di-projects-arrow {
        width: 44px;

        height: 44px;
    }


    .di-projects-showcase
    .di-projects-arrow-prev {
        left: -13px;
    }


    .di-projects-showcase
    .di-projects-arrow-next {
        right: -13px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .di-projects-showcase {
        padding:
            54px 0 60px;
    }


    .di-projects-showcase
    .di-projects-container {
        width:
            calc(100% - 32px);
    }


    /* HEADER */

    .di-projects-showcase
    .di-projects-header {
        margin-bottom: 28px;
    }


    /* KICKER */

    .di-projects-showcase
    .di-projects-kicker {
        gap: 10px;

        margin-bottom: 11px;

        font-size: 10px;
    }


    .di-projects-showcase
    .di-projects-kicker-line {
        width: 28px;

        flex-basis: 28px;
    }


    /* SECTION TITLE */

    .di-projects-showcase
    .di-projects-title {
        font-size:
            clamp(32px, 10vw, 42px);

        line-height: 1;
    }


    /* ALL PROJECTS */

    .di-projects-showcase
    .di-projects-all-link {
        width: 100%;

        justify-content: space-between;

        gap: 20px;
    }


    /* FALLBACK GRID */

    .di-projects-showcase
    .di-projects-track:not(.slick-initialized) {
        grid-template-columns: 1fr;
    }


    /* IMAGE */

    .di-projects-showcase
    .di-project-card__image {
        aspect-ratio: 16 / 10;
    }


    /* PROJECT TITLE */

    .di-projects-showcase
    .di-project-card .blog-title,

    .di-projects-showcase
    .di-project-card__title {
        font-size: 18px;
    }


    /* SHORT RED LINE */

    .di-projects-showcase
    .di-project-card:hover
    .di-project-card__title a::after,

    .di-projects-showcase
    .di-project-card__title a:hover::after {
        width: 32px !important;
    }


    /* SLIDER ARROWS */

    .di-projects-showcase
    .di-projects-arrow {
        top: 38%;

        width: 40px;

        height: 40px;
    }


    .di-projects-showcase
    .di-projects-arrow-prev {
        left: -10px;
    }


    .di-projects-showcase
    .di-projects-arrow-next {
        right: -10px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .di-projects-showcase
    .di-projects-container {
        width:
            calc(100% - 26px);
    }


    .di-projects-showcase
    .di-projects-title {
        font-size:
            clamp(30px, 9.5vw, 37px);
    }


    .di-projects-showcase
    .di-projects-arrow {
        width: 38px;

        height: 38px;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    /*
     * Don't depend on hover for the red
     * image corner arrow on phones.
     */

    .di-projects-showcase
    .di-project-card__corner {
        display: none;
    }


    /*
     * Keep title dark.
     */

    .di-projects-showcase
    .di-project-card__title a {
        color: var(--dp-dark) !important;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .di-projects-showcase *,
    .di-projects-showcase *::before,
    .di-projects-showcase *::after {
        transition: none !important;

        animation: none !important;
    }

}