/*
 * ED Gallery Redesign v1.0.4
 * Visual-only styles, loaded exclusively on /gallery/.
 * v1.0.4: targets the actual grid-item/thumbnail-wrap gallery DOM with visible iOS glass shells.
 */

body.ed-gallery-redesign {
    --ed-gold: #d9a52e;
    --ed-gold-soft: rgba(217, 165, 46, .20);
    --ed-text: #f7f6f4;
    --ed-muted: rgba(255,255,255,.72);
    --ed-bg: #918e8d;
    --ed-bg-deep: #858281;
    --ed-glass: rgba(255,255,255,.20);
    --ed-glass-strong: rgba(255,255,255,.27);
    --ed-glass-border: rgba(255,255,255,.48);
    --ed-glass-highlight: rgba(255,255,255,.76);
    --ed-radius: 30px;
    background: var(--ed-bg) !important;
}

/* Grey canvas close to the ED header/footer family. */
body.ed-gallery-redesign .site-content,
body.ed-gallery-redesign #content,
body.ed-gallery-redesign main,
body.ed-gallery-redesign .content-area,
body.ed-gallery-redesign .site-main,
body.ed-gallery-redesign .elementor,
body.ed-gallery-redesign .elementor-page,
body.ed-gallery-redesign .elementor-location-single,
body.ed-gallery-redesign .elementor-section-wrap {
    background:
        radial-gradient(circle at 50% -8%, rgba(255,255,255,.16), transparent 36%),
        linear-gradient(180deg, #989594 0%, var(--ed-bg) 44%, var(--ed-bg-deep) 100%) !important;
}

body.ed-gallery-redesign main .e-con,
body.ed-gallery-redesign main .elementor-section,
body.ed-gallery-redesign #content .e-con,
body.ed-gallery-redesign #content .elementor-section {
    background-color: transparent;
}

body.ed-gallery-redesign .site-content,
body.ed-gallery-redesign #content,
body.ed-gallery-redesign main {
    overflow: clip;
}

/* Existing Elementor heading becomes the gallery hero. */
body.ed-gallery-redesign .ed-gallery-hero {
    position: relative;
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: clamp(54px, 7vw, 96px) !important;
    padding-bottom: clamp(34px, 4.5vw, 58px) !important;
}

body.ed-gallery-redesign .ed-gallery-title {
    max-width: 960px;
    margin: 0 auto !important;
    text-align: center;
    color: var(--ed-text) !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.18);
    font-size: clamp(31px, 4.5vw, 58px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    font-weight: 760 !important;
    text-wrap: balance;
}

body.ed-gallery-redesign .ed-gallery-title::before {
    content: 'OUR WORK';
    display: block;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 7px 13px;
    border: 1px solid rgba(217,165,46,.55);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 24px rgba(0,0,0,.08);
    color: #efbb42;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

body.ed-gallery-redesign .ed-gallery-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: var(--ed-gold);
    box-shadow: 0 0 20px rgba(217,165,46,.26);
}

/* Gallery width + layout. */
body.ed-gallery-redesign .elementor-widget-image-gallery,
body.ed-gallery-redesign .elementor-widget-gallery,
body.ed-gallery-redesign .elementor-image-gallery {
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.ed-gallery-redesign .elementor-image-gallery .gallery,
body.ed-gallery-redesign .elementor-widget-image-gallery .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px !important;
    align-items: start;
    margin: 0 !important;
}

body.ed-gallery-redesign .elementor-image-gallery .gallery-item,
body.ed-gallery-redesign .elementor-widget-image-gallery .gallery-item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.ed-gallery-redesign .elementor-gallery__container {
    --vgap: 22px !important;
    --hgap: 22px !important;
}

/* Premium iOS glass card shell — intentionally visible around each photo. */
body.ed-gallery-redesign .elementor-gallery-item,
body.ed-gallery-redesign .gallery-item a,
body.ed-gallery-redesign .ed-gallery-card {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden !important;
    padding: 12px !important;
    border: 1px solid rgba(255,255,255,.52) !important;
    border-radius: var(--ed-radius) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.34), transparent 35%),
        linear-gradient(145deg, rgba(255,255,255,.27) 0%, rgba(255,255,255,.16) 43%, rgba(255,255,255,.09) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.88),
        inset 0 -1px 0 rgba(255,255,255,.14),
        0 2px 0 rgba(255,255,255,.12),
        0 18px 38px rgba(31,28,28,.24),
        0 6px 14px rgba(31,28,28,.12) !important;
    -webkit-backdrop-filter: blur(28px) saturate(175%);
    backdrop-filter: blur(28px) saturate(175%);
    transform: translateZ(0);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

/* Bright upper rim + subtle glass refraction. */
body.ed-gallery-redesign .elementor-gallery-item::before,
body.ed-gallery-redesign .gallery-item a::before,
body.ed-gallery-redesign .ed-gallery-card::before {
    content: '';
    position: absolute;
    z-index: 4;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(125deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.10) 22%, transparent 43%),
        linear-gradient(180deg, rgba(255,255,255,.15), transparent 26%);
    opacity: .78;
}

/* Thin inner rim makes the acrylic/glass edge readable even on bright photos. */
body.ed-gallery-redesign .elementor-gallery-item::after,
body.ed-gallery-redesign .gallery-item a::after,
body.ed-gallery-redesign .ed-gallery-card::after {
    content: '';
    position: absolute;
    z-index: 5;
    pointer-events: none;
    inset: 6px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: calc(var(--ed-radius) - 6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

body.ed-gallery-redesign .elementor-gallery-item:hover,
body.ed-gallery-redesign .gallery-item a:hover,
body.ed-gallery-redesign .ed-gallery-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239,187,66,.70) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.40), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.32), rgba(255,255,255,.19) 43%, rgba(217,165,46,.11)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 26px 54px rgba(31,28,28,.28),
        0 0 0 1px rgba(217,165,46,.20),
        0 0 34px rgba(217,165,46,.16) !important;
}

/* Photo is inset inside the glass shell, so the card itself remains visible. */
body.ed-gallery-redesign .gallery-item img,
body.ed-gallery-redesign .ed-gallery-card img,
body.ed-gallery-redesign .elementor-gallery-item__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: auto !important;
    border: 0 !important;
    border-radius: calc(var(--ed-radius) - 13px) !important;
    box-shadow:
        0 10px 26px rgba(20,18,18,.22),
        inset 0 0 0 1px rgba(255,255,255,.08);
    transition: transform .5s cubic-bezier(.2,.65,.3,1), filter .35s ease;
    will-change: transform;
}

body.ed-gallery-redesign .gallery-item a:hover img,
body.ed-gallery-redesign .ed-gallery-card:hover img,
body.ed-gallery-redesign .elementor-gallery-item:hover .elementor-gallery-item__image {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

/* Elementor Pro gallery overlay stays subtle. */
body.ed-gallery-redesign .elementor-gallery-item__overlay {
    z-index: 2;
    inset: 12px !important;
    border-radius: calc(var(--ed-radius) - 13px) !important;
    background: linear-gradient(to top, rgba(0,0,0,.20), rgba(0,0,0,0) 48%) !important;
    opacity: .22;
    transition: opacity .3s ease;
}

body.ed-gallery-redesign .elementor-gallery-item:hover .elementor-gallery-item__overlay {
    opacity: .42;
}

/* Existing Instagram area inherits the same glass language. */
body.ed-gallery-redesign .ed-gallery-instagram,
body.ed-gallery-redesign .ed-gallery-instagram-wrap {
    position: relative;
    z-index: 1;
}

body.ed-gallery-redesign .ed-gallery-instagram-title {
    margin-top: clamp(64px,8vw,104px) !important;
    margin-bottom: 16px !important;
    text-align: center;
    color: rgba(255,255,255,.74) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase;
}

body.ed-gallery-redesign .ed-gallery-instagram-title::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--ed-gold);
}

body.ed-gallery-redesign .ed-gallery-instagram-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.12) !important;
    color: #f1bc42 !important;
    font-weight: 760 !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 30px rgba(0,0,0,.12);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body.ed-gallery-redesign .ed-gallery-instagram-link::after {
    content: '↗';
    font-size: 16px;
    line-height: 1;
}

body.ed-gallery-redesign .ed-gallery-instagram-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(217,165,46,.58) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 14px 34px rgba(0,0,0,.16), 0 0 24px rgba(217,165,46,.08);
}

body.ed-gallery-redesign .ed-gallery-instagram-wrap {
    text-align: center;
    padding-bottom: clamp(60px,7vw,94px) !important;
}

body.ed-gallery-redesign .gallery-caption,
body.ed-gallery-redesign .elementor-gallery-item__title,
body.ed-gallery-redesign .elementor-gallery-item__description {
    color: var(--ed-text) !important;
}

@media (max-width: 1024px) {
    body.ed-gallery-redesign .elementor-image-gallery .gallery,
    body.ed-gallery-redesign .elementor-widget-image-gallery .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px !important;
    }

    body.ed-gallery-redesign .elementor-gallery__container {
        --vgap: 16px !important;
        --hgap: 16px !important;
    }
}

@media (max-width: 767px) {
    body.ed-gallery-redesign {
        --ed-radius: 20px;
    }

    body.ed-gallery-redesign .ed-gallery-hero {
        padding-top: 40px !important;
        padding-bottom: 26px !important;
    }

    body.ed-gallery-redesign .ed-gallery-title {
        padding-left: 18px;
        padding-right: 18px;
        font-size: clamp(28px,9vw,42px) !important;
        letter-spacing: -.03em !important;
    }

    body.ed-gallery-redesign .elementor-image-gallery .gallery,
    body.ed-gallery-redesign .elementor-widget-image-gallery .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px !important;
    }

    body.ed-gallery-redesign .elementor-gallery__container {
        --vgap: 12px !important;
        --hgap: 12px !important;
    }

    body.ed-gallery-redesign .elementor-gallery-item,
    body.ed-gallery-redesign .gallery-item a,
    body.ed-gallery-redesign .ed-gallery-card {
        padding: 6px !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.40), 0 12px 28px rgba(31,28,28,.18) !important;
    }

    body.ed-gallery-redesign .gallery-item img,
    body.ed-gallery-redesign .ed-gallery-card img,
    body.ed-gallery-redesign .elementor-gallery-item__image,
    body.ed-gallery-redesign .elementor-gallery-item__overlay {
        border-radius: 14px !important;
    }

    body.ed-gallery-redesign .gallery-item a::after,
    body.ed-gallery-redesign .ed-gallery-card::after {
        display: none;
    }
}

@media (max-width: 420px) {
    body.ed-gallery-redesign .elementor-image-gallery .gallery,
    body.ed-gallery-redesign .elementor-widget-image-gallery .gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ed-gallery-redesign .gallery-item img,
    body.ed-gallery-redesign .ed-gallery-card img,
    body.ed-gallery-redesign .elementor-gallery-item__image,
    body.ed-gallery-redesign .elementor-gallery-item,
    body.ed-gallery-redesign .gallery-item a,
    body.ed-gallery-redesign .ed-gallery-card {
        transition: none !important;
    }
}


/* v1.0.4 — Actual gallery DOM from inspector:
 * .grid-item > .thumbnail-wrap + a.gallery-link > .caption-wrap
 * The GLASS must live on .grid-item, not only on the image/link.
 */
body.ed-gallery-redesign .grid-item {
    position: relative !important;
    isolation: isolate;
    box-sizing: border-box !important;
    padding: 10px !important;
    border: 1px solid rgba(255,255,255,.54) !important;
    border-radius: 32px !important;
    background:
        radial-gradient(circle at 18% -10%, rgba(255,255,255,.44), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.16) 46%, rgba(255,255,255,.09) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.92),
        inset 0 -1px 0 rgba(255,255,255,.12),
        0 18px 40px rgba(48,43,42,.22),
        0 4px 12px rgba(48,43,42,.12) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

body.ed-gallery-redesign .grid-item::before {
    content: '';
    position: absolute;
    z-index: 6;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(125deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,.12) 20%, transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 32%);
    opacity: .82;
}

body.ed-gallery-redesign .grid-item::after {
    content: '';
    position: absolute;
    z-index: 6;
    pointer-events: none;
    inset: 5px;
    border-radius: 27px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

body.ed-gallery-redesign .grid-item:hover {
    transform: translateY(-5px);
    border-color: rgba(229,177,57,.78) !important;
    background:
        radial-gradient(circle at 18% -10%, rgba(255,255,255,.50), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,.31), rgba(255,255,255,.18) 46%, rgba(217,165,46,.10)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.98),
        0 25px 54px rgba(48,43,42,.27),
        0 0 0 1px rgba(217,165,46,.16),
        0 0 30px rgba(217,165,46,.15) !important;
}

/* Inner photo surface: inset so the glass frame is always visible. */
body.ed-gallery-redesign .grid-item > .thumbnail-wrap,
body.ed-gallery-redesign .grid-item > .gallery-link {
    border-radius: 23px !important;
}

body.ed-gallery-redesign .grid-item > .thumbnail-wrap {
    position: relative !important;
    z-index: 1;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(34,30,29,.24) !important;
}

body.ed-gallery-redesign .grid-item > .gallery-link {
    z-index: 2;
    overflow: hidden !important;
    inset: 10px !important;
}

body.ed-gallery-redesign .grid-item .thumbnail-wrap img,
body.ed-gallery-redesign .grid-item img {
    border-radius: 23px !important;
    transition: transform .5s cubic-bezier(.2,.65,.3,1), filter .35s ease;
}

body.ed-gallery-redesign .grid-item:hover .thumbnail-wrap img,
body.ed-gallery-redesign .grid-item:hover img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

/* Keep the existing hover caption inside the photo, not across the glass rim. */
body.ed-gallery-redesign .grid-item .caption-wrap {
    border-radius: 23px !important;
    overflow: hidden !important;
}

/* Slightly darker header-matching neutral grey so translucent cards have contrast. */
body.ed-gallery-redesign {
    --ed-bg: #85817f;
    --ed-bg-deep: #777371;
}

body.ed-gallery-redesign .site-content,
body.ed-gallery-redesign #content,
body.ed-gallery-redesign main,
body.ed-gallery-redesign .content-area,
body.ed-gallery-redesign .site-main,
body.ed-gallery-redesign .elementor,
body.ed-gallery-redesign .elementor-page,
body.ed-gallery-redesign .elementor-location-single,
body.ed-gallery-redesign .elementor-section-wrap {
    background:
        radial-gradient(circle at 50% -10%, rgba(255,255,255,.14), transparent 36%),
        linear-gradient(180deg, #918d8b 0%, #85817f 48%, #777371 100%) !important;
}

@media (max-width: 767px) {
    body.ed-gallery-redesign .grid-item {
        padding: 7px !important;
        border-radius: 23px !important;
    }
    body.ed-gallery-redesign .grid-item::after {
        inset: 4px;
        border-radius: 19px;
    }
    body.ed-gallery-redesign .grid-item > .thumbnail-wrap,
    body.ed-gallery-redesign .grid-item > .gallery-link,
    body.ed-gallery-redesign .grid-item .caption-wrap,
    body.ed-gallery-redesign .grid-item img {
        border-radius: 17px !important;
    }
    body.ed-gallery-redesign .grid-item > .gallery-link {
        inset: 7px !important;
    }
}


/* ==========================================================
   V1.0.5 — Elementor Image widgets + legacy hover cleanup
   Based on the live DOM supplied from browser inspector.
   ========================================================== */

/* Individual Elementor Image widgets used alongside the grid gallery.
   The widget itself becomes the glass card so the effect is visible
   around the actual <img>, not painted over the photograph. */
body.ed-gallery-redesign .elementor-widget-image {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: 8px;
    border-radius: 34px;
    background:
        linear-gradient(145deg,
            rgba(255,255,255,.28) 0%,
            rgba(255,255,255,.10) 38%,
            rgba(255,255,255,.055) 100%);
    border: 1px solid rgba(255,255,255,.40);
    box-shadow:
        0 18px 42px rgba(20,20,24,.18),
        0 3px 10px rgba(20,20,24,.10),
        inset 0 1px 0 rgba(255,255,255,.58),
        inset 0 -1px 0 rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    transition: transform .28s ease, border-color .28s ease,
                box-shadow .28s ease, background .28s ease;
}

/* Glass highlight, deliberately outside the image. */
body.ed-gallery-redesign .elementor-widget-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    inset: 1px;
    border-radius: 32px;
    background: linear-gradient(135deg,
        rgba(255,255,255,.30) 0%,
        rgba(255,255,255,.08) 28%,
        rgba(255,255,255,0) 52%);
    opacity: .72;
    mix-blend-mode: screen;
}

/* Remove Elementor/widget backgrounds which can hide the glass shell. */
body.ed-gallery-redesign .elementor-widget-image > .elementor-widget-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 27px;
    background: transparent !important;
}

/* Direct-image DOM shown in Inspector:
   .elementor-widget-image > img */
body.ed-gallery-redesign .elementor-widget-image img,
body.ed-gallery-redesign .elementor-widget-image > img,
body.ed-gallery-redesign .elementor-widget-image .elementor-widget-container > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 27px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: transform .45s cubic-bezier(.2,.7,.2,1),
                filter .28s ease !important;
}

body.ed-gallery-redesign .elementor-widget-image:hover {
    transform: translateY(-3px);
    border-color: rgba(214,168,63,.72);
    background:
        linear-gradient(145deg,
            rgba(255,255,255,.34) 0%,
            rgba(255,255,255,.13) 42%,
            rgba(255,255,255,.07) 100%);
    box-shadow:
        0 24px 54px rgba(20,20,24,.23),
        0 0 0 1px rgba(214,168,63,.18),
        0 0 26px rgba(214,168,63,.10),
        inset 0 1px 0 rgba(255,255,255,.66);
}

body.ed-gallery-redesign .elementor-widget-image:hover img {
    transform: scale(1.018);
    filter: brightness(1.02) contrast(1.01) !important;
}

/* ---- Legacy gallery hover reset ----
   The gallery's original CSS inserts .item-hover-bg / caption overlays.
   Explicitly neutralize the old blue treatment without disabling links. */
body.ed-gallery-redesign .grid-item .item-hover-bg,
body.ed-gallery-redesign .grid-item .caption-wrap,
body.ed-gallery-redesign .grid-item .caption-wrap.style-overlay,
body.ed-gallery-redesign .grid-item .caption-wrap.style-overlay.overlay-fade,
body.ed-gallery-redesign .grid-item .item-caption-over,
body.ed-gallery-redesign .grid-item .caption-head,
body.ed-gallery-redesign .grid-item .caption-category {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Some gallery plugins put the blue layer in pseudo-elements. */
body.ed-gallery-redesign .grid-item .thumbnail-wrap::before,
body.ed-gallery-redesign .grid-item .thumbnail-wrap::after,
body.ed-gallery-redesign .grid-item .gallery-link::before,
body.ed-gallery-redesign .grid-item .gallery-link::after,
body.ed-gallery-redesign .grid-item .item-hover-bg::before,
body.ed-gallery-redesign .grid-item .item-hover-bg::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Keep overlay nodes from tinting the photograph. */
body.ed-gallery-redesign .grid-item .item-hover-bg {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.ed-gallery-redesign .grid-item .caption-wrap {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Keep our glass card hover instead of the legacy blue image hover. */
body.ed-gallery-redesign .grid-item:hover,
body.ed-gallery-redesign .grid-item:focus-within {
    border-color: rgba(214,168,63,.72) !important;
    box-shadow:
        0 24px 54px rgba(20,20,24,.23),
        0 0 0 1px rgba(214,168,63,.18),
        0 0 26px rgba(214,168,63,.10),
        inset 0 1px 0 rgba(255,255,255,.66) !important;
}

/* Ensure no inherited blue tint/filter survives on gallery thumbnails. */
body.ed-gallery-redesign .grid-item:hover img,
body.ed-gallery-redesign .grid-item:focus-within img,
body.ed-gallery-redesign .grid-item .gallery-link:hover img {
    opacity: 1 !important;
    filter: brightness(1.02) contrast(1.01) !important;
    mix-blend-mode: normal !important;
}

/* Mobile: retain the glass rim but reduce padding/radius/shadow. */
@media (max-width: 767px) {
    body.ed-gallery-redesign .elementor-widget-image {
        padding: 6px;
        border-radius: 25px;
        -webkit-backdrop-filter: blur(14px) saturate(135%);
        backdrop-filter: blur(14px) saturate(135%);
        box-shadow:
            0 12px 28px rgba(20,20,24,.16),
            inset 0 1px 0 rgba(255,255,255,.52);
    }

    body.ed-gallery-redesign .elementor-widget-image::before {
        border-radius: 23px;
    }

    body.ed-gallery-redesign .elementor-widget-image > .elementor-widget-container,
    body.ed-gallery-redesign .elementor-widget-image img {
        border-radius: 20px !important;
    }
}


/* ==========================================================
   V1.0.6 — Restore the exact V1.0.4 gallery canvas.
   Keep all V1.0.5 glass-card + hover fixes unchanged.
   ========================================================== */
body.ed-gallery-redesign {
    --ed-bg: #918e8d;
    --ed-bg-deep: #858281;
    background: var(--ed-bg) !important;
}

body.ed-gallery-redesign .site-content,
body.ed-gallery-redesign #content,
body.ed-gallery-redesign main,
body.ed-gallery-redesign .content-area,
body.ed-gallery-redesign .site-main,
body.ed-gallery-redesign .elementor,
body.ed-gallery-redesign .elementor-page,
body.ed-gallery-redesign .elementor-location-single,
body.ed-gallery-redesign .elementor-section-wrap {
    background:
        radial-gradient(circle at 50% -8%, rgba(255,255,255,.16), transparent 36%),
        linear-gradient(180deg, #989594 0%, var(--ed-bg) 44%, var(--ed-bg-deep) 100%) !important;
}
