.wp-block-my-plugin-gallery,
.my-plugin-gallery-block {
    width: 100%;
    -webkit-user-drag: none;
}

.entry-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--wide,
.entry-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full,
.entry-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full-override,
.wp-block-post-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--wide,
.wp-block-post-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full,
.wp-block-post-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full-override {
    max-width: none !important;
}

.entry-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full-override,
.wp-block-post-content.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full-override,
.is-layout-constrained > .my-plugin-gallery-block.my-plugin-gallery-block--full-override {
    margin-left: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
    margin-right: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
}

.my-plugin-gallery-block {
    --my-plugin-gallery-full-padding: 24px;
    --my-plugin-viewport-width: 100%;
    --my-plugin-full-override-left: 0px;
    --my-plugin-full-override-right: 0px;
}

.my-plugin-gallery-block__inner {
    width: 100%;
}

.my-plugin-gallery-block--wide {
    width: min(1200px, calc(100vw - 32px));
    max-width: min(1200px, calc(100vw - 32px));
    margin-left: calc(50% - (min(1200px, calc(100vw - 32px)) / 2)) !important;
    margin-right: calc(50% - (min(1200px, calc(100vw - 32px)) / 2)) !important;
}

.my-plugin-gallery-block--full {
    width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    max-width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    margin-left: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
    margin-right: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
}

.my-plugin-gallery-block--full-override {
    width: var(--my-plugin-global-viewport-width, 100vw);
    max-width: var(--my-plugin-global-viewport-width, 100vw);
    margin-left: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
    margin-right: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
}

.my-plugin-gallery-block--pending-layout.my-plugin-gallery-block--full,
.my-plugin-gallery-block--pending-layout.my-plugin-gallery-block--full-override {
    visibility: hidden;
}

.my-plugin-gallery-block--full .my-plugin-gallery-block__inner {
    padding-left: var(--my-plugin-gallery-full-padding);
    padding-right: var(--my-plugin-gallery-full-padding);
    box-sizing: border-box;
}

.my-plugin-gallery-block--full-override .my-plugin-gallery-block__inner {
    padding-left: var(--my-plugin-gallery-full-padding);
    padding-right: var(--my-plugin-gallery-full-padding);
    box-sizing: border-box;
}

.editor-styles-wrapper .my-plugin-gallery-block--editor.my-plugin-gallery-block--full .my-plugin-gallery-block__inner,
.editor-styles-wrapper .my-plugin-gallery-block--editor.my-plugin-gallery-block--full-override .my-plugin-gallery-block__inner,
.block-editor-block-list__layout .my-plugin-gallery-block--editor.my-plugin-gallery-block--full .my-plugin-gallery-block__inner,
.block-editor-block-list__layout .my-plugin-gallery-block--editor.my-plugin-gallery-block--full-override .my-plugin-gallery-block__inner {
    padding-left: 0;
    padding-right: 0;
}

.editor-styles-wrapper .my-plugin-gallery-block--editor.my-plugin-gallery-block--full,
.editor-styles-wrapper .my-plugin-gallery-block--editor.my-plugin-gallery-block--full-override,
.block-editor-block-list__layout .my-plugin-gallery-block--editor.my-plugin-gallery-block--full,
.block-editor-block-list__layout .my-plugin-gallery-block--editor.my-plugin-gallery-block--full-override {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.my-plugin-gallery {
    --my-plugin-gallery-columns: 3;
    --my-plugin-gallery-aspect-ratio: 4 / 3;
    --my-plugin-gallery-gap: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--my-plugin-gallery-min-tile-width)), 1fr));
    gap: var(--my-plugin-gallery-gap);
    width: 100%;
}

.my-plugin-gallery__editor-preview {
    margin-top: 16px;
    pointer-events: none;
    user-select: none;
}

.my-plugin-portfolio__editor-preview {
    margin-top: 16px;
    pointer-events: none;
    user-select: none;
}

.editor-styles-wrapper .my-plugin-gallery__editor-preview,
.block-editor-block-list__layout .my-plugin-gallery__editor-preview {
    grid-template-columns: repeat(var(--my-plugin-gallery-columns), minmax(0, 1fr));
}

.my-plugin-portfolio__editor-preview .my-plugin-portfolio__items {
    margin: 0;
    gap: var(--my-plugin-portfolio-gap, 8px);
}

.editor-styles-wrapper .my-plugin-portfolio__editor-preview .my-plugin-portfolio__items,
.block-editor-block-list__layout .my-plugin-portfolio__editor-preview .my-plugin-portfolio__items {
    grid-template-columns: repeat(var(--my-plugin-portfolio-columns, 3), minmax(0, 1fr));
}

.my-plugin-portfolio__editor-preview .my-plugin-portfolio__card {
    padding: 0;
}

.my-plugin-portfolio__editor-preview .my-plugin-portfolio__filter-list {
    margin: 0 0 8px;
    gap: 8px 14px;
}

.my-plugin-portfolio__editor-preview .my-plugin-portfolio__filter-item {
    margin: 0;
}

.my-plugin-gallery__editor-preview *,
.my-plugin-gallery__editor-preview img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.my-plugin-portfolio__editor-preview *,
.my-plugin-portfolio__editor-preview img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.my-plugin-gallery__item {
    display: block;
    min-width: 0;
    margin: 0;
    position: relative;
}

.my-plugin-gallery__item.is-popover-open {
    z-index: 20;
}

.my-plugin-gallery--captions-below .my-plugin-gallery__item {
    display: flex;
    flex-direction: column;
}

.photo-icon-container {
    position: relative;
    width: 100%;
}

.my-plugin-gallery__actions {
    position: absolute;
    left: 10px;
    right: 10px;
    z-index: 7;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.my-plugin-gallery__actions--position-top {
    top: 10px;
    bottom: auto;
}

.my-plugin-gallery__actions--position-bottom {
    top: auto;
    bottom: 10px;
}

.my-plugin-gallery__actions--align-left {
    justify-content: flex-start;
}

.my-plugin-gallery__actions--align-center {
    justify-content: center;
}

.my-plugin-gallery__actions--align-right {
    justify-content: flex-end;
}

.video-icon-container {
    position: relative;
    width: 100%;
}

.video-icon-container img {
    display: block;
}

.video-icon-container .my-plugin-video-play-button {
    --my-plugin-video-play-button-size: clamp(52px, 24%, 84px);
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--my-plugin-video-play-button-size);
    min-width: var(--my-plugin-video-play-button-size);
    max-width: var(--my-plugin-video-play-button-size);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    line-height: 1;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-gallery-buy-soft-glass-fill, rgba(12, 14, 18, 0.24));
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    pointer-events: none;
    color: var(--my-plugin-gallery-video-play-icon-color, rgba(255, 255, 255, 0.92));
}

.video-icon-container--play-style-transparent .my-plugin-video-play-button {
    border: 0;
    background: var(--my-plugin-gallery-buy-overlay-fill, rgba(0, 0, 0, 0.72));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.video-icon-container .my-plugin-video-play-button svg {
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
    display: block;
}

.my-plugin-gallery__editor-item {
    cursor: default;
}

.my-plugin-gallery__card {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.my-plugin-gallery__card,
.my-plugin-gallery__card:hover,
.my-plugin-gallery__card:active,
.my-plugin-gallery__card:focus,
.my-plugin-gallery__card:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.my-plugin-gallery__card:focus-visible .my-plugin-gallery__media {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


.my-plugin-gallery__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #111;
}

.my-plugin-gallery__media::before {
    content: "";
    display: block;
    padding-bottom: calc(100% / (var(--my-plugin-gallery-aspect-ratio)));
}

.my-plugin-gallery__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.my-plugin-gallery__video-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #111;
}

.my-plugin-gallery__card,
.my-plugin-gallery__card * {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
}

.my-plugin-gallery__caption {
    box-sizing: border-box;
}

.my-plugin-gallery__caption-inner {
    display: block;
}

.my-plugin-gallery__caption-line {
    display: block;
}

.my-plugin-gallery__caption--below {
    margin-bottom: var(--my-plugin-gallery-caption-bottom-spacing, 0px);
    color: inherit;
    line-height: 1.45;
}

.my-plugin-gallery__caption--below.my-plugin-gallery__caption--fixed {
    --my-plugin-gallery-caption-line-gap: 2px;
    --my-plugin-gallery-caption-line-box: calc(max(var(--my-plugin-gallery-caption-title-size, 14px), var(--my-plugin-gallery-caption-caption-size, 14px)) * 1.45);
    min-height: calc((var(--my-plugin-gallery-caption-reserved-lines, 1) * var(--my-plugin-gallery-caption-line-box)) + ((var(--my-plugin-gallery-caption-reserved-lines, 1) - 1) * var(--my-plugin-gallery-caption-line-gap)) + var(--my-plugin-gallery-caption-bottom-spacing, 0px));
    margin-bottom: 0;
    padding-bottom: var(--my-plugin-gallery-caption-bottom-spacing, 0px);
}

.my-plugin-gallery__caption--below .my-plugin-gallery__caption-line--title {
    font-size: var(--my-plugin-gallery-caption-title-size, 14px);
    font-weight: var(--my-plugin-gallery-caption-title-weight, 600);
    color: var(--my-plugin-gallery-caption-title-color, inherit);
}

.my-plugin-gallery__caption--below .my-plugin-gallery__caption-line--caption {
    font-size: var(--my-plugin-gallery-caption-caption-size, 14px);
    font-weight: var(--my-plugin-gallery-caption-caption-weight, 400);
    color: var(--my-plugin-gallery-caption-caption-color, inherit);
}

.my-plugin-gallery__caption--below .my-plugin-gallery__caption-line--caption + .my-plugin-gallery__caption-line--title,
.my-plugin-gallery__caption--below .my-plugin-gallery__caption-line--title + .my-plugin-gallery__caption-line--caption {
    margin-top: 2px;
}

.my-plugin-gallery__caption--overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 5;
    pointer-events: none;
    padding: 10px;
    max-height: var(--my-plugin-overlay-max-height, 52%);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.72) 100%);
    color: #fff;
}

.my-plugin-gallery__caption--overlay-top {
    inset: 0 0 auto 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0) 100%);
}

.my-plugin-gallery__caption--overlay-bottom {
    inset: auto 0 0 0;
}

.my-plugin-gallery__caption--overlay .my-plugin-gallery__caption-line {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    line-height: 1.45;
}

.my-plugin-gallery__caption--overlay .my-plugin-gallery__caption-line--title {
    font-size: var(--my-plugin-gallery-caption-title-size, 14px);
    font-weight: var(--my-plugin-gallery-caption-title-weight, 600);
    color: var(--my-plugin-gallery-caption-title-color, #fff);
}

.my-plugin-gallery__caption--overlay .my-plugin-gallery__caption-line--caption {
    font-size: var(--my-plugin-gallery-caption-caption-size, 14px);
    font-weight: var(--my-plugin-gallery-caption-caption-weight, 400);
    color: var(--my-plugin-gallery-caption-caption-color, #fff);
}

.my-plugin-gallery__caption--overlay .my-plugin-gallery__caption-line--caption + .my-plugin-gallery__caption-line--title,
.my-plugin-gallery__caption--overlay .my-plugin-gallery__caption-line--title + .my-plugin-gallery__caption-line--caption {
    margin-top: 2px;
}

.my-plugin-gallery__caption--overlay-type-soft-glass {
    background: transparent !important;
    display: flex;
}

.my-plugin-gallery__caption--overlay-type-soft-glass[style*="text-align: center"] {
    justify-content: center;
}

.my-plugin-gallery__caption--overlay-type-soft-glass[style*="text-align: right"] {
    justify-content: flex-end;
}

.my-plugin-gallery__caption--overlay-type-soft-glass .my-plugin-gallery__caption-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-gallery-caption-soft-glass-fill, rgba(12, 14, 18, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(2px) saturate(112%);
    -webkit-backdrop-filter: blur(2px) saturate(112%);
    position: relative;
}

.my-plugin-gallery__caption--overlay-type-soft-glass .my-plugin-gallery__caption-line {
    text-shadow: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.my-plugin-gallery__caption--overlay-type-popover {
    background: transparent !important;
    display: flex;
    max-height: none;
    overflow: visible;
}

.my-plugin-gallery__caption--overlay-type-popover[style*="text-align: center"] {
    justify-content: center;
}

.my-plugin-gallery__caption--overlay-type-popover[style*="text-align: right"] {
    justify-content: flex-end;
}

.my-plugin-gallery__popover {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: inherit;
    pointer-events: none;
}

.my-plugin-gallery__popover-bar {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__popover-bar--icon-only {
    align-items: center;
    justify-content: center;
}

.my-plugin-gallery__popover-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--my-plugin-gallery-caption-title-color, #fff);
    font-size: var(--my-plugin-gallery-caption-title-size, 14px);
    font-weight: var(--my-plugin-gallery-caption-title-weight, 600);
    line-height: 1.2;
}

.my-plugin-gallery__popover-divider {
    display: block;
    align-self: stretch;
    width: 1px;
    margin: 5px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.my-plugin-gallery__popover-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--my-plugin-gallery-caption-caption-color, currentColor);
    line-height: 0;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__popover-button *,
.my-plugin-gallery__popover-bar * {
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__popover-button:focus,
.my-plugin-gallery__popover-button:active,
.my-plugin-gallery__popover-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.my-plugin-gallery__popover-icon,
.my-plugin-gallery__popover-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.my-plugin-gallery__popover-panel {
    position: absolute;
    left: 0;
    z-index: 6;
    display: none;
    width: fit-content;
    min-width: 0;
    max-width: calc(100% - 1px);
    box-sizing: border-box;
    overflow: hidden;
    padding: 8px 10px;
    border-radius: 10px;
    pointer-events: auto;
}

.my-plugin-gallery__popover-panel * {
    pointer-events: auto;
}

.my-plugin-gallery__caption--overlay-top .my-plugin-gallery__popover-panel {
    top: calc(100% + 8px);
    bottom: auto;
}

.my-plugin-gallery__caption--overlay-bottom .my-plugin-gallery__popover-panel {
    bottom: calc(100% + 8px);
    top: auto;
}

.my-plugin-gallery__caption--overlay-type-popover[style*="text-align: center"] .my-plugin-gallery__popover-panel {
    left: 50%;
    transform: translateX(-50%);
}

.my-plugin-gallery__caption--overlay-type-popover[style*="text-align: right"] .my-plugin-gallery__popover-panel {
    left: auto;
    right: 0;
    transform: none;
}

.my-plugin-gallery__popover.is-open .my-plugin-gallery__popover-panel {
    display: block;
    pointer-events: auto;
}

.my-plugin-gallery__popover.is-open {
    z-index: 8;
}

.my-plugin-gallery__popover--style-soft-glass .my-plugin-gallery__popover-bar,
.my-plugin-gallery__popover--style-soft-glass .my-plugin-gallery__popover-button,
.my-plugin-gallery__popover--style-soft-glass .my-plugin-gallery__popover-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-gallery-caption-soft-glass-fill, rgba(12, 14, 18, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.my-plugin-gallery__popover--style-transparent .my-plugin-gallery__popover-bar,
.my-plugin-gallery__popover--style-transparent .my-plugin-gallery__popover-button,
.my-plugin-gallery__popover--style-transparent .my-plugin-gallery__popover-panel {
    border: 0;
    background: var(--my-plugin-gallery-caption-overlay-fill);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.my-plugin-gallery__popover--display-title-info .my-plugin-gallery__popover-button {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.my-plugin-gallery__popover--display-info-only .my-plugin-gallery__popover-button {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.my-plugin-gallery__buy-popover {
    position: relative;
    display: inline-block;
    max-width: 100%;
    pointer-events: auto;
}

.my-plugin-gallery__buy-popover-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__buy-popover-button * {
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__buy-popover--type-buy .my-plugin-gallery__buy-popover-button {
    color: var(--my-plugin-gallery-buy-icon-color, #fff);
}

.my-plugin-gallery__buy-popover--type-share .my-plugin-gallery__buy-popover-button {
    color: var(--my-plugin-gallery-share-icon-color, #fff);
}

.my-plugin-gallery__buy-popover-button:focus,
.my-plugin-gallery__buy-popover-button:active,
.my-plugin-gallery__buy-popover-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.my-plugin-gallery__buy-popover-button.is-copied {
    opacity: 0.72;
}

.my-plugin-gallery__buy-popover-icon,
.my-plugin-gallery__buy-popover-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.my-plugin-gallery__buy-popover-icon svg {
    fill: currentColor;
}

.my-plugin-gallery__buy-popover-panel {
    position: absolute;
    z-index: 6;
    display: none;
    width: max-content;
    min-width: 0;
    max-width: min(320px, calc(100vw - 48px));
    padding: 8px 10px;
    border-radius: 10px;
}

.my-plugin-gallery__actions--position-top .my-plugin-gallery__buy-popover-panel {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
}

.my-plugin-gallery__actions--position-bottom .my-plugin-gallery__buy-popover-panel {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
}

.my-plugin-gallery__actions--align-center .my-plugin-gallery__buy-popover-panel {
    left: 50%;
    transform: translateX(-50%);
}

.my-plugin-gallery__actions--align-right .my-plugin-gallery__buy-popover-panel {
    left: auto;
    right: 0;
    transform: none;
}

.my-plugin-gallery__buy-popover.is-open .my-plugin-gallery__buy-popover-panel {
    display: block;
}

.my-plugin-gallery__buy-popover.is-open {
    z-index: 8;
}

.my-plugin-gallery__buy-popover--style-soft-glass .my-plugin-gallery__buy-popover-button,
.my-plugin-gallery__buy-popover--style-soft-glass .my-plugin-gallery__buy-popover-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-gallery-buy-soft-glass-fill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.my-plugin-gallery__buy-popover--style-transparent .my-plugin-gallery__buy-popover-button,
.my-plugin-gallery__buy-popover--style-transparent .my-plugin-gallery__buy-popover-panel {
    border: 0;
    background: var(--my-plugin-gallery-buy-overlay-fill);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.my-plugin-gallery__buy-popover-value {
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.my-plugin-gallery__buy-popover-link,
.my-plugin-gallery__buy-popover-link:hover,
.my-plugin-gallery__buy-popover-link:active,
.my-plugin-gallery__buy-popover-link:focus,
.my-plugin-gallery__buy-popover-link:focus-visible {
    color: inherit;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.my-plugin-gallery__share-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 132px;
    color: #fff;
}

.my-plugin-gallery__share-menu-link,
.my-plugin-gallery__share-menu-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 8px 4px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__share-menu-link *,
.my-plugin-gallery__share-menu-copy * {
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-gallery__share-menu-copy {
    min-width: 116px;
    padding-right: 12px;
}

.my-plugin-gallery__share-menu-copy .my-plugin-gallery__share-menu-text {
    min-width: 72px;
}

.my-plugin-gallery__share-menu-icon,
.my-plugin-gallery__share-menu-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.my-plugin-gallery__share-menu-icon svg {
    fill: currentColor;
}

.my-plugin-gallery__share-menu-text {
    display: block;
    line-height: 1.3;
}

.my-plugin-gallery__share-menu-link:hover,
.my-plugin-gallery__share-menu-link:active,
.my-plugin-gallery__share-menu-link:focus,
.my-plugin-gallery__share-menu-link:focus-visible,
.my-plugin-gallery__share-menu-copy:hover,
.my-plugin-gallery__share-menu-copy:active,
.my-plugin-gallery__share-menu-copy:focus,
.my-plugin-gallery__share-menu-copy:focus-visible {
    color: #fff;
    outline: none;
    box-shadow: none;
}

.my-plugin-gallery__share-menu-copy.is-copied {
    opacity: 0.72;
}

.my-plugin-schema-block__frame {
    max-width: 780px;
    padding: 18px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #ffffff;
}

.my-plugin-schema-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.my-plugin-schema-block__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #59636e;
}

.my-plugin-schema-block__status {
    font-size: 12px;
    font-weight: 600;
    color: #1f7a1f;
}

.my-plugin-schema-block__status.is-invalid,
.my-plugin-schema-block__error {
    color: #b42318;
}

.my-plugin-schema-block__error {
    margin: 0 0 12px;
}

.my-plugin-schema-block__code {
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-radius: 8px;
    background: #f6f8fa;
    color: #1f2328;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.my-plugin-gallery__editor-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    color: #dcdcde;
    background: #111;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

.my-plugin-gallery__editor-item-meta {
    margin-top: 8px;
}

.my-plugin-gallery__editor-item-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.my-plugin-gallery__editor-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.my-plugin-gallery__editor-toolbar--stacked {
    align-items: flex-start;
}

.my-plugin-gallery__editor-toolbar--stacked > p {
    flex: 0 0 100%;
    margin-top: 12px;
}

.my-plugin-gallery__cover-image-section {
    margin-top: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.my-plugin-gallery__cover-image-label {
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.my-plugin-gallery__cover-image-button.is-warning {
    color: #b32d2e;
}

.my-plugin-gallery__cover-image-placeholder {
    display: grid;
    place-items: center;
    padding: 12px;
    color: #50575e;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

.my-plugin-gallery__image--deferred,
.my-plugin-gallery__image--loading {
    opacity: 0;
}

.my-plugin-gallery__image--loaded {
    opacity: 1;
    transition: opacity 0.12s ease;
}

.my-plugin-gallery-template {
    --my-plugin-gallery-template-padding: 0px;
    --my-plugin-gallery-template-gap: 24px;
    --my-plugin-gallery-font-family: Arial, sans-serif;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto 56px;
    font-family: var(--my-plugin-gallery-font-family);
    line-height: 1.5;
}

.my-plugin-gallery-template__article {
    margin: 0;
    font-family: inherit;
    line-height: inherit;
}

.my-plugin-gallery-template__article,
.my-plugin-gallery-template__article * {
    font-family: inherit;
}

.my-plugin-gallery,
.my-plugin-gallery__caption,
.my-plugin-gallery__popover-panel,
.my-plugin-gallery__buy-popover-panel {
    font-family: var(--my-plugin-gallery-font-family, Arial, sans-serif);
}

.my-plugin-gallery-template__section {
    padding-left: var(--my-plugin-gallery-template-padding);
    padding-right: var(--my-plugin-gallery-template-padding);
    box-sizing: border-box;
}

.my-plugin-gallery-template__section + .my-plugin-gallery-template__gallery-slot,
.my-plugin-gallery-template__gallery-slot + .my-plugin-gallery-template__section,
.my-plugin-gallery-template__section + .my-plugin-gallery-template__section {
    margin-top: var(--my-plugin-gallery-template-gap);
}

.my-plugin-gallery-template__section > :first-child,
.my-plugin-gallery-template__gallery-slot > :first-child {
    margin-top: 0;
}

.my-plugin-gallery-template__section > :last-child,
.my-plugin-gallery-template__gallery-slot > :last-child {
    margin-bottom: 0;
}

.my-plugin-gallery-template .wp-block-my-plugin-gallery.alignwide {
    width: min(1200px, calc(100vw - 32px));
    max-width: min(1200px, calc(100vw - 32px));
    margin-left: calc(50% - (min(1200px, calc(100vw - 32px)) / 2)) !important;
    margin-right: calc(50% - (min(1200px, calc(100vw - 32px)) / 2)) !important;
}

.my-plugin-gallery-template .wp-block-my-plugin-gallery.my-plugin-gallery-block--full {
    width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    max-width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    margin-left: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
    margin-right: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
}

.my-plugin-gallery-template-editor-preview {
    width: 100%;
    max-width: none;
    margin: 12px 0 20px;
    padding-top: 24px;
    border-top: 1px solid #dcdcde;
}

.my-plugin-portfolio {
    --my-plugin-portfolio-font-family: Arial, sans-serif;
    font-family: var(--my-plugin-portfolio-font-family);
    line-height: 1.5;
}

.my-plugin-portfolio,
.my-plugin-portfolio * {
    font-family: var(--my-plugin-portfolio-font-family, Arial, sans-serif);
}

.my-plugin-portfolio__filters {
    margin-bottom: 20px;
}

.my-plugin-portfolio__filter-list {
    display: flex;
    flex-wrap: wrap;
    margin: -4px;
    padding: 0;
    list-style: none;
}

.my-plugin-portfolio__filter-item {
    margin: 4px;
}

.my-plugin-portfolio__filter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    margin: 0;
    font-size: var(--my-plugin-portfolio-filter-size, 16px);
    font-weight: var(--my-plugin-portfolio-filter-weight, 400);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: var(--my-plugin-portfolio-filter-bubble-background, rgba(255, 255, 255, 0.06));
    box-shadow: none;
    color: var(--my-plugin-portfolio-filter-color, #999999);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.my-plugin-portfolio__filter.is-selected,
.my-plugin-portfolio__filter:hover {
    border-color: var(--my-plugin-portfolio-filter-hover-color, #7fb8ff);
    background: rgba(127, 184, 255, 0.16);
    box-shadow: none;
    color: var(--my-plugin-portfolio-filter-hover-color, #7fb8ff);
}

.my-plugin-portfolio__filter:focus,
.my-plugin-portfolio__filter:focus-visible,
.my-plugin-portfolio__filter:active {
    outline: none;
    box-shadow: none;
}

.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter-list {
    margin: 0 0 8px;
    gap: 10px 16px;
}

.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter-item {
    margin: 0;
}

.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter {
    -webkit-appearance: none;
    appearance: none;
    min-height: 0;
    padding: 0;
    margin: 0;
    font-size: var(--my-plugin-portfolio-filter-size, 16px);
    font-weight: var(--my-plugin-portfolio-filter-weight, 400);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--my-plugin-portfolio-filter-color, #999999);
    text-decoration: none;
}

.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter.is-selected,
.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--my-plugin-portfolio-filter-hover-color, #7fb8ff);
}

.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter:focus,
.my-plugin-portfolio__filters--plain .my-plugin-portfolio__filter:active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.my-plugin-portfolio__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--my-plugin-portfolio-min-tile-width)), 1fr));
    margin: calc(var(--my-plugin-portfolio-gap, 8px) / -2);
}

.my-plugin-portfolio__items.is-pending-layout {
    visibility: hidden;
}

.my-plugin-portfolio__card {
    min-width: 0;
    padding: calc(var(--my-plugin-portfolio-gap, 8px) / 2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.my-plugin-portfolio__card.is-hidden {
    display: none;
}

.my-plugin-portfolio__card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.my-plugin-portfolio__card-link:focus,
.my-plugin-portfolio__card-link:active {
    outline: none;
    box-shadow: none;
}

.my-plugin-portfolio__card-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.my-plugin-portfolio__card-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f6fc 0%, #e2ebf4 100%);
}

.my-plugin-portfolio__card-media::before,
.my-plugin-portfolio-editor__card-media::before {
    content: "";
    display: block;
    padding-bottom: calc(100% / (var(--my-plugin-portfolio-aspect-ratio, 1 / 1)));
}

.my-plugin-portfolio__card-image,
.my-plugin-portfolio-editor__card-media::after,
.my-plugin-portfolio-editor__card-image-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.my-plugin-portfolio__card-link,
.my-plugin-portfolio__card-link * {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
}

.my-plugin-portfolio__card-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    color: #50575e;
    text-align: center;
}

.my-plugin-portfolio__card-content,
.my-plugin-portfolio-editor__card-content {
    margin-top: 0;
    margin-bottom: var(--my-plugin-portfolio-field-bottom-spacing, 20px);
}

.my-plugin-portfolio__card-content-inner,
.my-plugin-portfolio-editor__card-content-inner {
    display: block;
}

.my-plugin-portfolio__card-content--overlay .my-plugin-portfolio__card-content-inner,
.my-plugin-portfolio-editor__card-content--overlay .my-plugin-portfolio-editor__card-content-inner {
    max-height: 100%;
    overflow: hidden;
}

.my-plugin-portfolio__card-content--overlay,
.my-plugin-portfolio-editor__card-content--overlay {
    position: absolute;
    left: 0;
    right: 0;
    margin-bottom: 0;
    padding: 10px;
    z-index: 2;
    max-height: var(--my-plugin-overlay-max-height, 52%);
    overflow: hidden;
}

.my-plugin-portfolio__card-content--overlay-bottom,
.my-plugin-portfolio-editor__card-content--overlay-bottom {
    bottom: 0;
}

.my-plugin-portfolio__card-content--overlay-top,
.my-plugin-portfolio-editor__card-content--overlay-top {
    top: 0;
}

.my-plugin-portfolio__card-content--overlay .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay .my-plugin-portfolio-editor__card-title,
.my-plugin-portfolio__card-content--overlay .my-plugin-portfolio__card-field,
.my-plugin-portfolio-editor__card-content--overlay .my-plugin-portfolio-editor__card-field,
.my-plugin-portfolio__card-content--overlay .my-plugin-portfolio__card-excerpt,
.my-plugin-portfolio-editor__card-content--overlay .my-plugin-portfolio-editor__card-excerpt {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    color: var(--my-plugin-portfolio-field-color, #ffffff);
}

.my-plugin-portfolio__card-content--overlay .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay .my-plugin-portfolio-editor__card-title {
    color: var(--my-plugin-portfolio-title-color, #ffffff);
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass {
    background: transparent !important;
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass {
    display: flex;
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass[style*="text-align: center"],
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass[style*="text-align: center"] {
    justify-content: center;
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass[style*="text-align: right"],
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass[style*="text-align: right"] {
    justify-content: flex-end;
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-content-inner,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-content-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-portfolio-soft-glass-fill, rgba(12, 14, 18, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(2px) saturate(112%);
    -webkit-backdrop-filter: blur(2px) saturate(112%);
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-title,
.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-field,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-field,
.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-excerpt,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-excerpt {
    display: block;
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-shadow: none;
    box-decoration-break: initial;
    -webkit-box-decoration-break: initial;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-title {
    font-size: calc(var(--my-plugin-portfolio-title-size, 18px) + 1px);
    font-weight: var(--my-plugin-portfolio-title-weight, 700);
}

.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-field,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-field,
.my-plugin-portfolio__card-content--overlay-type-soft-glass .my-plugin-portfolio__card-excerpt,
.my-plugin-portfolio-editor__card-content--overlay-type-soft-glass .my-plugin-portfolio-editor__card-excerpt {
    font-size: calc(var(--my-plugin-portfolio-field-size, 13px) + 1px);
    font-weight: var(--my-plugin-portfolio-field-weight, 400);
}

.my-plugin-portfolio__card-content--overlay-type-popover,
.my-plugin-portfolio-editor__card-content--overlay-type-popover {
    background: transparent !important;
    display: flex;
    max-height: none;
    overflow: visible;
}

.my-plugin-portfolio__card-content--overlay-type-popover[style*="text-align: center"],
.my-plugin-portfolio-editor__card-content--overlay-type-popover[style*="text-align: center"] {
    justify-content: center;
}

.my-plugin-portfolio__card-content--overlay-type-popover[style*="text-align: right"],
.my-plugin-portfolio-editor__card-content--overlay-type-popover[style*="text-align: right"] {
    justify-content: flex-end;
}

.my-plugin-portfolio__popover,
.my-plugin-portfolio-editor__popover {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    vertical-align: bottom;
}

.my-plugin-portfolio__popover-bar,
.my-plugin-portfolio-editor__popover-bar {
    display: inline-flex;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--my-plugin-portfolio-soft-glass-fill, rgba(12, 14, 18, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(2px) saturate(112%);
    -webkit-backdrop-filter: blur(2px) saturate(112%);
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-portfolio__popover--style-transparent .my-plugin-portfolio__popover-bar,
.my-plugin-portfolio-editor__popover--style-transparent .my-plugin-portfolio-editor__popover-bar {
    background: var(--my-plugin-portfolio-overlay-fill);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.my-plugin-portfolio__popover-label,
.my-plugin-portfolio-editor__popover-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: calc(var(--my-plugin-portfolio-title-size, 18px) + 1px);
    font-weight: var(--my-plugin-portfolio-title-weight, 700);
    color: var(--my-plugin-portfolio-title-color, #ffffff);
    line-height: 1.2;
}

.my-plugin-portfolio__popover-divider,
.my-plugin-portfolio-editor__popover-divider {
    display: block;
    align-self: stretch;
    width: 1px;
    margin: 5px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.my-plugin-portfolio__popover-button,
.my-plugin-portfolio-editor__popover-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--my-plugin-portfolio-field-color, currentColor);
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-portfolio__popover-button *,
.my-plugin-portfolio-editor__popover-button *,
.my-plugin-portfolio__popover-bar *,
.my-plugin-portfolio-editor__popover-bar * {
    -webkit-tap-highlight-color: transparent;
}

.my-plugin-portfolio__popover--style-soft-glass .my-plugin-portfolio__popover-button,
.my-plugin-portfolio-editor__popover--style-soft-glass .my-plugin-portfolio-editor__popover-button {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.my-plugin-portfolio__popover--style-transparent .my-plugin-portfolio__popover-button,
.my-plugin-portfolio-editor__popover--style-transparent .my-plugin-portfolio-editor__popover-button {
    border: 0;
    background: var(--my-plugin-portfolio-overlay-fill);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
}

.my-plugin-portfolio__popover-button:focus,
.my-plugin-portfolio__popover-button:active,
.my-plugin-portfolio__popover-button:focus-visible,
.my-plugin-portfolio-editor__popover-button:focus,
.my-plugin-portfolio-editor__popover-button:active,
.my-plugin-portfolio-editor__popover-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.my-plugin-portfolio__popover-icon,
.my-plugin-portfolio-editor__popover-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.my-plugin-portfolio__popover-icon svg,
.my-plugin-portfolio-editor__popover-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.my-plugin-portfolio__popover-panel,
.my-plugin-portfolio-editor__popover-panel {
    position: absolute;
    left: 0;
    z-index: 6;
    display: none;
    width: fit-content;
    min-width: 0;
    max-width: calc(100% - 1px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--my-plugin-portfolio-soft-glass-fill, rgba(12, 14, 18, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.my-plugin-portfolio__popover--display-title-info .my-plugin-portfolio__popover-button,
.my-plugin-portfolio-editor__popover--display-title-info .my-plugin-portfolio-editor__popover-button {
    border: 0;
    border-radius: 0;
    padding: 0 10px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.my-plugin-portfolio__popover--display-info-only .my-plugin-portfolio__popover-button,
.my-plugin-portfolio-editor__popover--display-info-only .my-plugin-portfolio-editor__popover-button {
    align-self: auto;
    padding: 6px 10px;
    pointer-events: none;
}

.my-plugin-portfolio__popover--style-transparent .my-plugin-portfolio__popover-panel,
.my-plugin-portfolio-editor__popover--style-transparent .my-plugin-portfolio-editor__popover-panel {
    background: var(--my-plugin-portfolio-overlay-fill);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.my-plugin-portfolio__card-content--overlay-bottom .my-plugin-portfolio__popover-panel,
.my-plugin-portfolio-editor__card-content--overlay-bottom .my-plugin-portfolio-editor__popover-panel {
    bottom: calc(100% + 8px);
}

.my-plugin-portfolio__card-content--overlay-top .my-plugin-portfolio__popover-panel,
.my-plugin-portfolio-editor__card-content--overlay-top .my-plugin-portfolio-editor__popover-panel {
    top: calc(100% + 8px);
}

.my-plugin-portfolio__popover.is-open .my-plugin-portfolio__popover-panel,
.my-plugin-portfolio-editor__popover.is-open .my-plugin-portfolio-editor__popover-panel {
    display: block;
}

.my-plugin-portfolio__card-content--overlay-type-popover .my-plugin-portfolio__card-content-inner,
.my-plugin-portfolio-editor__card-content--overlay-type-popover .my-plugin-portfolio-editor__card-content-inner {
    display: grid;
    gap: 0;
    min-width: 0;
}

.my-plugin-portfolio__card-content--overlay-type-popover .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay-type-popover .my-plugin-portfolio-editor__card-title,
.my-plugin-portfolio__card-content--overlay-type-popover .my-plugin-portfolio__card-field,
.my-plugin-portfolio-editor__card-content--overlay-type-popover .my-plugin-portfolio-editor__card-field,
.my-plugin-portfolio__card-content--overlay-type-popover .my-plugin-portfolio__card-excerpt,
.my-plugin-portfolio-editor__card-content--overlay-type-popover .my-plugin-portfolio-editor__card-excerpt {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    color: var(--my-plugin-portfolio-field-color, #ffffff);
}

.my-plugin-portfolio__card-content--overlay-type-popover .my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-content--overlay-type-popover .my-plugin-portfolio-editor__card-title {
    color: var(--my-plugin-portfolio-title-color, #ffffff);
}

.my-plugin-portfolio__card-content-inner > * + *,
.my-plugin-portfolio-editor__card-content-inner > * + * {
    margin-top: 0;
}

.my-plugin-portfolio__card-title,
.my-plugin-portfolio-editor__card-title {
    font-size: var(--my-plugin-portfolio-title-size, 18px);
    font-weight: var(--my-plugin-portfolio-title-weight, 700);
    color: var(--my-plugin-portfolio-title-color, #000000);
    margin: 0;
    padding: 0;
}

.my-plugin-portfolio__card-field,
.my-plugin-portfolio-editor__card-field {
    font-size: var(--my-plugin-portfolio-field-size, 13px);
    font-weight: var(--my-plugin-portfolio-field-weight, 400);
    line-height: 1.35;
    color: var(--my-plugin-portfolio-field-color, #000000);
    margin: 0;
    padding: 0;
}

.my-plugin-portfolio__card-excerpt,
.my-plugin-portfolio-editor__card-excerpt {
    min-height: calc(1em * 1.35);
}

.my-plugin-portfolio-editor {
    border: 1px solid #dcdcde;
    padding: 16px;
    background: #fff;
}

.my-plugin-portfolio-editor__header {
    margin-bottom: 14px;
}

.my-plugin-portfolio-editor__header p {
    margin: 6px 0 0;
    color: #50575e;
}

.my-plugin-portfolio-editor__actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.my-plugin-portfolio-editor__filters {
    display: flex;
    flex-wrap: wrap;
    margin: -4px -4px 12px;
}

.my-plugin-portfolio-editor__filter {
    margin: 4px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    font-size: var(--my-plugin-portfolio-filter-size, 16px);
    font-weight: var(--my-plugin-portfolio-filter-weight, 400);
    border: 1px solid #d0d7de;
    border-radius: 999px;
    background: #fff;
    color: var(--my-plugin-portfolio-filter-color, #1d2327);
}

.my-plugin-portfolio-editor__filter.is-selected {
    border-color: var(--my-plugin-portfolio-filter-hover-color, #2271b1);
    background: var(--my-plugin-portfolio-filter-hover-color, #2271b1);
    color: #fff;
}

.my-plugin-portfolio-editor__filters--plain {
    margin: 0 0 12px;
    gap: 8px 14px;
}

.my-plugin-portfolio-editor__filters--plain .my-plugin-portfolio-editor__filter {
    margin: 0;
    min-height: 0;
    padding: 0;
    font-size: var(--my-plugin-portfolio-filter-size, 16px);
    font-weight: var(--my-plugin-portfolio-filter-weight, 400);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--my-plugin-portfolio-filter-color, #50575e);
}

.my-plugin-portfolio-editor__filters--plain .my-plugin-portfolio-editor__filter.is-selected {
    border-color: transparent;
    background: transparent;
    color: var(--my-plugin-portfolio-filter-hover-color, #2271b1);
}

.my-plugin-portfolio-editor__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: calc(var(--my-plugin-portfolio-gap, 8px) / -2);
}

@media (min-width: 782px) {
    .my-plugin-portfolio-editor__grid {
        grid-template-columns: repeat(var(--my-plugin-portfolio-columns, 3), minmax(0, 1fr));
    }
}

.my-plugin-portfolio-editor__grid > * {
    padding: calc(var(--my-plugin-portfolio-gap, 8px) / 2);
}

.my-plugin-portfolio-editor__card-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f6fc 0%, #d9e7f5 100%);
}

.my-plugin-portfolio-editor__card-media::after {
    content: "";
    background: linear-gradient(180deg, rgba(230, 237, 244, 0) 0%, rgba(122, 150, 179, 0.35) 100%);
}

.my-plugin-portfolio-editor__card-image-fill {
    background: linear-gradient(135deg, rgba(30, 48, 73, 0.16) 0%, rgba(76, 120, 168, 0.24) 100%);
}

.my-plugin-inline-media {
    --my-plugin-inline-media-max-width: 100%;
    --my-plugin-inline-media-min-width: 280px;
    --my-plugin-inline-media-full-padding: 10px;
}

.my-plugin-inline-media__figure {
    display: block;
    width: 100%;
    min-width: min(100%, var(--my-plugin-inline-media-min-width));
    margin: 0;
}

.my-plugin-inline-media__figure--width-constrained {
    max-width: 100%;
}

.my-plugin-inline-media__figure--width-max-width {
    max-width: var(--my-plugin-inline-media-max-width);
}

.my-plugin-inline-media__figure--width-wide {
    width: min(1200px, calc(var(--my-plugin-global-viewport-width, 100vw) - 32px));
    max-width: min(1200px, calc(var(--my-plugin-global-viewport-width, 100vw) - 32px));
    margin-left: calc(50% - (min(1200px, calc(var(--my-plugin-global-viewport-width, 100vw) - 32px)) / 2)) !important;
    margin-right: calc(50% - (min(1200px, calc(var(--my-plugin-global-viewport-width, 100vw) - 32px)) / 2)) !important;
}

.my-plugin-inline-media__figure--width-full {
    width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    max-width: calc(var(--my-plugin-global-viewport-width, 100vw) - 32px);
    margin-left: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
    margin-right: calc(50% - ((var(--my-plugin-global-viewport-width, 100vw) - 32px) / 2)) !important;
    padding-left: var(--my-plugin-inline-media-full-padding);
    padding-right: var(--my-plugin-inline-media-full-padding);
    box-sizing: border-box;
}

.my-plugin-inline-media__figure--width-full-override {
    width: var(--my-plugin-global-viewport-width, 100vw);
    max-width: var(--my-plugin-global-viewport-width, 100vw);
    margin-left: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
    margin-right: calc(50% - (var(--my-plugin-global-viewport-width, 100vw) / 2)) !important;
    padding-left: var(--my-plugin-inline-media-full-padding);
    padding-right: var(--my-plugin-inline-media-full-padding);
    box-sizing: border-box;
}

.my-plugin-inline-media__figure--pending-layout.my-plugin-inline-media__figure--width-full,
.my-plugin-inline-media__figure--pending-layout.my-plugin-inline-media__figure--width-full-override {
    visibility: hidden;
}

.my-plugin-inline-media__figure--align-left {
    margin-left: 0;
    margin-right: auto;
}

.my-plugin-inline-media__figure--align-center {
    margin-left: auto;
    margin-right: auto;
}

.my-plugin-inline-media__figure--align-right {
    margin-left: auto;
    margin-right: 0;
}

.my-plugin-inline-media__item {
    width: 100%;
}

.editor-styles-wrapper .my-plugin-inline-media__figure--width-full,
.editor-styles-wrapper .my-plugin-inline-media__figure--width-wide,
.editor-styles-wrapper .my-plugin-inline-media__figure--width-full-override,
.block-editor-block-list__layout .my-plugin-inline-media__figure--width-full,
.block-editor-block-list__layout .my-plugin-inline-media__figure--width-wide,
.block-editor-block-list__layout .my-plugin-inline-media__figure--width-full-override {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.my-plugin-inline-media__lightbox-item {
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.my-plugin-inline-media__lightbox-item,
.my-plugin-inline-media__lightbox-item:hover,
.my-plugin-inline-media__lightbox-item:active,
.my-plugin-inline-media__lightbox-item:focus,
.my-plugin-inline-media__lightbox-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.my-plugin-inline-media__lightbox-item,
.my-plugin-inline-media__lightbox-item * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.my-plugin-inline-media__lightbox-item:focus-visible .my-plugin-inline-media__media {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.my-plugin-inline-media__media::before {
    display: none;
}

.my-plugin-inline-media__media {
    background: transparent;
    overflow: visible;
}

.my-plugin-inline-media__figure--display-crop-4x3 .my-plugin-inline-media__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.my-plugin-inline-media__media img,
.my-plugin-inline-media__image {
    display: block;
    width: 100%;
    height: auto;
    position: static;
    inset: auto;
    object-fit: contain;
}

.my-plugin-inline-media__figure--display-crop-4x3 .my-plugin-inline-media__media img,
.my-plugin-inline-media__figure--display-crop-4x3 .my-plugin-inline-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.my-plugin-inline-media__album-link {
    display: inline-block;
    margin-top: 0.75rem;
}

.my-plugin-inline-media__lightbox-launcher {
    display: none !important;
}
