.cdv-widget,
.cdv-widget * {
    box-sizing: border-box;
}

.cdv-gallery-app {
    --cdv-bg: #222222;
    --cdv-text: #f7f2ea;
    --cdv-muted: rgba(247, 242, 234, 0.58);
    --cdv-line: rgba(247, 242, 234, 0.18);
    --cdv-tab-active-bg: #f610b7;
    --cdv-tab-active-text: #000000;
    --cdv-gallery-columns: 4;
    --cdv-photo-row-height: clamp(210px, 24vw, 340px);
    isolation: isolate;
    width: 100%;
    max-width: none;
    background: var(--cdv-bg);
    color: var(--cdv-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: 72px;
}

.cdv-gallery-app :where(h1, h2, h3, p, figure) {
    margin-top: 0;
    letter-spacing: 0 !important;
}

.cdv-gallery-app :where(button, a, select) {
    box-shadow: none !important;
    text-transform: none !important;
}

.cdv-gallery-hero {
    position: relative;
    display: grid;
    min-height: min(92vh, 900px);
    overflow: hidden;
    place-items: center;
    background: #344033;
    background-position: center;
    background-size: cover;
    color: #fff;
    border-radius: 0;
}

.cdv-gallery-hero__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.cdv-gallery-logo {
    position: absolute;
    top: clamp(32px, 5vw, 48px);
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.cdv-gallery-logo img {
    display: block;
    width: clamp(56px, 6vw, 76px);
    max-width: none;
    height: clamp(56px, 6vw, 76px);
    border-radius: 8px;
    object-fit: contain;
}

.cdv-gallery-hero__center {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(90vw, 760px);
    justify-items: center;
    text-align: center;
}

.cdv-gallery-hero__center h1 {
    margin: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.82);
    color: #fff;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.cdv-gallery-hero__center span {
    color: rgba(255, 255, 255, 0.88);
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cdv-gallery-down {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 1;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
    transform: translateX(-50%);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.cdv-gallery-down:hover {
    opacity: 0.8;
    transform: translateX(-50%) translateY(5px);
}

.cdv-gallery-page {
    width: 100%;
    padding: clamp(32px, 5vw, 60px);
    background: var(--cdv-bg);
    background-image: var(--cdv-gallery-bg-image, none);
    background-position: center;
    background-size: cover;
}

.cdv-gallery-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.cdv-gallery-info {
    display: grid;
    gap: 10px;
    max-width: min(720px, 100%);
}

.cdv-gallery-info h2 {
    margin: 0;
    color: var(--cdv-text);
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdv-gallery-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.cdv-gallery-socials a {
    color: var(--cdv-muted);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.86rem;
    text-decoration: none;
}

.cdv-gallery-socials a:hover {
    color: var(--cdv-text);
}

.cdv-gallery-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.cdv-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cdv-muted);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

.cdv-sort select {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
    min-width: 190px;
    padding: 8px 42px 8px 14px;
    border: 1px solid rgba(247, 242, 234, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--cdv-text);
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cdv-sort::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    pointer-events: none;
    transform: translateY(-62%) rotate(45deg);
    opacity: 0.76;
}

.cdv-sort select:hover,
.cdv-sort select:focus {
    border-color: rgba(247, 242, 234, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

.cdv-sort label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cdv-muted);
}

.cdv-share-gallery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cdv-text);
    cursor: pointer;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
}

.cdv-share-gallery i,
.cdv-gallery-down i,
.cdv-gallery-back-top i,
.cdv-lightbox button i,
.cdv-lightbox a i,
.cdv-sort label i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

.cdv-share-gallery.is-copied,
.cdv-lightbox button.is-copied {
    color: var(--cdv-tab-active-bg);
}

.cdv-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 26px;
}

.cdv-gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cdv-muted);
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.94rem;
}

.cdv-gallery-tab strong {
    font-size: 0.72rem;
    opacity: 0.72;
}

.cdv-gallery-tab:hover,
.cdv-gallery-tab.active {
    background: var(--cdv-tab-active-bg);
    color: var(--cdv-tab-active-text);
}

.cdv-photo-panel {
    display: none;
}

.cdv-photo-panel.visible {
    display: block;
}

.cdv-photo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(8px, 1.4vw, 18px);
}

.cdv-photo-grid::after {
    content: "";
    flex-grow: 999;
    min-width: 0;
}

.cdv-photo-card {
    position: relative;
    display: block;
    flex: calc(var(--cdv-photo-ratio, 1) * 100) 1 calc(var(--cdv-photo-row-height) * var(--cdv-photo-ratio, 1));
    width: auto;
    min-width: min(100%, calc(var(--cdv-photo-row-height) * 0.62));
    height: var(--cdv-photo-row-height);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #23262a;
    background-position: center;
    background-size: cover;
    cursor: zoom-in;
}

.cdv-gallery-app.is-reveal-ready .cdv-photo-card {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(8px);
}

.cdv-gallery-app.is-reveal-ready .cdv-photo-card.is-visible {
    animation: cdv-image-reveal 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) var(--cdv-reveal-delay, 0ms) both;
}

.cdv-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.18s ease;
}

.cdv-photo-card span {
    display: none;
}

.cdv-photo-card:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.cdv-gallery-empty {
    margin: 24px 0;
    color: var(--cdv-muted);
}

.cdv-sort select option {
    background: #222222;
    color: #f7f2ea;
}

.cdv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cdv-lightbox.active {
    visibility: visible;
    opacity: 1;
}

.cdv-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, 0.7);
}

.cdv-lightbox__stage {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 76px clamp(72px, 7vw, 112px) 54px;
}

.cdv-lightbox__stage img {
    display: block;
    width: auto;
    height: min(78vh, 820px);
    max-width: calc(100vw - clamp(150px, 18vw, 240px));
    max-height: calc(100vh - 148px);
    object-fit: contain;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.24s ease, transform 0.34s ease;
}

.cdv-lightbox__stage img.is-switching {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
}

.cdv-lightbox__stage img.is-switching[data-direction="prev"] {
    transform: translateX(-18px) scale(0.985);
}

.cdv-lightbox__stage img.is-entering {
    animation: cdv-photo-enter 0.36s ease both;
}

.cdv-lightbox__toolbar {
    position: absolute;
    top: 26px;
    right: 30px;
    z-index: 2;
    display: flex;
    gap: 18px;
}

.cdv-lightbox button,
.cdv-lightbox a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.92;
    filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.68));
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.cdv-lightbox button:hover,
.cdv-lightbox a:hover {
    color: var(--cdv-tab-active-bg);
    opacity: 1;
    transform: translateY(-1px);
}

.cdv-lightbox button i,
.cdv-lightbox a i {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.cdv-share-gallery:focus,
.cdv-share-gallery:focus-visible,
.cdv-gallery-down:focus,
.cdv-gallery-down:focus-visible,
.cdv-lightbox button:focus,
.cdv-lightbox button:focus-visible,
.cdv-lightbox a:focus,
.cdv-lightbox a:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

.cdv-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cdv-gallery-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 12px clamp(18px, 5vw, 60px);
    border-top: 1px solid rgba(247, 242, 234, 0.12);
    background: rgba(34, 34, 34, 0.92);
    color: var(--cdv-text);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cdv-gallery-app.is-gallery-visible .cdv-gallery-footer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cdv-gallery-footer__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cdv-muted);
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
}

.cdv-gallery-footer__status strong {
    color: var(--cdv-text);
    font-weight: 700;
}

.cdv-gallery-footer__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdv-gallery-footer-dot {
    display: block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    border: 1.5px solid rgba(247, 242, 234, 0.42);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.cdv-gallery-footer-dot.active {
    border-color: var(--cdv-tab-active-bg);
    background: var(--cdv-tab-active-bg);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--cdv-tab-active-bg) 20%, transparent);
}

.cdv-gallery-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: clamp(34px, 6vw, 70px) auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cdv-text);
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.cdv-gallery-back-top:hover {
    color: var(--cdv-tab-active-bg);
}

@keyframes cdv-image-reveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.cdv-gallery-page.is-motion-in .cdv-gallery-controls,
.cdv-gallery-page.is-motion-in .cdv-gallery-tabs,
.cdv-gallery-page.is-motion-in .cdv-gallery-panels {
    animation: cdv-section-enter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cdv-gallery-page.is-motion-in .cdv-gallery-tabs {
    animation-delay: 0.07s;
}

.cdv-gallery-page.is-motion-in .cdv-gallery-panels {
    animation-delay: 0.14s;
}

@keyframes cdv-section-enter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cdv-photo-enter {
    from {
        opacity: 0;
        transform: translateX(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.cdv-lightbox__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
}

.cdv-lightbox__arrow--prev {
    left: 28px;
}

.cdv-lightbox__arrow--next {
    right: 28px;
}

body.cdv-lightbox-open {
    overflow: hidden;
}

body.cdv-lightbox-open .cdv-gallery-footer {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

@media (max-width: 1100px) {
    .cdv-photo-grid {
        --cdv-photo-row-height: clamp(190px, 30vw, 300px);
    }
}

@media (max-width: 760px) {
    .cdv-gallery-hero {
        min-height: 82vh;
        border-radius: 0;
    }

    .cdv-gallery-page {
        padding: 30px 18px 48px;
    }

    .cdv-gallery-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .cdv-gallery-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .cdv-sort {
        min-width: 0;
    }

    .cdv-sort select {
        max-width: 58%;
    }

    .cdv-gallery-tabs {
        gap: 8px;
    }

    .cdv-gallery-tab {
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    .cdv-photo-grid {
        --cdv-photo-row-height: clamp(160px, 42vw, 230px);
        gap: 8px;
    }

    .cdv-lightbox__stage {
        padding: 64px 16px 72px;
    }

    .cdv-lightbox__stage img {
        width: calc(100vw - 32px);
        height: auto;
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 148px);
    }

    .cdv-lightbox__arrow {
        top: 50%;
        bottom: auto;
        width: 42px;
        height: 42px;
        transform: translateY(-50%);
    }

    .cdv-lightbox__arrow--prev {
        left: 10px;
        margin-left: 0;
    }

    .cdv-lightbox__arrow--next {
        right: 10px;
        margin-right: 0;
    }

    .cdv-gallery-footer {
        min-height: 58px;
        padding: 10px 18px;
    }

    .cdv-gallery-footer__status {
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .cdv-gallery-hero__center h1 {
        font-size: 2.18rem;
    }

    .cdv-share-gallery {
        width: 42px;
        justify-content: center;
    }
}

/* Hard shield for Elementor/theme overrides. */
.cdv-gallery-app.cdv-gallery-app {
    isolation: isolate !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: var(--cdv-bg) !important;
    color: var(--cdv-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding-bottom: 72px !important;
}

.cdv-gallery-app.cdv-gallery-app,
.cdv-gallery-app.cdv-gallery-app * {
    box-sizing: border-box !important;
}

.cdv-gallery-app.cdv-gallery-app :where(h1, h2, h3, p, figure, button, a, select, img) {
    letter-spacing: 0 !important;
    text-transform: none;
}

.cdv-gallery-app.cdv-gallery-app :where(button, a, select) {
    box-shadow: none !important;
    outline-offset: 3px !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-hero {
    position: relative !important;
    display: grid !important;
    min-height: min(92vh, 900px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    place-items: center !important;
    background-repeat: no-repeat !important;
    background-position: center center;
    background-size: cover !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-hero__center h1 {
    margin: 0 !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.82) !important;
    color: #fff !important;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(32px, 5vw, 60px) !important;
    background: var(--cdv-bg) !important;
    background-image: var(--cdv-gallery-bg-image, none) !important;
    background-position: center !important;
    background-size: cover !important;
    color: var(--cdv-text) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-controls,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-actions,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-sort,
.cdv-gallery-app.cdv-gallery-app .cdv-share-gallery,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-back-top,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-tab {
    color: var(--cdv-muted) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-socials a {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-footer__status,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-info h2 {
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-info h2 {
    font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
    line-height: 1.22 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-sort select {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 190px !important;
    padding: 8px 42px 8px 14px !important;
    border-color: rgba(247, 242, 234, 0.22) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: var(--cdv-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.9rem !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-sort select option {
    background: #222222 !important;
    color: #f7f2ea !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-tab:hover,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-tab.active {
    background: var(--cdv-tab-active-bg) !important;
    color: var(--cdv-tab-active-text) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-share-gallery,
.cdv-gallery-app.cdv-gallery-app .cdv-gallery-back-top,
.cdv-gallery-app.cdv-gallery-app .cdv-lightbox button,
.cdv-gallery-app.cdv-gallery-app .cdv-lightbox a {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    min-width: 0 !important;
    text-decoration: none !important;
    opacity: 0.92 !important;
    filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.68)) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-tab {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 0 !important;
    text-decoration: none !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-photo-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: clamp(8px, 1.4vw, 18px) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-photo-card {
    display: block !important;
    flex: calc(var(--cdv-photo-ratio, 1) * 100) 1 calc(var(--cdv-photo-row-height) * var(--cdv-photo-ratio, 1)) !important;
    width: auto !important;
    min-width: min(100%, calc(var(--cdv-photo-row-height) * 0.62)) !important;
    height: var(--cdv-photo-row-height) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center center;
    background-size: cover !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-photo-card span {
    display: none !important;
}

.cdv-gallery-app.cdv-gallery-app.is-reveal-ready .cdv-photo-card {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(8px);
}

.cdv-gallery-app.cdv-gallery-app.is-reveal-ready .cdv-photo-card.is-visible {
    animation: cdv-image-reveal 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) var(--cdv-reveal-delay, 0ms) both !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__backdrop {
    background: rgba(34, 34, 34, 0.7) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__stage {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    place-items: center !important;
    padding: 76px clamp(72px, 7vw, 112px) 54px !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__stage img {
    display: block !important;
    width: auto !important;
    height: min(78vh, 820px) !important;
    max-width: calc(100vw - clamp(150px, 18vw, 240px)) !important;
    max-height: calc(100vh - 148px) !important;
    object-fit: contain !important;
    transition: opacity 0.24s ease, transform 0.34s ease !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__toolbar {
    top: 26px !important;
    right: 30px !important;
    gap: 18px !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow {
    top: 50% !important;
    width: 48px !important;
    height: 48px !important;
    transform: translateY(-50%) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow--prev {
    left: 28px !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow--next {
    right: 28px !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-footer {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9990 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 12px clamp(18px, 5vw, 60px) !important;
    border-top: 1px solid rgba(247, 242, 234, 0.12) !important;
    background: rgba(34, 34, 34, 0.92) !important;
    color: var(--cdv-text) !important;
    backdrop-filter: blur(14px) !important;
}

body.cdv-lightbox-open .cdv-gallery-app.cdv-gallery-app .cdv-gallery-footer {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-footer-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
    border: 1.5px solid rgba(247, 242, 234, 0.42) !important;
    border-radius: 50% !important;
    background: transparent !important;
}

.cdv-gallery-app.cdv-gallery-app .cdv-gallery-footer-dot.active {
    border-color: var(--cdv-tab-active-bg) !important;
    background: var(--cdv-tab-active-bg) !important;
}

@media (max-width: 1100px) {
    .cdv-gallery-app.cdv-gallery-app .cdv-photo-grid {
        --cdv-photo-row-height: clamp(190px, 30vw, 300px) !important;
    }
}

@media (max-width: 760px) {
    .cdv-gallery-app.cdv-gallery-app .cdv-gallery-page {
        padding: 30px 18px 48px !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-photo-grid {
        --cdv-photo-row-height: clamp(160px, 42vw, 230px) !important;
        gap: 8px !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__stage {
        padding: 64px 16px 72px !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__stage img {
        width: calc(100vw - 32px) !important;
        height: auto !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 148px) !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__toolbar {
        top: 18px !important;
        right: 16px !important;
        gap: 12px !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow {
        top: 50% !important;
        width: 42px !important;
        height: 42px !important;
        transform: translateY(-50%) !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow--prev {
        left: 10px !important;
        margin-left: 0 !important;
    }

    .cdv-gallery-app.cdv-gallery-app .cdv-lightbox__arrow--next {
        right: 10px !important;
        margin-right: 0 !important;
    }
}
