img {
  width: 100%;
  height: 150px;
  background-size: cover;
  border-radius: 10px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  img {
    width: 300px;
    height: 120px;
    margin-bottom: 0;
  }
}

.card {
  background-color: rgb(19, 23, 31);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  margin-top: 10px;
  display: block;
  width: 100%;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }
}

.card:hover {
  transform: scale(1.03);
}

.content {
  flex: 1;
  min-width: 0;
}

.metadata {
  margin-top: 1px;
  margin-bottom: 10px;
}

.title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metadata {
  font-size: 14px;
}

.no-underline {
  text-decoration: none;
}


/*******************************************************************************
  * Pico CSS  - responsive nav
  * Grows vertically (mobile-first). Changes back to horizontal growth on higher
  * resolutions. https://jsbin.com/wasarok/edit?html,css,output
  
  *****************************************************************************/

:where(menu, [role="menu"]),
:where(menu, [role="menu"])>[role="menuitem"] {
  flex-direction: column;
  position: relative;
}

@media (min-width: 576px) {

  :where(menu, [role="menu"]),
  :where(menu, [role="menu"])>[role="menuitem"] {
    flex-direction: row;
  }
}

/*******************************************************************************
	* Pure CSS burger menu
	* Styles a parent + checkbox to look like 3 stacked lines when unchecked and
	* as a cross when checked. Includes animations.
	*****************************************************************************/

[data-role="burger"] {
  opacity: 0.8;
  cursor: pointer;
  border-radius: 10%;
  box-sizing: border-box;
  background-color: transparent;
  height: 24px;
  width: 28px;
  padding: 0;
  margin: 0;
  border: 0 solid #e7edf2;
}

[data-role="burger"]>input[type="checkbox"] {
  height: 4px;
  width: 28px;
  border: none;
  background-color: #e7edf2;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 4px 0 #161724;
  position: relative;
  margin-inline: 0;
}

[data-role="burger"]>input[type="checkbox"]:checked {
  background-image: none;
  background-color: transparent;
}

[data-role="burger"]>input[type="checkbox"]::before,
[data-role="burger"]>input[type="checkbox"]::after {
  height: 4px;
  width: 28px;
  border-radius: 2px;
  background-color: #e7edf2;
  position: absolute;
  content: "";
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 4px 0 #161724;
}

[data-role="burger"]>input[type="checkbox"]::before {
  top: -10px;
}

[data-role="burger"]>input[type="checkbox"]::after {
  top: 10px;
}

[data-role="burger"]>input[type="checkbox"]:checked::before {
  box-shadow: none;
  transform: rotate(45deg) translate(7px, 7px);
}

[data-role="burger"]>input[type="checkbox"]:checked::after {
  box-shadow: none;
  transform: rotate(-45deg) translate(7px, -7px);
}

/*******************************************************************************
  * Pure CSS toggle
  * Uses a checkbox to trigger rules and show/hide related elements.
  
  *****************************************************************************/

/* adjust menu for toggling */
:where(menu, [role="menu"]) {
  position: relative;
  /* anchor for children */
  /* needed otherwise it grows to fit all its children */
  max-height: calc(var(--pico-line-height) * 1em + var(--pico-nav-element-spacing-vertical)*2);
}

/* hide entries within menu */
:where(menu, [role="menu"])>[role="menuitem"] {
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  position: relative;
  background-color: rgb(19, 23, 31);
}

/* show hidden items when burger is checked :D */
:where(menu, [role="menu"]):has(> label > input[type="checkbox"]:checked)>[role="menuitem"] {
  visibility: visible;
  opacity: 1;
  z-index: 9999;
}

/* position the menu button */
:where(menu, [role="menu"])>label {
  position: absolute;
  right: 0;
  top: var(--pico-nav-element-spacing-vertical);
  padding: var(--pico-nav-element-spacing-vertical) var(--pico-nav-element-spacing-horizontal);
}

@media (min-width: 576px) {

  /* hide menu button */
  :where(menu, nav[role="menu"])>label {
    display: none;
  }

  /* show all elements */
  :where(menu, [role="menu"])>[role="menuitem"] {
    visibility: visible;
    opacity: 1;
    display: flex;
    top: unset;
  }
}
