/*
 * Donvena Projects Manager — frontend styles
 * Self-contained styles for both plugin shortcodes:
 * [donvena_projects_home_section]
 * [donvena_projects_gallery_section]
 */

/* =========================================================
   SHARED
   ========================================================= */
.donvena-project-gallery,
.donvena-project-gallery *,
.dv-onepage--projects-shortcode,
.dv-onepage--projects-shortcode * {
    box-sizing: border-box;
}

/* =========================================================
   HOMEPAGE PROJECTS SECTION
   ========================================================= */
.dv-onepage--projects-shortcode {
    --dv-blue: #294f95;
    --dv-blue-dark: #17356a;
    --dv-ink: #101722;
    --dv-muted: #677181;
    --dv-paper: #f5f7fa;
    --dv-white: #ffffff;
    --dv-line: rgba(41, 79, 149, 0.18);
    --dv-line-strong: rgba(41, 79, 149, 0.34);
    --dv-max: 1450px;

    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: var(--dv-ink);
    background: var(--dv-paper);
    font-family: Montserrat, Arial, sans-serif;
    transform: translateX(-50%);
}

.dv-onepage--projects-shortcode a {
    color: inherit;
}

.dv-onepage--projects-shortcode button {
    font: inherit;
}

.dv-onepage--projects-shortcode .dv-t2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(31px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dv-onepage--projects-shortcode .dv-t3 {
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0;
}

.dv-onepage--projects-shortcode .dv-blue {
    color: var(--dv-blue);
}

.dv-onepage--projects-shortcode .dv-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--dv-blue);
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.dv-onepage--projects-shortcode .dv-label::before {
    content: "";
    width: 44px;
    height: 2px;
    flex: 0 0 44px;
    background: currentColor;
}

.dv-onepage--projects-shortcode .dv-section {
    position: relative;
    padding: 130px 0;
}

.dv-onepage--projects-shortcode .dv-section--paper {
    background: var(--dv-paper);
}

.dv-onepage--projects-shortcode .dv-section::before {
    content: "";
    position: absolute;
    top: -210px;
    right: -210px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(41, 79, 149, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.dv-onepage--projects-shortcode .dv-shell {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 60px), var(--dv-max));
    margin: 0 auto;
}

.dv-onepage--projects-shortcode .dv-projects__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
}

.dv-onepage--projects-shortcode .dv-projects__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dv-onepage--projects-shortcode .dv-projects__all {
    margin-right: 15px;
    color: var(--dv-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dv-onepage--projects-shortcode .dv-projects__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: var(--dv-blue);
    border: 1px solid var(--dv-line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.dv-onepage--projects-shortcode .dv-projects__control:hover {
    color: var(--dv-white);
    background: var(--dv-blue);
}

.dv-onepage--projects-shortcode .dv-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dv-onepage--projects-shortcode .dv-projects__viewport {
    width: 100%;
    margin-top: 45px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dv-onepage--projects-shortcode .dv-projects__viewport::-webkit-scrollbar {
    display: none;
}

.dv-onepage--projects-shortcode .dv-projects__track {
    display: flex;
    gap: 18px;
    width: max-content;
}

.dv-onepage--projects-shortcode .dv-project {
    position: relative;
    display: block;
    flex: 0 0 calc((min(100vw - 60px, 1450px) - 36px) / 3);
    width: calc((min(100vw - 60px, 1450px) - 36px) / 3);
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    color: var(--dv-white) !important;
    background: #26354b;
    text-decoration: none !important;
}

.dv-onepage--projects-shortcode .dv-project__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.dv-onepage--projects-shortcode .dv-project__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 15, 28, 0.02) 30%, rgba(7, 15, 28, 0.88) 100%);
}

.dv-onepage--projects-shortcode .dv-project__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.dv-onepage--projects-shortcode .dv-project:hover .dv-project__image {
    transform: scale(1.05);
}

.dv-onepage--projects-shortcode .dv-project__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 27px;
}

.dv-onepage--projects-shortcode .dv-project__type {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dv-onepage--projects-shortcode .dv-project__name {
    display: block;
    margin-top: 8px;
    color: #ffffff;
}

.dv-onepage--projects-shortcode .dv-project__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.dv-onepage--projects-shortcode .dv-projects__progress {
    height: 2px;
    margin-top: 26px;
    overflow: hidden;
    background: rgba(41, 79, 149, 0.13);
}

.dv-onepage--projects-shortcode .dv-projects__progress span {
    display: block;
    width: 16.666%;
    height: 100%;
    background: var(--dv-blue);
    transition: width 0.25s ease;
}

/* =========================================================
   FULL "MŪSŲ PROJEKTAI" GALLERY
   ========================================================= */
.donvena-project-gallery {
    --donvena-blue: #274c8e;
    --donvena-blue-dark: #19376e;
    --donvena-text: #171b22;
    --donvena-muted: #68707c;
    --donvena-white: #ffffff;
    --donvena-line: rgba(39, 76, 142, 0.16);

    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: var(--donvena-text);
    background: transparent;
    font-family: Montserrat, Arial, sans-serif;
    transform: translateX(-50%);
}

.donvena-project-gallery::before {
    content: "";
    position: absolute;
    top: -260px;
    right: -190px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(39, 76, 142, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.donvena-project-gallery::after {
    content: "";
    position: absolute;
    bottom: -260px;
    left: -210px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(39, 76, 142, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.donvena-project-gallery__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 60px), 1450px);
    margin: 0 auto;
    padding: 72px 0 100px;
}

.donvena-project-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 42px;
}

.donvena-project-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--donvena-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.donvena-project-gallery__eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    flex: 0 0 42px;
    background: var(--donvena-blue);
}

.donvena-project-gallery__title {
    margin: 0;
    color: var(--donvena-text);
    font-family: inherit;
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.donvena-project-gallery__title strong {
    color: var(--donvena-blue);
    font-weight: 650;
}

.donvena-project-gallery__description {
    max-width: 470px;
    margin: 0 0 5px;
    color: var(--donvena-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.donvena-project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.donvena-gallery-project {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--donvena-white) !important;
    background: #d9dde3;
    text-decoration: none !important;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donvena-gallery-project:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(24, 39, 65, 0.15);
}

.donvena-gallery-project__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    isolation: isolate;
    background: #dce0e5;
}

.donvena-gallery-project__media::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -2;
    background-image: var(--project-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(18px) brightness(0.68) saturate(0.82);
    transform: scale(1.12);
}

.donvena-gallery-project__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 18, 31, 0.01) 30%, rgba(10, 18, 31, 0.16) 55%, rgba(10, 18, 31, 0.87) 100%);
}

.donvena-gallery-project__image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s ease;
}

.donvena-gallery-project:hover .donvena-gallery-project__image {
    transform: scale(1.03);
}

.donvena-gallery-project__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 27px;
}

.donvena-gallery-project__info {
    min-width: 0;
}

.donvena-gallery-project__type {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.donvena-gallery-project__name {
    display: block;
    color: var(--donvena-white);
    font-family: inherit;
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.donvena-gallery-project__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    color: var(--donvena-white);
    border: 1px solid rgba(255, 255, 255, 0.58);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.donvena-gallery-project:hover .donvena-gallery-project__arrow {
    color: var(--donvena-blue);
    border-color: var(--donvena-white);
    background: var(--donvena-white);
}

.donvena-gallery-project__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.donvena-gallery-project:hover .donvena-gallery-project__arrow svg {
    transform: translateX(3px);
}

.donvena-gallery-project__status {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 8px 11px;
    color: var(--donvena-blue);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 8px 20px rgba(16, 28, 47, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.donvena-gallery-project__status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--donvena-blue);
}

.donvena-gallery-project__status--completed {
    color: var(--donvena-text);
}

.donvena-gallery-project__status--completed::before {
    background: #6f7886;
}

.donvena-gallery-project:focus-visible {
    outline: 2px solid var(--donvena-blue);
    outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .dv-onepage--projects-shortcode .dv-section {
        padding: 100px 0;
    }

    .dv-onepage--projects-shortcode .dv-project {
        flex-basis: calc((100vw - 78px) / 2);
        width: calc((100vw - 78px) / 2);
    }
}

@media (max-width: 1050px) {
    .donvena-project-gallery__inner {
        width: min(calc(100% - 56px), 1450px);
        padding: 80px 0 95px;
    }

    .donvena-project-gallery__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .donvena-project-gallery__description {
        max-width: 700px;
    }

    .donvena-project-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .dv-onepage--projects-shortcode .dv-shell {
        width: min(calc(100% - 34px), var(--dv-max));
    }

    .dv-onepage--projects-shortcode .dv-t2 {
        font-size: clamp(31px, 8vw, 48px);
    }

    .dv-onepage--projects-shortcode .dv-t3 {
        font-size: 15px;
    }

    .dv-onepage--projects-shortcode .dv-projects__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .donvena-project-gallery__inner {
        width: calc(100% - 34px);
        padding: 62px 0 72px;
    }

    .donvena-project-gallery::before {
        top: -180px;
        right: -190px;
        width: 350px;
        height: 350px;
    }

    .donvena-project-gallery::after {
        display: none;
    }

    .donvena-project-gallery__header {
        gap: 18px;
        margin-bottom: 27px;
    }

    .donvena-project-gallery__eyebrow {
        margin-bottom: 16px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .donvena-project-gallery__eyebrow::before {
        width: 28px;
        flex-basis: 28px;
    }

    .donvena-project-gallery__title {
        font-size: 35px;
        line-height: 1.12;
    }

    .donvena-project-gallery__description {
        font-size: 14px;
        line-height: 1.7;
    }

    .donvena-project-gallery__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .donvena-gallery-project__media {
        aspect-ratio: 4 / 3.35;
    }

    .donvena-gallery-project__content {
        padding: 21px;
    }

    .donvena-gallery-project__name {
        font-size: 25px;
    }

    .donvena-gallery-project__arrow {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .donvena-gallery-project__status {
        top: 14px;
        left: 14px;
    }

    .dv-onepage--projects-shortcode .dv-section {
        padding: 76px 0;
    }

    .dv-onepage--projects-shortcode .dv-label {
        gap: 10px;
    }

    .dv-onepage--projects-shortcode .dv-label::before {
        width: 28px;
        flex-basis: 28px;
    }

    .dv-onepage--projects-shortcode .dv-projects__tools {
        width: 100%;
        justify-content: space-between;
    }

    .dv-onepage--projects-shortcode .dv-projects__all {
        margin-right: 0;
    }

    .dv-onepage--projects-shortcode .dv-project {
        flex-basis: calc(100vw - 34px);
        width: calc(100vw - 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .donvena-gallery-project,
    .donvena-gallery-project__image,
    .donvena-gallery-project__arrow svg,
    .dv-onepage--projects-shortcode .dv-project__image,
    .dv-onepage--projects-shortcode .dv-projects__viewport {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* =========================================================
   INDIVIDUAL PROJECT DETAIL PAGE
   ========================================================= */
.dvp-project-detail,
.dvp-project-detail * {
    box-sizing: border-box;
}

.dvp-project-detail {
    --dvp-blue: #294f95;
    --dvp-blue-dark: #17356a;
    --dvp-ink: #101722;
    --dvp-muted: #677181;
    --dvp-paper: #f5f7fa;
    --dvp-white: #ffffff;
    --dvp-line: rgba(41, 79, 149, 0.18);
    --dvp-line-strong: rgba(41, 79, 149, 0.32);
    --dvp-max: 1450px;
    --dvp-shadow: 0 28px 70px rgba(20, 39, 72, 0.13);

    width: 100%;
    overflow: hidden;
    color: var(--dvp-ink);
    background: var(--dvp-paper);
    font-family: Montserrat, Arial, sans-serif;
}

.dvp-project-detail__shell {
    width: min(calc(100% - 60px), var(--dvp-max));
    margin: 0 auto;
}

.dvp-project-detail__hero {
    position: relative;
    padding: 70px 0 110px;
    overflow: hidden;
    background: var(--dvp-paper);
}

.dvp-project-detail__hero::before {
    content: "";
    position: absolute;
    top: -240px;
    right: -160px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(41, 79, 149, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.dvp-project-detail__back {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    color: var(--dvp-blue) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.dvp-project-detail__back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvp-project-detail__hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.dvp-project-detail__hero-copy {
    min-width: 0;
}

.dvp-project-detail__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 24px;
    color: var(--dvp-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dvp-project-detail__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    color: var(--dvp-blue);
    border: 1px solid var(--dvp-line-strong);
    background: rgba(255, 255, 255, 0.84);
}

.dvp-project-detail__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dvp-blue);
}

.dvp-project-detail__status.is-completed {
    color: #5d6673;
}

.dvp-project-detail__status.is-completed::before {
    background: #6f7886;
}

.dvp-project-detail__hero h1 {
    margin: 0;
    color: var(--dvp-ink);
    font-family: inherit;
    font-size: clamp(58px, 7vw, 104px);
    font-weight: 600;
    line-height: .96;
    letter-spacing: -0.055em;
}

.dvp-project-detail__intro {
    max-width: 640px;
    margin: 28px 0 0;
    color: var(--dvp-muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
}

.dvp-project-detail__hero-media {
    position: relative;
    min-width: 0;
    padding: 16px 16px 0 0;
}

.dvp-project-detail__hero-media::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 1px solid var(--dvp-line-strong);
}

.dvp-project-detail__hero-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
    box-shadow: var(--dvp-shadow);
}

.dvp-project-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
    border-top: 1px solid var(--dvp-line);
    border-left: 1px solid var(--dvp-line);
}

.dvp-project-detail__fact {
    min-height: 92px;
    padding: 18px;
    border-right: 1px solid var(--dvp-line);
    border-bottom: 1px solid var(--dvp-line);
    background: rgba(255, 255, 255, 0.52);
}

.dvp-project-detail__fact span,
.dvp-project-detail__fact strong {
    display: block;
}

.dvp-project-detail__fact span {
    margin-bottom: 8px;
    color: var(--dvp-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dvp-project-detail__fact strong {
    color: var(--dvp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.dvp-project-detail__content-section {
    padding: 120px 0;
    background: var(--dvp-white);
}

.dvp-project-detail__content-grid {
    display: grid;
    grid-template-columns: minmax(260px, .52fr) minmax(0, 1.48fr);
    gap: clamp(60px, 9vw, 150px);
}

.dvp-project-detail__section-heading > span,
.dvp-project-detail__gallery-header > div > span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--dvp-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dvp-project-detail__section-heading > span::before,
.dvp-project-detail__gallery-header > div > span::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.dvp-project-detail__section-heading h2,
.dvp-project-detail__gallery-header h2 {
    margin: 0;
    color: var(--dvp-ink);
    font-family: inherit;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dvp-project-detail__content {
    max-width: 850px;
    color: var(--dvp-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.82;
}

.dvp-project-detail__content > :first-child {
    margin-top: 0;
}

.dvp-project-detail__content > :last-child {
    margin-bottom: 0;
}

.dvp-project-detail__content h2,
.dvp-project-detail__content h3,
.dvp-project-detail__content h4 {
    color: var(--dvp-ink);
    font-family: inherit;
    font-weight: 600;
}

.dvp-project-detail__gallery-section {
    padding: 120px 0 130px;
    background: var(--dvp-paper);
}

.dvp-project-detail__gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.dvp-project-detail__gallery-header > p {
    margin: 0 0 5px;
    color: var(--dvp-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dvp-project-detail__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
    gap: 16px;
}

.dvp-project-detail__gallery-link {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #d9dde3;
    text-decoration: none !important;
}

.dvp-project-detail__gallery-link.is-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.dvp-project-detail__gallery-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.dvp-project-detail__gallery-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 23, 34, 0.03);
    transition: background-color .3s ease;
}

.dvp-project-detail__gallery-link:hover img {
    transform: scale(1.035);
}

.dvp-project-detail__gallery-link:hover::after {
    background: rgba(16, 23, 34, 0.16);
}

.dvp-project-detail__gallery-zoom {
    position: absolute;
    right: 17px;
    bottom: 17px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(16, 23, 34, .28);
    backdrop-filter: blur(8px);
}

.dvp-project-detail__gallery-zoom svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvp-project-detail__navigation-section {
    padding: 55px 0;
    border-top: 1px solid var(--dvp-line);
    background: var(--dvp-white);
}

.dvp-project-detail__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

.dvp-project-detail__nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    color: var(--dvp-ink) !important;
    text-decoration: none !important;
}

.dvp-project-detail__nav-link.is-next {
    align-items: flex-end;
    text-align: right;
}

.dvp-project-detail__nav-link span {
    color: var(--dvp-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dvp-project-detail__nav-link strong {
    font-size: 22px;
    font-weight: 600;
}

.dvp-project-detail__all-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    color: var(--dvp-blue) !important;
    border: 1px solid var(--dvp-line-strong);
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 700;
}

.dvp-lightbox[hidden] {
    display: none !important;
}

.dvp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    align-items: center;
    padding: 36px;
    opacity: 0;
    background: rgba(8, 12, 19, .96);
    transition: opacity .22s ease;
}

.dvp-lightbox.is-open {
    opacity: 1;
}

html.dvp-lightbox-open,
html.dvp-lightbox-open body {
    overflow: hidden !important;
}

.dvp-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: calc(100vh - 72px);
}

.dvp-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dvp-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 8px 11px;
    color: rgba(255,255,255,.8);
    background: rgba(0,0,0,.35);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
}

.dvp-lightbox__close,
.dvp-lightbox__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 0;
    background: rgba(255,255,255,.04);
    box-shadow: none;
    cursor: pointer;
}

.dvp-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.dvp-lightbox__arrow {
    justify-self: center;
}

.dvp-lightbox__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .dvp-project-detail__hero-grid {
        grid-template-columns: 1fr;
    }

    .dvp-project-detail__hero-media {
        width: min(100%, 850px);
    }

    .dvp-project-detail__content-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .dvp-project-detail__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dvp-project-detail__shell {
        width: calc(100% - 34px);
    }

    .dvp-project-detail__hero {
        padding: 42px 0 72px;
    }

    .dvp-project-detail__back {
        margin-bottom: 30px;
    }

    .dvp-project-detail__hero-grid {
        gap: 38px;
    }

    .dvp-project-detail__hero h1 {
        font-size: clamp(48px, 16vw, 72px);
    }

    .dvp-project-detail__intro {
        font-size: 15px;
    }

    .dvp-project-detail__facts {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .dvp-project-detail__hero-media {
        padding: 9px 9px 0 0;
    }

    .dvp-project-detail__content-section,
    .dvp-project-detail__gallery-section {
        padding: 76px 0;
    }

    .dvp-project-detail__section-heading h2,
    .dvp-project-detail__gallery-header h2 {
        font-size: 36px;
    }

    .dvp-project-detail__content {
        font-size: 15px;
        line-height: 1.75;
    }

    .dvp-project-detail__gallery-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .dvp-project-detail__gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }

    .dvp-project-detail__gallery-link,
    .dvp-project-detail__gallery-link.is-featured {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .dvp-project-detail__navigation {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .dvp-project-detail__nav-link.is-next {
        align-items: flex-start;
        text-align: left;
    }

    .dvp-project-detail__all-projects {
        order: -1;
        width: 100%;
    }

    .dvp-lightbox {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        padding: 18px 4px;
    }

    .dvp-lightbox__stage {
        height: calc(100vh - 36px);
    }

    .dvp-lightbox__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .dvp-lightbox__arrow {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dvp-project-detail__gallery-link img,
    .dvp-lightbox {
        transition: none !important;
    }
}

/* =========================================================
   REVIEW ACTIONS ON PROJECT CARDS
   ========================================================= */
.dv-onepage--projects-shortcode .dv-project__actions,
.donvena-gallery-project__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.dvp-review-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(18, 26, 41, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform .22s ease, color .22s ease, border-color .22s ease, background-color .22s ease;
}

.dvp-review-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvp-review-trigger:hover,
.dvp-review-trigger:focus-visible {
    color: #294f95;
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
    outline: none;
}

.dvp-review-trigger--home {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.dvp-review-trigger--gallery {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

/* =========================================================
   REVIEW POPUP MODAL
   ========================================================= */
.dvp-review-modal[hidden] {
    display: none !important;
}

.dvp-review-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    transition: opacity .22s ease;
}

.dvp-review-modal.is-open {
    opacity: 1;
}

html.dvp-review-modal-open,
html.dvp-review-modal-open body {
    overflow: hidden !important;
}

.dvp-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 14, 26, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dvp-review-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
}

.dvp-review-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.dvp-review-modal__card {
    padding: 20px 22px 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(37, 37, 42, 0.94) 0%, rgba(28, 28, 33, 0.97) 100%);
    box-shadow: 0 40px 80px rgba(4, 10, 20, .28);
}

.dvp-review-modal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-right: 44px;
}

.dvp-review-modal__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dvp-review-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(180deg, #5b68ea 0%, #453773 100%);
}

.dvp-review-modal__icon svg,
.dvp-project-detail__testimonial-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvp-review-modal__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dvp-review-modal__meta strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.dvp-review-modal__meta span {
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.35;
}

.dvp-review-modal__time {
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.dvp-review-modal__body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}

.dvp-review-modal__body.is-collapsed {
    max-height: 240px;
}

.dvp-review-modal__body.is-expanded {
    max-height: min(68vh, 760px);
    overflow-y: auto;
}

.dvp-review-modal__body p {
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.62;
    white-space: pre-line;
}

.dvp-review-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.dvp-review-modal__more,
.dvp-review-modal__reply {
    padding: 0;
    color: #0a84ff;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.dvp-review-modal__more {
    font-size: 16px;
    font-weight: 500;
}

.dvp-review-modal__reply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.dvp-review-modal__reply svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   PROJECT DETAIL TESTIMONIAL SECTION
   ========================================================= */
.dvp-project-detail__testimonial-section {
    padding: 0 0 110px;
    background: var(--dvp-white);
}

.dvp-project-detail__testimonial-card {
    width: min(100%, 760px);
    padding: 24px 24px 20px;
    color: #ffffff;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(37, 37, 42, 0.96) 0%, rgba(28, 28, 33, 1) 100%);
    box-shadow: 0 34px 64px rgba(8, 16, 29, .18);
}

.dvp-project-detail__testimonial-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dvp-project-detail__testimonial-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dvp-project-detail__testimonial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(180deg, #5b68ea 0%, #453773 100%);
}

.dvp-project-detail__testimonial-meta {
    display: flex;
    flex-direction: column;
}

.dvp-project-detail__testimonial-meta strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.dvp-project-detail__testimonial-meta span,
.dvp-project-detail__testimonial-time {
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    line-height: 1.35;
}

.dvp-project-detail__testimonial-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.94);
    font-size: 17px;
    line-height: 1.68;
}

@media (max-width: 700px) {
    .dvp-review-trigger--home {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .dvp-review-trigger--gallery {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .dvp-review-modal {
        padding: 12px;
    }

    .dvp-review-modal__card {
        padding: 18px 18px 16px;
        border-radius: 24px;
    }

    .dvp-review-modal__top {
        padding-right: 34px;
    }

    .dvp-review-modal__identity {
        gap: 11px;
    }

    .dvp-review-modal__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .dvp-review-modal__meta strong {
        font-size: 15px;
    }

    .dvp-review-modal__meta span,
    .dvp-review-modal__time {
        font-size: 13px;
    }

    .dvp-review-modal__body p,
    .dvp-project-detail__testimonial-body {
        font-size: 15px;
        line-height: 1.62;
    }

    .dvp-review-modal__body.is-collapsed {
        max-height: 220px;
    }

    .dvp-project-detail__testimonial-section {
        padding: 0 0 76px;
    }

    .dvp-project-detail__testimonial-card {
        padding: 20px 18px 16px;
        border-radius: 24px;
    }

    .dvp-project-detail__testimonial-top {
        gap: 12px;
    }

    .dvp-project-detail__testimonial-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }
}

/* =========================================================
   STANDALONE DONVENA REVIEWS SECTION
   [donvena_reviews_section]
   ========================================================= */
.dvr-reviews,
.dvr-reviews * {
    box-sizing: border-box;
}

.dvr-reviews {
    --dvr-blue: #294f95;
    --dvr-ink: #101722;
    --dvr-muted: #677181;
    --dvr-paper: #f5f7fa;
    --dvr-white: #ffffff;
    --dvr-line: rgba(41, 79, 149, 0.18);
    --dvr-line-strong: rgba(41, 79, 149, 0.34);
    --dvr-max: 1450px;

    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: var(--dvr-ink);
    background: var(--dvr-white);
    font-family: Montserrat, Arial, sans-serif;
    transform: translateX(-50%);
}

.dvr-reviews__shell {
    width: min(calc(100% - 60px), var(--dvr-max));
    margin: 0 auto;
    padding: 120px 0;
}

.dvr-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.dvr-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 20px;
    color: var(--dvr-blue);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dvr-reviews__eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    flex: 0 0 42px;
    background: currentColor;
}

.dvr-reviews__title {
    max-width: 920px;
    margin: 0;
    color: var(--dvr-ink);
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.dvr-reviews__title strong {
    color: var(--dvr-blue);
    font-weight: 600;
}

.dvr-reviews__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dvr-reviews__hint {
    margin-right: 12px;
    color: var(--dvr-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dvr-reviews__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: var(--dvr-blue);
    border: 1px solid var(--dvr-line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: color .22s ease, background-color .22s ease;
}

.dvr-reviews__control:hover {
    color: #fff;
    background: var(--dvr-blue);
}

.dvr-reviews__control svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvr-reviews__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.dvr-reviews__viewport::-webkit-scrollbar {
    display: none;
}

.dvr-reviews__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.dvr-reviews__track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    min-width: 100%;
}

.dvr-slide {
    position: relative;
    display: block;
    flex: 0 0 calc((min(100vw - 60px, 1450px) - 20px) / 2);
    width: calc((min(100vw - 60px, 1450px) - 20px) / 2);
    min-width: 0;
    aspect-ratio: 1.08 / 1;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #cad0d9;
}

.dvr-slide__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .7s ease;
}

.dvr-slide:hover .dvr-slide__image {
    transform: scale(1.025);
}

.dvr-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 18, 29, .08), rgba(11, 18, 29, .16)),
        linear-gradient(90deg, rgba(11, 18, 29, .05), rgba(11, 18, 29, .02));
    pointer-events: none;
}

.dvr-message-card {
    position: absolute;
    top: clamp(28px, 6.5%, 52px);
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(68%, 455px);
    max-height: calc(100% - 80px);
    padding: 20px 21px 18px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 15px;
    background: rgba(42, 42, 46, .96);
    box-shadow: 0 22px 46px rgba(8, 15, 27, .26);
    transform: translateX(-50%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.dvr-message-card__header {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.dvr-message-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(145deg, #7569b6 0%, #50418d 52%, #2a264a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.dvr-message-card__person {
    display: block;
    min-width: 0;
}

.dvr-message-card__person strong,
.dvr-message-card__person span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dvr-message-card__person strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.dvr-message-card__person span {
    color: rgba(255,255,255,.48);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.dvr-message-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: 7px;
}

.dvr-message-card__time {
    color: rgba(255,255,255,.55);
    font-size: 11px;
    line-height: 1;
}

.dvr-message-card__attachment {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: rgba(255,255,255,.23);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvr-message-card__divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 17px 0 18px;
    background: rgba(255,255,255,.075);
}

.dvr-message-card__body {
    min-height: 0;
    overflow: hidden;
}

.dvr-message-card__text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.64;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
}

.dvr-message-card.is-expanded .dvr-message-card__body {
    overflow-y: auto;
    padding-right: 4px;
}

.dvr-message-card.is-expanded .dvr-message-card__text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.dvr-message-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 19px;
}

.dvr-message-card__more {
    margin: 0;
    padding: 0;
    color: #159ce4;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.dvr-message-card__more:hover,
.dvr-message-card__more:focus {
    color: #44b6f3;
    outline: none;
    background: transparent;
}

.dvr-message-card__reply {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    fill: none;
    stroke: #159ce4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dvr-reviews__progress {
    position: relative;
    width: 100%;
    height: 2px;
    margin-top: 26px;
    overflow: hidden;
    background: rgba(41, 79, 149, .12);
}

.dvr-reviews__progress span {
    display: block;
    width: 20%;
    height: 100%;
    background: var(--dvr-blue);
    transition: width .2s ease;
}

@media (max-width: 1000px) {
    .dvr-slide {
        flex-basis: calc(100vw - 60px);
        width: calc(100vw - 60px);
        aspect-ratio: 1.2 / 1;
    }

    .dvr-message-card {
        width: min(62%, 465px);
    }
}

@media (max-width: 760px) {
    .dvr-reviews__shell {
        width: calc(100% - 34px);
        padding: 76px 0;
    }

    .dvr-reviews__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 28px;
    }

    .dvr-reviews__eyebrow {
        gap: 10px;
        margin-bottom: 15px;
        font-size: 11px;
    }

    .dvr-reviews__eyebrow::before {
        width: 28px;
        flex-basis: 28px;
    }

    .dvr-reviews__title {
        font-size: 35px;
        line-height: 1.1;
    }

    .dvr-reviews__tools {
        width: 100%;
    }

    .dvr-reviews__hint {
        margin-right: auto;
        font-size: 10px;
    }

    .dvr-reviews__control {
        width: 44px;
        height: 44px;
    }

    .dvr-reviews__track {
        gap: 14px;
    }

    .dvr-slide {
        flex-basis: calc(100vw - 34px);
        width: calc(100vw - 34px);
        aspect-ratio: .92 / 1;
    }

    .dvr-message-card {
        width: calc(100% - 38px);
        max-height: calc(100% - 38px);
        padding: 17px 17px 15px;
        border-radius: 14px;
    }

    .dvr-message-card__header {
        grid-template-columns: 42px minmax(0,1fr) auto;
        gap: 10px;
    }

    .dvr-message-card__avatar {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .dvr-message-card__person strong {
        font-size: 14px;
    }

    .dvr-message-card__person span {
        font-size: 11px;
    }

    .dvr-message-card__text {
        font-size: 13px;
        line-height: 1.62;
        -webkit-line-clamp: 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dvr-reviews__viewport,
    .dvr-slide__image {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* =========================================================
   PROJECT DETAIL — COMPACT WHEN DESCRIPTION IS EMPTY
   ========================================================= */
.dvp-project-detail--no-description .dvp-project-detail__hero {
    padding-bottom: 54px;
}

.dvp-project-detail--no-description .dvp-project-detail__gallery-section {
    padding-top: 54px;
}

@media (max-width: 700px) {
    .dvp-project-detail--no-description .dvp-project-detail__hero {
        padding-bottom: 38px;
    }

    .dvp-project-detail--no-description .dvp-project-detail__gallery-section {
        padding-top: 44px;
    }
}


/* =========================================================
   PROJECT DETAIL — FIXED HEADER / MOBILE BACK BUTTON
   ========================================================= */
.donvena-project-detail-page {
    --dvp-site-header-offset: 0px;
}

.dvp-project-detail__back {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--dvp-line-strong);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.dvp-project-detail__back:hover,
.dvp-project-detail__back:focus-visible {
    color: var(--dvp-white) !important;
    border-color: var(--dvp-blue);
    background: var(--dvp-blue);
    outline: none;
}

@media (max-width: 700px) {
    .dvp-project-detail__hero {
        /* JS sets this to the actual sticky/fixed header height when present. */
        padding-top: calc(28px + var(--dvp-site-header-offset, 0px));
    }

    .dvp-project-detail__back {
        position: relative;
        z-index: 6;
        width: fit-content;
        max-width: 100%;
        margin: 0 0 28px;
        padding: 10px 14px;
        font-size: 11px;
        letter-spacing: .07em;
        background: #ffffff;
    }

    .dvp-project-detail__back svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .dvp-project-detail__hero::before {
        top: calc(-240px + var(--dvp-site-header-offset, 0px));
    }
}

body.admin-bar.donvena-project-detail-page {
    --dvp-admin-bar-extra: 32px;
}

@media (max-width: 782px) {
    body.admin-bar.donvena-project-detail-page {
        --dvp-admin-bar-extra: 46px;
    }
}


/* =========================================================
   V1.5.4 — FULL-BLEED MEDIA ON REVIEWS + PROJECT CARDS
   ========================================================= */
.dvr-slide {
    background-image: var(--dvr-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.dvr-slide__image,
.dv-onepage--projects-shortcode .dv-project__image,
.donvena-gallery-project__image {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* The gallery no longer needs the blurred letterbox background because
   project images now crop edge-to-edge. */
.donvena-gallery-project__media::before {
    opacity: 0 !important;
}


/* =========================================================
   REVIEW CARD — TOP POSITIONING
   ========================================================= */
@media (max-width: 1000px) {
    .dvr-message-card {
        top: 28px;
        max-height: calc(100% - 56px);
    }
}

@media (max-width: 760px) {
    .dvr-message-card {
        top: 20px;
        width: calc(100% - 34px);
        max-height: calc(100% - 40px);
    }
}


/* =========================================================
   V1.5.6 — REVIEW IMAGE ALWAYS FILLS + HEADER-SAFE BACK LINK
   ========================================================= */
.dvr-slide {
    background-image: var(--dvr-image) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #cad0d9;
}

/* The CSS background is the authoritative review photo. This avoids theme
   image rules forcing an <img> back to height:auto and exposing empty space. */
.dvr-slide__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* JS calculates only the amount actually required to clear the visible site
   header. The normal desktop/mobile padding stays intact. */
.donvena-project-detail-page .dvp-project-detail__hero {
    padding-top: calc(70px + var(--dvp-site-header-offset, 0px)) !important;
}

.donvena-project-detail-page .dvp-project-detail__back {
    position: relative;
    z-index: 20;
}

@media (max-width: 700px) {
    .donvena-project-detail-page .dvp-project-detail__hero {
        padding-top: calc(28px + var(--dvp-site-header-offset, 0px)) !important;
    }
}

/* =========================================================
   V1.5.7 — SMOOTH REVIEW EXPAND / COLLAPSE
   ========================================================= */
/* JS measures the exact collapsed and full text heights. Keeping the text as
   a normal block lets max-height animate instead of the old line-clamp switch. */
.dvr-message-card__body {
    overflow: hidden !important;
    transition: max-height .48s cubic-bezier(.22, .72, .18, 1);
    will-change: max-height;
}

.dvr-message-card__text,
.dvr-message-card.is-expanded .dvr-message-card__text {
    display: block !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

.dvr-message-card.is-expanded .dvr-message-card__body {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Avoid flashing a button before JS has determined whether there is actually
   more text than the collapsed state can show. */
.dvr-reviews:not(.is-more-ready) .dvr-message-card__more {
    visibility: hidden;
}

.dvr-message-card__more[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .dvr-message-card__body {
        transition: none !important;
    }
}


/* =========================================================
   V1.6.2 — MOBILE REVIEW EXPANSION MUST GROW THE SLIDE
   =========================================================
   On mobile the review card previously stayed absolutely positioned inside
   a fixed-aspect-ratio slide with max-height + overflow clipping. The button
   state changed, but the newly revealed text had nowhere to grow, so it looked
   like "Skaityti daugiau" did nothing. On narrow screens the card now
   participates in normal layout and can increase the slide height smoothly.
*/
@media (max-width: 760px) {
    .dvr-slide {
        display: block !important;
        aspect-ratio: auto !important;
        min-height: calc((100vw - 34px) / 0.92);
        height: auto !important;
        overflow: hidden !important;
    }

    .dvr-message-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: calc(100% - 34px) !important;
        max-height: none !important;
        margin: 20px auto !important;
        transform: none !important;
        overflow: hidden !important;
    }

    .dvr-message-card.is-expanded {
        max-height: none !important;
    }

    .dvr-message-card__body,
    .dvr-message-card.is-expanded .dvr-message-card__body {
        overflow: hidden !important;
    }
}
