:host {
  contain: layout;
  width: 100%;
  --image-size: 128px;
}

header {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  transition: border 200ms ease;
  z-index: 1;
  opacity: 1;
  transition: opacity 1s ease;
  position: relative;
  font-size: 16px;
}

slot[name="slug"] {
  display: none;
}

::slotted(category-tags) {
  margin-bottom: calc(var(--gr-rem) / 2);
  font-size: 1.4rem;
}

.row {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  margin-bottom: var(--gr-rem);
  content-visibility: auto;
  contain-intrinsic-size: 0 128px;
}

.column {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
}

slot[name="author"] {
  color: var(--sub-title-colour);
  font-size: 1em;
}

slot[name="title"] {
  font-size: 1em;
}

small {
  font-size: 0.75em;
  color: var(--sub-title-colour);
}

small::before {
  content: "©";
  padding-right: 0.2rem;
}

:host-context([sticky]) figure {
  transform: scale(0.8);
}

.description {
  text-align: justify;
  margin: 0 0 0.25em 0;
  line-height: 1.4em;
  font-size: 0.9rem;
}

.right {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.75rem 0.25rem;
  height: var(--image-size);
  overflow: hidden;
  box-sizing: border-box;
}

.subscribe-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

h2 {
  font-weight: 400;
  margin: 0;
  transform: none;
  font-size: 1.2rem;
  transform-origin: 0 50%;
  transition: transform 200ms ease;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cover {
  position: relative;
  overflow: hidden;
  contain: strict;
  width: var(--image-size);
  height: var(--image-size);
  margin-right: 1rem;
}

::slotted(img) {
  border-radius: 6px;
  contain: strict;
  overflow: hidden;
}

a {
  color: currentColor;
}

figure {
  margin: 0;
  width: 100%;
  height: 100%;
  contain: strict;
  overflow: hidden;
  transform: none;
  transform-origin: 100% 50%;
  transition: transform 200ms ease;
}

::slotted(img) {
  width: 100%;
  height: 100%;
  display: block;
}

.extended {
  display: none;
}

:host([info-extended]) .extended {
  display: block;
  margin-top: 0.5rem;
}

:host([no-subscribe-button]) .subscribe-wrapper {
  display: none;
}

:host([no-subscribe-button]) .right {
  justify-content: center;
}

:host([compact]) {
  --image-size: 64px;
}

:host([compact]) slot[name="author"] {
  font-size: 0.8em;
}

:host([compact]) slot[name="title"] {
  font-size: 0.7em;
}

@media (max-width: 800px) {
  :host {
    --image-size: 94px;
  }

  header {
    font-size: 12px;
  }

  .right {
    padding: 0.25rem 0.125rem;
  }
}