.nd-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
    padding-top: 40px;
    color: var(--wp--preset--color--contrast, #fff);
}

.nd-showcase,
.nd-showcase *,
.nd-showcase *::before,
.nd-showcase *::after {
    box-sizing: border-box;
}

.nd-showcase [hidden] {
    display: none !important;
}

.nd-showcase__main,
.nd-showcase__card,
.nd-showcase__body {
    min-width: 0;
}

.nd-showcase__filters {
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 18px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.02);
}

.nd-showcase__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
    font-size: var(--wp--preset--font-size--x-small, 0.875rem);
    font-weight: 600;
    line-height: 1.4;
}

.nd-showcase__clear,
.nd-showcase__open,
.nd-showcase__close,
.nd-showcase__share,
.nd-player__big,
.nd-player__btn {
    margin: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.nd-showcase__clear {
    padding: 4px 0;
    background: transparent;
    color: var(--wp--preset--color--accent, #00b7ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nd-showcase__groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nd-showcase__group {
    position: relative;
}

.nd-showcase__select {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    min-height: 48px;
    padding: 8px 40px 8px 16px;
    border: 1px solid var(--wp--preset--color--accent-line, rgba(0, 183, 255, 0.28));
    border-radius: 10px;
    background-color: var(--wp--preset--color--base, #1b1b1b);
    color: var(--wp--preset--color--contrast, #fff);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.nd-showcase__select:hover,
.nd-showcase__select[aria-expanded="true"],
.nd-showcase__select.has-value {
    border-color: var(--wp--preset--color--accent, #00b7ff);
}

.nd-showcase__select[aria-expanded="true"] {
    box-shadow: 0 0 0 3px rgba(0, 183, 255, 0.16);
}

.nd-showcase__select:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #00b7ff);
    outline-offset: 2px;
}

.nd-showcase__select-label {
    display: block;
    margin-bottom: 1px;
    color: var(--wp--preset--color--muted, rgba(255, 255, 255, 0.6));
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nd-showcase__select-value {
    display: block;
    overflow: hidden;
    font-size: var(--wp--preset--font-size--x-small, 0.875rem);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nd-showcase__select.has-value .nd-showcase__select-value {
    color: var(--wp--preset--color--accent, #00b7ff);
}

.nd-showcase__select::after {
    content: "";
    position: absolute;
    top: calc(50% - 5px);
    right: 18px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.nd-showcase__select[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.nd-showcase__group > .nd-showcase__pop {
    z-index: 20;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
    border-radius: 16px;
    background: #262626;
    background: color-mix(in srgb, var(--wp--preset--color--base, #1b1b1b) 92%, #fff);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nd-showcase__pop-head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
}

.nd-showcase__pop-title {
    font-size: var(--wp--preset--font-size--x-small, 0.875rem);
    font-weight: 700;
}

.nd-showcase__pop-close {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.nd-showcase__pop-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 10px 14px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.nd-showcase__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: var(--wp--preset--font-size--x-small, 0.875rem);
    line-height: 1.35;
    cursor: pointer;
}

.nd-showcase__option--child {
    padding-left: 22px;
}

.nd-showcase__option input[type="checkbox"] {
    appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--wp--preset--color--accent-line, rgba(0, 183, 255, 0.28));
    border-radius: var(--wp--custom--radius--checkbox, 2px);
    background-color: var(--wp--preset--color--base, #1b1b1b);
    cursor: pointer;
}

.nd-showcase__option input:checked {
    border-color: var(--wp--preset--color--accent, #00b7ff);
    background-color: var(--wp--preset--color--accent, #00b7ff);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%231b1b1b' stroke-width='2'/%3E%3C/svg%3E");
}

.nd-showcase__option:hover,
.nd-showcase__option:has(input:checked) {
    color: var(--wp--preset--color--accent, #00b7ff);
}

.nd-showcase__option .nd-showcase__name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.nd-showcase__num {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--wp--preset--color--muted, #a4a4a4);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nd-showcase__main.has-loader {
    position: relative;
}

.nd-showcase__loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.nd-showcase__main.is-loading .nd-showcase__loader {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.nd-showcase__main.is-loading .nd-showcase__grid {
    opacity: 0.2;
    pointer-events: none;
}

.nd-showcase__loader-spinner {
    position: sticky;
    top: calc(50vh - 24px);
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin-top: 24px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--wp--preset--color--accent, #00b7ff);
    border-radius: 50%;
    animation: nd-showcase-spin 0.8s linear infinite;
}

.nd-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.2s ease;
}

.nd-showcase__card {
    margin: 0;
    padding: 0;
}

.nd-showcase__open {
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    box-shadow: none;
}

.nd-showcase__thumb {
    display: block;
}

.nd-showcase__thumb img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    transition: object-position 3s ease;
}

.nd-showcase__title {
    display: block;
    margin-top: 20px;
    font-size: var(--wp--preset--font-size--heading-sm, 1.5rem);
    font-weight: 700;
    line-height: var(--wp--custom--line-height--heading-sm, 1.33);
    overflow-wrap: anywhere;
}

.nd-showcase__open:hover .nd-showcase__thumb img,
.nd-showcase__open:focus-visible .nd-showcase__thumb img {
    object-position: bottom center;
}

.nd-showcase :where(button, a, input, [tabindex]):focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #00b7ff);
    outline-offset: 3px;
}

.nd-showcase-is-open {
    overflow: hidden;
}

.nd-showcase__dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: var(--wp--preset--color--base, #1b1b1b);
    color: var(--wp--preset--color--contrast, #fff);
    isolation: isolate;
}

.nd-showcase__dialog::backdrop {
    background-color: var(--wp--preset--color--base, #1b1b1b);
}

.nd-showcase__dialog::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 2154px;
    height: 2151px;
    border-radius: 50%;
    transform: translate(-50%, -75%);
    background: var(--wp--preset--gradient--glow, radial-gradient(50% 50% at 50% 50%, #a0f 0%, rgba(44, 75, 213, 0.22) 77.5%, rgba(8, 97, 201, 0) 100%));
    mix-blend-mode: soft-light;
    opacity: 0.05;
    pointer-events: none;
}

.nd-showcase__bar {
    position: absolute;
    top: 0;
    right: var(--wp--custom--gutter, 20px);
    left: var(--wp--custom--gutter, 20px);
    z-index: 2;
    max-width: var(--wp--custom--width--gallery, 1260px);
    height: 0;
    margin: 0 auto;
}

.nd-showcase__close {
    position: absolute;
    top: 10px;
    right: 0;
    display: flex;
    padding: 10px 10px 9px;
    border-radius: 0;
    background-color: var(--wp--preset--color--light, #e9e9e9);
    color: var(--wp--preset--color--base, #1b1b1b);
    line-height: 0;
}

.nd-showcase__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nd-showcase__panel {
    position: absolute;
    inset: 0;
    height: min(var(--wp--custom--height--gallery, 1260px), 100%);
    margin: auto 0;
    padding: 0 var(--wp--custom--gutter, 20px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nd-showcase__inner {
    max-width: var(--wp--custom--width--gallery-inner, 1180px);
    min-height: 100vh;
    margin: 0 auto;
}

.nd-showcase__head {
    max-width: 1180px;
    margin: 0 auto 60px;
    padding-top: 80px;
}

.nd-showcase__head-media {
    position: relative;
    min-height: 50px;
}

.nd-showcase__head-media .nd-showcase__share {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.nd-showcase__head-media .nd-showcase__toast {
    top: 56px;
}

.nd-showcase__head-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 40px;
}

.nd-showcase__head-title .nd-showcase__links {
    margin: 0;
    flex: none;
}

.nd-showcase__hero {
    width: 100%;
    align-self: stretch;
    margin: 0;
}

.nd-showcase__hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.nd-showcase__heading {
    margin: 0;
    font-size: var(--wp--preset--font-size--heading-md, 2.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.nd-showcase__intro {
    max-width: none;
    margin-top: 20px;
    margin-bottom: 30px;
}

.nd-showcase__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin: 0;
}

.nd-showcase__pop .wp-block-button.is-style-arrow .wp-block-button__link,
.nd-showcase__pop .wp-block-button.is-style-arrow .wp-block-button__link:hover,
.nd-showcase__pop .wp-block-button.is-style-arrow .wp-block-button__link:focus {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: var(--wp--preset--font-size--button);
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
    color: var(--wp--preset--color--contrast, #fff);
}

.nd-showcase__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid var(--wp--preset--color--faint, rgba(255, 255, 255, 0.314));
    border-radius: 50%;
    background-color: var(--wp--preset--color--base, #1b1b1b);
    color: var(--wp--preset--color--contrast, #fff);
    line-height: 0;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.nd-showcase__share svg {
    width: 30px;
    height: 30px;
}

.nd-showcase__share:hover {
    border-color: var(--wp--preset--color--accent, #00b7ff);
    background-color: var(--wp--preset--color--accent, #00b7ff);
    color: var(--wp--preset--color--base, #1b1b1b);
}

.nd-showcase__toast {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 3;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: var(--wp--preset--color--contrast, #fff);
    color: var(--wp--preset--color--base, #1b1b1b);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.nd-showcase__row {
    padding-bottom: 40px;
}

.nd-showcase__row > .nd-showcase__name {
    min-width: 0;
    margin: 0 0 20px;
    font-size: var(--wp--preset--font-size--heading-sm, 1.5rem);
    font-weight: 700;
    line-height: var(--wp--custom--line-height--heading-sm, 1.33);
}

.nd-showcase__text {
    margin-bottom: 20px;
}

.nd-showcase__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.nd-showcase__list > li {
    position: relative;
    padding-left: 32px;
}

.nd-showcase__list > li + li {
    margin-top: 14px;
}

.nd-showcase__list > li::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 19px;
    height: 19px;
    background-color: var(--wp--preset--color--accent);
    -webkit-mask: url(result.svg) center / contain no-repeat;
    mask: url(result.svg) center / contain no-repeat;
}

.nd-showcase__media {
    margin: 0;
}

.nd-showcase__media img {
    display: block;
    width: 100%;
    height: auto;
}

.nd-showcase__pop {
    overflow-wrap: anywhere;
}

.nd-showcase__cta {
    max-width: 1180px;
    margin: 60px auto 80px;
}

.nd-showcase__cta-text {
    margin: 0 0 30px;
}

.nd-showcase__cta .nd-showcase__links {
    align-items: flex-start;
    margin-top: 30px;
}

.nd-player {
    position: relative;
    background-color: #000;
    color: #fff;
}

.nd-player__video {
    display: block;
    width: 100%;
    height: auto;
    background-color: #000;
}

.nd-player__big {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    transform: translate(-50%, -50%);
}

.nd-player.is-playing .nd-player__big {
    display: none;
}

.nd-player__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.25s;
}

.nd-player:hover .nd-player__bar,
.nd-player:focus-within .nd-player__bar,
.nd-player:not(.is-playing) .nd-player__bar {
    opacity: 1;
}

.nd-player__btn {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    color: #fff;
}

.nd-player__btn:hover,
.nd-player__big:hover {
    background-color: #272727;
    color: #fff;
}

.nd-player__btn svg,
.nd-player__big svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nd-player__btn[data-player-toggle] svg:nth-of-type(2),
.nd-player.is-playing .nd-player__btn[data-player-toggle] svg:first-of-type,
.nd-player__btn[data-player-mute] svg:first-of-type,
.nd-player.is-muted .nd-player__btn[data-player-mute] svg:nth-of-type(2) {
    display: none;
}

.nd-player.is-playing .nd-player__btn[data-player-toggle] svg:nth-of-type(2),
.nd-player.is-muted .nd-player__btn[data-player-mute] svg:first-of-type {
    display: block;
}

.nd-player__track {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    touch-action: none;
}

.nd-player__track::before {
    content: "";
    position: absolute;
    inset: -10px 0;
}

.nd-player__fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: var(--wp--preset--color--accent, #00b7ff);
}

.nd-player__time {
    flex: none;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
}

.nd-player:fullscreen,
.nd-player.is-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #000;
}

.nd-player:fullscreen .nd-player__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nd-player__btn .nd-player__compress,
.nd-player.is-fullscreen .nd-player__expand {
    display: none;
}

.nd-player.is-fullscreen .nd-player__compress {
    display: block;
}

.nd-showcase__spinner {
    width: 48px;
    height: 48px;
    margin: 120px auto;
    border: 4px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
    border-top-color: var(--wp--preset--color--accent, #00b7ff);
    border-radius: 50%;
    animation: nd-showcase-spin 0.8s linear infinite;
}

@keyframes nd-showcase-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 700px) {
    .nd-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .nd-showcase {
        padding-top: 60px;
    }

    .nd-showcase__head {
        margin-left: 15%;
    }

    .nd-showcase__cta-body {
        margin-left: 15%;
    }

    .nd-showcase__row {
        display: flex;
        align-items: flex-start;
    }

    .nd-showcase__row > .nd-showcase__name {
        position: sticky;
        top: 20px;
        flex: 0 0 15%;
        padding-right: 30px;
    }

    .nd-showcase__body {
        flex: 0 0 85%;
    }

    .nd-showcase__row:last-child {
        padding-bottom: 0;
    }
}

@keyframes nd-showcase-pop-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (width < 1025px) {
    .nd-showcase__group > .nd-showcase__pop {
        position: static;
        width: auto;
        max-height: 360px;
        margin-top: 8px;
    }

    .nd-showcase__group > .nd-showcase__pop::before {
        display: none;
    }
}

@media (min-width: 1025px) {
    .nd-showcase {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        padding-top: 100px;
    }

    .nd-showcase__filters {
        position: sticky;
        z-index: 30;
        top: calc(100px + var(--wp-admin--admin-bar--height, 0px));
    }

    .nd-showcase__group > .nd-showcase__pop {
        position: absolute;
        top: -12px;
        left: calc(100% + 46px);
        width: 360px;
        max-height: min(560px, calc(100vh - 160px - var(--wp-admin--admin-bar--height, 0px)));
        animation: nd-showcase-pop-in 0.2s ease;
    }

    .nd-showcase__group > .nd-showcase__pop::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 28px;
        width: 14px;
        height: 14px;
        border-left: 1px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
        border-bottom: 1px solid var(--wp--preset--color--hairline, rgba(255, 255, 255, 0.125));
        background: #262626;
        background: color-mix(in srgb, var(--wp--preset--color--base, #1b1b1b) 92%, #fff);
        transform: rotate(45deg);
    }
}

@media (max-width: 767px) {
    .nd-showcase__head-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .nd-showcase__filters {
        padding: 18px;
    }

    .nd-showcase__row {
        padding-bottom: 20px;
    }

    .nd-showcase__body {
        width: 100%;
    }

    .nd-player__bar {
        flex-wrap: wrap;
    }

    .nd-player__track {
        order: -1;
        flex-basis: 100%;
    }

    .nd-player__time {
        flex: 1;
    }
}

@media (hover: none) {
    .nd-player__bar {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nd-showcase__select,
    .nd-showcase__select::after,
    .nd-showcase__grid,
    .nd-showcase__loader,
    .nd-showcase__main.is-loading .nd-showcase__loader,
    .nd-showcase__thumb img,
    .nd-showcase__share,
    .nd-player__bar {
        transition: none;
    }

    .nd-showcase__group > .nd-showcase__pop {
        animation: none;
    }

    .nd-showcase__loader-spinner {
        animation-duration: 1.6s;
    }

    .nd-showcase__spinner {
        animation-duration: 2s;
    }
}

@media (forced-colors: active) {
    .nd-showcase__option input[type="checkbox"] {
        appearance: auto;
    }

    .nd-showcase__spinner {
        border-color: CanvasText;
        border-top-color: Highlight;
    }
}
