/* ── 自定义布局 · 4×4 小组件 ── */

.wg-4x4 {
  box-sizing: border-box;
  font-family: 'Noto Sans SC', 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wg-4x4 *,
.wg-4x4 *::before,
.wg-4x4 *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════
   四列胶囊 · 并列竖图
   ══════════════════════════════════════ */
.wg-4x4--instriple {
  background: transparent;
}

.wg-4x4-triple {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 4px 0;
  background: transparent;
}

.wg-4x4-triple__photo {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(160deg, #ece8e4 0%, #ddd8d2 100%);
  background-size: cover;
  background-position: center;
}

.wg-4x4-triple__photo.has-custom-photo {
  background-color: transparent;
  filter: saturate(0.9) brightness(1.02);
}

/* ── 自定义布局 · 4×4 缩放 ── */
.desk-custom__wg--instriple {
  --dc-wg-design-h: var(--dc-cell-h-4, 330px);
  width: 100%;
  height: var(--dc-wg-design-h);
  transform-origin: top center;
  transform: scale(calc(100cqh / var(--dc-wg-design-h)));
  background: transparent;
}

.desk-custom__item--widget:has(> .desk-custom__wg--instriple) {
  overflow: visible;
  z-index: 1;
}

@supports not (container-type: size) {
  .desk-custom__wg--instriple {
    transform: none;
    height: 100%;
  }
}

@media (max-height: 700px) {
  .desk-custom__wg--instriple {
    --dc-wg-design-h: calc(var(--dc-cell-h-4, 330px) - 16px);
  }

  .wg-4x4-triple {
    gap: 8px;
  }
}
