/*
 * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

.asset-preview-thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f8f8;
    margin-top: 4px;
}

.asset-preview-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border: 1px solid #eaeded;
    border-radius: 4px;
    background-color: #ffffff;
}

.asset-preview-thumbnail img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.asset-preview-thumbnail img:hover {
    transform: scale(1.05);
}

.asset-preview-actions {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.asset-preview-loading,
.asset-preview-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 100%;
    color: #5f6b7a;
}

.asset-preview-error {
    color: #d13212;
}
