/* V7: <picture> wrappers preserve the original card dimensions. */
.friss-kartya > picture { display:block; width:110px; height:88px; overflow:hidden; border-radius:7px; }
.friss-kartya > picture > img { width:100%; height:100%; object-fit:cover; display:block; }
.lista-cikk-kep > picture, .lista-cikk-kep picture { display:block; width:100%; height:100%; }
.lista-cikk-kep picture > img { display:block; width:100%; height:100%; object-fit:cover; }
.top-kep-link > picture { display:block; width:100%; height:100%; }
.top-kep-link picture > img { width:100%; height:100%; object-fit:cover; display:block; }


/* NERDIUM_LATEST_MOBILE_LAYOUT_V1
   Target only the home page latest articles sidebar.
   Corrects equal-height grid tracks and the V7 <picture> thumbnail wrapper. */
@media (max-width: 600px) {
  .kezdo-racs .legfrissebb-keret,
  .kezdo-racs .legfrissebb-blokk {
    height: auto;
    min-height: 0;
  }

  .kezdo-racs .legfrissebb-lista {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    align-content: start;
    flex: none;
    min-height: 0;
    gap: 0;
  }

  .kezdo-racs .friss-kartya {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #303741;
  }

  .kezdo-racs .friss-kartya:last-child {
    border-bottom: 0;
  }

  .kezdo-racs .friss-kartya > picture,
  .kezdo-racs .friss-kartya > img {
    display: block;
    width: 76px;
    height: 64px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 6px;
    align-self: center;
  }

  .kezdo-racs .friss-kartya > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kezdo-racs .friss-szoveg {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
  }

  .kezdo-racs .friss-kategoria {
    display: inline-block;
    margin: 0 0 4px;
  }

  .kezdo-racs .friss-kartya h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.3;
    margin: 0 0 3px;
  }

  .kezdo-racs .friss-kartya time {
    display: block;
    font-size: 0.68rem;
    line-height: 1.35;
  }
}
/* NERDIUM_LATEST_DESKTOP_LAYOUT_V1
   Public home sidebar only; desktop/tablet, preserving mobile rules. */
@media (min-width: 601px) {
  .kezdo-racs .legfrissebb-lista {
    grid-auto-rows: minmax(72px, 1fr);
    gap: 0;
    min-width: 0;
  }
  .kezdo-racs .friss-kartya {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-width: 0;
    min-height: 72px;
    padding: 7px 0;
    margin: 0;
    box-sizing: border-box;
  }
  .kezdo-racs .friss-kartya > picture,
  .kezdo-racs .friss-kartya > img {
    display: block;
    width: 82px;
    height: 62px;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    align-self: center;
    border-radius: 6px;
  }
  .kezdo-racs .friss-kartya > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .kezdo-racs .friss-szoveg {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .kezdo-racs .friss-kategoria {
    margin-bottom: 3px;
  }
  .kezdo-racs .friss-kartya h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 0.82rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .kezdo-racs .friss-kartya time {
    display: block;
    line-height: 1.25;
    font-size: 0.67rem;
  }
}
