.semiyas-co-public-image-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #1d2327;
    font-family: inherit;
    list-style: none;
}

.semiyas-co-public-image-keywords.is-below {
    position: relative;
    z-index: 1;
    margin-top: 8px;
}

.semiyas-co-public-image-keywords.is-single-image.is-below {
    box-sizing: border-box;
}

.semiyas-co-elementor-keyword-overlay-host.is-semiyas-overlay-position-context {
    position: relative !important;
}

.semiyas-co-elementor-keyword-overlay-frame {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

.semiyas-co-public-image-keywords.is-overlay {
    position: absolute;
    z-index: 1;
    top: auto;
    right: var(--semiyas-co-overlay-inset-right, 10px);
    bottom: var(--semiyas-co-overlay-inset-bottom, 10px);
    left: var(--semiyas-co-overlay-inset-left, 10px);
    max-width: none;
    max-height: calc(
        100% - var(--semiyas-co-overlay-inset-top, 10px) - var(--semiyas-co-overlay-inset-bottom, 10px)
    );
    overflow: hidden;
    pointer-events: none;
}

.semiyas-co-public-image-keywords.is-pills .semiyas-co-public-image-keyword {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 3px 9px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #f6f7f7;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.semiyas-co-public-image-keywords.is-overlay.is-pills .semiyas-co-public-image-keyword {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.semiyas-co-public-image-keywords.is-text {
    gap: 0;
    line-height: 1.5;
}

.semiyas-co-public-image-keywords.is-text .semiyas-co-public-image-keyword {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.semiyas-co-public-image-keywords.is-text .semiyas-co-public-image-keyword-separator {
    margin: 0 0.35em;
    opacity: 0.72;
}

.semiyas-co-public-image-keywords.is-overlay.is-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.semiyas-co-elementor-gallery-item > .semiyas-co-public-image-keywords.is-below {
    width: 100%;
    margin-top: 7px;
}

/* Before JavaScript places each list at its image, keep the server-rendered,
   visible fallback in normal flow. This is also the accessible no-JS output. */
.semiyas-co-elementor-keyword-fallback {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.semiyas-co-elementor-keyword-fallback > .semiyas-co-public-image-keywords.is-overlay {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-height: none;
    overflow: visible;
    color: #1d2327;
    text-shadow: none;
}

.semiyas-co-elementor-keyword-fallback > .semiyas-co-public-image-keywords.is-overlay.is-pills .semiyas-co-public-image-keyword {
    border-color: rgba(0, 0, 0, 0.14);
    background: #f6f7f7;
    color: inherit;
    box-shadow: none;
}

.semiyas-co-elementor-keyword-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

.semiyas-co-elementor-keyword-filter {
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.semiyas-co-elementor-keyword-filter:hover,
.semiyas-co-elementor-keyword-filter:focus-visible,
.semiyas-co-elementor-keyword-filter.is-active {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.semiyas-co-elementor-keyword-filter:focus-visible {
    outline: 2px solid #72aee6;
    outline-offset: 2px;
}

.semiyas-co-elementor-gallery-item.is-semiyas-filtered-out {
    display: none !important;
}
