/* RockWalls theme: the look of pages converted to blocks matches the pages they were written as. */

/* Loose text next to blocks (a label, a lone link) keeps the size and spacing it had as inline text. */
.rwsite-inline{margin:0}
/* On the site the wrapper paragraph takes no room of its own: a lone button or label sits exactly where it was. In the editor it stays a normal paragraph to type in. */
body:not(.editor-styles-wrapper) .rwsite-inline{display:contents}

/* Project gallery as a WordPress gallery block: the same cards as before — photo 4:3, caption below. */
.wp-block-gallery.rwc-page-gallery.has-nested-images{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important;margin:35px 0 70px;align-items:start}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image{width:auto!important;margin:0!important;display:flex;flex-direction:column;justify-content:flex-start;background:#fff;border:1px solid #e2e8f1;border-radius:14px;overflow:hidden}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image::before{content:none;display:none}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image img{width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;flex:none;cursor:zoom-in;transition:transform .38s cubic-bezier(.2,.65,.3,1)}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.025)}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image figcaption{position:static;max-height:none;overflow:visible;margin:0;padding:18px 20px;background:none;color:#626b7c;text-align:left;font-size:14px;line-height:1.6;text-shadow:none;scrollbar-width:auto;flex:none}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image figcaption strong{display:block;margin-bottom:6px;color:#202630;font-size:19px;line-height:1.4}
.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image figcaption a{color:#3f5da3;font-weight:600;text-decoration:none}
@media(max-width:900px){.wp-block-gallery.rwc-page-gallery.has-nested-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.wp-block-gallery.rwc-page-gallery.has-nested-images{grid-template-columns:minmax(0,1fr);gap:18px!important}}
@media(prefers-reduced-motion:reduce){.wp-block-gallery.rwc-page-gallery.has-nested-images figure.wp-block-image img{transition:none}}

/* Areas the site fills by itself (catalogue filters, product hints): in the editor a dashed note, on the site the real panel. */
.editor-styles-wrapper .rwsite-auto-area{padding:20px!important;border:2px dashed #c9d3e6;border-radius:12px;background:#f6f8fc;color:#4a5670}
.editor-styles-wrapper .rwsite-auto-area h3{margin-top:0}
