.panda-image-container[aria-hidden='false'] {
    position: revert;
    padding-right: 16px;
    text-align: right;
    margin-bottom: -40px;
}

.panda-image-content {
  position: relative;
  display: inline-block;
}

.panda-image-link:hover {
  opacity: 0.8;
}

.panda-image-close {
  position: absolute;
  top: -12px;
  right: -16px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
}

.panda-image-close--ranking {
  right: -12px;
}

.panda-image-close::before,
.panda-image-close::after {
  content: '';
  position: absolute;
  left: 50%;
  height: 1px;
  width: 16px;
  background-color: var(--ecm-color-gray-1);
}

.panda-image-close::before {
  transform: translateX(-50%) rotate(45deg);
}

.panda-image-close::after {
  transform: translateX(-50%) rotate(-45deg);
}
