/*!
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

.spectrum-Asset{
  display:flex;
  align-items:center;
  justify-content:center;

  inline-size:100%;
  block-size:100%;
}

.spectrum-Asset-image{
  max-inline-size:100%;
  max-block-size:100%;
  object-fit:contain;
  transition:opacity var(--spectrum-animation-duration-100);
}

.spectrum-Asset-folder, .spectrum-Asset-file{
  inline-size:max(var(--mod-asset-icon-min-width, 48px), min(100%, var(--mod-asset-icon-max-width, 80px)));
  block-size:100%;
  margin:var(--mod-asset-icon-margin, 20px);
}

.spectrum-Asset-folderBackground{
  fill:var(
    --highcontrast-asset-folder-background-color,
    var(
      --mod-asset-folder-background-color,
      var(--spectrum-gray-300)
    )
  );
}

.spectrum-Asset-fileBackground{
  fill:var(
    --highcontrast-asset-file-background-color,
    var(
      --mod-asset-file-background-color,
      var(--spectrum-gray-50)
    )
  );
}

.spectrum-Asset-folderOutline, .spectrum-Asset-fileOutline{
  fill:var(
    --mod-asset-icon-outline-color,
    var(--spectrum-gray-500)
  );
}

@media (forced-colors: active){
  .spectrum-Asset{
    --highcontrast-asset-folder-background-color:currentColor;
    --highcontrast-asset-file-background-color:currentColor;
  }
}
