.link-preview {
  display: table;
  position: absolute;
  top: 0;
  z-index: 10;
  max-width: 625px;
  min-height: 125px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  transition: opacity 0.2s linear, transform 0.3s ease;
}
.link-preview .column {
  display: table-cell;
}
.link-preview .column.is-left {
  width: 200px;
  position: relative;
  min-height: 150px;
  border-bottom-left-radius: 20px;
  border-top-left-radius: 20px;
  overflow: hidden;
  background: #f0f0f0;
}
.link-preview .column.is-right {
  padding: 20px 15px 50px;
  position: relative;
}
.link-preview .thumbnail {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-preview .thumbnail.is-logo {
  padding: 15px;
  object-fit: contain;
  box-sizing: border-box;
}
.link-preview .arrow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 15px;
  height: 15px;
  background: white;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transform: translate3d(-50%, 50%, 0) rotate(45deg);
  z-index: -2;
}
.link-preview.is-reversed .arrow {
  bottom: auto;
  top: 0;
  transform: translate3d(-50%, -50%, 0) rotate(45deg);
}
.link-preview h3 {
  font-size: 20px;
  margin-bottom: 0.4em;
  line-height: 26px;
}
.link-preview h3 img {
  width: 26px;
  height: 26px;
  margin-right: 5px;
  float: left;
}
.link-preview p {
  font-size: 0.85em;
  z-index: 1;
  margin: 0;
}
.link-preview .url {
  position: absolute;
  width: calc(100% - 30px);
  left: 15px;
  bottom: 20px;
  color: #969696;
  font-size: 0.8em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.link-preview:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.link-preview.is-reversed:not(.is-visible) {
  transform: translate3d(0, -10px, 0);
}
.link-preview.block-animation {
  transition: none !important;
}
.link-preview::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: white;
  border-radius: 25px;
}
.link-preview::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  height: 50px;
}
html.darkmode .link-preview::before, html.darkmode .link-preview .arrow {
  background: #2c2c2c;
}
html.darkmode .link-preview .column.is-left {
  background: #2c2c2c;
}
