/* Structural layout correction v34: loaded AFTER previous template styles. */
:root { --dvc-v34-width: 520px; --dvc-v34-gap: 10px; }
body.dvc-public-card, body.dvcx { overflow-x: clip; }
body.dvc-public-card :is(.card-wrapper > .card, .card-wrapper > .card2, .card-wrapper > section, .card-wrapper > .share-section, .dvc-advanced-wrap, .dvc-brand-footer, .dvc-customer-cta-v32),
body.dvcx :is(.dvcx-hero, .dvcx-top-actions, .dvcx-section, .dvcx-footer, .dvc-brand-footer, .dvcx-create-card-cta-v31, .dvc-advanced-wrap) {
  box-sizing: border-box !important;
  width: min(calc(100% - 20px), var(--dvc-v34-width)) !important;
  max-width: var(--dvc-v34-width) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.dvc-public-card .dvc-customer-cta-v32,
body.dvcx .dvcx-create-card-cta-v31 { display:block!important; position:relative!important; inset:auto!important; transform:none!important; float:none!important; clear:both!important; margin-block: var(--dvc-v34-gap) !important; }
body.dvc-public-card .dvc-brand-footer,
body.dvcx .dvc-brand-footer { position:relative!important; inset:auto!important; transform:none!important; float:none!important; clear:both!important; margin-top:0!important; margin-bottom:var(--dvc-v34-gap)!important; }
body.dvc-public-card .dvc-customer-cta-v32 + .dvc-brand-footer,
body.dvcx .dvcx-create-card-cta-v31 + .dvc-brand-footer { margin-top:0!important; }
body.dvc-public-card :is(.card-wrapper > .card2, .card-wrapper > .share-section, .card-wrapper > section, .dvc-advanced-wrap),
body.dvcx :is(.dvcx-section, .dvc-advanced-wrap) { margin-bottom: var(--dvc-v34-gap)!important; }
body.dvc-public-card :is(.card-wrapper,.dvc-advanced-wrap), body.dvcx :is(.dvcx-shell,.dvc-advanced-wrap) { min-height:0!important; }
body.dvc-public-card img, body.dvcx img { max-width:100%; height:auto; }
body.dvc-public-card :is(.gallery_row,.project-gallery) img, body.dvcx .dvcx-gallery img { width:100%; aspect-ratio:4/3; object-fit:contain!important; }
@media(max-width:540px) { :root { --dvc-v34-gap:8px; } }
