.entry-content.wp-block-post-content {
    margin-block-start: 0 !important;
}

.position-parent {
  position: relative;
}

.position-child,
.block-editor-block-list__layout .block-editor-block-list__block.position-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.wp-block-navigation-item > a, .wp-block-navigation .wp-block-navigation-item__label {
font-weight: 300 !important;
}

/* BEGIN publication-058: additive Moor Hall draft/publication fixes.
 * Preserve the existing stylesheet above. IDs identify only this transfer.
 * The stylesheet URL confines these rules to Moor Hall within the network.
 */
:root:has(#shared-block-styles-css[href^="https://webbhotels.lawrencedavis.uk/wp-content/"]) {
    @media (max-width: 782px) {
        &
            body:is(
                .postid-3797,
                .postid-3798,
                .postid-3799,
                .postid-3800,
                .postid-3801,
                .postid-3802,
                .postid-3803,
                .postid-3804,
                .postid-3805,
                .postid-3806,
                .postid-3807,
                .postid-3808,
                .postid-3809,
                .postid-3810,
                .postid-3811,
                .postid-3812,
                .postid-3813,
                .postid-3814,
                .postid-3815,
                .postid-3816,
                .postid-3817,
                .postid-3818,
                .postid-3819,
                .postid-3820,
                .postid-3821,
                .postid-3822,
                .postid-3823,
                .postid-3824,
                .postid-3826,
                .postid-3827,
                .postid-3828,
                .postid-3829,
                .postid-3830,
                .postid-3831,
                .postid-3832,
                .postid-3833,
                .postid-3834,
                .postid-3835,
                .postid-3836,
                .postid-3845,
                .postid-3846,
                .postid-3847,
                .postid-3848,
                .postid-3849,
                .postid-3850,
                .postid-3851,
                .postid-3852,
                .postid-3853,
                .postid-3854
            )
            main
            .position-parent:not(.page-banner) {
            position: relative;
            isolation: isolate;

            & > .position-child {
                position: relative;
                inset: auto;
                transform: none;
                width: 100%;
                max-width: none;
                min-height: max(170px, 37.5vw) !important;
                box-sizing: border-box;
                padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
                z-index: 1;
            }

            & > .wp-block-dbe-gallery-carousel {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                margin: 0;
                z-index: 0;
            }

            & .dbe-gallery-carousel__viewport,
            & .dbe-gallery-carousel__track,
            & .dbe-gallery-carousel__track > .wp-block-image {
                height: 100%;
            }

            & .dbe-gallery-carousel__track img {
                width: 100%;
                height: 100% !important;
                aspect-ratio: auto !important;
                object-fit: cover;
            }
        }
    }

    & body.page-id-3856 .wp-block-cloudcatch-light-modal-block__wrapper {
        margin: 0;
    }

    & body.page-id-3856 .wp-block-cloudcatch-light-modal-block__close svg,
    & body.page-id-3856 .wp-block-cloudcatch-light-modal-block__close svg * {
        pointer-events: none;
    }
}
/* END publication-058 */

/* BEGIN publication-060: additive Moor Hall draft/publication fixes.
 * Preserve the existing stylesheet above. IDs identify this transfer and the previously authorised Offer centring.
 * The stylesheet URL confines these rules to Moor Hall within the network.
 */
:root:has(#shared-block-styles-css[href^="https://webbhotels.lawrencedavis.uk/wp-content/"]) {
    @media (max-width: 782px) {
        &
            body:is(
                .postid-4243,
                .postid-4244,
                .postid-4245,
                .postid-4246,
                .postid-4247,
                .postid-4249,
                .postid-4250
            )
            main
            .position-parent:not(.page-banner) {
            position: relative;
            isolation: isolate;

            & > .position-child {
                position: relative;
                inset: auto;
                transform: none;
                width: 100%;
                max-width: none;
                min-height: max(170px, 37.5vw) !important;
                box-sizing: border-box;
                padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
                z-index: 1;
            }

            & > .wp-block-dbe-gallery-carousel {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                margin: 0;
                z-index: 0;
            }

            & .dbe-gallery-carousel__viewport,
            & .dbe-gallery-carousel__track,
            & .dbe-gallery-carousel__track > .wp-block-image {
                height: 100%;
            }

            & .dbe-gallery-carousel__track img {
                width: 100%;
                height: 100% !important;
                aspect-ratio: auto !important;
                object-fit: cover;
            }
        }
    }

    @media (max-width: 480px) {
        &
            body:is(.postid-4248, .postid-4256, .postid-4257, .postid-4258, .postid-4259)
            .wp-block-cover.space-banner {
            aspect-ratio: 16/9 !important;
        }
    }
    &
        body:is(
            .postid-4243,
            .postid-4244,
            .postid-4245,
            .postid-4246,
            .postid-4247,
            .postid-4248,
            .postid-4249,
            .postid-4250,
            .page-id-4251,
            .page-id-4252,
            .page-id-4253,
            .page-id-4254,
            .page-id-4255,
            .postid-4256,
            .postid-4257,
            .postid-4258,
            .postid-4259,
            .postid-3799,
            .postid-3800,
            .postid-3802,
            .postid-3805,
            .postid-3806,
            .postid-3813,
            .postid-3815,
            .postid-3816,
            .postid-3817,
            .postid-3818,
            .postid-3819,
            .postid-3820,
            .postid-3821,
            .postid-3822,
            .postid-3823,
            .postid-3824,
            .postid-3845,
            .postid-3846,
            .postid-3847,
            .postid-3848,
            .postid-3849,
            .postid-3850,
            .postid-3851,
            .postid-3852,
            .postid-3853,
            .postid-3854
        )
        .wp-block-dbe-query-carousel
        .dbe-query-carousel__track.offers-centered
        > .wp-block-post:first-child {
        margin-inline-start: auto;
    }
    &
        body:is(
            .postid-4243,
            .postid-4244,
            .postid-4245,
            .postid-4246,
            .postid-4247,
            .postid-4248,
            .postid-4249,
            .postid-4250,
            .page-id-4251,
            .page-id-4252,
            .page-id-4253,
            .page-id-4254,
            .page-id-4255,
            .postid-4256,
            .postid-4257,
            .postid-4258,
            .postid-4259,
            .postid-3799,
            .postid-3800,
            .postid-3802,
            .postid-3805,
            .postid-3806,
            .postid-3813,
            .postid-3815,
            .postid-3816,
            .postid-3817,
            .postid-3818,
            .postid-3819,
            .postid-3820,
            .postid-3821,
            .postid-3822,
            .postid-3823,
            .postid-3824,
            .postid-3845,
            .postid-3846,
            .postid-3847,
            .postid-3848,
            .postid-3849,
            .postid-3850,
            .postid-3851,
            .postid-3852,
            .postid-3853,
            .postid-3854
        )
        .wp-block-dbe-query-carousel
        .dbe-query-carousel__track.offers-centered
        > .wp-block-post:last-child {
        margin-inline-end: auto;
    }
}
/* END publication-060 */

/* BEGIN design-review-061 */
/* Keep the reviewed banner text within the mobile viewport. */
@media (max-width: 781px) {
    .page-banner .review-responsive-banner {
        width: 100%;
        min-width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        padding-right: var(--wp--preset--spacing--30);
        padding-left: var(--wp--preset--spacing--30);
    }
}

/* Single-post composition pilots: one booking panel in the reading order. */
.single-pilot-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--wp--preset--spacing--50);
    row-gap: var(--wp--preset--spacing--30);
    padding-top: var(--wp--preset--spacing--50);
    margin-top: 0 !important;
}
.single-pilot-layout > * {
    min-width: 0;
    margin-block: 0;
}
.single-pilot-intro {
    grid-column: 1;
    grid-row: 1;
}
.single-pilot-booking {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
}
.single-pilot-details {
    grid-column: 1;
    grid-row: 2;
}
.single-pilot-booking > .wp-block-heading {
    font-size: var(--wp--preset--font-size--medium);
}
.single-pilot-booking p,
.single-pilot-booking li {
    font-size: var(--wp--preset--font-size--x-small);
}
@media (max-width: 781px) {
    .single-pilot-layout {
        display: flex;
        flex-direction: column;
        gap: var(--wp--preset--spacing--30);
    }
    .single-pilot-layout > * {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Starter collections have no heading or separator when their query is empty. */
.wp-site-blocks .single-pilot-related:not(:has(.wp-block-post)) {
    display: none;
}

/* END design-review-061 */
