/* ======================================================================
   Hands for Humanity — unified content detail pages
   Appeals, campaigns and Islamic Giving items.
   Loaded after the legacy and interior styles.
   ====================================================================== */

:root {
    --ud-blue: #3d5483;
    --ud-blue-dark: #26375f;
    --ud-blue-soft: #edf1f8;
    --ud-ink: #17243e;
    --ud-text: #526078;
    --ud-muted: #7b8598;
    --ud-line: #dfe4ec;
    --ud-paper: #ffffff;
    --ud-canvas: #f4f6f9;
    --ud-shadow: 0 24px 70px rgba(26, 43, 78, .11);
    --ud-shadow-soft: 0 13px 36px rgba(26, 43, 78, .07);
}

.route-appeals-show,
.route-campaigns-show,
.route-islamic-giving-show {
    overflow-x: hidden;
}

.site-inner-v2 .unified-detail-v16 {
    padding: 28px 0 96px !important;
    background: var(--ud-canvas) !important;
    color: var(--ud-ink);
}

.site-inner-v2 .unified-detail-v16 .main-container {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-inline: auto !important;
    padding: 0 !important;
}

/* Breadcrumbs */
.unified-detail-v16 .unified-detail__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    color: var(--ud-muted);
    font-size: 13px;
    line-height: 1.5;
}

.unified-detail-v16 .unified-detail__breadcrumbs a {
    color: var(--ud-blue-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.unified-detail-v16 .unified-detail__breadcrumbs a:hover {
    text-decoration: underline !important;
}

.unified-detail-v16 .unified-detail__breadcrumbs i {
    color: #aab2c0;
    font-size: 9px;
}

[dir="rtl"] .unified-detail-v16 .unified-detail__breadcrumbs i {
    transform: rotate(180deg);
}

/* One compact opening surface: media + information. */
.unified-detail-v16 .unified-detail__showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, .82fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(38, 55, 95, .08);
    border-radius: 30px;
    background: var(--ud-paper);
    box-shadow: var(--ud-shadow);
}

.unified-detail-v16 .unified-detail__media {
    position: relative;
    display: block;
    min-width: 0;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    background: #dfe5ee;
}

.unified-detail-v16 .unified-detail__media::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(180deg, transparent, rgba(10, 27, 59, .24));
    pointer-events: none;
}

.unified-detail-v16 .unified-detail__media > img,
.unified-detail-v16 .unified-detail__media .campaign-gallery-main,
.unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-wrapper,
.unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide,
.unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide > a,
.unified-detail-v16 .unified-detail__media .campaign-gallery-main img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 520px !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

.unified-detail-v16 .unified-detail__media .campaign-gallery-main {
    position: absolute !important;
    inset: 0;
}

.unified-detail-v16 .campaign-gallery-main .swiper-button-next,
.unified-detail-v16 .campaign-gallery-main .swiper-button-prev {
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ud-blue-dark);
    box-shadow: 0 8px 22px rgba(15, 30, 61, .16);
}

.unified-detail-v16 .campaign-gallery-main .swiper-button-next::after,
.unified-detail-v16 .campaign-gallery-main .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.unified-detail-v16 .unified-detail__photo-count {
    position: absolute;
    z-index: 5;
    inset: auto 20px 20px auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: rgba(24, 42, 77, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .unified-detail-v16 .unified-detail__photo-count {
    inset: auto auto 20px 20px;
}

.unified-detail-v16 .unified-detail__summary {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(38px, 4.5vw, 62px);
    background: var(--ud-blue-dark);
    color: #fff;
}

.unified-detail-v16 .unified-detail__summary::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    inset: -210px -170px auto auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(255, 255, 255, .025), 0 0 0 116px rgba(255, 255, 255, .018);
}

.unified-detail-v16 .unified-detail__summary::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 180px;
    height: 5px;
    inset: auto auto 0 0;
    background: #fff;
    opacity: .72;
}

.unified-detail-v16 .unified-detail__kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
    margin-bottom: 20px;
    color: #cdd9f1;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
    line-height: 1.25;
    text-transform: uppercase;
}

.unified-detail-v16 .unified-detail__kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

.unified-detail-v16 .unified-detail__summary h1 {
    max-width: 540px;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(40px, 4vw, 59px) !important;
    font-weight: 650 !important;
    letter-spacing: -.043em !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
}

.unified-detail-v16 .unified-detail__lead {
    max-width: 560px;
    margin: 22px 0 0 !important;
    color: rgba(255, 255, 255, .76) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.unified-detail-v16 .unified-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.unified-detail-v16 .unified-detail__tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.unified-detail-v16 .unified-detail__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 31px;
}

.unified-detail-v16 .unified-detail__primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 19px;
    gap: 12px;
    border: 1px solid #fff;
    border-radius: 11px;
    background: #fff;
    color: var(--ud-blue-dark) !important;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease;
}

.unified-detail-v16 .unified-detail__primary-action:hover {
    transform: translateY(-2px);
    background: #edf2fb;
}

.unified-detail-v16 .unified-detail__share {
    display: flex;
    gap: 8px;
}

.unified-detail-v16 .unified-detail__share a {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(255, 255, 255, .27);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}

.unified-detail-v16 .unified-detail__share a:hover {
    background: #fff;
    color: var(--ud-blue-dark) !important;
}

[dir="rtl"] .unified-detail-v16 .unified-detail__media {
    order: 2;
}

[dir="rtl"] .unified-detail-v16 .unified-detail__summary {
    order: 1;
}

[dir="rtl"] .unified-detail-v16 .unified-detail__summary::before {
    inset: -210px auto auto -170px;
}

[dir="rtl"] .unified-detail-v16 .unified-detail__summary::after {
    inset: auto 0 0 auto;
}

/* Main article + supporting rail */
.unified-detail-v16 .unified-detail__content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 390px !important;
    align-items: start;
    gap: 32px !important;
    margin: 46px 0 0 !important;
}

/* Give the complete donation form enough room without changing the
   compact related-content rail used when donations are disabled. */
.unified-detail-v16 .unified-detail__content-grid:has(> .unified-detail__sidebar--donation) {
    grid-template-columns: minmax(0, 1fr) 470px !important;
    gap: 36px !important;
}

.unified-detail-v16 .unified-detail__content-grid--wide {
    grid-template-columns: minmax(0, 1fr) !important;
}

.unified-detail-v16 .unified-detail__main,
.unified-detail-v16 .unified-detail__sidebar {
    min-width: 0;
}

.unified-detail-v16 .unified-detail__sticky {
    position: sticky;
    top: 105px;
}

.unified-detail-v16 .campaign-description-card.unified-detail__article-card,
.unified-detail-v16 .unified-detail__section-card {
    margin: 0 0 28px !important;
    padding: clamp(30px, 4vw, 46px) !important;
    overflow: hidden;
    border: 1px solid var(--ud-line) !important;
    border-radius: 24px !important;
    background: var(--ud-paper) !important;
    box-shadow: var(--ud-shadow-soft) !important;
}

.unified-detail-v16 .unified-detail__section-card:empty {
    display: none;
}

.unified-detail-v16 .unified-detail__section-heading {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7eaf0;
}

.unified-detail-v16 .unified-detail__section-heading > span,
.unified-detail-v16 .unified-detail__section-heading > div > span {
    display: block;
    margin-bottom: 7px;
    color: var(--ud-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.unified-detail-v16 .unified-detail__section-heading h2 {
    margin: 0 !important;
    color: var(--ud-blue-dark) !important;
    font-size: clamp(27px, 3vw, 37px) !important;
    font-weight: 650 !important;
    letter-spacing: -.025em;
    line-height: 1.15 !important;
}

.unified-detail-v16 .unified-detail__section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.unified-detail-v16 .unified-detail__section-heading--row small {
    color: var(--ud-muted);
}

.unified-detail-v16 .campaign-desc-body,
.unified-detail-v16 .campaign-description.content-styled,
.unified-detail-v16 .ig-desc-body {
    color: var(--ud-text) !important;
    font-size: 16px !important;
    line-height: 1.95 !important;
    unicode-bidi: plaintext;
}

.unified-detail-v16 .campaign-desc-body p,
.unified-detail-v16 .campaign-description.content-styled p,
.unified-detail-v16 .ig-desc-body p {
    margin: 0 0 21px !important;
    color: inherit !important;
    font: inherit !important;
}

.unified-detail-v16 .campaign-desc-body p:last-child,
.unified-detail-v16 .campaign-description.content-styled p:last-child,
.unified-detail-v16 .ig-desc-body p:last-child {
    margin-bottom: 0 !important;
}

.unified-detail-v16 .campaign-desc-body h1,
.unified-detail-v16 .campaign-desc-body h2,
.unified-detail-v16 .campaign-desc-body h3,
.unified-detail-v16 .campaign-desc-body h4,
.unified-detail-v16 .campaign-description.content-styled h1,
.unified-detail-v16 .campaign-description.content-styled h2,
.unified-detail-v16 .campaign-description.content-styled h3,
.unified-detail-v16 .campaign-description.content-styled h4,
.unified-detail-v16 .ig-desc-body h1,
.unified-detail-v16 .ig-desc-body h2,
.unified-detail-v16 .ig-desc-body h3,
.unified-detail-v16 .ig-desc-body h4 {
    margin: 36px 0 15px !important;
    color: var(--ud-blue-dark) !important;
    font-weight: 650 !important;
    letter-spacing: -.02em;
    line-height: 1.22 !important;
}

.unified-detail-v16 .campaign-desc-body h1:first-child,
.unified-detail-v16 .campaign-desc-body h2:first-child,
.unified-detail-v16 .campaign-desc-body h3:first-child,
.unified-detail-v16 .campaign-description.content-styled h1:first-child,
.unified-detail-v16 .campaign-description.content-styled h2:first-child,
.unified-detail-v16 .campaign-description.content-styled h3:first-child {
    margin-top: 0 !important;
}

.unified-detail-v16 .campaign-desc-body h1,
.unified-detail-v16 .campaign-desc-body h2,
.unified-detail-v16 .campaign-description.content-styled h1,
.unified-detail-v16 .campaign-description.content-styled h2,
.unified-detail-v16 .ig-desc-body h1,
.unified-detail-v16 .ig-desc-body h2 {
    font-size: clamp(28px, 3vw, 38px) !important;
}

.unified-detail-v16 .campaign-desc-body ul,
.unified-detail-v16 .campaign-desc-body ol,
.unified-detail-v16 .campaign-description.content-styled ul,
.unified-detail-v16 .campaign-description.content-styled ol,
.unified-detail-v16 .ig-desc-body ul,
.unified-detail-v16 .ig-desc-body ol {
    margin: 0 0 23px;
    padding-inline-start: 23px;
}

.unified-detail-v16 .campaign-desc-body li,
.unified-detail-v16 .campaign-description.content-styled li,
.unified-detail-v16 .ig-desc-body li {
    margin-bottom: 8px;
    line-height: 1.85;
}

.unified-detail-v16 .campaign-desc-body img,
.unified-detail-v16 .campaign-description.content-styled img,
.unified-detail-v16 .ig-desc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* Imported long-form layouts remain readable inside the new article width. */
.unified-detail-v16 .imported-project-intro,
.unified-detail-v16 .imported-project-text-section,
.unified-detail-v16 .imported-project-feature,
.unified-detail-v16 .campaign-description-prices {
    margin-bottom: 30px !important;
}

.unified-detail-v16 .imported-project-feature {
    display: grid !important;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--ud-line) !important;
    border-radius: 20px !important;
    background: #f8f9fb;
    box-shadow: none !important;
}

.unified-detail-v16 .imported-project-feature__media {
    width: auto !important;
    min-height: 300px;
    margin: 0 !important;
    float: none !important;
}

.unified-detail-v16 .imported-project-feature__media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    box-shadow: none !important;
}

.unified-detail-v16 .imported-project-feature__content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 30px !important;
}

.unified-detail-v16 .imported-project-feature--image-right .imported-project-feature__media {
    order: 2;
}

.unified-detail-v16 .imported-project-feature--image-right .imported-project-feature__content {
    order: 1;
}

.unified-detail-v16 .imported-project-banner {
    position: relative;
    min-height: 390px !important;
    overflow: hidden;
    border-radius: 20px !important;
}

.unified-detail-v16 .imported-project-banner__media,
.unified-detail-v16 .imported-project-banner__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    object-fit: cover;
}

.unified-detail-v16 .imported-project-banner__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 390px !important;
    padding: 40px !important;
}

.unified-detail-v16 .imported-project-banner__overlay h1,
.unified-detail-v16 .imported-project-banner__overlay h2,
.unified-detail-v16 .imported-project-banner__overlay h3,
.unified-detail-v16 .imported-project-banner__overlay h4,
.unified-detail-v16 .imported-project-banner__overlay p {
    margin: 0 !important;
    color: #fff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .22);
}

.unified-detail-v16 .page-section-html .container,
.unified-detail-v16 .page-section-faq .container,
.unified-detail-v16 .page-section-stats .container,
.unified-detail-v16 .page-section-video .container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 0 !important;
}

/* Donation panel */
.unified-detail-v16 .unified-detail__donation-panel,
.unified-detail-v16 .sidebar-box {
    margin: 0 0 24px !important;
    padding: 22px !important;
    overflow: hidden;
    border: 1px solid var(--ud-line) !important;
    border-radius: 22px !important;
    background: var(--ud-paper) !important;
    box-shadow: var(--ud-shadow-soft) !important;
}

.unified-detail-v16 .unified-detail__panel-heading {
    margin-bottom: 23px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7eaf0;
}

.unified-detail-v16 .unified-detail__panel-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--ud-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.unified-detail-v16 .unified-detail__panel-heading h2,
.unified-detail-v16 .sidebar-box > h2 {
    margin: 0 !important;
    color: var(--ud-blue-dark) !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    line-height: 1.25 !important;
}

.unified-detail-v16 .sidebar-box > h2 {
    margin-bottom: 18px !important;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7eaf0;
}

.unified-detail-v16 .campaign-progress-bar {
    margin: 0 0 24px !important;
}

.unified-detail-v16 .campaign-donation-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.unified-detail-v16 .unified-detail__donation-panel .donation-box {
    padding: 24px !important;
}

.unified-detail-v16 .unified-detail__donation-panel .donation-main__actions {
    grid-template-columns: 1fr 1.35fr;
}

.unified-detail-v16 .unified-detail__donation-panel .donation-btn {
    padding-inline: 14px;
}

/* Related content */
.unified-detail-v16 .related-campaign-card {
    display: grid !important;
    grid-template-columns: 98px minmax(0, 1fr) !important;
    min-height: 112px;
    margin: 0 0 12px !important;
    overflow: hidden !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 15px !important;
    background: #f8f9fb !important;
    box-shadow: none !important;
}

.unified-detail-v16 .related-campaign-card:last-child {
    margin-bottom: 0 !important;
}

.unified-detail-v16 .related-campaign-img {
    display: block !important;
    width: 98px !important;
    height: 100% !important;
    min-height: 112px !important;
    overflow: hidden;
}

.unified-detail-v16 .related-campaign-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 112px !important;
    object-fit: cover !important;
}

.unified-detail-v16 .related-campaign-body {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 13px !important;
}

.unified-detail-v16 .unified-detail__related-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ud-blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.unified-detail-v16 .related-campaign-body h3,
.unified-detail-v16 .related-campaign-body h4 {
    margin: 0 0 9px !important;
    color: var(--ud-blue-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.unified-detail-v16 .related-campaign-body h3 a,
.unified-detail-v16 .related-campaign-body h4 a {
    color: inherit !important;
    text-decoration: none !important;
}

.unified-detail-v16 .related-campaign-body p,
.unified-detail-v16 .related-amounts,
.unified-detail-v16 .mini-progress {
    display: none !important;
}

.unified-detail-v16 .related-donate-btn {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-top: 0 !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    background: var(--ud-blue-dark) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.unified-detail-v16 .related-donate-btn:hover {
    background: var(--ud-blue) !important;
}

.unified-detail-v16 .category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.unified-detail-v16 .category-list li + li {
    border-top: 1px solid #e9ecf1;
}

.unified-detail-v16 .category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    color: var(--ud-text) !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
}

.unified-detail-v16 .category-list a:hover {
    color: var(--ud-blue) !important;
}

[dir="rtl"] .unified-detail-v16 .category-list i,
[dir="rtl"] .unified-detail-v16 .related-donate-btn i {
    transform: rotate(180deg);
}

/* Secondary gallery */
.unified-detail-v16 .unified-detail__gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.unified-detail-v16 .unified-detail__gallery-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #e5e9ef;
}

.unified-detail-v16 .unified-detail__gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.unified-detail-v16 .unified-detail__gallery-grid a:hover img {
    transform: scale(1.045);
}

@media (max-width: 1199.98px) {
    .unified-detail-v16 .unified-detail__showcase {
        grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
    }

    .unified-detail-v16 .unified-detail__content-grid {
        grid-template-columns: minmax(0, 1fr) 360px !important;
    }

    .unified-detail-v16 .unified-detail__content-grid:has(> .unified-detail__sidebar--donation) {
        grid-template-columns: minmax(0, 1fr) 430px !important;
        gap: 28px !important;
    }
}

@media (max-width: 991.98px) {
    .site-inner-v2 .unified-detail-v16 .main-container {
        width: min(100% - 32px, 760px) !important;
    }

    .unified-detail-v16 .unified-detail__showcase {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .unified-detail-v16 .unified-detail__media,
    .unified-detail-v16 .unified-detail__media > img,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-wrapper,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide > a,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main img {
        height: 410px !important;
        min-height: 410px !important;
    }

    .unified-detail-v16 .unified-detail__media .campaign-gallery-main {
        position: relative !important;
    }

    .unified-detail-v16 .unified-detail__summary {
        padding: 38px;
    }

    [dir="rtl"] .unified-detail-v16 .unified-detail__media,
    [dir="rtl"] .unified-detail-v16 .unified-detail__summary {
        order: initial;
    }

    .unified-detail-v16 .unified-detail__content-grid {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        margin-top: 32px !important;
    }

    .unified-detail-v16 .unified-detail__content-grid:has(> .unified-detail__sidebar--donation) {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    .unified-detail-v16 .unified-detail__sidebar--donation {
        order: -1;
    }

    .unified-detail-v16 .unified-detail__sticky {
        position: static;
    }

    .unified-detail-v16 .imported-project-feature {
        grid-template-columns: 1fr;
    }

    .unified-detail-v16 .imported-project-feature__media,
    .unified-detail-v16 .imported-project-feature__content {
        order: initial !important;
    }
}

@media (max-width: 575.98px) {
    .site-inner-v2 .unified-detail-v16 {
        padding: 20px 0 72px !important;
    }

    .site-inner-v2 .unified-detail-v16 .main-container {
        width: calc(100% - 20px) !important;
    }

    .unified-detail-v16 .unified-detail__breadcrumbs {
        margin-bottom: 16px;
        font-size: 11px;
    }

    .unified-detail-v16 .unified-detail__showcase {
        border-radius: 21px;
    }

    .unified-detail-v16 .unified-detail__media,
    .unified-detail-v16 .unified-detail__media > img,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-wrapper,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main .swiper-slide > a,
    .unified-detail-v16 .unified-detail__media .campaign-gallery-main img {
        height: 285px !important;
        min-height: 285px !important;
    }

    .unified-detail-v16 .unified-detail__summary {
        padding: 29px 24px 34px;
    }

    .unified-detail-v16 .unified-detail__summary h1 {
        font-size: clamp(34px, 10.5vw, 45px) !important;
        line-height: 1.06 !important;
    }

    .unified-detail-v16 .unified-detail__lead {
        margin-top: 17px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .unified-detail-v16 .unified-detail__tags {
        margin-top: 20px;
    }

    .unified-detail-v16 .unified-detail__actions {
        margin-top: 24px;
    }

    .unified-detail-v16 .unified-detail__primary-action {
        flex: 1 1 auto;
    }

    .unified-detail-v16 .campaign-description-card.unified-detail__article-card,
    .unified-detail-v16 .unified-detail__section-card,
    .unified-detail-v16 .unified-detail__donation-panel,
    .unified-detail-v16 .sidebar-box {
        padding: 21px !important;
        border-radius: 18px !important;
    }

    .unified-detail-v16 .campaign-desc-body,
    .unified-detail-v16 .campaign-description.content-styled,
    .unified-detail-v16 .ig-desc-body {
        font-size: 15px !important;
        line-height: 1.9 !important;
    }

    .unified-detail-v16 .unified-detail__gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .unified-detail-v16 .related-campaign-card {
        grid-template-columns: 90px minmax(0, 1fr) !important;
    }

    .unified-detail-v16 .related-campaign-img {
        width: 90px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .unified-detail-v16 .unified-detail__primary-action,
    .unified-detail-v16 .unified-detail__share a,
    .unified-detail-v16 .unified-detail__gallery-grid img {
        transition: none !important;
    }
}
