/* =========================================
   DIGISES WORK / CASE STUDIES SLIDER
   Unique prefix: dg-work-
========================================= */

.dg-work-section,
.dg-work-section * {
    box-sizing: border-box;
}

.dg-work-section {
    --dg-work-blue: #075cff;
    --dg-work-navy: #102044;
    --dg-work-text: #596980;
    --dg-work-border: #e7edf7;

    position: relative;
    overflow: hidden;
    padding: 55px 0 60px;
    background:
        radial-gradient(ellipse at 0% 40%,
            rgba(219, 234, 255, .65), transparent 35%),
        radial-gradient(ellipse at 100% 10%,
            rgba(221, 236, 255, .7), transparent 34%),
        #f8faff;
    color: var(--dg-work-navy);
    font-family: inherit;
}

.dg-work-container {
    position: relative;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

/* Heading */

.dg-work-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.dg-work-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #1764e9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.dg-work-eyebrow span:first-child,
.dg-work-eyebrow span:last-child {
    width: 45px;
    height: 1px;
    background: #d4e2f7;
}

.dg-work-eyebrow span:nth-child(2) {
    padding: 9px 18px;
    border-radius: 30px;
    background: #edf4ff;
}

.dg-work-heading h2 {
    margin: 0 0 10px;
    color: #102044;
    font-size: clamp(30px, 3.7vw, 49px);
    line-height: 1.13;
    letter-spacing: -1.6px;
    font-weight: 850;
}

.dg-work-heading h2 span {
    color: #075cff;
}

.dg-work-heading > p {
    max-width: 700px;
    margin: 0 auto;
    color: #5c6b82;
    font-size: 16px;
    line-height: 1.65;
}

/* Top arrows */

.dg-work-navigation {
    position: absolute;
    top: 105px;
    right: 0;
    z-index: 5;
    display: flex;
    gap: 12px;
}

.dg-work-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #e8eef8;
    border-radius: 50%;
    background: #fff;
    color: #263a5c;
    box-shadow: 0 5px 18px rgba(31, 70, 125, .06);
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.dg-work-nav:hover {
    transform: translateY(-2px);
    background: var(--dg-work-blue);
    color: #fff;
}

.dg-work-nav:focus-visible,
.dg-work-thumb:focus-visible,
.dg-work-side:focus-visible {
    outline: 3px solid #8bb8ff;
    outline-offset: 3px;
}

.dg-work-next {
    border-color: var(--dg-work-blue);
    background: var(--dg-work-blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(7, 92, 255, .2);
}

/* Slider and side previews */

.dg-work-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin-top: 22px;
}

.dg-work-featured {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    width: 90%;
    min-width: 0;
    min-height: 450px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 38px rgba(31, 59, 106, .09);
    transition: opacity .2s ease;
}

.dg-work-featured.is-changing {
    opacity: .45;
}

/* Main image */

.dg-work-featured-image {
    position: relative;
    min-width: 0;
    min-height: 450px;
    overflow: hidden;
    margin: 12px;
    margin-right: 0;
    border-radius: 13px;
    background: #dce9fa;
}

.dg-work-main-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.dg-work-featured:hover .dg-work-main-image {
    transform: scale(1.025);
}

.dg-work-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 18, 39, .3) 0%,
        transparent 36%,
        transparent 55%,
        rgba(4, 17, 36, .86) 100%
    );
    pointer-events: none;
}

.dg-work-category {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 35px;
    background: rgba(7, 29, 62, .88);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.dg-work-category i {
    color: #2db8ff;
    font-size: 17px;
}

.dg-work-image-brand {
    position: absolute;
    right: 20px;
    bottom: 19px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.dg-work-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 23px;
}

.dg-work-brand-mark img{
    border-radius: 50%;
}

.dg-work-image-brand-name {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: .6px;
}

/* Details */

.dg-work-details {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 25px 24px;
}

.dg-work-project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dg-work-project-name {
    margin: 0 0 5px;
    color: #102044;
    font-size: clamp(23px, 2.2vw, 31px);
    line-height: 1.2;
    letter-spacing: -.7px;
    font-weight: 850;
}

.dg-work-project-subtitle {
    margin: 0;
    color: #4d5d75;
    font-size: 17px;
    line-height: 1.5;
}

.dg-work-live-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    padding: 8px 22px;
    border-radius: 30px;
    background: #edf4ff;
    color: #155bd3 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s;
}

.dg-work-live-link:hover {
    background: #deebff;
}

.dg-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 17px 0 22px;
}

.dg-work-tags span {
    padding: 3px 16px;
    border: 1px solid #edf2fa;
    border-radius: 10px;
    background: #f3f7fd;
    color: #34445e;
    font-size: 13px;
    font-weight: 600;
}

/* KPIs */

.dg-work-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
}

.dg-work-metric {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
    padding: 6px 12px;
    border-right: 1px solid #e0e8f3;
}

.dg-work-metric:first-child {
    padding-left: 0;
}

.dg-work-metric:last-child {
    border-right: 0;
    padding-right: 0;
}

.dg-work-metric > i {
    margin-top: 6px;
    color: #1165ef;
    font-size: 25px;
}

.dg-work-metric > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.dg-work-metric strong {
    color: #075ce8;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 850;
    white-space: nowrap;
}

.dg-work-metric span {
    color: #516078;
    font-size: 12px;
    line-height: 1.55;
}

/* Project highlights */

.dg-work-highlights {
    position: relative;
    padding-top: 18px;
    border-top: 1px solid #e0e8f3;
}

.dg-work-highlights h4 {
    margin: 0 0 17px;
    color: #18243b;
    font-size: 17px;
    font-weight: 800;
}

.dg-work-highlights ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: calc(100% - 5px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.dg-work-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #526078;
    font-size: 14px;
    line-height: 1.55;
}

.dg-work-highlights li i {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    margin-top: 0;
    border-radius: 50%;
    background: #1265f5;
    color: #fff;
    font-size: 9px;
}

.dg-work-case-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 23px;
    border-radius: 40px;
    background: linear-gradient(110deg, #075bff, #087eff);
    box-shadow: 0 7px 20px rgba(7, 92, 255, .2);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.dg-work-case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 92, 255, .3);
}

.dg-work-case-btn i {
    transition: transform .2s;
}

.dg-work-case-btn:hover i {
    transform: translateX(4px);
}

/* Side project previews */

.dg-work-side {
    position: absolute;
    z-index: 1;
    top: 5%;
    display: block;
    width: 20%;
    height: 90%;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: #dce8f6;
    cursor: pointer;
    opacity: .83;
    transition: opacity .25s, transform .25s;
}

.dg-work-side:hover {
    opacity: 1;
}

.dg-work-side-prev {
    right: calc(99% - 15px);
}

.dg-work-side-next {
    left: calc(99% - 15px);
}

.dg-work-side-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-work-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 19, 42, .03),
        rgba(4, 19, 42, .08) 40%,
        rgba(4, 19, 42, .78)
    );
}

.dg-work-side-brand {
    position: absolute;
    right: 12px;
    bottom: 23px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.dg-work-side-brand i {
    color: #45baff;
    font-size: 28px;
}

.dg-work-side-brand small {
    font-size: 9px;
    font-weight: 600;
}
.dg-work-side-arrow.right{
    left: 27%;
}
.dg-work-side-arrow.left{
    left: 72%;
}
/* Thumbnail navigation */

.dg-work-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.dg-work-thumb {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, .9);
    color: #102044;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 64, 110, .035);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.dg-work-thumb:hover {
    transform: translateY(-2px);
    border-color: #a8c9ff;
}

.dg-work-thumb.is-active {
    border: 2px solid #2673ff;
    padding: 5px;
    box-shadow: 0 5px 18px rgba(28, 102, 255, .12);
}

.dg-work-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: 9px;
    border-radius: 7px;
    background: #e9eff8;
    object-fit: cover;
    transition: opacity .2s;
}

.dg-work-thumb-title {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 4px;
    color: #172746;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dg-work-thumb-category {
    display: block;
    overflow: hidden;
    color: #65738a;
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Progress indicator */

.dg-work-progress {
    height: 3px;
    margin: 19px auto 0;
    overflow: hidden;
    border-radius: 5px;
    background: #e6edf8;
}

.dg-work-progress-bar {
    display: block;
    width: 16.6667%;
    height: 100%;
    border-radius: 5px;
    background: #1767ff;
    transition: width .3s ease;
}

/* Tablet */

@media (max-width: 1100px) {
    .dg-work-container {
        width: calc(100% - 36px);
    }

    .dg-work-navigation {
        top: 95px;
    }

    .dg-work-featured {
        grid-template-columns: .95fr 1.05fr;
        min-height: 410px;
    }

    .dg-work-featured-image {
        min-height: 410px;
    }

    .dg-work-details {
        padding: 23px 17px;
    }

    .dg-work-project-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dg-work-project-name {
        font-size: 24px;
    }

    .dg-work-project-subtitle {
        font-size: 14px;
    }

    .dg-work-tags {
        gap: 6px;
        margin: 14px 0 17px;
    }

    .dg-work-tags span {
        padding: 8px 10px;
        font-size: 10px;
    }

    .dg-work-metric {
        gap: 7px;
        padding: 5px 7px;
    }

    .dg-work-metric > i {
        font-size: 19px;
    }

    .dg-work-metric span {
        font-size: 10px;
    }

    .dg-work-case-btn {
        padding: 13px 15px;
        font-size: 10px;
    }

    .dg-work-thumbnails {
        gap: 9px;
    }

    .dg-work-thumb img {
        height: 65px;
    }

    .dg-work-thumb-title {
        font-size: 10px;
    }
}

/* Smaller laptop / tablet: hide side previews */

@media (max-width: 850px) {
    .dg-work-navigation {
        position: static;
        justify-content: center;
        margin: 18px 0;
    }

    .dg-work-slider {
        margin-top: 0;
    }

    .dg-work-side {
        display: none;
    }

    .dg-work-featured {
        width: 100%;
    }

    .dg-work-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dg-work-thumb img {
        height: 100px;
    }

    .dg-work-thumb-title {
        font-size: 12px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .dg-work-section {
        padding: 38px 0 32px;
    }

    .dg-work-container {
        width: calc(100% - 28px);
    }

    .dg-work-heading {
        margin-bottom: 20px;
    }

    .dg-work-heading h2 {
        font-size: 29px;
        letter-spacing: -.8px;
    }

    .dg-work-heading > p {
        font-size: 13px;
    }

    .dg-work-navigation {
        gap: 10px;
        margin: 0 0 15px;
    }

    .dg-work-nav {
        width: 40px;
        height: 40px;
    }

    .dg-work-featured {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 14px;
    }

    .dg-work-featured-image {
        flex: none;
        min-height: 0;
        height: 250px;
        margin: 8px 8px 0;
        border-radius: 10px;
    }

    .dg-work-category {
        top: 12px;
        left: 12px;
        padding: 4px 18px;
        font-size: 12px;
    }

    .dg-work-image-brand {
        right: 13px;
        bottom: 13px;
        left: 13px;
        gap: 9px;
    }

    .dg-work-brand-mark {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .dg-work-image-brand-name {
        font-size: 14px;
    }

    .dg-work-details {
        padding: 19px 15px 30px;
    }

    .dg-work-project-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .dg-work-project-name {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .dg-work-project-subtitle {
        font-size: 14px;
        margin-bottom: 11px !important;
    }

    .dg-work-live-link {
        margin-top: 0;
        padding: 8px 22px;
        margin-bottom: 7px;
    }

    .dg-work-tags {
        margin: 15px 0;
    }

    .dg-work-tags span {
        padding: 5px 15px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .dg-work-metrics {
        margin-bottom: 17px;
    }

    .dg-work-metric {
        flex-direction: column;
        gap: 6px;
        padding: 4px 8px;
    }

    .dg-work-metric > i {
        margin: 0;
        font-size: 20px;
    }

    .dg-work-metric > div {
        gap: 5px;
    }

    .dg-work-metric strong {
        font-size: 21px;
    }

    .dg-work-metric span {
        font-size: 11px;
    }

    .dg-work-highlights {
        padding-top: 16px;
        padding-bottom: 58px;
    }

    .dg-work-highlights h4 {
        font-size: 19px;
    }

    .dg-work-highlights li {
        font-size: 13px;
    }

    .dg-work-case-btn {
        right: auto;
        bottom: -8px;
        left: 0;
        padding: 8px 29px;
        font-size: 13px;
    }

    .dg-work-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: px;
    }

    .dg-work-thumb {
        padding: 5px;
    }

    .dg-work-thumb.is-active {
        padding: 4px;
    }

    .dg-work-thumb img {
        height: 92px;
    }

    .dg-work-thumb-title {
        font-size: 13px;
    }

    .dg-work-thumb-category {
        font-size: 10px;
    }

    .dg-work-progress {
        margin-top: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-work-section *,
    .dg-work-section *::before,
    .dg-work-section *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}



/* ===================================
   DIGISES - CURVED SIDE PREVIEWS
=================================== */

.dg-work-slider {
    position: relative;
    overflow: visible;
    isolation: isolate;
}


/* Side image cards */
.dg-work-side {
    position: absolute;
    z-index: 1;
    top: 5%;
    width: 23%;
    height: 90%;
    padding: 0;
    overflow: hidden;

    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 30px;

    background: #eaf2ff;
    box-shadow: 0 15px 45px rgba(23, 71, 140, .18);

    opacity: .95;
    transform-style: preserve-3d;

    transition:
        transform .75s cubic-bezier(.22, 1, .36, 1),
        border-radius .75s ease,
        opacity .45s ease,
        box-shadow .5s ease;
}

/* Left image: angled inward */
.dg-work-side-prev {
    right: calc(99% - 35px);
    transform: perspective(1000px) rotateY(17deg) scale(.96);
    transform-origin: right center;

    border-radius: 12px 32px 32px 12px;
}

/* Right image: angled inward */
.dg-work-side-next {
    left: calc(99% - 35px);
    transform: perspective(1000px) rotateY(-17deg) scale(.96);
    transform-origin: left center;

    border-radius: 32px 12px 12px 32px;
}

/* Side image fills the curved card */
.dg-work-side-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1),
        filter .5s ease;
}

/* Dark gradient over the side images */
.dg-work-side-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(8, 30, 65, .02) 20%,
        rgba(8, 30, 65, .12) 48%,
        rgba(8, 30, 65, .72) 100%
    );

    transition: opacity .4s ease;
}

/* Hover: image zoom + more rounded */
.dg-work-side-prev:hover {
    opacity: 1;
    transform: perspective(1000px) rotateY(8deg) scale(1);
    border-radius: 18px 38px 38px 18px;
    box-shadow: 0 20px 50px rgba(23, 71, 140, .25);
}

.dg-work-side-next:hover {
    opacity: 1;
    transform: perspective(1000px) rotateY(-8deg) scale(1);
    border-radius: 38px 18px 18px 38px;
    box-shadow: 0 20px 50px rgba(23, 71, 140, .25);
}

.dg-work-side:hover .dg-work-side-image {
    transform: scale(1.09);
    filter: saturate(1.12);
}

/* Circular arrow button */
.dg-work-side-arrow {
    position: absolute;
    top: 50%;
    left: 50%;

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

    width: 54px;
    height: 54px;

    border-radius: 50%;
    background: #fff;
    color: #13284b;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);

    transform: translate(-50%, -50%);
    transition:
        background .3s ease,
        color .3s ease,
        transform .35s ease;
}

.dg-work-side:hover .dg-work-side-arrow {
    background: #075cff;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

/* Side brand positioning */
.dg-work-side-brand {
    position: absolute;
    right: 15px;
    bottom: 25px;
    left: 15px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    color: #fff;
    text-align: left;
}

/* Tablet */
@media (max-width: 1100px) {
    .dg-work-side {
        width: 19%;
        opacity: .8;
    }

    .dg-work-side-prev {
        right: calc(100% - 20px);
        transform: perspective(800px) rotateY(12deg) scale(.94);
    }

    .dg-work-side-next {
        left: calc(100% - 20px);
        transform: perspective(800px) rotateY(-12deg) scale(.94);
    }
}

/* Mobile: keep side cards hidden */
@media (max-width: 850px) {
    .dg-work-slider {
        overflow: hidden;
    }

    .dg-work-side {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dg-work-side,
    .dg-work-side-image,
    .dg-work-side-arrow {
        transition: none !important;
    }
}


/* Curved side carousel motion */
.dg-work-slider {
    position: relative;
    overflow: visible;
    perspective: 1400px;
}

.dg-work-featured {
    position: relative;
    z-index: 3;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1),
                opacity .4s ease;
    will-change: transform, opacity;
}

/* Side preview cards */
.dg-work-side {
    position: absolute;
    top: 5%;
    width: 23%;
    height: 90%;
    overflow: hidden;
    z-index: 1;

    border-radius: 28px;
    transform-style: preserve-3d;
    backface-visibility: hidden;

    transition:
        left .75s cubic-bezier(.22, 1, .36, 1),
        right .75s cubic-bezier(.22, 1, .36, 1),
        transform .75s cubic-bezier(.22, 1, .36, 1),
        opacity .45s ease,
        border-radius .75s ease;

    will-change: transform;
}

.dg-work-side-prev {
    right: calc(99% - 35px);
    left: auto;
    transform: perspective(1200px) rotateY(15deg) scale(.96);
    transform-origin: right center;
    border-radius: 12px 32px 32px 12px;
}

.dg-work-side-next {
    left: calc(99% - 35px);
    right: auto;
    transform: perspective(1200px) rotateY(-15deg) scale(.96);
    transform-origin: left center;
    border-radius: 32px 12px 12px 32px;
}

/* Animate image inside the curved card */
.dg-work-side-image {
    transition: transform .75s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

/* JavaScript adds these classes during a slide */
.dg-work-slider.dg-work-sliding-next .dg-work-side-next {
    transform: perspective(1200px) rotateY(-5deg) scale(.9);
    opacity: .65;
}

.dg-work-slider.dg-work-sliding-prev .dg-work-side-prev {
    transform: perspective(1200px) rotateY(5deg) scale(.9);
    opacity: .65;
}

.dg-work-slider.dg-work-sliding-next .dg-work-featured,
.dg-work-slider.dg-work-sliding-prev .dg-work-featured {
    opacity: .65;
}

/* Keep side previews hidden on mobile */
@media (max-width: 850px) {
    .dg-work-slider {
        overflow: hidden;
    }

    .dg-work-side {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-work-slider *,
    .dg-work-slider *::before {
        transition-duration: .01ms !important;
    }
}



.dg-work-thumb-carousel {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.dg-work-thumbnails {
    display: flex;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 8px 3px 14px;
    scroll-behavior: smooth;
}

.dg-work-thumb {
    flex: 0 0 calc((100% - 60px) / 5);
    min-width: 0;
    scroll-snap-align: start;
}

.dg-work-thumb-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce6f5;
    border-radius: 50%;
    background: #0770ff;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20, 65, 130, .08);
    transition: .25s ease;
}

.dg-work-thumb-arrow:hover:not(:disabled) {
    background: #075cff;
    color: #fff;
    border-color: #075cff;
}

.dg-work-thumb-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.dg-work-thumb img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
}

.dg-work-thumb.is-active {
    border: 2px solid #2673ff;
    box-shadow: 0 5px 18px rgba(38, 115, 255, .13);
}

/* Tablet */
@media (max-width: 850px) {
    .dg-work-thumb-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
    }

    .dg-work-thumb-arrow {
        width: 34px;
        height: 34px;
    }

    .dg-work-thumb {
        flex-basis: calc((100% - 24px) / 3);
    }
}

/* Mobile: 2 visible cards */
@media (max-width: 600px) {
    .dg-work-thumb {
        flex-basis: calc((100% - 10px) / 2);
    }

    .dg-work-thumb img {
        height: 85px;
    }
}
