.core-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 0.55rem;
}

.core-media-thumbnail,
.core-media-lock {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #f8f9fa;
}

.core-media-thumbnail {
    padding: 0;
}

.core-media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.core-media-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    color: #6c757d;
    text-align: center;
}

.core-media-dialog {
    width: min(960px, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    padding: 0;
    border: 0;
    border-radius: 0.8rem;
}

.core-media-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
}

.core-media-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.core-media-viewer {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: #212529;
}

.core-media-viewer img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.core-media-file-lock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 0.65rem;
    background: #f8f9fa;
}
