.book-view__editor-preview-card,.oppgavearkiv__card{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(0,1fr);gap:12px;align-items:stretch;min-height:130px;container-type:inline-size}.book-view__editor-preview-card--figure-right,.book-view__editor-preview-card:has(.book-view__editor-preview-iframe),.oppgavearkiv__card--has-iframe{min-height:200px}.book-view__editor-preview-card[data-app=brøkfigurer],.oppgavearkiv__card[data-app=brøkfigurer]{min-height:240px}.oppgavearkiv__card{height:130px;overflow:hidden}.oppgavearkiv__card--has-iframe{height:200px}.oppgavearkiv__card[data-app=brøkfigurer]{height:240px}.book-view__editor-preview-card[data-app=brøkfigurer] .book-view__editor-preview-iframe,.oppgavearkiv__card[data-app=brøkfigurer] .oppgavearkiv__iframe{max-height:224px}.book-view__editor-preview-card--text-only{grid-template-columns:auto minmax(0,1fr);min-height:0;max-height:130px;overflow:hidden}.book-view__editor-preview-card--text-only.is-overflowing .book-view__editor-preview-text{-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}.oppgavearkiv__card:has(>.oppgavearkiv__figure--empty){grid-template-columns:minmax(0,1fr)}.oppgavearkiv__card>.oppgavearkiv__figure--empty{display:none}.book-view__editor-preview-index{font-weight:700;font-size:1rem;line-height:1.2;color:#0f172a;padding-top:2px;white-space:nowrap}@container (min-width: 400px){.book-view__editor-preview-card[data-app-orientation=landscape]{grid-template-columns:auto minmax(180px,1.4fr) minmax(0,1fr)}.oppgavearkiv__card[data-app-orientation=landscape]{grid-template-columns:minmax(0,max-content) minmax(220px,1.8fr)}}@container (min-width: 600px){.book-view__editor-preview-card[data-app=brøkpizza][data-app-orientation=landscape]{grid-template-columns:auto minmax(260px,2.4fr) minmax(0,1fr)}.oppgavearkiv__card[data-app=brøkpizza][data-app-orientation=landscape]{grid-template-columns:minmax(0,.6fr) minmax(260px,3fr)}}.book-view__editor-preview-text,.oppgavearkiv__text{flex:1 1 0;min-height:0;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}.book-view__editor-preview-iframe,.oppgavearkiv__iframe{width:100%;height:100%;max-height:184px;border:0;display:block;background:0 0;pointer-events:none}.book-view__editor-preview-iframe[data-app=graftegner],.oppgavearkiv__iframe[data-app=graftegner]{aspect-ratio:1/1;width:auto;max-width:100%;max-height:184px;margin:0 auto}.book-view__editor-preview-figure:has(.book-view__editor-preview-iframe),.oppgavearkiv__card--has-iframe .oppgavearkiv__figure{aspect-ratio:auto;min-height:0;max-height:none;border:0;background:#fff;padding:4px 0;border-radius:8px}@container (min-width: 400px){.book-view__editor-preview-card[data-app-orientation=landscape] .book-view__editor-preview-figure:has(.book-view__editor-preview-iframe),.oppgavearkiv__card[data-app-orientation=landscape].oppgavearkiv__card--has-iframe .oppgavearkiv__figure{aspect-ratio:3/1}}@container (min-width: 600px){.book-view__editor-preview-card[data-app=brøkpizza][data-app-orientation=landscape] .book-view__editor-preview-figure:has(.book-view__editor-preview-iframe),.oppgavearkiv__card[data-app=brøkpizza][data-app-orientation=landscape].oppgavearkiv__card--has-iframe .oppgavearkiv__figure{aspect-ratio:4/1}}@media (max-width:720px){.book-view__editor-preview-card,.book-view__editor-preview-card[data-app-orientation=landscape],.oppgavearkiv__card,.oppgavearkiv__card[data-app-orientation=landscape]{grid-template-columns:1fr}}