.gallery-show {
    --gallery-green: #16a34a;
    --gallery-green-soft: #dcfce7;
    --gallery-dark: #0f172a;
    --gallery-panel: #ffffff;
    --gallery-border: #e2e8f0;
    --gallery-muted: #64748b;
    --gallery-soft: #f8fafc;
    color: var(--gallery-dark);
    margin: -1.5rem;
    min-height: calc(100vh - 72px);
    padding: 2rem;
}

.gallery-show a {
    text-decoration: none;
}

.gallery-show-breadcrumb {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: .9rem;
    font-weight: 850;
    gap: .4rem;
    margin-bottom: 1rem;
}

.gallery-show-breadcrumb a {
    color: #64748b;
}

.gallery-show-layout {
    align-items: flex-start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.gallery-show-main {
    display: grid;
    gap: 1.5rem;
}

.gallery-show-hero,
.gallery-show-media-card,
.gallery-show-settings,
.gallery-show-views {
    background: var(--gallery-panel);
    border: 1px solid var(--gallery-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.gallery-show-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.65rem;
}

.gallery-show-hero h1 {
    color: var(--gallery-dark);
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 .45rem;
}

.gallery-show-hero p {
    color: var(--gallery-muted);
    font-size: 1rem;
    font-weight: 650;
    margin: 0;
}

.gallery-show-actions {
    display: flex;
    gap: .65rem;
}

.gallery-show-actions .btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 850;
    gap: .45rem;
    min-height: 42px;
    padding-inline: 1rem;
}

.gallery-show-media-card {
    padding: 1.65rem;
}

.gallery-show-media-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.gallery-show-media-head h2 {
    font-size: 1.1rem;
    font-weight: 950;
    margin: 0;
}

.gallery-show-media-head label {
    align-items: center;
    color: var(--gallery-muted);
    display: flex;
    font-size: .88rem;
    font-weight: 750;
    gap: .45rem;
}

.gallery-show-media-head select {
    background: transparent;
    border: 0;
    color: var(--gallery-dark);
    font-weight: 850;
    outline: 0;
}

.gallery-show-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-show-photo {
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.gallery-show-photo img {
    cursor: zoom-in;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-show-photo > span {
    align-items: center;
    background: #facc15;
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 950;
    gap: .25rem;
    left: .55rem;
    padding: .35rem .5rem;
    position: absolute;
    text-transform: uppercase;
    top: .55rem;
    z-index: 2;
}

.gallery-show-photo figcaption {
    align-items: center;
    background: rgba(15, 23, 42, .46);
    display: flex;
    gap: .45rem;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity .16s ease;
}

.gallery-show-photo:hover figcaption {
    opacity: 1;
}

.gallery-show-photo figcaption button,
.gallery-show-photo figcaption a {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: 8px;
    color: var(--gallery-dark);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.gallery-show-empty {
    align-items: center;
    border: 1px dashed var(--gallery-border);
    border-radius: 10px;
    color: var(--gallery-muted);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    grid-column: 1 / -1;
    min-height: 180px;
    justify-content: center;
}

.gallery-show-empty i {
    font-size: 2rem;
}

.gallery-show-dropzone {
    align-items: center;
    background: #fff;
    border: 2px dashed #dbe7f3;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    min-height: 180px;
    padding: 2rem;
    text-align: center;
}

.gallery-show-dropzone .dz-message {
    align-items: center;
    color: var(--gallery-muted);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin: 0;
}

.gallery-show-dropzone .dz-message i {
    align-items: center;
    background: var(--gallery-green-soft);
    border-radius: 50%;
    color: var(--gallery-green);
    display: inline-flex;
    font-size: 1.45rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.gallery-show-dropzone .dz-message strong {
    color: var(--gallery-dark);
    font-size: 1.05rem;
    font-weight: 950;
}

.gallery-show-upload-status {
    color: var(--gallery-muted);
    font-size: .85rem;
    font-weight: 700;
    margin-top: .75rem;
}

.gallery-show-sidebar {
    display: grid;
    gap: 1.25rem;
}

.gallery-show-settings {
    padding: 1.55rem;
}

.gallery-show-settings-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.55rem;
}

.gallery-show-settings h2,
.gallery-show-views h2 {
    color: var(--gallery-dark);
    font-size: 1.2rem;
    font-weight: 950;
    margin: 0;
}

.gallery-show-settings-head span {
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-show-field {
    margin-bottom: 1.35rem;
}

.gallery-show-field label {
    color: var(--gallery-muted);
    display: block;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .05em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.gallery-show-field-value,
.gallery-inline-form,
.gallery-show-field textarea {
    background: var(--gallery-soft);
    border: 1px solid var(--gallery-border);
    border-radius: 8px;
    color: #475569;
    font-weight: 750;
    min-height: 42px;
    padding: .65rem .8rem;
    width: 100%;
}

.gallery-show-field-value {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.gallery-show-field-value button,
.gallery-inline-form button {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    padding: 0;
}

.gallery-inline-form {
    display: none;
    gap: .5rem;
}

.gallery-inline-form input {
    background: transparent;
    border: 0;
    color: #475569;
    flex: 1;
    font-weight: 750;
    min-width: 0;
    outline: 0;
}

.gallery-inline.is-editing .gallery-inline-value {
    display: none;
}

.gallery-inline.is-editing .gallery-inline-form {
    display: flex;
}

.gallery-show-settings form {
    border-top: 1px solid #edf2f7;
    padding-top: 1.4rem;
}

.gallery-show-switch-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.gallery-show-switch-row strong {
    display: block;
    font-weight: 900;
}

.gallery-show-switch-row span {
    color: var(--gallery-muted);
    display: block;
    font-size: .8rem;
    font-weight: 700;
}

.gallery-show-switch input {
    display: none;
}

.gallery-show-switch > span {
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 26px;
    position: relative;
    width: 44px;
}

.gallery-show-switch > span::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .16s ease;
    width: 20px;
}

.gallery-show-switch input:checked + span {
    background: #22c55e;
}

.gallery-show-switch input:checked + span::after {
    transform: translateX(18px);
}

.gallery-show-field textarea {
    min-height: 84px;
    resize: vertical;
}

.gallery-show-publish {
    align-items: center;
    background: #fff;
    border: 2px solid var(--gallery-dark);
    border-radius: 8px;
    color: var(--gallery-dark);
    display: inline-flex;
    font-weight: 900;
    gap: .45rem;
    justify-content: center;
    min-height: 46px;
    width: 100%;
}

.gallery-show-pilot {
    background: #0f172a;
    border-radius: 12px;
    color: #cbd5e1;
    padding: 1.45rem;
}

.gallery-show-pilot > span {
    align-items: center;
    color: #94a3b8;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 950;
    gap: .45rem;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gallery-show-pilot > span i {
    align-items: center;
    background: rgba(34, 197, 94, .14);
    border-radius: 6px;
    color: #22c55e;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.gallery-show-pilot h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    margin: 0 0 .65rem;
}

.gallery-show-pilot p {
    line-height: 1.6;
    margin: 0;
}

.gallery-show-views {
    padding: 1.35rem;
}

.gallery-show-views h2 {
    color: #94a3b8;
    font-size: .8rem;
    letter-spacing: .1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gallery-show-line-chart {
    height: 86px;
}

.gallery-show-line-chart svg {
    height: 100%;
    width: 100%;
}

.gallery-show-line-chart path {
    fill: rgba(34, 197, 94, .12);
}

.gallery-show-line-chart polyline {
    fill: none;
    stroke: #22c55e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.gallery-show-view-labels {
    color: var(--gallery-muted);
    display: flex;
    font-size: .82rem;
    font-weight: 750;
    justify-content: space-between;
}

@media (max-width: 1199.98px) {
    .gallery-show-layout {
        grid-template-columns: 1fr;
    }

    .gallery-show-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-show-settings {
        grid-row: span 2;
    }
}

@media (max-width: 767.98px) {
    .gallery-show {
        margin: -1rem;
        padding: 1rem;
    }

    .gallery-show-hero,
    .gallery-show-actions,
    .gallery-show-media-head {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-show-actions .btn {
        justify-content: center;
    }

    .gallery-show-grid,
    .gallery-show-sidebar {
        grid-template-columns: 1fr;
    }
}
