/* Gallery actions reuse the shared button design and remain native editor blocks. */
:is(#main, .editor-styles-wrapper) .gf-service-gallery-navigation {
    justify-content: center;
    margin-block-start: 24px;
}

:is(#main, .editor-styles-wrapper) .gf-confirmation-hero-copy .gf-service-gallery-navigation {
    justify-content: flex-start;
}

/* Category headings remain visible when reached through a service's gallery link. */
:is(#main, .editor-styles-wrapper) .da-gallery-section :is(#bryllup, #familie, #baby, #hest, #konfirmasjon) {
    scroll-margin-block-start: 24px;
}

/* The initial single portrait has a generous width; gallery columns stay editable. */
:is(#main, .editor-styles-wrapper) .gf-portfolio-confirmation-gallery .wp-block-pgcsimplygalleryblock-masonry {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
}

@media (max-width: 690px) {
    :is(#main, .editor-styles-wrapper) .gf-service-gallery-navigation {
        margin-block-start: 18px;
    }
}
