/* Furry Latino Gallery */

.fnc-gallery {
    --fnc-gallery-gap: 4px;
    --fnc-gallery-radius: 12px;
    --fnc-gallery-studio-width: min(960px, calc(100vw - 2.5rem));
    --fnc-gallery-surface: rgba(255, 255, 255, 0.035);
    --fnc-gallery-border: rgba(127, 127, 127, 0.2);
    --fnc-gallery-muted: rgba(160, 160, 170, 0.88);
    --fnc-gallery-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    --fnc-gallery-input-bg: rgba(10, 12, 18, 0.92);
    --fnc-gallery-select-bg: rgba(10, 12, 18, 0.96);
    --fnc-header-h: var(--fnc-header-height, 5rem);
    color-scheme: dark;
    box-sizing: border-box;
}

/* ── Full-bleed breakout (edge to edge) ── */
.fnc-gallery--tapestry,
.fnc-gallery--my.fnc-gallery--studio {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 2.5rem;
}

.fnc-gallery--studio:not(.fnc-gallery--tapestry):not(.fnc-gallery--my) {
    max-width: none;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.fnc-gallery--studio .fnc-gallery__workspace,
.fnc-gallery--studio .fnc-gallery__studio-form,
.fnc-gallery--studio .fnc-gallery__banner--subhead {
    width: var(--fnc-gallery-studio-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ── Sub-header banner (sticky, flush under site header) ── */
.fnc-gallery__banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.7rem clamp(1rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(72, 96, 140, 0.18);
    background: linear-gradient(180deg, rgba(16, 22, 34, 0.97) 0%, rgba(13, 18, 28, 0.95) 100%);
    backdrop-filter: blur(12px);
}

.fnc-gallery--tapestry > .fnc-gallery__banner,
.fnc-gallery--my > .fnc-gallery__banner {
    position: sticky;
    top: var(--fnc-header-h);
    z-index: 90;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.fnc-gallery__banner--compact .fnc-gallery__banner-copy {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fnc-gallery__banner-copy--studio {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.fnc-gallery__studio-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    flex: 1;
    min-width: 0;
}

.fnc-gallery__studio-view-album {
    flex: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--fnc-gallery-muted, rgba(255, 255, 255, 0.55));
    text-decoration: none;
    white-space: nowrap;
}

.fnc-gallery__studio-view-album:hover,
.fnc-gallery__studio-view-album:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.fnc-gallery__banner-copy--studio .fnc-gallery__banner-title {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fnc-gallery__banner-title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    color: rgba(225, 230, 240, 0.95);
}

.fnc-gallery__banner-admin-note {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 196, 120, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fnc-gallery__banner-admin-note::before {
    content: "\26A0";
    font-size: 0.85rem;
}

.fnc-gallery__banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* ── Buttons (reset theme global purple pill on button/input) ── */
.fnc-gallery button.fnc-gallery__btn,
.fnc-gallery button.fnc-gallery__icon-btn,
.fnc-gallery button.fnc-gallery__trash-btn,
.fnc-gallery a.fnc-gallery__btn {
    flex: none !important;
    letter-spacing: normal !important;
    transform: none;
}

.fnc-gallery button.fnc-gallery__icon-btn,
.fnc-gallery button.fnc-gallery__trash-btn {
    padding: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: normal !important;
    color: #ef5f5f !important;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.fnc-gallery button.fnc-gallery__icon-btn:hover,
.fnc-gallery button.fnc-gallery__icon-btn:focus-visible,
.fnc-gallery button.fnc-gallery__trash-btn:hover,
.fnc-gallery button.fnc-gallery__trash-btn:focus-visible {
    color: #ff8585 !important;
    background: rgba(239, 95, 95, 0.14) !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.fnc-gallery__trash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.fnc-gallery__trash-btn--album {
    width: 48px;
    height: 48px;
}

.fnc-gallery__trash-btn--photo {
    width: 44px;
    height: 44px;
    margin-left: 0;
    margin-top: 0;
    flex-shrink: 0;
}

.fnc-gallery__trash-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.fnc-gallery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--fnc-color-primary, #7c5cff);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fnc-gallery__btn:hover {
    filter: brightness(1.06);
}

.fnc-gallery__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Theme base sets a:hover { color: blue } — keep primary buttons readable */
.fnc-gallery a.fnc-gallery__btn--primary,
.fnc-gallery a.fnc-gallery__btn--primary:hover,
.fnc-gallery a.fnc-gallery__btn--primary:focus-visible,
.fnc-gallery button.fnc-gallery__btn--primary,
.fnc-gallery button.fnc-gallery__btn--primary:hover,
.fnc-gallery button.fnc-gallery__btn--primary:focus-visible {
    color: #fff;
}

.fnc-gallery__btn--primary {
    background: var(--fnc-color-primary, #7c5cff);
}

.fnc-gallery__btn--primary:hover {
    filter: none;
    background: #6a48e8;
}

.fnc-gallery__btn--sm {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
}

.fnc-gallery__btn--ghost {
    background: transparent;
    border-color: var(--fnc-gallery-border);
    color: inherit;
}

.fnc-gallery a.fnc-gallery__btn--ghost:hover,
.fnc-gallery a.fnc-gallery__btn--ghost:focus-visible {
    color: inherit;
}

.fnc-gallery__btn--ghost:hover {
    background: rgba(127, 127, 127, 0.1);
    filter: none;
}

.fnc-gallery__btn--submit {
    min-width: 11.5rem;
    padding: 0.58rem 1.4rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(130, 150, 185, 0.35) !important;
    background: linear-gradient(180deg, #445268 0%, #343f52 100%) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18),
        0 4px 14px rgba(0, 0, 0, 0.22) !important;
    color: #f3f6fb !important;
    font-size: 0.9rem;
    font-weight: 650 !important;
}

.fnc-gallery button.fnc-gallery__btn--submit,
.fnc-gallery button.fnc-gallery__btn--submit:hover,
.fnc-gallery button.fnc-gallery__btn--submit:focus-visible,
.fnc-gallery button.fnc-gallery__btn--submit .fnc-gallery__btn-icon,
.fnc-gallery a.fnc-gallery__btn--submit,
.fnc-gallery a.fnc-gallery__btn--submit:hover,
.fnc-gallery a.fnc-gallery__btn--submit:focus-visible {
    color: #f3f6fb !important;
}

.fnc-gallery__btn--submit:hover {
    background: linear-gradient(180deg, #516076 0%, #3d495f 100%) !important;
    filter: none !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

.fnc-gallery__btn--danger {
    border-color: rgba(214, 69, 69, 0.45);
    background: rgba(214, 69, 69, 0.12);
    color: #ffb4b4;
}

.fnc-gallery__btn--danger:hover {
    background: rgba(214, 69, 69, 0.22);
    color: #fff;
}

.fnc-gallery__btn-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

.fnc-gallery__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(120, 140, 180, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 225, 235, 0.92);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.fnc-gallery a.fnc-gallery__back:hover,
.fnc-gallery a.fnc-gallery__back:focus-visible {
    color: #fff;
}

.fnc-gallery__back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(140, 160, 200, 0.35);
    transform: translateX(-2px);
}

.fnc-gallery__back svg {
    display: block;
}

/* ── Tapestry mosaic (full width, natural aspect ratios) ── */
.fnc-gallery--tapestry .fnc-gallery__canvas {
    width: 100%;
    min-height: 50vh;
    padding: var(--fnc-gallery-gap);
    box-sizing: border-box;
}

.fnc-gallery__mosaic,
.fnc-gallery__skeletons {
    column-gap: var(--fnc-gallery-gap);
    column-count: 6;
}

@media (max-width: 1600px) { .fnc-gallery__mosaic, .fnc-gallery__skeletons { column-count: 5; } }
@media (max-width: 1200px) { .fnc-gallery__mosaic, .fnc-gallery__skeletons { column-count: 4; } }
@media (max-width: 900px)  { .fnc-gallery__mosaic, .fnc-gallery__skeletons { column-count: 3; } }
@media (max-width: 600px)  { .fnc-gallery__mosaic, .fnc-gallery__skeletons { column-count: 2; } }
@media (max-width: 380px)  { .fnc-gallery__mosaic, .fnc-gallery__skeletons { column-count: 1; } }

.fnc-gallery--tapestry .fnc-gallery__tile {
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 var(--fnc-gallery-gap);
    overflow: hidden;
    border-radius: 2px;
    text-decoration: none;
    color: #fff;
    background: rgba(127, 127, 127, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.25s ease, z-index 0s;
}

.fnc-gallery--tapestry .fnc-gallery__tile--loaded,
.fnc-gallery--tapestry .fnc-gallery__tile.is-visible {
    opacity: 1;
}

.fnc-gallery--tapestry .fnc-gallery__tile:hover {
    filter: brightness(1.05);
    z-index: 3;
}

.fnc-gallery__tile-photo {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.fnc-gallery--tapestry .fnc-gallery__tile-photo img,
.fnc-gallery--tapestry .fnc-gallery__tile--plain img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.25s ease;
    will-change: transform;
}

.fnc-gallery--tapestry .fnc-gallery__tile:hover .fnc-gallery__tile-photo img,
.fnc-gallery--tapestry .fnc-gallery__tile--plain:hover img {
    transform: scale(1.045);
}

.fnc-gallery--tapestry .fnc-gallery__tile--plain {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.fnc-gallery__tile-meta {
    position: absolute;
    inset: auto 0 0;
    padding: 2rem 0.55rem 0.5rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.fnc-gallery--tapestry .fnc-gallery__tile:hover .fnc-gallery__tile-meta {
    opacity: 1;
}

.fnc-gallery__tile-meta .fnc-gallery__tile-member {
    pointer-events: auto;
}

.fnc-gallery__tile-member,
.fnc-gallery__member-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.fnc-gallery__tile-member:hover,
.fnc-gallery__member-chip:hover {
    color: #fff;
}

.fnc-gallery__member-avatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.fnc-gallery__member-chip .fnc-gallery__member-avatar {
    width: 36px;
    height: 36px;
}

.fnc-gallery__member-avatar--empty {
    display: inline-block;
}

.fnc-gallery__member-body {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.fnc-gallery__member-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    min-width: 0;
}

.fnc-gallery__member-name {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
}

.fnc-gallery__member-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.fnc-gallery__member-badges .profile-app-badge {
    flex: 0 0 auto;
}

.fnc-gallery__member-status {
    font-size: 0.72rem;
    line-height: 1.25;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fnc-gallery__tile-user { font-weight: 600; }
.fnc-gallery__tile-album { opacity: 0.85; }

.fnc-gallery__skeletons {
    margin-top: var(--fnc-gallery-gap);
}

.fnc-gallery__skeleton {
    break-inside: avoid;
    margin: 0 0 var(--fnc-gallery-gap);
    border-radius: 2px;
    background: linear-gradient(110deg, rgba(127,127,127,0.1) 8%, rgba(127,127,127,0.22) 18%, rgba(127,127,127,0.1) 33%);
    background-size: 200% 100%;
    animation: fnc-gallery-shimmer 1.35s linear infinite;
    opacity: calc(1 - (var(--skeleton-index, 0) * 0.07));
}

@keyframes fnc-gallery-shimmer {
    to { background-position-x: -200%; }
}

.fnc-gallery__more {
    text-align: center;
    padding: 1.25rem 1rem 0.5rem;
}

.fnc-gallery__more--auto {
    padding: 0.5rem 1rem 1rem;
}

.fnc-gallery__scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.fnc-gallery__load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(
        180deg,
        rgba(255, 160, 64, 0.95) 0%,
        var(--fnc-color-primary, #7c5cff) 52%,
        rgba(232, 116, 15, 0.92) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 4px 18px rgba(124, 92, 255, 0.28);
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.fnc-gallery__load-more-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.fnc-gallery__load-more-btn:disabled,
.fnc-gallery__load-more-btn.is-loading {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--fnc-gallery-border);
    color: var(--fnc-gallery-muted);
    box-shadow: none;
    filter: none;
    transform: none;
    opacity: 0.72;
    cursor: wait;
    pointer-events: none;
}

.fnc-gallery__load-more-btn.is-loading {
    position: relative;
    padding-left: 2.35rem;
}

.fnc-gallery__load-more-btn.is-loading .fnc-gallery__load-more-label {
    opacity: 0.85;
}

.fnc-gallery__load-more-btn.is-loading::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: -0.675rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--fnc-color-primary, #7c5cff);
    animation: fnc-gallery-spin 0.7s linear infinite;
}

@keyframes fnc-gallery-spin {
    to { transform: rotate(360deg); }
}

/* ── Empty states ── */
.fnc-gallery__empty--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    min-height: 320px;
    margin: 2rem clamp(1rem, 3vw, 2rem);
    padding: 2rem 1.5rem;
    border: 1px dashed var(--fnc-gallery-border);
    border-radius: var(--fnc-gallery-radius);
    background: var(--fnc-gallery-surface);
}

.fnc-gallery__empty-icon {
    color: var(--fnc-color-primary, #7c5cff);
    opacity: 0.85;
}

.fnc-gallery__empty--hero h2 {
    margin: 0;
    font-size: 1.25rem;
}

.fnc-gallery__empty--hero p {
    margin: 0;
    max-width: 28rem;
    color: var(--fnc-gallery-muted);
    font-size: 0.92rem;
}

/* ── Album list ── */
.fnc-gallery--my .fnc-gallery__workspace {
    padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 0;
}

.fnc-gallery__album-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fnc-gallery__album-card-wrap {
    position: relative;
}

.fnc-gallery__album-card-wrap .fnc-gallery__album-card {
    padding-right: 9rem;
}

.fnc-gallery__album-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.1rem;
    min-height: 88px;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: var(--fnc-gallery-radius);
    background: var(--fnc-gallery-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.fnc-gallery__album-card:hover {
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(124, 92, 255, 0.04);
}

.fnc-gallery__album-stack {
    position: relative;
    width: 148px;
    height: 80px;
    flex-shrink: 0;
}

.fnc-gallery__album-stack-item {
    position: absolute;
    top: 0;
    left: calc(var(--stack-index, 0) * 16px);
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    background: rgba(127, 127, 127, 0.15);
    z-index: calc(10 - var(--stack-index, 0));
}

.fnc-gallery__album-stack-item.is-cover {
    z-index: 10;
}

.fnc-gallery__album-stack-item.is-empty {
    background: linear-gradient(135deg, rgba(127,127,127,0.06), rgba(127,127,127,0.16));
}

.fnc-gallery__album-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fnc-gallery__album-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fnc-gallery__album-card-body strong {
    font-size: 1rem;
    font-weight: 650;
}

.fnc-gallery__album-card-body span {
    color: var(--fnc-gallery-muted);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fnc-gallery__album-edit {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.08);
    color: var(--fnc-gallery-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    z-index: 2;
}

.fnc-gallery__album-edit:hover {
    color: #fff;
    border-color: rgba(124, 92, 255, 0.45);
    background: rgba(124, 92, 255, 0.1);
}

.fnc-gallery__album-edit span {
    white-space: nowrap;
}

/* ── Public album view ── */
.fnc-gallery__banner--album .fnc-gallery__banner-copy--album {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.fnc-gallery__album-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.fnc-gallery__album-head-main {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.fnc-gallery__album-owner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
}

.fnc-gallery__album-of-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery__album-title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.fnc-gallery__album-description {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem clamp(1rem, 3vw, 2rem) 0.25rem;
    border-bottom: 1px solid var(--fnc-gallery-border);
    background: rgba(127, 127, 127, 0.04);
}

.fnc-gallery__album-description p {
    margin: 0;
    max-width: 72rem;
    color: var(--fnc-gallery-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.fnc-gallery__empty--inline {
    margin: 2rem clamp(1rem, 3vw, 2rem);
    color: var(--fnc-gallery-muted);
    text-align: center;
}

@media (max-width: 640px) {
    .fnc-gallery__album-card-wrap {
        padding-bottom: 2.5rem;
    }

    .fnc-gallery__album-edit {
        top: auto;
        bottom: 0.75rem;
        right: 0.85rem;
        transform: none;
    }

    .fnc-gallery__album-card {
        grid-template-columns: 1fr;
    }

    .fnc-gallery__album-stack {
        margin: 0 auto;
    }
}

/* ── Studio form ── */
.fnc-gallery__panel {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: var(--fnc-gallery-radius);
    background: var(--fnc-gallery-surface);
}

.fnc-gallery__panel-title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery__field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.fnc-gallery__field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.fnc-gallery__field input[type="text"],
.fnc-gallery__field textarea,
.fnc-gallery__field select,
.fnc-gallery__photo-card-fields input,
.fnc-gallery__photo-card-fields textarea,
.fnc-gallery__photo-card-fields select,
.fnc-gallery__select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: 10px;
    background: var(--fnc-gallery-input-bg);
    color: inherit;
    font: inherit;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fnc-gallery__field select,
.fnc-gallery__photo-card-fields select,
.fnc-gallery__select {
    flex: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.35rem !important;
    background-color: var(--fnc-gallery-select-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23b8c0d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.fnc-gallery__select option,
.fnc-gallery__field select option,
.fnc-gallery__photo-card-fields select option {
    background: #12161f;
    color: #ececf2;
}

.fnc-gallery__field input:focus,
.fnc-gallery__field textarea:focus,
.fnc-gallery__field select:focus,
.fnc-gallery__photo-card-fields input:focus,
.fnc-gallery__photo-card-fields textarea:focus,
.fnc-gallery__photo-card-fields select:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.55);
}

.fnc-gallery__field small,
.fnc-gallery__minor-note {
    display: block;
    margin-top: 0.3rem;
    color: var(--fnc-gallery-muted);
    font-size: 0.78rem;
}

/* Privacy: grouped list (iOS-style) */
.fnc-gallery__privacy-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}

.fnc-gallery__privacy-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(127, 127, 127, 0.14);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fnc-gallery__privacy-option:last-child {
    border-bottom: none;
}

.fnc-gallery__privacy-option:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fnc-gallery__privacy-option:has(input:checked) {
    background: rgba(124, 92, 255, 0.06);
}

.fnc-gallery__privacy-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fnc-gallery__privacy-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    flex: 1;
    min-width: 0;
}

.fnc-gallery__privacy-copy strong {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.fnc-gallery__privacy-copy small {
    color: var(--fnc-gallery-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.fnc-gallery__privacy-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(140, 150, 170, 0.45);
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fnc-gallery__privacy-option:has(input:checked) .fnc-gallery__privacy-indicator {
    border-color: var(--fnc-color-primary, #7c5cff);
    background: var(--fnc-color-primary, #7c5cff);
    box-shadow: inset 0 0 0 3px rgba(13, 18, 28, 0.95);
}

/* Dropzone */
.fnc-gallery__dropzone {
    border: 1.5px dashed var(--fnc-gallery-border);
    border-radius: var(--fnc-gallery-radius);
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fnc-gallery__dropzone.is-dragover,
.fnc-gallery__dropzone:focus-visible {
    border-color: rgba(124, 92, 255, 0.55);
    background: rgba(124, 92, 255, 0.05);
    outline: none;
}

.fnc-gallery__dropzone-frame { pointer-events: none; }

.fnc-gallery__dropzone-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.6rem;
    border: 1.5px dashed var(--fnc-gallery-border);
    border-radius: 10px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery__dropzone p {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.fnc-gallery__dropzone-text--touch {
    display: none;
}

@media (max-width: 768px) {
    .fnc-gallery__dropzone-text--desktop {
        display: none;
    }

    .fnc-gallery__dropzone-text--touch {
        display: block;
    }
}

.fnc-gallery__dropzone small {
    color: var(--fnc-gallery-muted);
    font-size: 0.78rem;
}

.fnc-gallery__queue,
.fnc-gallery__photo-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.fnc-gallery__photo-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--fnc-gallery-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .fnc-gallery__photo-card {
        grid-template-columns: 1fr;
    }
}

.fnc-gallery__photo-card-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.fnc-gallery__photo-card-fields {
    display: grid;
    gap: 0.6rem;
    position: relative;
}

.fnc-gallery__photo-card-head {
    display: block;
}

.fnc-gallery__photo-card-title-wrap {
    min-width: 0;
}

.fnc-gallery__field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.fnc-gallery__field-label-row .fnc-gallery__field-label {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.fnc-gallery__field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery__required {
    color: #ef5f5f;
    font-weight: 700;
}

.fnc-gallery__cover-pill {
    display: block;
    margin-top: 0.1rem;
}

.fnc-gallery__cover-hint {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(120, 170, 255, 0.22);
    background: rgba(70, 120, 200, 0.1);
    color: rgba(200, 220, 255, 0.88);
    font-size: 0.84rem;
    line-height: 1.4;
}

.fnc-gallery__cover-pill input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fnc-gallery__cover-pill-face {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.95rem;
    border: 1px solid rgba(120, 140, 180, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(210, 215, 225, 0.88);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fnc-gallery__cover-pill:hover .fnc-gallery__cover-pill-face {
    border-color: rgba(120, 160, 220, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

.fnc-gallery__cover-pill:has(input:checked) .fnc-gallery__cover-pill-face {
    border-color: rgba(96, 164, 255, 0.55);
    background: rgba(56, 120, 210, 0.16);
    color: #e8f2ff;
    box-shadow: 0 0 0 1px rgba(96, 164, 255, 0.18);
}

.fnc-gallery__cover-pill-face svg {
    opacity: 0.9;
    flex-shrink: 0;
}

.fnc-gallery__studio-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0 0.25rem;
}

.fnc-gallery__studio-actions--top {
    padding: 0.15rem 0 1rem;
    margin: 0 0 0.35rem;
    justify-content: center;
}

.fnc-gallery__migration-title-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #b8d9ff;
}

.fnc-gallery__migration-title-hint--required {
    color: #ffd89a;
}

.fnc-gallery__photo-card input[data-fnc-gallery-manual-title] {
    border-color: rgba(255, 183, 77, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.18);
}

.fnc-gallery__photo-card input[data-fnc-gallery-migration-title] {
    border-color: rgba(96, 164, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(96, 164, 255, 0.12);
}

.fnc-gallery__photo-card-notice {
    display: none;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 183, 77, 0.35);
    background: rgba(255, 183, 77, 0.1);
    color: #ffd89a;
    font-size: 0.82rem;
    line-height: 1.35;
}

.fnc-gallery__photo-card-notice.is-visible {
    display: flex;
}

.fnc-gallery__photo-card-notice.is-pending {
    border-color: rgba(96, 164, 255, 0.35);
    background: rgba(96, 164, 255, 0.1);
    color: #b8d9ff;
}

.fnc-gallery__photo-card-notice-icon {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}

.fnc-gallery__photo-card-status {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(96, 164, 255, 0.35);
    background: rgba(96, 164, 255, 0.1);
    color: #b8d9ff;
    font-size: 0.82rem;
    line-height: 1.35;
}

.fnc-gallery__photo-card-status--blocked {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.12);
    color: #ffb3ac;
}

.fnc-gallery__photo-card-status strong {
    display: block;
}

.fnc-gallery__photo-card-status-reason,
.fnc-gallery__photo-card-status-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85em;
    line-height: 1.35;
}

.fnc-gallery__photo-card-status-reason strong {
    display: inline;
}

.fnc-gallery__photo-card-status-hint {
    opacity: 0.8;
}

.fnc-gallery__photo-card-status-icon {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Modal */
.fnc-gallery__modal[hidden] { display: none !important; }

.fnc-gallery__modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.fnc-gallery__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.fnc-gallery__modal-dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--fnc-gallery-border);
    background: var(--fnc-bg, #1a1a1f);
    box-shadow: var(--fnc-gallery-shadow);
}

.fnc-gallery__modal-dialog h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.fnc-gallery__modal-dialog p { margin: 0; font-size: 0.9rem; color: var(--fnc-gallery-muted); }

.fnc-gallery__modal-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 1rem 0;
    font-size: 0.86rem;
}

.fnc-gallery__modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Misc pages */
.fnc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--fnc-gallery-gap);
}

.fnc-gallery__grid-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.fnc-gallery__grid-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.fnc-gallery__figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--fnc-gallery-radius);
}

/* ── Artwork (single photo) ── */
.fnc-gallery--artwork {
    --fnc-gallery-artwork-panel: min(380px, 100%);
}

/* ── Artwork v2 (DeviantArt-style) ── */
.fnc-gallery--artwork-v2 {
    --fnc-gallery-artwork-rail-min: 260px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(var(--fnc-gallery-artwork-rail-min), 1fr);
    grid-template-areas:
        "stage rail"
        "detail rail";
    gap: 0;
    align-items: start;
    border-bottom: 1px solid var(--fnc-gallery-border);
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-layout--no-rail {
    grid-template-columns: 1fr;
    grid-template-areas:
        "stage"
        "detail";
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-stage {
    grid-area: stage;
    min-height: min(62vh, 760px);
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1rem 1rem 1.5rem;
    background: rgba(8, 10, 16, 0.92);
    border-left: 1px solid var(--fnc-gallery-border);
    align-self: stretch;
}

/* La columna derecha "se mantiene" visible al hacer scroll (como en el muro):
   el panel de fondo ocupa toda la altura y su contenido queda fijo (sticky)
   bajo el encabezado mientras el detalle/comentarios de la izquierda se desplaza. */
.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: sticky;
    top: calc(var(--fnc-header-h, 0px) + 1rem);
    max-height: calc(100vh - var(--fnc-header-h, 0px) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner::-webkit-scrollbar {
    width: 6px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner::-webkit-scrollbar-track {
    background: transparent;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
}

/* ---- Carga diferida de engagement (solo logueados) ---------------------- */
/* Skeletons que ocupan el sitio del riel y de comentarios mientras el cliente
   trae el HTML real por AJAX; evita saltos de layout y da feedback de carga. */
@keyframes fnc-gallery-skeleton-shimmer {
    0%   { background-position: -480px 0; }
    100% { background-position: 480px 0; }
}

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton,
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton + .fnc-gallery__rail-skeleton {
    margin-top: 0.4rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton-title,
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-title {
    height: 0.85rem;
    width: 60%;
    border-radius: 6px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton-cell {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-ava {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-lines span {
    height: 0.7rem;
    border-radius: 6px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-lines span:first-child { width: 35%; }
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-lines span:last-child  { width: 85%; }

.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton-title,
.fnc-gallery--artwork-v2 .fnc-gallery__rail-skeleton-cell,
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-title,
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-ava,
.fnc-gallery--artwork-v2 .fnc-gallery__comments-skeleton-lines span {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.12) 37%,
        rgba(255, 255, 255, 0.05) 63%);
    background-size: 480px 100%;
    animation: fnc-gallery-skeleton-shimmer 1.4s ease-in-out infinite;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments--defer {
    padding-top: 0.5rem;
}

/* Aparición suave del contenido real inyectado por AJAX. */
.fnc-gallery__engagement-fade {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.fnc-gallery__engagement-fade.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fnc-gallery__rail-skeleton-title,
    .fnc-gallery__rail-skeleton-cell,
    .fnc-gallery__comments-skeleton-title,
    .fnc-gallery__comments-skeleton-ava,
    .fnc-gallery__comments-skeleton-lines span {
        animation: none;
    }

    .fnc-gallery__engagement-fade {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-detail {
    grid-area: detail;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    background: var(--fnc-gallery-surface);
    border-top: 1px solid var(--fnc-gallery-border);
    min-width: 0;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-nav {
    padding: 0.65rem;
    border-radius: 12px;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-nav span {
    display: none;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 8px 24px rgba(0, 0, 0, 0.18);
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar-author {
    flex: 0 1 auto;
    min-width: 0;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.fnc-gallery__artwork-toolbar-follow,
.fnc-gallery__artwork-toolbar-follow-form {
    display: inline-flex;
    margin: 0;
}

.fnc-gallery__artwork-toolbar-follow-form button.fnc-gallery__control-btn {
    width: auto;
}

.fnc-gallery__artwork-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 1.75rem;
    margin: 0 0.15rem;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
    align-self: center;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar-menu {
    margin-left: auto;
    flex-shrink: 0;
}

.fnc-gallery__member-chip--toolbar {
    gap: 0.65rem;
    padding: 0;
}

.fnc-gallery__member-chip--toolbar .fnc-gallery__member-avatar {
    width: 40px;
    height: 40px;
}

.fnc-gallery__member-chip--toolbar .fnc-gallery__member-name {
    font-size: 0.92rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar .fnc-gallery__member-status {
    color: rgba(168, 178, 198, 0.82);
    opacity: 1;
    font-size: 0.74rem;
}

.fnc-gallery button.fnc-gallery__control-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0.58rem 1.15rem 0.58rem 0.95rem;
    margin: 0;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 10px;
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 52%, #5b21b6 100%);
    color: #fff !important;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 4px 16px rgba(109, 40, 217, 0.38);
    transition:
        transform 0.15s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        border-color 0.18s ease;
}

.fnc-gallery button.fnc-gallery__control-btn:hover,
.fnc-gallery button.fnc-gallery__control-btn:focus-visible {
    outline: none;
    filter: brightness(1.06);
    transform: translateY(-1px);
    border-color: rgba(196, 181, 253, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 8px 22px rgba(109, 40, 217, 0.45);
}

.fnc-gallery__control-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.fnc-gallery__control-btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}

.fnc-gallery__control-btn-label {
    line-height: 1.1;
    color: #fff;
}

.fnc-gallery button.fnc-gallery__control-btn--favorite .fnc-gallery__control-btn-icon {
    color: #ffd54a;
    filter: drop-shadow(0 0 7px rgba(255, 213, 74, 0.45));
}

.fnc-gallery button.fnc-gallery__control-btn--favorite {
    width: auto;
    flex-shrink: 0;
}

.fnc-gallery button.fnc-gallery__control-btn--favorite .fnc-gallery__control-btn-label {
    white-space: nowrap;
}

.fnc-gallery button.fnc-gallery__control-btn--follow [data-profile-follow-label] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.fnc-gallery button.fnc-gallery__control-btn--follow .fnc-gallery__control-btn-label {
    white-space: nowrap;
}

.fnc-gallery button.fnc-gallery__control-btn--follow .fnc-gallery__control-btn-icon {
    color: #c4b5fd;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
    overflow: visible;
}

.fnc-gallery button.fnc-gallery__control-btn--follow .fnc-gallery__control-btn-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    overflow: visible;
}

.fnc-gallery button.fnc-gallery__control-btn--like .fnc-gallery__control-btn-icon {
    color: #fbcfe8;
    filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.28));
}

.fnc-gallery button.fnc-gallery__control-btn--like.is-liked .fnc-gallery__control-btn-icon {
    color: #fb7185;
    filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.55));
}

.fnc-gallery button.fnc-gallery__control-btn--share .fnc-gallery__control-btn-icon {
    color: #86efac;
    filter: drop-shadow(0 0 7px rgba(134, 239, 172, 0.35));
}

.fnc-gallery button.fnc-gallery__control-btn--comment .fnc-gallery__control-btn-icon {
    color: #7dd3fc;
    filter: drop-shadow(0 0 7px rgba(125, 211, 252, 0.4));
}

.fnc-gallery__artwork-title-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 0.35rem;
}

.fnc-gallery__artwork-album-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: -0.35rem 0 0;
}

.fnc-gallery__artwork-upload-date {
    margin-left: auto;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(168, 178, 198, 0.88);
    white-space: nowrap;
}

.fnc-gallery__discovery-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fnc-gallery__discovery-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: 0.015em;
    line-height: 1.25;
    color: rgba(245, 248, 255, 0.96);
}

.fnc-gallery__discovery-empty {
    margin: 0;
    font-size: 0.78rem;
    color: var(--fnc-gallery-muted);
    line-height: 1.45;
}

.fnc-gallery__discovery-grid {
    display: grid;
    gap: 0.35rem;
}

.fnc-gallery__discovery-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fnc-gallery__discovery-grid--rows-3 {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.fnc-gallery__discovery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 1;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.fnc-gallery__discovery-thumb:hover,
.fnc-gallery__discovery-thumb:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(124, 92, 255, 0.45);
    outline: none;
}

.fnc-gallery__discovery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.28s ease;
}

.fnc-gallery__discovery-thumb:hover img,
.fnc-gallery__discovery-thumb:focus-visible img {
    transform: scale(1.045);
}

.fnc-gallery__discovery-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.fnc-gallery__discovery-artists {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 0.45rem;
}

.fnc-gallery__discovery-artist {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease;
}

.fnc-gallery__discovery-artist:hover,
.fnc-gallery__discovery-artist:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.fnc-gallery__discovery-artist-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.fnc-gallery__discovery-artist-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.28s ease;
}

.fnc-gallery__discovery-artist:hover .fnc-gallery__discovery-artist-cover img,
.fnc-gallery__discovery-artist:focus-visible .fnc-gallery__discovery-artist-cover img {
    transform: scale(1.045);
}

.fnc-gallery__discovery-artist-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.fnc-gallery__discovery-artist-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.fnc-gallery__discovery-artist-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fnc-gallery__discovery-artist-avatar--empty {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
}

.fnc-gallery__discovery-artist-name {
    font-size: 0.74rem;
    font-weight: 650;
    color: rgba(236, 240, 248, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fnc-gallery-border);
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments,
.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-gallery__comments {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments__title,
.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-gallery__comments-title {
    margin: 0;
    font-size: 1.15rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments__count {
    font-size: 0.9rem;
    color: rgba(180, 190, 210, 0.88);
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments__form {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    padding-top: 0.35rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-comments .fnc-comments__field textarea {
    margin-top: 0.15rem;
}

.fnc-gallery--artwork-v2 .fnc-gallery__artwork-description {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.98rem;
    line-height: 1.65;
}

.fnc-gallery__artwork-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--fnc-gallery-artwork-panel);
    gap: 0;
    min-height: calc(100vh - 120px);
    border-bottom: 1px solid var(--fnc-gallery-border);
}

.fnc-gallery__artwork-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
    background:
        radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.08), transparent 55%),
        #0d0f14;
    min-height: 420px;
}

.fnc-gallery__artwork-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.72);
    backdrop-filter: blur(8px);
    color: rgba(240, 244, 250, 0.95);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-50%);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.fnc-gallery__artwork-nav:hover,
.fnc-gallery__artwork-nav:focus-visible {
    color: #fff;
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.22);
}

.fnc-gallery__artwork-nav--prev {
    left: clamp(0.65rem, 2vw, 1.25rem);
}

.fnc-gallery__artwork-nav--next {
    right: clamp(0.65rem, 2vw, 1.25rem);
}

.fnc-gallery__artwork-nav span {
    line-height: 1;
}

.fnc-gallery__artwork-counter {
    position: absolute;
    left: 50%;
    bottom: clamp(0.65rem, 2vw, 1rem);
    transform: translateX(-50%);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 245, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.fnc-gallery button.fnc-gallery__btn--submit.is-loading,
.fnc-gallery button.fnc-gallery__btn--submit:disabled {
    opacity: 0.72;
    cursor: wait;
    pointer-events: none;
}

.fnc-gallery__artwork-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.fnc-gallery__artwork-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    background: var(--fnc-gallery-surface);
    border-left: 1px solid var(--fnc-gallery-border);
}

.fnc-gallery__artwork-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.fnc-gallery__artwork-panel-head .fnc-gallery__artwork-author {
    flex: 1;
    min-width: 0;
}

.fnc-gallery__artwork-author {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fnc-gallery__artwork-author .fnc-gallery__member-chip {
    padding: 0.35rem 0;
}

.fnc-gallery__artwork-album-link {
    font-size: 0.86rem;
    color: var(--fnc-gallery-muted);
    text-decoration: none;
}

.fnc-gallery__artwork-album-link:hover {
    color: #fff;
}

.fnc-gallery__artwork-album-link strong {
    color: inherit;
    font-weight: 650;
}

.fnc-gallery__artwork-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    font-weight: 700;
}

.fnc-gallery__artwork-description {
    color: var(--fnc-gallery-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.fnc-gallery__artwork-description p {
    margin: 0;
}

.fnc-gallery__artwork-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fnc-gallery__artwork-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid var(--fnc-gallery-border);
    background: rgba(127, 127, 127, 0.08);
}

.fnc-gallery__artwork-tag--filter {
    color: #6fd49a;
    border-color: rgba(76, 175, 117, 0.35);
    background: rgba(76, 175, 117, 0.14);
    letter-spacing: 0.02em;
}
.fnc-gallery__artwork-tag--filter[data-level="2"] {
    color: #8eb0ef;
    border-color: rgba(107, 143, 212, 0.4);
    background: rgba(107, 143, 212, 0.16);
}
.fnc-gallery__artwork-tag--filter[data-level="1"] {
    color: #f0b45a;
    border-color: rgba(224, 154, 58, 0.4);
    background: rgba(224, 154, 58, 0.16);
}
.fnc-gallery__artwork-tag--filter[data-level="0"] {
    color: #f07a8e;
    border-color: rgba(214, 69, 93, 0.4);
    background: rgba(214, 69, 93, 0.16);
}

.fnc-gallery__artwork-tag--origin {
    color: #d4c4ff;
    border-color: rgba(212, 196, 255, 0.25);
    background: rgba(212, 196, 255, 0.08);
}

.fnc-gallery__artwork-owner {
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fnc-gallery-border);
}

.fnc-gallery button.fnc-gallery__artwork-owner-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.72rem 0.95rem !important;
    margin: 0;
    border: 1px solid rgba(130, 150, 185, 0.32) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    color: rgba(232, 236, 245, 0.96) !important;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650 !important;
    letter-spacing: normal !important;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    flex: none !important;
    transform: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.fnc-gallery button.fnc-gallery__artwork-owner-toggle:hover,
.fnc-gallery button.fnc-gallery__artwork-owner-toggle:focus-visible {
    color: #fff !important;
    border-color: rgba(124, 92, 255, 0.48) !important;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.16) 0%, rgba(124, 92, 255, 0.07) 100%) !important;
    filter: none !important;
    transform: none !important;
    box-shadow:
        0 2px 8px rgba(124, 92, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.fnc-gallery__artwork-owner.is-open .fnc-gallery__artwork-owner-toggle {
    border-color: rgba(124, 92, 255, 0.55) !important;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.2) 0%, rgba(124, 92, 255, 0.08) 100%) !important;
    box-shadow:
        0 2px 10px rgba(124, 92, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.fnc-gallery__artwork-owner-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.fnc-gallery__artwork-owner-icon {
    flex-shrink: 0;
    opacity: 0.88;
    color: rgba(180, 198, 255, 0.95);
}

.fnc-gallery__artwork-owner-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.fnc-gallery__artwork-owner-chevron {
    flex-shrink: 0;
    opacity: 0.72;
    transition: transform 0.22s ease, opacity 0.18s ease;
}

.fnc-gallery__artwork-owner-toggle:hover .fnc-gallery__artwork-owner-chevron,
.fnc-gallery__artwork-owner.is-open .fnc-gallery__artwork-owner-chevron {
    opacity: 1;
}

.fnc-gallery__artwork-owner.is-open .fnc-gallery__artwork-owner-chevron {
    transform: rotate(180deg);
}

.fnc-gallery__artwork-owner-body {
    padding-top: 0.85rem;
}

.fnc-gallery__artwork-owner-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fnc-gallery__artwork-owner-form select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--fnc-gallery-border);
    background: rgba(127, 127, 127, 0.08);
    color: inherit;
}

.fnc-gallery__artwork-owner-form select:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.55);
}

.fnc-gallery__artwork-owner-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fnc-gallery__field--switch .fnc-gallery__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 0.15rem;
}

.fnc-gallery__field--switch .fnc-gallery__switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fnc-gallery__field--switch .fnc-gallery__switch-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease;
    position: relative;
    flex: 0 0 auto;
}

.fnc-gallery__field--switch .fnc-gallery__switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.fnc-gallery__field--switch .fnc-gallery__switch input:checked + .fnc-gallery__switch-track {
    background: var(--fnc-gallery-accent, #7b5cff);
}

.fnc-gallery__field--switch .fnc-gallery__switch input:checked + .fnc-gallery__switch-track::after {
    transform: translateX(20px);
}

.fnc-gallery__field--switch .fnc-gallery__switch input:focus-visible + .fnc-gallery__switch-track {
    outline: 2px solid var(--fnc-gallery-accent, #7b5cff);
    outline-offset: 2px;
}

.fnc-gallery__artwork-note,
.fnc-gallery__artwork-feedback {
    margin: 0;
    font-size: 0.82rem;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery__artwork-feedback.is-success {
    color: #6fcf97;
}

.fnc-gallery__artwork-feedback.is-error {
    color: #d64545;
}

.fnc-gallery__artwork-panel .fnc-gallery__comments,
.fnc-gallery__artwork-panel .fnc-comments {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fnc-gallery-border, rgba(255, 255, 255, 0.1));
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.fnc-gallery__comments {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.fnc-gallery__comments-title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 650;
}

.fnc-gallery__comments-placeholder {
    padding: 1.25rem 1rem;
    border: 1px dashed var(--fnc-gallery-border);
    border-radius: var(--fnc-gallery-radius);
    background: rgba(127, 127, 127, 0.04);
    color: var(--fnc-gallery-muted);
    text-align: center;
}

.fnc-gallery__comments-placeholder p {
    margin: 0;
}

@media (max-width: 960px) {
    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-layout,
    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-layout--no-rail {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "rail"
            "detail";
    }

    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail {
        position: static;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--fnc-gallery-border);
    }

    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-rail-inner {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-stage {
        min-height: 320px;
    }

    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar {
        gap: 0.65rem;
    }

    .fnc-gallery--artwork-v2 .fnc-gallery__artwork-toolbar-menu {
        margin-left: 0;
    }

    .fnc-gallery__artwork-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fnc-gallery__artwork-panel {
        border-left: none;
        border-top: 1px solid var(--fnc-gallery-border);
    }

    .fnc-gallery__artwork-image {
        max-height: 70vh;
    }

    .fnc-gallery__artwork-nav span {
        display: none;
    }

    .fnc-gallery__artwork-nav {
        padding: 0.55rem;
        border-radius: 12px;
    }
}

.fnc-gallery__menu {
    position: relative;
    flex-shrink: 0;
}

.fnc-gallery .fnc-gallery__menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: rgba(184, 192, 208, 0.92);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.fnc-gallery .fnc-gallery__menu-trigger i {
    pointer-events: none;
}

.fnc-gallery .fnc-gallery__menu-trigger:hover,
.fnc-gallery .fnc-gallery__menu-trigger:focus-visible,
.fnc-gallery__menu.is-open .fnc-gallery__menu-trigger {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.fnc-gallery__banner--album,
.fnc-gallery__banner--album .fnc-gallery__banner-copy--album,
.fnc-gallery__album-head {
    overflow: visible;
}

.fnc-gallery__menu-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 200;
    min-width: 11.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(14, 16, 22, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.fnc-gallery__menu-panel[hidden] {
    display: none;
}

.fnc-gallery__menu.is-open .fnc-gallery__menu-panel {
    display: block;
}

/* En móvil el kebab queda pegado al borde derecho: el panel abre hacia la
   izquierda (right:0) y nunca debe exceder el viewport (mismo arreglo que el muro). */
@media (max-width: 560px) {
    .fnc-gallery__menu-panel {
        right: 0;
        left: auto;
        min-width: 0;
        width: max-content;
        max-width: calc(100vw - 24px);
    }
}

.fnc-gallery__menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.75rem;
    border-radius: 7px;
    color: rgba(230, 235, 245, 0.92);
    font-size: 0.875rem;
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.fnc-gallery__menu-item i {
    width: 1rem;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.88;
}

.fnc-gallery__menu-item:hover,
.fnc-gallery__menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.fnc-gallery__menu-item--report:hover,
.fnc-gallery__menu-item--report:focus-visible {
    color: rgba(232, 168, 168, 0.98);
}

.fnc-gallery__menu-item--delete:hover,
.fnc-gallery__menu-item--delete:focus-visible {
    color: rgba(232, 168, 168, 0.98);
}

.fnc-gallery__error { color: #d64545; }

.fnc-gallery__hashtag-wrap {
    display: block;
    margin-top: 0.35rem;
}

.fnc-gallery__hashtag-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--fnc-gallery-muted, rgba(255, 255, 255, 0.55));
}

.fnc-gallery__hashtag-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.18);
    cursor: text;
}

.fnc-gallery__hashtag-field:focus-within {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fnc-gallery__hashtag-chips {
    display: contents;
}

.fnc-gallery__hashtag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.25;
}

.fnc-gallery__hashtag-chip--readonly {
    padding-right: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
}

.fnc-gallery__hashtag-chip--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.fnc-gallery__hashtag-chip--link:hover,
.fnc-gallery__hashtag-chip--link:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    outline: none;
}

.fnc-gallery__hashtag-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fnc-gallery__hashtag-chip-remove {
    display: inline;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.fnc-gallery__hashtag-chip-remove:hover,
.fnc-gallery__hashtag-chip-remove:focus-visible {
    background: none;
    color: rgba(255, 255, 255, 0.85);
    outline: none;
}

.fnc-gallery__hashtag-input {
    flex: 1 1 8rem;
    min-width: 6rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0.15rem 0;
    outline: none;
}

.fnc-gallery__artwork-hashtags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
}

.fnc-gallery__artwork-taxonomy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.85rem 0 0.35rem;
}

.fnc-gallery__artwork-hashtags-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: .58;
    color: inherit;
}

.fnc-gallery__artwork-hashtags-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.fnc-gallery__artwork-hashtags--character .fnc-gallery__hashtag-chip {
    border-color: rgba(130, 190, 255, .28);
    background: rgba(90, 150, 230, .12);
}

.fnc-gallery__artwork-hashtags--species .fnc-gallery__hashtag-chip {
    border-color: rgba(130, 220, 160, .28);
    background: rgba(70, 180, 120, .12);
}

.fnc-gallery__artwork-hashtags--copyright .fnc-gallery__hashtag-chip {
    border-color: rgba(230, 180, 110, .28);
    background: rgba(200, 140, 60, .12);
}

.fnc-gallery__artwork-hashtags--general .fnc-gallery__hashtag-chip {
    border-color: rgba(170, 150, 255, .28);
    background: rgba(120, 100, 220, .12);
}

.fnc-gallery__artwork-admin .fnc-gallery__artwork-owner-toggle {
    border-color: rgba(255, 183, 77, 0.35) !important;
}

/* ── Profile module (embedded in profile tabs) ── */
.fnc-gallery--profile-module {
    padding: 0.25rem 0 0.5rem;
    text-align: left;
}

.fnc-gallery--profile-module .fnc-gallery__empty--profile-module {
    margin: 0;
    padding: 1.25rem 0.5rem;
    text-align: center;
    color: var(--fnc-gallery-muted);
}

.fnc-gallery--profile-module .fnc-gallery__empty--profile-module p {
    margin: 0 0 0.85rem;
}

.fnc-gallery__album-cards--profile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
}

.fnc-gallery--profile-module .fnc-gallery__album-card-wrap {
    width: 100%;
    margin: 0;
}

.fnc-gallery--profile-module .fnc-gallery__album-card {
    width: 100%;
    align-items: center;
}

.fnc-gallery--profile-module .fnc-gallery__album-card-body {
    justify-content: center;
    text-align: left;
}

.fnc-gallery--profile-module .fnc-gallery__album-card-body strong {
    line-height: 1.35;
    word-break: break-word;
}

#app-profile .modules .fnc-gallery--profile-module .fnc-gallery__album-card-wrap {
    margin: 0;
}

#app-profile .modules .fnc-gallery--profile-module .fnc-gallery__album-card-wrap .fnc-gallery__album-card {
    padding-right: 1.1rem;
}

#app-profile .modules .fnc-gallery--profile-module .fnc-gallery__album-card-wrap:has(.fnc-gallery__album-edit) .fnc-gallery__album-card {
    padding-right: 9rem;
}

/* Aviso de acceso de auditoría (admin viendo un álbum fuera de su alcance) */
.fnc-gallery__audit-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(217, 119, 6, 0.45);
    border-left-width: 4px;
    border-radius: 0.6rem;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 0.92rem;
    line-height: 1.45;
}

.fnc-gallery__audit-notice-icon {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1.45;
    color: #d97706;
}

.fnc-gallery__audit-notice-text strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #92400e;
    font-weight: 700;
}

/* Contenido restringido (existe pero no visible para el visitante) */
.fnc-gallery--restricted {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.fnc-gallery__restricted {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fnc-gallery__restricted-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    font-size: 1.9rem;
}

.fnc-gallery__restricted-title {
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.fnc-gallery__restricted-text {
    margin: 0 0 1.5rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.55;
}

.fnc-gallery__restricted-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--fnc-accent, #6366f1);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.fnc-gallery__restricted-back:hover {
    filter: brightness(1.08);
}

.fnc-gallery__tapestry-search {
    --tgp-purple: #c44dff;
    --tgp-purple-hot: #e879ff;
    --tgp-purple-soft: rgba(196, 77, 255, 0.22);
    --tgp-purple-glow: rgba(196, 77, 255, 0.28);
    display: flex;
    flex: 1 1 18rem;
    flex-direction: column;
    gap: 0;
    min-width: min(100%, 12rem);
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    border: 0;
    background: none;
    box-shadow: none;
}

.fnc-gallery--tapestry > .fnc-gallery__banner {
    gap: 0.75rem 1rem;
}

.fnc-gallery--tapestry > .fnc-gallery__banner > .fnc-gallery__banner-copy {
    flex: 0 0 auto;
}

.fnc-gallery--tapestry > .fnc-gallery__banner > .fnc-gallery__banner-actions {
    flex: 0 0 auto;
    margin-left: 0;
}

.fnc-gallery__tapestry-search-label,
.fnc-gallery .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Una sola barra recta: sin cajas internas ni radios. */
.fnc-gallery__tapestry-search-shell {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1.5px solid var(--tgp-purple);
    background: rgba(12, 10, 20, 0.94);
    box-shadow:
        0 0 0 1px var(--tgp-purple-soft),
        0 0 18px var(--tgp-purple-glow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fnc-gallery__tapestry-search-shell:focus-within {
    border-color: var(--tgp-purple-hot);
    box-shadow:
        0 0 0 3px var(--tgp-purple-soft),
        0 0 22px rgba(232, 121, 255, 0.32);
}

.fnc-gallery__tapestry-search-icon {
    display: inline-flex;
    flex: 0 0 2.65rem;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    padding: 0;
    color: rgba(220, 180, 255, 0.78);
    pointer-events: none;
}

.fnc-gallery__tapestry-search-icon svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.fnc-gallery__tapestry-search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

/* Anula el input global del tema (radio + fondo gris redondeado). */
.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input[type="search"],
.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 2.7rem;
    margin: 0 !important;
    padding: 0.65rem 0.75rem 0.65rem 0.15rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f3e8ff !important;
    font: inherit;
    font-size: 0.97rem;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
}

.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input:focus {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input::placeholder {
    color: rgba(200, 180, 230, 0.48);
}

.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input::-webkit-search-decoration,
.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input::-webkit-search-cancel-button,
.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input::-webkit-search-results-button,
.fnc-gallery__tapestry-search input.fnc-gallery__tapestry-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.fnc-gallery__tapestry-origin {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: stretch;
    max-width: 12rem;
    border-left: 1px solid rgba(196, 77, 255, 0.28);
    /* Anula el label flotante global (input + label) por si vuelve un <label>. */
    left: auto !important;
    top: auto !important;
    pointer-events: auto !important;
    color: inherit !important;
    font-size: inherit !important;
    z-index: 2;
}

.fnc-gallery__tapestry-origin.is-open {
    z-index: 40;
}

.fnc-gallery__tapestry-search-shell.is-origin-open {
    overflow: visible;
}

/* Select nativo: accesible / submit; UI visual = custom. */
.fnc-gallery__tapestry-origin select.fnc-gallery__tapestry-origin-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mismo lenguaje visual que «Buscar»; flecha en ::after (no en background). */
.fnc-gallery__tapestry-origin-btn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-width: 8.75rem;
    min-height: 2.7rem;
    margin: 0;
    padding: 0 1.85rem 0 0.95rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font: inherit;
    font-size: 0.88rem !important;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(180deg, #d060ff 0%, #9b2cff 55%, #7a1fd4 100%) !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: filter 0.15s ease, background 0.15s ease;
    filter: none;
    transform: none;
}

.fnc-gallery__tapestry-origin-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.7rem;
    width: 10px;
    height: 6px;
    margin-top: -3px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") center / 10px 6px no-repeat;
}

.fnc-gallery__tapestry-origin-btn:hover {
    background: linear-gradient(180deg, #e079ff 0%, #b03aff 55%, #8a24e8 100%) !important;
    background-image: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 16px rgba(196, 77, 255, 0.35) !important;
    filter: brightness(1.05);
}

.fnc-gallery__tapestry-origin.is-open .fnc-gallery__tapestry-origin-btn,
.fnc-gallery__tapestry-origin-btn:focus-visible {
    outline: none;
    background: linear-gradient(180deg, #e079ff 0%, #b03aff 55%, #8a24e8 100%) !important;
    background-image: none !important;
    filter: brightness(1.05);
}

.fnc-gallery__tapestry-origin-btn:focus-visible {
    outline: 2px solid var(--tgp-purple-hot);
    outline-offset: -2px;
}

.fnc-gallery__tapestry-origin-btn-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fnc-gallery__tapestry-origin-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    z-index: 50;
    min-width: max(100%, 11.5rem);
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 10px;
    border: 1.5px solid var(--tgp-purple);
    background: rgba(14, 10, 24, 0.98);
    box-shadow:
        0 0 0 1px var(--tgp-purple-soft),
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 18px var(--tgp-purple-glow);
}

.fnc-gallery__tapestry-origin-menu[hidden] {
    display: none !important;
}

.fnc-gallery__tapestry-origin-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #f0e4ff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.fnc-gallery__tapestry-origin-option:hover,
.fnc-gallery__tapestry-origin-option:focus-visible {
    outline: none;
    background: rgba(196, 77, 255, 0.2);
    color: #fff;
}

.fnc-gallery__tapestry-origin-option.is-selected {
    background: rgba(196, 77, 255, 0.28);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(232, 121, 255, 0.35);
}

/* Fallback si JS no corre: select usable con esquema oscuro. */
.fnc-gallery__tapestry-origin select:not(.fnc-gallery__tapestry-origin-native) {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    min-width: 8.75rem;
    height: 100%;
    min-height: 2.7rem;
    padding: 0 1.7rem 0 0.85rem;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ead7ff;
    color-scheme: dark;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    background-color: transparent !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d8b4fe' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 10px 6px;
}

.fnc-gallery__tapestry-origin select:not(.fnc-gallery__tapestry-origin-native):hover {
    background-color: rgba(196, 77, 255, 0.08);
}

.fnc-gallery__tapestry-origin select:not(.fnc-gallery__tapestry-origin-native):focus {
    outline: none;
    background-color: rgba(196, 77, 255, 0.12);
}

.fnc-gallery__tapestry-origin select:not(.fnc-gallery__tapestry-origin-native) option {
    color: #1a1228;
    background: #fff;
}

/* CTA morado eléctrico — sin caja extra encima del shell. */
.fnc-gallery__tapestry-search button.fnc-gallery__tapestry-search-submit {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    min-height: 2.7rem;
    padding: 0 1.15rem !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
    background:
        linear-gradient(180deg, #d060ff 0%, #9b2cff 55%, #7a1fd4 100%) !important;
    color: #fff !important;
    font: inherit;
    font-size: 0.88rem !important;
    font-weight: 750;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: filter 0.15s ease, background 0.15s ease;
    filter: none;
    transform: none;
}

.fnc-gallery__tapestry-search button.fnc-gallery__tapestry-search-submit:hover {
    border-color: transparent !important;
    background:
        linear-gradient(180deg, #e079ff 0%, #b03aff 55%, #8a24e8 100%) !important;
    color: #fff !important;
    filter: brightness(1.05);
    transform: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 16px rgba(196, 77, 255, 0.35) !important;
}

.fnc-gallery__tapestry-search button.fnc-gallery__tapestry-search-submit:active {
    transform: none;
    filter: brightness(0.94);
    background:
        linear-gradient(180deg, #a83eef 0%, #7a1fd4 100%) !important;
}

.fnc-gallery__tapestry-search button.fnc-gallery__tapestry-search-submit:focus-visible {
    outline: 2px solid var(--tgp-purple-hot);
    outline-offset: -2px;
}

.fnc-gallery__tapestry-search-submit-icon {
    flex: 0 0 auto;
    opacity: 0.95;
}

.fnc-gallery__tapestry-search-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0 0.95rem;
    border: 0;
    border-left: 1px solid rgba(196, 77, 255, 0.22);
    border-radius: 0;
    color: rgba(230, 210, 255, 0.82);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    box-sizing: border-box;
    background: transparent;
}

.fnc-gallery__tapestry-search-clear:hover {
    color: #fff;
    background: rgba(196, 77, 255, 0.12);
}

.fnc-gallery__tapestry-search.is-loading .fnc-gallery__tapestry-search-submit {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 900px) {
    .fnc-gallery__tapestry-search {
        flex: 1 1 100%;
        order: 3;
    }

    .fnc-gallery__tapestry-search-shell {
        flex-wrap: wrap;
        border-radius: 10px;
        align-items: stretch;
    }

    .fnc-gallery__tapestry-search-icon {
        flex: 0 0 2.65rem;
        width: 2.65rem;
        padding: 0;
        align-self: stretch;
    }

    .fnc-gallery__tapestry-search-input {
        flex: 1 1 calc(100% - 2.65rem);
        padding-right: 0.75rem !important;
    }

    .fnc-gallery__tapestry-origin {
        flex: 1 1 auto;
        max-width: none;
        border-left: 0;
        border-top: 1px solid rgba(196, 77, 255, 0.28);
    }

    .fnc-gallery__tapestry-origin-btn,
    .fnc-gallery__tapestry-origin select:not(.fnc-gallery__tapestry-origin-native) {
        width: 100%;
        min-height: 2.55rem;
    }

    .fnc-gallery__tapestry-origin-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .fnc-gallery__tapestry-search-submit,
    .fnc-gallery__tapestry-search-clear {
        flex: 1 1 auto;
        min-height: 2.55rem;
        border-left: 0 !important;
        border-top: 1px solid rgba(196, 77, 255, 0.28) !important;
    }
}

@media (max-width: 720px) {
    .fnc-gallery__tapestry-search {
        flex: 1 1 100%;
        max-width: none;
        order: 3;
    }
}

.fnc-gallery__artwork-hashtags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
}

.fnc-gallery__photo-desc {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.fnc-gallery__photo-desc-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.fnc-gallery button.fnc-gallery__photo-desc-emoji,
.fnc-gallery .fnc-emoji-trigger.fnc-gallery__photo-desc-emoji {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem !important;
    width: 2rem !important;
    min-width: 2rem !important;
    max-width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(120, 150, 200, 0.28) !important;
    border-radius: 0.5rem !important;
    background: rgba(8, 12, 20, 0.55) !important;
    background-image: none !important;
    color: #c5d2e8 !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    transform: none !important;
    filter: none !important;
    cursor: pointer;
    line-height: 1;
}

.fnc-gallery button.fnc-gallery__photo-desc-emoji:hover,
.fnc-gallery button.fnc-gallery__photo-desc-emoji:focus-visible,
.fnc-gallery .fnc-emoji-trigger.fnc-gallery__photo-desc-emoji:hover,
.fnc-gallery .fnc-emoji-trigger.fnc-gallery__photo-desc-emoji:focus-visible {
    color: #fff !important;
    border-color: rgba(140, 175, 230, 0.5) !important;
    background: rgba(18, 26, 40, 0.85) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    outline: none;
}

.fnc-gallery__photo-desc-hint {
    color: rgba(180, 198, 230, 0.72);
    font-size: 0.82rem;
    line-height: 1.35;
}

.fnc-gallery__artwork-description a.fnc-link,
.fnc-gallery__artwork-description a.fnc-mention {
    color: #8ec5ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
