.v2-prose figure.v2-bento-grid-block,
.v2-news-cover figure.v2-bento-grid-block {
  display: block;
  width: 100%;
  margin: clamp(24px, 4vw, 48px) 0;
}

.v2-news-cover.v2-portfolio-cover {
  aspect-ratio: 16 / 9;
}

.v2-news-cover figure.v2-bento-grid-block {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
}

.v2-bento-grid-block .bento-article-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.v2-news-cover .bento-article-canvas {
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
}

.blog-admin-bento-node {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--accent);
  background: var(--bg);
  user-select: none;
}

.blog-admin-bento-node.is-selected {
  border-color: var(--mark);
}

.blog-admin-bento-node-header,
.blog-admin-bento-node-actions,
.blog-admin-bento-device-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blog-admin-bento-node-header strong {
  font-size: 16px;
}

.blog-admin-bento-node-header span,
.blog-admin-bento-node-caption {
  color: var(--muted);
  font-size: 12px;
}

.blog-admin-bento-device-preview {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.blog-admin-bento-device-preview button,
.blog-admin-bento-node-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.blog-admin-bento-device-preview button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.blog-admin-bento-device-preview button.is-configured:not([aria-pressed="true"]) {
  border-color: #147a57;
  color: #147a57;
}

.blog-admin-bento-node-actions button:first-child {
  border-color: var(--mark);
  background: var(--mark);
  color: #fff;
}

.blog-admin-bento-preview {
  position: relative;
  display: block;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: var(--bg);
}

.blog-admin-bento-preview .bento-article-canvas {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.blog-admin-bento-preview .bento-article-canvas[hidden] {
  display: none;
}

.blog-admin-bento-preview .blog-admin-bento-empty {
  display: grid;
  min-height: 132px;
  margin: 0;
  padding: 20px;
  place-items: center;
  border: 1px dashed var(--accent);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.blog-admin-bento-preview .blog-admin-bento-empty[hidden] {
  display: none;
}

.blog-admin-bento-workspace[hidden] {
  display: none;
}

.blog-admin-bento-workspace {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100dvh;
  border: 0;
  background: var(--bg);
}

.blog-admin-bento-workspace iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

@media (max-width: 600px) {
  .blog-admin-bento-node {
    gap: 10px;
    padding: 10px;
  }

  .blog-admin-bento-node-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-admin-bento-node-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
