
.user-gallery-page .main-shell {
    display: grid;
    gap: 24px;
}

.gallery-hero-shell,
.gallery-toolbar-shell,
.gallery-grid-shell,
.gallery-submit-shell,
.gallery-detail-shell,
.gallery-comments-shell,
.gallery-manage-shell {
    padding-top: 8px;
}

.gallery-hero-card,
.gallery-toolbar-card,
.gallery-submit-card,
.gallery-detail-card,
.gallery-manage-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

.gallery-hero-card,
.gallery-toolbar-card,
.gallery-detail-layout,
.gallery-comments-layout,
.gallery-submit-grid,
.gallery-submit-header,
.gallery-detail-topbar,
.gallery-card-footer,
.gallery-submit-actions,
.gallery-manage-status-card,
.gallery-preview-meta {
    display: flex;
    gap: 18px;
}

.gallery-hero-card,
.gallery-toolbar-card,
.gallery-submit-header,
.gallery-detail-topbar,
.gallery-submit-actions,
.gallery-card-footer,
.gallery-manage-status-card {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gallery-hero-stats {
    display: grid;
    gap: 14px;
    min-width: min(320px, 100%);
}

.gallery-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.14;
}

.gallery-toolbar-card h2,
.gallery-submit-header h1,
.gallery-detail-copy-card h1,
.gallery-comments-feed .opinions-feed-head h2,
.gallery-comment-form-card .opinions-panel-head h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    line-height: 1.18;
}

.user-gallery-card-body h3 {
    font-size: 1.08rem;
    line-height: 1.3;
}

.gallery-hero-copy .section-note,
.gallery-toolbar-card .section-note,
.user-gallery-card-copy,
.gallery-card-attribution,
.gallery-detail-description,
.gallery-detail-facts p,
.gallery-comment-content,
.gallery-manage-note,
.gallery-preview-meta p,
.gallery-meta-muted {
    font-size: 0.95rem;
    line-height: 1.6;
}

.gallery-hero-stat span {
    font-size: 0.94rem;
}

.gallery-hero-stat strong,
.gallery-rating-summary strong,
.gallery-rating,
.gallery-success-box strong {
    font-size: 1.2rem;
}

.gallery-card-attribution,
.gallery-detail-facts {
    color: var(--text-soft);
}

.gallery-detail-facts {
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.gallery-detail-facts p,
.gallery-card-attribution {
    margin: 0;
}

.gallery-hero-stat,
.gallery-success-box,
.gallery-preview-panel,
.gallery-detail-copy-card,
.gallery-comment-form-card,
.gallery-admin-description-card,
.gallery-manage-status-card,
.gallery-admin-video-placeholder {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.gallery-hero-stat,
.gallery-success-box,
.gallery-preview-panel,
.gallery-comment-form-card,
.gallery-detail-copy-card,
.gallery-admin-description-card,
.gallery-manage-status-card {
    padding: 18px 20px;
}

.gallery-hero-stat span,
.gallery-manage-note,
.gallery-card-footer,
.gallery-detail-description,
.gallery-comment-content,
.gallery-admin-video-placeholder,
.gallery-preview-meta,
.gallery-submit-header .section-note,
.gallery-toolbar-card .section-note {
    color: var(--text-soft);
}

.gallery-hero-stat strong,
.gallery-rating-summary strong,
.gallery-rating,
.gallery-success-box strong {
    display: block;
    margin-top: 8px;
}

.user-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.user-gallery-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.user-gallery-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 118, 110, 0.08);
}

.user-gallery-card-media img,
.gallery-detail-image,
.gallery-manage-preview img,
.gallery-admin-detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-gallery-card-media video,
.gallery-detail-video,
.gallery-manage-preview video,
.gallery-admin-detail-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.gallery-video-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.user-gallery-card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.user-gallery-card-body h3,
.gallery-submit-header h1,
.gallery-detail-copy-card h1 {
    margin: 0;
}

.user-gallery-card-copy,
.gallery-comment-content,
.gallery-detail-description {
    white-space: pre-line;
    line-height: 1.65;
}

.gallery-grid-shell .pagination {
    margin-top: 24px;
}

.gallery-submit-form,
.gallery-detail-sidebar,
.gallery-comments-feed,
.gallery-preview-ready,
.gallery-preview-ready .gallery-preview-meta,
.gallery-owner-delete-form,
.gallery-admin-rating-list {
    display: grid;
    gap: 18px;
}

.gallery-submit-grid {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-preview-panel {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.gallery-preview-empty,
.gallery-preview-media-wrap {
    min-height: 220px;
    border-radius: 18px;
    border: 1px dashed var(--line-strong);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.52);
}

.gallery-preview-media-wrap img,
.gallery-preview-media-wrap video {
    max-width: 100%;
    max-height: 360px;
    border-radius: 16px;
}

.gallery-preview-ready.is-hidden,
.gallery-preview-empty.is-hidden {
    display: none;
}

.gallery-detail-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

.gallery-detail-media-card {
    min-height: 420px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.04);
}

.gallery-rating-summary {
    display: grid;
    gap: 4px;
    padding-top: 10px;
}

.gallery-comments-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
}

.gallery-manage-preview {
    margin: 22px 0;
    min-height: 280px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.05);
}

.gallery-manage-preview img,
.gallery-manage-preview video {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.gallery-empty-state,
.gallery-comment-form-card,
.gallery-comments-feed .opinions-feed-head,
.gallery-comments-feed .opinions-entry-card,
.gallery-rating-form {
    border-radius: var(--radius-xl);
}

.gallery-rating-form {
    padding: 20px;
}

.gallery-admin-video-placeholder {
    min-height: 170px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .user-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-detail-layout,
    .gallery-comments-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gallery-hero-card,
    .gallery-toolbar-card,
    .gallery-submit-card,
    .gallery-detail-card,
    .gallery-manage-card {
        padding: 22px;
    }

    .user-gallery-grid,
    .gallery-submit-grid {
        grid-template-columns: 1fr;
    }

    .gallery-detail-media-card {
        min-height: 260px;
    }

    .gallery-preview-empty,
    .gallery-preview-media-wrap {
        min-height: 180px;
    }
}

.status-pill.status-pending {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
}

.status-pill.status-approved {
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.status-pill.status-rejected,
.status-pill.status-deleted {
    background: rgba(180, 35, 24, 0.1);
    color: #b42318;
}

.gallery-submit-form .form-field,
.gallery-comment-form-card .form-field,
.gallery-rating-form .opinions-panel-head {
    display: grid;
    gap: 8px;
}

@media (max-width: 760px) {
    .gallery-hero-copy h1 {
        font-size: 1.85rem;
    }

    .gallery-toolbar-card h2,
    .gallery-submit-header h1,
    .gallery-detail-copy-card h1,
    .gallery-comments-feed .opinions-feed-head h2,
    .gallery-comment-form-card .opinions-panel-head h2 {
        font-size: 1.32rem;
    }

    .user-gallery-card-body h3 {
        font-size: 1rem;
    }

    .gallery-hero-copy .section-note,
    .gallery-toolbar-card .section-note,
    .user-gallery-card-copy,
    .gallery-card-attribution,
    .gallery-detail-description,
    .gallery-detail-facts p,
    .gallery-comment-content,
    .gallery-preview-meta p,
    .gallery-meta-muted {
        font-size: 0.92rem;
    }
}
