:root {
    --content-padding: 0px;
    --hendre-brand: #5278a2;
    --hendre-brand-dark: #385474;
    --hendre-cream: #f6f2ed;
    --header-background: #5a78a3;
    --nav-text: #fff;
    --nav-active: #fff;
    --nav-hover: #f6f2ed;
    --nav-arrow: #fff;
    --nav-arrow-hover: #f6f2ed;
    --dropdown-background: #5a78a3;
    --dropdown-text: #fff;
    --dropdown-hover-background: #385474;
    --dropdown-hover-text: #fff;
    --contact-background: #fff;
    --contact-text: #5278a2;
    --contact-hover-background: #385474;
    --contact-hover-text: #fff;
    --header-font-family: "Alegreya Sans", sans-serif;
    --nav-font-size: 16px;
    --nav-gap: clamp(.8rem, 1.5vw, 1.6rem);
    --header-min-height: 110px;
    --header-padding-x: clamp(1.25rem, 3vw, 3.25rem);
    --logo-max-width: 260px;
    --logo-max-height: 136px;
    --footer-background: #5278a2;
    --footer-link-hover: #f6f2ed;
    --footer-credit-link: #fff;
    --footer-font-family: "Alegreya Sans", sans-serif;
}

html {
    color: var(--hendre-brand);
    scroll-behavior: smooth;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 1000;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--hendre-brand-dark);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

body {
    color: var(--hendre-brand);
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.125rem, 1.35vw, 1.5rem);
    line-height: 1.5;
}

.content {
    padding: 0;
}

.page-heading {
    width: min(100% - 3rem, 84.375rem);
    margin: 0 auto;
    padding: 3rem 0 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nxb-banner__title,
.nxb-text-block__heading,
.nxb-media-text-split__heading {
    color: inherit;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: #1b426c;
}

.site-header {
    position: relative;
    z-index: 100;
    grid-template-columns: minmax(190px, auto) 1fr auto;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .05);
}

.header-logo img {
    width: auto;
    max-width: var(--logo-max-width);
}

.main-navigation {
    justify-self: end;
}

.main-navigation a {
    letter-spacing: .01em;
}

.main-navigation li.active > span > a,
.main-navigation li:hover > span > a,
.main-navigation li:focus-within > span > a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .35em;
}

.nxb-component-frame {
    box-sizing: border-box;
}

.nxb-component-frame--top-no-spacing { padding-top: 0; }
.nxb-component-frame--top-small { padding-top: 1.5rem; }
.nxb-component-frame--top-medium { padding-top: 3rem; }
.nxb-component-frame--top-large { padding-top: 5rem; }
.nxb-component-frame--bottom-no-spacing { padding-bottom: 0; }
.nxb-component-frame--bottom-small { padding-bottom: 1.5rem; }
.nxb-component-frame--bottom-medium { padding-bottom: 3rem; }
.nxb-component-frame--bottom-large { padding-bottom: 5rem; }

.nxb-text-block {
    --text-block-colour: #5278a2;
    --text-block-accent: #1b426c;
}

.nxb-text-block--background-light-grey {
    --text-block-background: #f6f2ed;
}

.nxb-text-block--background-dark {
    --text-block-background: #385474;
    --text-block-colour: #fff;
}

.nxb-text-block--background-brand {
    --text-block-background: #5278a2;
    --text-block-colour: #fff;
    --text-block-accent: #fff;
}

.nxb-text-block__inner,
.nxb-contact-form__inner,
.nxb-gallery,
.nxb-simple-pods,
.nxb-sitemap,
.nxb-search-results {
    width: min(100% - 3rem, 84.375rem);
    margin-inline: auto;
}

.nxb-text-block__secondary-heading,
.nxb-media-text-split__eyebrow {
    font-family: "Alegreya", serif;
}

.nxb-text-block__intro-text,
.nxb-banner__intro {
    font-family: "Alegreya", serif;
}

.nxb-banner {
    --nxb-banner-accent: #5278a2;
}

.nxb-banner__title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    text-shadow: 1px 0 10px #000;
}

.nxb-banner__subtitle,
.nxb-banner__intro {
    text-shadow: 1px 0 10px #000;
}

.nxb-banner--size-medium-crop {
    min-height: clamp(24rem, 52vw, 38rem);
}

.nxb-media-text-split__body {
    font-size: inherit;
}

.nxb-simple-pods {
    --nxb-simple-pods-accent: #5278a2;
    --nxb-simple-pods-text: #5278a2;
    --nxb-simple-pods-muted: #385474;
}

.cottages-page-links .nxb-simple-pods__image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.nxb-contact-form {
    --nxb-contact-colour: #5278a2;
    --nxb-contact-accent: #5278a2;
    --nxb-contact-button-background: #5278a2;
    --nxb-contact-button-border: #5278a2;
}

.site-footer {
    position: relative;
    text-align: center;
}

.site-footer .footer-inner {
    max-width: 84.375rem;
}

.site-footer .footer-logo img {
    margin-inline: auto;
}

.site-footer .footer-locations {
    margin-top: 1.5rem;
}

.site-footer .hendre-contact-details {
    width: min(100%, 32rem);
    margin-inline: auto;
}

.site-footer .hendre-contact-details .nxb-simple-pods__grid {
    grid-template-columns: minmax(0, 1fr);
}

.site-footer .hendre-contact-details .nxb-simple-pods__content {
    align-items: center;
}

.footer-services-navigation:empty {
    display: none;
}

.hendre-contact-details .nxb-simple-pods__card {
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.hendre-contact-details .nxb-simple-pods__link,
.hendre-contact-details .nxb-simple-pods__text,
.hendre-contact-details a {
    color: #fff;
}

.footer-navigation {
    justify-content: center;
}

@media (max-width: 1180px) {
    :root {
        --header-min-height: 100px;
        --logo-max-height: 80px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 800px) {
    body {
        font-size: 1.125rem;
    }

    .nxb-component-frame--top-large { padding-top: 3.5rem; }
    .nxb-component-frame--bottom-large { padding-bottom: 3.5rem; }

    .nxb-text-block__inner,
    .nxb-contact-form__inner,
    .nxb-gallery,
    .nxb-simple-pods,
    .nxb-sitemap,
    .nxb-search-results {
        width: min(100% - 2rem, 84.375rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo img {
        margin-inline: auto;
    }
}

/* Hendre House Lets live-site layout */

body {
    overflow-x: hidden;
    font-size: 1.5rem;
}

img,
iframe,
table {
    max-width: 100%;
}

.nxb-text-block__content,
.nxb-text-block__intro-text,
.nxb-text-block__outro-text,
.nxb-media-text-split__body {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nxb-text-block__content p,
.nxb-text-block__intro-text p,
.nxb-text-block__outro-text p {
    margin: .52rem 0 .9375rem;
}

.nxb-text-block__content > p:first-child,
.nxb-text-block__intro-text > p:first-child,
.nxb-text-block__outro-text > p:first-child {
    margin-top: 0;
}

.nxb-text-block__content > p:last-child,
.nxb-text-block__intro-text > p:last-child,
.nxb-text-block__outro-text > p:last-child {
    margin-bottom: 0;
}

.nxb-text-block__inner,
.nxb-contact-form__inner,
.nxb-gallery,
.nxb-simple-pods,
.nxb-sitemap,
.nxb-search-results,
.nxb-media-text-split__inner {
    width: min(calc(100% - 3rem), 71.25rem);
}

.nxb-text-block__heading,
.nxb-media-text-split__heading {
    font-size: 2.5rem;
    line-height: 1.2;
}

.nxb-media-text-split__body {
    font-size: inherit;
}

.nxb-component-frame--top-large,
.nxb-text-block--top-large,
.nxb-media-text-split--top-large {
    padding-top: 3.75rem;
}

.nxb-component-frame--bottom-large,
.nxb-text-block--bottom-large,
.nxb-media-text-split--bottom-large {
    padding-bottom: 3.75rem;
}

.display-none,
.nxb-component-frame:has(.display-none) {
    display: none !important;
}

/* The live header overlays banners and uses its compact navigation at every width. */
.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    display: grid;
    width: 100%;
    height: 6.875rem;
    box-sizing: border-box;
    min-height: 6.875rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    padding-block: 0;
    padding-inline: clamp(1.25rem, 3vw, 3rem);
    background: transparent;
    box-shadow: none;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background: var(--header-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.header-logo {
    grid-column: 1;
    grid-row: 1;
}

.header-logo img {
    max-width: 13.75rem;
    max-height: 5.75rem;
}

.header-menu-toggle {
    display: inline-flex !important;
    width: 3rem;
    height: 3rem;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    justify-self: end;
}

.header-actions {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    gap: .75rem;
}

.header-actions .button-light {
    min-height: 3.125rem;
    padding-inline: 1.4rem;
    font-size: 1.125rem;
}

.site-header .main-navigation {
    position: fixed;
    z-index: 101;
    top: 6.875rem;
    right: 0;
    bottom: 0;
    display: block;
    width: min(100%, 28rem);
    padding: 1.5rem 0 3rem;
    overflow-y: auto;
    background: var(--header-background);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.site-header.is-menu-open .main-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.site-header .main-navigation > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.site-header .main-navigation li,
.site-header .main-navigation .has-child {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.site-header .main-navigation a {
    padding: .85rem 4rem .85rem 1.75rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

.site-header .main-navigation .expand-subpages {
    position: absolute;
    top: .6rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
}

.site-header .main-navigation .navigation-submenu,
.site-header .main-navigation .navigation-submenu .navigation-submenu {
    position: static;
    display: none;
    min-width: 0;
    background: var(--hendre-brand-dark);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-header .main-navigation .is-submenu-open > .navigation-submenu {
    display: block;
}

.site-header .main-navigation .navigation-submenu li {
    min-width: 0;
}

.site-header .main-navigation .navigation-submenu a {
    padding: .75rem 3.75rem .75rem 2.75rem;
    color: #fff;
    font-size: 1.125rem;
    white-space: normal;
}

.navigation-open {
    overflow: hidden;
}

.page-history .content,
.page-charges-and-availability .content,
.page-terms-conditions .content,
.page-sitemap .content,
.page-search .content {
    padding-top: 6.875rem;
}

/* Banner proportions */
.nxb-banner--size-medium-crop,
.nxb-banner--size-medium-crop .nxb-banner__layout,
.nxb-banner--size-medium-crop .nxb-banner__media,
.nxb-banner--size-medium-crop .nxb-banner__content {
    height: 28.125rem;
    min-height: 28.125rem;
}

.nxb-banner--size-takeover,
.nxb-banner--size-takeover .nxb-banner__layout,
.nxb-banner--size-takeover .nxb-banner__media,
.nxb-banner--size-takeover .nxb-banner__content {
    height: 100svh;
    min-height: 100svh;
}

.nxb-banner--size-medium-crop .nxb-banner__image,
.nxb-banner--size-takeover .nxb-banner__image {
    height: 100%;
    object-fit: cover;
}

.nxb-banner__title {
    font-size: 3.125rem;
    line-height: 1.2;
}

/* Split content remains side by side on tablets, as it does on the live site. */
.nxb-media-text-split__text {
    padding: clamp(2rem, 4vw, 3.75rem);
}

.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(3) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(6) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(8) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(10) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(12) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(14) .nxb-media-text-split,
.page-things-to-do .umb-block-list > .nxb-component-frame:nth-child(16) .nxb-media-text-split {
    --media-text-background: var(--hendre-cream);
}

/* Image grids */
@media (min-width: 768px) {
    .nxb-gallery {
        --nxb-gallery-gap: 0px;
    }
}

@media (min-width: 1200px) {
    .page-location .nxb-gallery__viewport,
    .page-facilities .nxb-gallery__viewport {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-the-old-chapel .nxb-gallery__image,
.page-herne-cottage .nxb-gallery__image,
.page-winterton-cottage .nxb-gallery__image,
.page-dog-friendly .nxb-gallery__image {
    aspect-ratio: 3 / 2;
}

.page-home .nxb-component-frame:has(.nxb-gallery) {
    padding: 0;
}

.page-the-old-chapel .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
.page-herne-cottage .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
.page-winterton-cottage .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image {
    aspect-ratio: 1.49;
}

.page-location .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
.page-facilities .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image {
    aspect-ratio: 1.3;
}

.page-the-old-chapel .nxb-component-frame[data-component-alias="simplePods"],
.page-herne-cottage .nxb-component-frame[data-component-alias="simplePods"],
.page-winterton-cottage .nxb-component-frame[data-component-alias="simplePods"] {
    padding-block: 4.78125rem;
}

.page-home .nxb-gallery {
    width: 100%;
    max-width: none;
    margin-block: 0;
    --nxb-gallery-gap: 0px;
}

/* Cottage cards */
.cottages-page-links {
    position: relative;
    width: min(100%, 71.25rem);
    --nxb-simple-pods-gap: 0px;
}

.cottages-page-links .nxb-simple-pods__grid:not(.slick-initialized) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cottages-page-links .nxb-simple-pods__grid.slick-initialized {
    display: block;
}

.cottages-page-links .slick-list {
    overflow: hidden;
}

.cottages-page-links .slick-track {
    display: flex;
    align-items: stretch;
}

.cottages-page-links .nxb-simple-pods__card {
    position: relative;
    display: block;
    height: auto;
    padding-inline: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cottages-page-links .nxb-simple-pods__media {
    position: relative;
    aspect-ratio: 1;
    background: var(--hendre-brand-dark);
}

.cottages-page-links .nxb-simple-pods__media::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .72));
    content: "";
}

.cottages-page-links .nxb-simple-pods__content {
    position: absolute;
    z-index: 2;
    right: 2.5rem;
    bottom: 1.6rem;
    left: 2.5rem;
    display: block;
    padding: 0;
    color: #fff;
    pointer-events: none;
}

.cottages-page-links .nxb-simple-pods__heading {
    color: #fff;
    font: 600 2rem/1.15 "Playfair Display", serif;
}

.cottages-page-links .nxb-simple-pods__text {
    display: none;
}

.cottages-page-links .nxb-simple-pods__link {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    pointer-events: auto;
}

.cottages-page-links .nxb-simple-pods__link:focus-visible {
    outline: 4px solid #fff;
    outline-offset: -6px;
}

.hendre-card-carousel__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(82, 120, 162, .92);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.hendre-card-carousel__arrow--previous { left: .25rem; }
.hendre-card-carousel__arrow--next { right: .25rem; }

.hendre-card-carousel__arrow span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: .75rem;
    height: .75rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.hendre-card-carousel__arrow--previous span { transform: translate(-35%, -50%) rotate(-135deg); }
.hendre-card-carousel__arrow--next span { transform: translate(-65%, -50%) rotate(45deg); }

/* Video preview and lightbox */
.nxb-video-popup__trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nxb-video-popup__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5rem;
    height: 5rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(82, 120, 162, .82);
    transform: translate(-50%, -50%);
}

.nxb-video-popup__play::after {
    position: absolute;
    top: 50%;
    left: 53%;
    border-top: .8rem solid transparent;
    border-bottom: .8rem solid transparent;
    border-left: 1.25rem solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.nxb-video-popup__dialog {
    width: min(92vw, 70rem);
    max-width: none;
    padding: 3rem 1rem 1rem;
    border: 0;
    background: #111;
}

.nxb-video-popup__dialog::backdrop {
    background: rgba(0, 0, 0, .88);
}

.nxb-video-popup__dialog:not([open]) {
    display: none;
}

.nxb-video-popup__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.nxb-video-popup__close {
    position: absolute;
    top: .25rem;
    right: .5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
}

/* Shared call to action */
.global-content--bottom .nxb-text-block {
    display: flex;
    height: 18.5rem;
    box-sizing: border-box;
    align-items: center;
    padding-block: 3.75rem;
}

.global-content--bottom .nxb-text-block__heading {
    font-size: 2.5rem;
}

.global-content--bottom .nxb-text-block__content,
.global-content--bottom .nxb-text-block__intro-text {
    font-size: 1.5rem;
}

.global-content--bottom .nxb-text-block__button {
    min-height: 3.2rem;
    font-size: 1.25rem;
}

/* Footer */
.site-footer {
    min-height: 39.4375rem;
    --footer-text-size: 1.5rem;
    --footer-nav-size: 1.25rem;
    --footer-bottom-size: 1rem;
    --footer-logo-width: 15rem;
}

.site-footer .footer-inner {
    max-width: 71.25rem;
}

.site-footer .footer-logo img {
    width: 15rem;
}

.hendre-contact-details .nxb-simple-pods__heading {
    display: none;
}

.hendre-contact-details .nxb-simple-pods__content {
    padding: 0;
}

.hendre-contact-details .nxb-simple-pods__text {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 1.5;
}

.site-credit__dragon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* The homepage uses deeper editorial banners and an image-led video row. */
.page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-text-block {
    display: flex;
    min-height: 30.375rem;
    align-items: center;
}

.page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-media-text-split {
    display: flex;
    height: 30.375rem;
    align-items: center;
}

.page-home .nxb-banner--size-medium-crop,
.page-home .nxb-banner--size-medium-crop .nxb-banner__layout,
.page-home .nxb-banner--size-medium-crop .nxb-banner__media,
.page-home .nxb-banner--size-medium-crop .nxb-banner__content {
    height: 36.5625rem;
    min-height: 36.5625rem;
}

.page-home .img-alt-video-popup,
.page-home .img-alt-video-popup .nxb-media-text-split__inner {
    min-height: 30.75rem;
}

/* The destination guide alternates square photography with unpadded copy. */
.page-things-to-do .nxb-media-text-split {
    padding-block: 3.75rem;
}

.page-things-to-do main .umb-block-list > .nxb-component-frame:nth-child(4) .nxb-media-text-split {
    padding-bottom: 0;
}

.page-things-to-do .nxb-media-text-split__inner {
    width: min(calc(100% - 3rem), 69.75rem);
    gap: 1.5rem;
}

.page-things-to-do .nxb-media-text-split__media {
    aspect-ratio: 1;
}

.page-things-to-do .nxb-media-text-split__image {
    height: 100%;
    object-fit: cover;
}

.page-things-to-do .nxb-media-text-split__text {
    padding: 0;
}

.page-facilities .nxb-text-block {
    padding-top: 3.75rem;
    padding-bottom: 0;
}

/* Sitemap links use the roomy touch rows from the original site. */
.page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
    padding-block: .875rem;
}

.page-sitemap .nxb-sitemap a {
    display: flex;
    min-height: 3.4375rem;
    align-items: center;
}

.page-history > .page .page-heading {
    display: none;
}

.page-terms-conditions > .page .page-heading {
    display: none;
}

.page-terms-conditions .page-content-shell {
    height: 5.3125rem;
    overflow: hidden;
}

.page-terms-conditions .page-content-shell__main {
    visibility: hidden;
}

.page-the-old-chapel main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 101rem; }
.page-herne-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 98.75rem; }
.page-winterton-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 111.6875rem; }

.page-the-old-chapel .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 21.75rem; }
.page-herne-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 8.125rem; }
.page-winterton-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 16.875rem; }

.page-the-old-chapel .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key],
.page-herne-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key],
.page-winterton-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] {
    overflow: hidden;
}

.page-the-old-chapel .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] > iframe,
.page-herne-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] > iframe,
.page-winterton-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] > iframe {
    height: 100% !important;
}

.page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
    min-height: 63.3125rem;
}

@media (min-width: 641px) and (max-width: 800px) {
    .nxb-media-text-split__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: min(calc(100% - 2rem), 71.25rem);
    }

    .nxb-media-text-split--media-right .nxb-media-text-split__media { order: 2 !important; }
    .nxb-media-text-split--media-right .nxb-media-text-split__text { order: 1 !important; }
    .nxb-media-text-split--media-left .nxb-media-text-split__media { order: 1 !important; }
    .nxb-media-text-split--media-left .nxb-media-text-split__text { order: 2 !important; }

    .nxb-media-text-split__text {
        padding: 2rem;
    }
}

@media (max-width: 800px) {
    body {
        font-size: 1.25rem;
    }

    .site-header {
        height: 6.25rem;
        min-height: 6.25rem;
        padding-block: 0;
        padding-inline: 1rem;
    }

    .header-logo img {
        max-width: 11rem;
        max-height: 4.75rem;
    }

    .site-header .main-navigation {
        top: 6.25rem;
    }

    .page-history .content,
    .page-charges-and-availability .content,
    .page-terms-conditions .content,
    .page-sitemap .content,
    .page-search .content {
        padding-top: 6.25rem;
    }

    .nxb-text-block__inner,
    .nxb-contact-form__inner,
    .nxb-gallery,
    .nxb-simple-pods,
    .nxb-sitemap,
    .nxb-search-results {
        width: min(calc(100% - 2rem), 71.25rem);
    }

    .nxb-banner--size-medium-crop,
    .nxb-banner--size-medium-crop .nxb-banner__layout,
    .nxb-banner--size-medium-crop .nxb-banner__media,
    .nxb-banner--size-medium-crop .nxb-banner__content {
        height: 40svh;
        min-height: 25rem;
    }

    .nxb-banner--size-takeover,
    .nxb-banner--size-takeover .nxb-banner__layout,
    .nxb-banner--size-takeover .nxb-banner__media,
    .nxb-banner--size-takeover .nxb-banner__content {
        height: 100svh;
        min-height: 100svh;
    }

    .nxb-banner__title {
        font-size: 2.5rem;
    }

    .nxb-text-block__heading,
    .nxb-media-text-split__heading,
    .global-content--bottom .nxb-text-block__heading {
        font-size: 2rem;
    }

    .nxb-component-frame--top-large,
    .nxb-text-block--top-large,
    .nxb-media-text-split--top-large {
        padding-top: 3.5rem;
    }

    .nxb-component-frame--bottom-large,
    .nxb-text-block--bottom-large,
    .nxb-media-text-split--bottom-large {
        padding-bottom: 3.5rem;
    }

    .global-content--bottom .nxb-text-block__content,
    .global-content--bottom .nxb-text-block__intro-text {
        font-size: 1.25rem;
    }

    .site-footer {
        --footer-text-size: 1.25rem;
        --footer-nav-size: 1.125rem;
    }

    .hendre-contact-details .nxb-simple-pods__text {
        font-size: 1.25rem;
    }

    .page-search > .page .page-heading {
        display: none;
    }

    .global-content--bottom .nxb-text-block {
        height: 17.1875rem;
    }

    .site-footer {
        min-height: 0;
    }

    .site-footer .footer-navigation ul {
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        gap: .75rem 1.75rem;
    }

    .site-footer .footer-navigation li,
    .site-footer .footer-navigation li + li,
    .site-footer .footer-navigation .site-credit {
        margin: 0;
    }

    .page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-text-block {
        min-height: 28.25rem;
    }

    .page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-media-text-split {
        height: 28.25rem;
    }

    .page-home .nxb-banner--size-medium-crop,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__layout,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__media,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__content {
        height: 35.375rem;
        min-height: 35.375rem;
    }

    .page-home .img-alt-video-popup,
    .page-home .img-alt-video-popup .nxb-media-text-split__inner {
        min-height: 19.5rem;
    }

    .page-the-old-chapel .nxb-component-frame[data-component-alias="simplePods"],
    .page-herne-cottage .nxb-component-frame[data-component-alias="simplePods"],
    .page-winterton-cottage .nxb-component-frame[data-component-alias="simplePods"] {
        padding-block: 3.25rem;
    }

    .page-cottages .nxb-component-frame[data-component-alias="simplePods"] {
        padding-block: 1.875rem;
    }

    .page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
        padding-block: 1.125rem;
    }

    .page-sitemap .nxb-sitemap a {
        min-height: 2.875rem;
    }

    .page-the-old-chapel main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 102.9375rem; }
    .page-herne-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 97.125rem; }
    .page-winterton-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 116.3125rem; }

    .page-the-old-chapel .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 34.1875rem; }
    .page-herne-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 5.625rem; }
    .page-winterton-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 14.375rem; }

    .page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
        min-height: 55.0625rem;
    }
}

@media (max-width: 640px) {
    .header-logo img {
        max-width: 9.5rem;
    }

    .header-actions .button-light {
        min-width: 0;
        min-height: 2.75rem;
        padding-inline: .9rem;
        font-size: 1rem;
    }

    .header-search {
        display: none;
    }

    .nxb-banner--size-medium-crop,
    .nxb-banner--size-medium-crop .nxb-banner__layout,
    .nxb-banner--size-medium-crop .nxb-banner__media,
    .nxb-banner--size-medium-crop .nxb-banner__content {
        height: 20.125rem;
        min-height: 20.125rem;
    }

    .nxb-media-text-split__inner {
        width: 100%;
    }

    .nxb-media-text-split__text {
        padding: 2rem 1rem 2.5rem;
    }

    .cottages-page-links {
        width: 100%;
    }

    .cottages-page-links .nxb-simple-pods__grid:not(.slick-initialized) {
        grid-template-columns: minmax(0, 1fr);
    }

    .cottages-page-links .nxb-simple-pods__heading {
        font-size: 1.75rem;
    }

    .nxb-video-popup__play {
        width: 4rem;
        height: 4rem;
    }

    .global-content--bottom .nxb-text-block {
        height: 17.5625rem;
        padding-block: 2.5rem;
    }

    .page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-text-block {
        min-height: 34.875rem;
    }

    .page-home main .umb-block-list > .nxb-component-frame:nth-child(2) .nxb-media-text-split {
        height: 34.875rem;
    }

    .page-home .nxb-banner--size-medium-crop,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__layout,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__media,
    .page-home .nxb-banner--size-medium-crop .nxb-banner__content {
        height: 28.0625rem;
        min-height: 28.0625rem;
    }

    .page-home .img-alt-video-popup,
    .page-home .img-alt-video-popup .nxb-media-text-split__inner {
        min-height: 29rem;
    }

    .page-home .nxb-gallery {
        width: 100%;
        margin-left: 0;
    }

    .page-home .nxb-component-frame:has(.nxb-gallery) {
        padding-block: .75rem;
    }

    .page-the-old-chapel .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
    .page-herne-cottage .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
    .page-winterton-cottage .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image {
        aspect-ratio: 1.44;
    }

    .page-location .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image,
    .page-facilities .nxb-component-frame[data-component-alias="gallery"] .nxb-gallery__image {
        aspect-ratio: 1.27;
    }

    .page-the-old-chapel .nxb-component-frame[data-component-alias="simplePods"],
    .page-herne-cottage .nxb-component-frame[data-component-alias="simplePods"],
    .page-winterton-cottage .nxb-component-frame[data-component-alias="simplePods"] {
        padding-block: 4.1875rem;
    }

    .page-cottages .nxb-component-frame[data-component-alias="simplePods"] {
        padding-block: 3.0625rem;
    }

    .page-facilities .nxb-text-block {
        padding-top: 1.875rem;
        padding-bottom: 0;
    }

    .page-location .nxb-text-block__inner,
    .page-facilities .nxb-text-block__inner {
        width: 100%;
    }

    .page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
        padding-block: 1.125rem;
    }

    .page-sitemap .nxb-sitemap a {
        min-height: 2.875rem;
    }

    .page-the-old-chapel main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 170.0625rem; }
    .page-herne-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 160.6875rem; }
    .page-winterton-cottage main .nxb-component-frame[data-component-alias="textBlock"] .nxb-text-block { min-height: 191.5625rem; }

    .page-the-old-chapel .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 34.75rem; }
    .page-herne-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 28.375rem; }
    .page-winterton-cottage .nxb-component-frame[data-component-alias="codeBlock"] > div[data-calendar-key] { height: 13.125rem; }

    .page-sitemap .nxb-component-frame[data-component-alias="sitemapBlock"] {
        min-height: 53.25rem;
    }

    .page-things-to-do .nxb-media-text-split {
        padding-block: 1.875rem;
    }

    .page-things-to-do .nxb-media-text-split__inner {
        width: calc(100% - 1.5rem);
        gap: 1.5625rem;
    }

    .page-things-to-do .nxb-media-text-split__text {
        padding: 0;
    }

    .site-footer .footer-inner {
        padding-block: 2.5rem;
    }

    .site-footer .footer-bottom {
        margin-top: 1.875rem;
        padding-top: 1.25rem;
    }

    .site-footer .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: .625rem;
    }

    .site-footer {
        min-height: 45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header .main-navigation {
        transition: none;
    }
}
