.pm3d-wp .pm3d-open, .pm3d-wp .pm3d-close, .pm3d-wp .pm3d-entry { display: none; }
.pm3d-wp button {
  min-height: 44px; padding: 8px 16px; margin: 0;
  border: 1px solid #315c4c; border-radius: 8px;
  background: white; color: #244b3d; font: inherit; cursor: pointer;
}
.pm3d-wp .pm3d-open { background: #315c4c; color: white; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .pm3d-wp[data-ready] .pm3d-open { display: inline-block; }
  .pm3d-wp[data-ready] .pm3d-view:not([data-open]) { display: none; }
  .pm3d-wp[data-ready] .pm3d-entry {
    display: block; box-sizing: border-box; width: 100%; margin: 0;
    padding: clamp(20px, 5vw, 32px) clamp(10px, 3vw, 24px);
    background: #f2f5f2; border-block: 1px solid #dce5de;
    color: #1d322a; font: 400 16px/1.45 system-ui, sans-serif; text-align: start;
  }
  .pm3d-wp .pm3d-card {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(80px, 25vw, 130px);
    gap: 12px 8px; align-items: center; box-sizing: border-box; max-width: 640px;
    margin: 0 auto; padding: clamp(14px, 4vw, 24px); background: #fff;
    border: 1px solid #d6e0d9; border-radius: 18px; box-shadow: 0 4px 16px rgb(24 59 42 / 7%);
  }
  .pm3d-wp .pm3d-card h2 {
    grid-column: 1; margin: 0; padding: 0; border: 0; background: none; color: #193a2c;
    font: 680 clamp(22px, 5.7vw, 30px)/1.12 system-ui, sans-serif;
    text-transform: none; letter-spacing: -.025em; overflow-wrap: anywhere;
  }
  .pm3d-wp .pm3d-example {
    grid-column: 2; grid-row: 1; aspect-ratio: 1.12; border-radius: 12px;
    background: #efeff1 url("project.webp") 49% 82% / 135% auto no-repeat;
  }
  .pm3d-wp .pm3d-card p {
    grid-column: 1 / -1; margin: 0; padding: 0; color: #405449;
    font: inherit; text-transform: none; letter-spacing: normal;
  }
  .pm3d-wp[data-ready] .pm3d-card .pm3d-open {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; box-sizing: border-box; width: 100%; min-height: 48px; height: auto;
    padding: 12px 16px; border: 0; border-radius: 10px; background: #285440; color: #fff;
    font: 600 16px/1.35 system-ui, sans-serif; white-space: normal; text-transform: none;
    letter-spacing: normal; text-align: start;
  }
  .pm3d-wp .pm3d-card .pm3d-open::after {
    content: ""; position: static; flex: none; width: 8px; height: 8px;
    border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg);
  }
  .pm3d-wp .pm3d-card .pm3d-open:focus-visible { outline: 3px solid #193a2c; outline-offset: 3px; }
}
@media (min-width: 520px) and (max-width: 800px), (min-width: 520px) and (max-height: 500px) and (pointer: coarse) {
  .pm3d-wp .pm3d-card { grid-template-columns: minmax(0, 1fr) clamp(130px, 23vw, 180px); column-gap: 24px; }
  .pm3d-wp .pm3d-example { grid-row: 1 / 4; }
  .pm3d-wp .pm3d-card p, .pm3d-wp[data-ready] .pm3d-card .pm3d-open { grid-column: 1; }
}
.pm3d-wp .pm3d-view[data-open] {
  position: fixed; inset: 0; z-index: 2147483647; display: block; box-sizing: border-box;
  margin: 0; border: 0; padding: 0; width: 100%; max-width: none; max-height: none;
  height: 100vh; height: var(--pm3d-height, 100dvh); overflow: hidden; background: white;
}
.pm3d-wp [data-open] .pm3d-screen {
  display: flex; flex-direction: column; box-sizing: border-box; height: 100%; width: 100%; background: white;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.pm3d-wp .pm3d-screen:fullscreen {
  padding-bottom: max(env(safe-area-inset-bottom), calc(100dvh - var(--pm3d-height,100dvh)));
}
.pm3d-wp [data-open] .pm3d-close { display: block; flex: none; align-self: flex-end; margin: 2px 8px; }
.pm3d-wp [data-open] iframe { flex: 1 1 0%; min-height: 0; }
html:has(.pm3d-wp [data-open]) { overflow: hidden; }
