@media (max-width: 647px) {
  .sw-metadata-container {
    margin-bottom: var(--rhythm-1);

    .metadata-header {
      align-items: center;
      display: flex;
      justify-content: space-between;
      height: var(--header-height);
      padding: 0 var(--rhythm-0_5) 0 var(--rhythm-2);
    }
    .metadata-expander-content {
      background: var(--modal-background-color);
      bottom: var(--rhythm-2);
      opacity: 0;
      position: absolute;
      transition: bottom var(--transition-moderate), top var(--transition-moderate), opacity var(--transition-fast);
      z-index: -1;
    }
    .metadata-content {
      max-height: calc(100% - var(--header-height));
      overflow: auto;
    }

    &.expanded {
      .metadata-expander-content {
        bottom: 0;
        left: 0;
        opacity: 1;
        right: 0;
        top: 0;
        z-index: 1;
      }
    }
  }
}
@media (min-width: 648px) {
  .sw-metadata-container {
    .metadata-header {
      display: none;
    }
    .metadata-expander-content {
      background-color: var(--container-background-color);
      margin-bottom: var(--panel-section-margin-bottom, var(--rhythm-1));
      height: 0;
      opacity: 0;
      max-height: calc(100vh - var(--expander-max-height));
      overflow: auto;
      transition: height var(--transition-moderate), opacity var(--transition-fast) var(--duration--moderate);
    }

    &.expanded {
      .metadata-expander-content {
        height: var(--content-height);
        opacity: 1;
        transition: height var(--transition-moderate), opacity var(--transition-fast);
      }
    }
  }
}
