body {
    margin: 0;
    background: url("../images/global/tile1.jpg") repeat;
    font-size: 1rem;
}

/* Keep the site's copy at one consistent, readable size. */
button,
input,
select,
textarea,
small,
sub,
sup {
    font: inherit;
    font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

h1 {
    font-size: 2rem;
}

/* Reusable purple, rounded text highlight. */
.highlight {
    display: inline-block;
    padding: 0.08em 0.4em;
    line-height: 1.2;
    background: #ff00cc;
    border-radius: 0.6em;
    animation: highlight-fade 2s ease-in-out infinite;
}

@keyframes highlight-fade {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

h4,
h5,
h6 {
    font-size: 1rem;
}

header img {
    display: block;
    width: 100%;
    height: auto;
}

/* Main navigation */
.menu-section {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 960px;
    background: #5b3a24;
    border-top: 1px solid #8a684b;
    border-bottom: 1px solid #2f1d12;
    box-shadow: 0 2px 4px rgb(45 28 16 / 28%);
}

/* The controls are created by JavaScript and are only shown at the mobile
   breakpoint. Keep them out of the desktop layout even before their mobile
   rules apply. */
.menu-toggle,
.menu-close,
.submenu-toggle {
    display: none;
}

.main-menu__list,
.main-menu__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu__list {
    display: flex;
    justify-content: center;
}

.main-menu__item {
    position: relative;
    border-left: 1px solid rgb(255 255 255 / 12%);
}

.main-menu__item:last-child {
    border-right: 1px solid rgb(0 0 0 / 20%);
}

.main-menu__link,
.main-menu__submenu-link {
    display: block;
    color: #fff8e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: 0 1px 1px rgb(0 0 0 / 45%);
}

.main-menu__link {
    padding: 12px 21px 11px;
    white-space: nowrap;
}

.main-menu__item--has-submenu > .main-menu__link::after {
    display: inline-block;
    margin-left: 7px;
    content: "";
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(3px);
}

.main-menu__item:hover > .main-menu__link,
.main-menu__item:focus-within > .main-menu__link,
.main-menu__link:hover,
.main-menu__link:focus-visible {
    background: #7b5132;
    color: #fff;
    outline: none;
}

.main-menu__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    padding: 5px 0;
    background: #6b452b;
    border: 1px solid #3b2416;
    box-shadow: 0 3px 7px rgb(32 18 9 / 35%);
}

.main-menu__item:hover > .main-menu__submenu,
.main-menu__item:focus-within > .main-menu__submenu {
    display: block;
}

.main-menu__submenu-link {
    padding: 9px 14px;
    font-size: 1rem;
    text-shadow: none;
}

.main-menu__submenu-link:hover,
.main-menu__submenu-link:focus-visible {
    background: #8a5d3a;
    color: #fff;
    outline: none;
}

/* Desktop menu styling follows the live site's individual pink menu panels. */
/* Desktop navigation begins only after the mobile drawer ends. */
@media (min-width: 751px) {
    .menu-section {
        max-width: 960px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .main-menu__list {
        gap: 25px;
    }

    .main-menu__item,
    .main-menu__item:last-child {
        z-index: 1;
        margin: 0;
        background-color: #ff9999;
        border: 5px solid #ff00cc;
        border-radius: 10px;
        opacity: 0.93;
    }

    .main-menu__link,
    .main-menu__submenu-link {
        color: #393939;
        text-shadow: none;
    }

    .main-menu__link {
        padding: 7px 6px;
        border: solid #ff9999;
        border-width: 0 15px;
        border-radius: 5px;
    }

    .main-menu__item:hover > .main-menu__link,
    .main-menu__item:focus-within > .main-menu__link,
    .main-menu__link:hover,
    .main-menu__link:focus-visible {
        background: rgb(255 255 255 / 30%);
        color: #393939;
    }

    .main-menu__submenu {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .main-menu__submenu-item {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        background-color: #ff9999;
        border: 5px solid #ff00cc;
        border-radius: 10px;
        opacity: 0.93;
    }

    .main-menu__submenu-link {
        padding: 7px 6px;
        border: solid #ff9999;
        border-width: 0 15px;
        border-radius: 5px;
    }

    .main-menu__submenu-link:hover,
    .main-menu__submenu-link:focus-visible {
        background: rgb(255 255 255 / 30%);
        color: #393939;
    }
}

@media (min-width: 961px) {
    header {
        margin: 0 auto;
        max-width: 960px;
    }
}

@media (max-width: 750px) {
    /* The mobile navigation uses the same sandy surface in every state. */
    .menu-section,
    .main-menu__item,
    .main-menu__submenu,
    .main-menu__link,
    .main-menu__submenu-link,
    .submenu-toggle,
    .menu-toggle,
    .menu-close {
        background-color: #f6e5b9;
    }

    .main-menu__list {
        display: block;
    }

    .main-menu__item,
    .main-menu__item:last-child {
        border-right: 0;
        border-bottom: 1px solid rgb(0 0 0 / 20%);
        border-left: 0;
    }

    .main-menu__link {
        padding: 11px 54px 11px 16px;
    }

    .main-menu__submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        max-height: 1000px;
        background: #f6e5b9;
        border: 0;
        box-shadow: none;
        transition: max-height 260ms ease, opacity 200ms ease, visibility 200ms ease;
    }

    .js .main-menu__submenu {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }

    .js .main-menu__item--submenu-open > .main-menu__submenu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
    }

    .main-menu__item--has-submenu > .main-menu__link::after {
        display: none;
    }

    .main-menu__submenu-link {
        padding: 9px 16px 9px 31px;
        color: #111;
        background: #f6e5b9;
        text-shadow: none;
    }

    .main-menu__link {
        color: #111;
        text-shadow: none;
    }

    .main-menu__item:hover > .main-menu__link,
    .main-menu__item:focus-within > .main-menu__link,
    .main-menu__link:hover,
    .main-menu__link:focus-visible,
    .main-menu__link:active,
    .main-menu__submenu-link:hover,
    .main-menu__submenu-link:focus-visible,
    .main-menu__submenu-link:active,
    .submenu-toggle:hover,
    .submenu-toggle:focus-visible,
    .submenu-toggle:active,
    .menu-toggle:hover,
    .menu-toggle:focus-visible,
    .menu-toggle:active,
    .menu-close:hover,
    .menu-close:focus-visible,
    .menu-close:active {
        color: #111;
        background-color: #f6e5b9;
    }

    .js .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: block;
        width: 48px;
        height: 45px;
        padding: 0;
        color: #111;
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        background: #f6e5b9;
        border: 0;
    }

    /* These controls are added only by script, leaving a usable in-flow menu
       for visitors browsing with JavaScript disabled. */
    .menu-toggle,
    .menu-close {
        box-sizing: border-box;
        width: 50px;
        height: 50px;
        padding: 0;
        cursor: pointer;
        background: #f6e5b9;
        border: 0;
    }

    .menu-toggle img,
    .menu-close img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .js .menu-toggle {
        position: relative;
        margin: 12px auto;
        display: block;
    }

    .js .menu-section {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 102;
        box-sizing: border-box;
        width: 250px;
        margin: 0;
        overflow-y: auto;
        background: #f6e5b9;
        border-color: #d6bd86;
        transform: translateX(-100%);
        transition: transform 260ms ease;
    }

    .js .menu-section.menu-section--instant {
        transition: none;
    }

    .js .menu-section.menu-section--open {
        transform: translateX(0);
    }

    .js .menu-close {
        display: block;
        margin: 7px 7px 7px auto;
    }
}


/* Main page layout */
.page-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 230px;
    padding: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.social-links a {
    display: block;
}

.social-links img {
    display: block;
    width: 50px;
    height: 50px;
}

/* Main content */
.main-content {
    min-width: 0;
}

.box-paragraph {
    border: 3px solid #000;
}

/* Equal two-column block */
.two-eq-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.contact-details-map {
    align-items: start;
}

.contact-map-container,
.contact-form {
    box-sizing: border-box;
    padding: 10px;
}

.contact-map {
    border: 0;
    height: 400px;
    width: 100%;
}

.contact-form-section {
    margin-top: 35px;
    max-width: 680px;
}

.contact-form label,
.contact-form input,
.contact-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 8px;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-captcha img {
    display: block;
    margin: 6px 0;
}

.form-status {
    padding: 10px;
}

.form-status--success {
    background: #dff0d8;
}

.form-status--error {
    background: #f8d7da;
}

/* Mobile layout */
@media (max-width: 750px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: auto;
        padding: 20px;
    }

    .two-eq-column {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }
}


/* Three-column block */

.three-column-block {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c1,
.c3 {
    padding: 5px;
}

.three-column-block > .c1,
.three-column-block > .c3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.three-column-block > .c1 > a,
.three-column-block > .c3 > a {
    display: block;
}

.c2 {
    padding: 10px;
}

@media (min-width: 1001px) {
    .three-column-block {
        grid-template-columns: minmax(0, 270px) minmax(0, 1fr) minmax(0, 270px);
    }
}

@media (max-width: 1000px) and (min-width: 500px) {

    .three-column-block {
        grid-template-columns: 1fr 1fr;
    }

    .c1 {
        grid-column: 1;
        grid-row: 1;
    }

    .c3 {
        grid-column: 2;
        grid-row: 1;
    }

    .c2 {
        grid-column: 1 / 3;
        grid-row: 2;
    }
}


/* Below 500px
   C1
   C2
   C3
*/

@media (max-width: 499px) {

    .three-column-block {
        grid-template-columns: 1fr;
    }
}

/* Images and image viewer */
img[src$=".jpg" i] {
    border-radius: 20px;
}

.page-title {
    margin: 30px auto;
    text-align: center;
}

.image-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgb(0 0 0 / 55%);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: zoom-out;
}

.image-lightbox--open {
    opacity: 1;
}

.image-lightbox__frame {
    position: fixed;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 42px rgb(0 0 0 / 38%);
    overflow: hidden;
    transition: left 320ms ease, top 320ms ease, width 320ms ease, height 320ms ease, opacity 160ms ease;
}

.image-lightbox__frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.single-column {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

/* Stabling gallery: each row shares its free horizontal space while retaining
   the natural dimensions and aspect ratio of its photographs. */
.stabling-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 12px;
}

.stabling-gallery a {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
}

.stabling-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
}

.single-column-image {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image-right layout */

.image-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    width: 100%;
}

.image-right-column {
    box-sizing: border-box;
    width: 250px;
    padding: 5px;
}

.image-right-content {
    min-width: 0;
    padding: 10px;
}


/* Below 500px:
   Right column moves above left column */

@media (max-width: 499px) {

    .image-right {
        grid-template-columns: 1fr;
    }

    .image-right-column {
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        grid-row: 1;
    }

    .image-right-content {
        grid-row: 2;
    }
}

/* Image-left layout */

.image-left {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: 100%;
}

.image-left-column {
    width: 250px;
    padding: 5px;
}

.image-left-content {
    min-width: 0;
    padding: 10px;
}


/* Below 500px:
   Left column moves above right column */

@media (max-width: 499px) {

    .image-left {
        grid-template-columns: 1fr;
    }

    .image-left-column {
        align-items: center;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* ==================================================
   Basic centred HR
   ================================================== */

.hr-grow,
.hr-glimmer {
    border: none;
    margin: 30px auto;
}


/* ==================================================
   GROWING LINE
   5 seconds grow
   5 seconds full length
   1 second rapid shrink
   5 seconds grow
   Repeat
   ================================================== */

.hr-grow {
    width: 30%;
    height: 5px;
    background: #555;
    border-radius: 5px;

    animation: hr-grow-animation 16s linear infinite;
}

@keyframes hr-grow-animation {

    0% {
        transform: scaleX(0);
    }

    15% {
        transform: scaleX(1);
    }

    60% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

/* ==================================================
   GLIMMER LINE
   1 second: shine left → right
   5 seconds: solid
   1 second: shine right → left
   5 seconds: solid
   ================================================== */

.hr-glimmer {
    width: 30%;
    height: 5px;
    border-radius: 5px;

    background: linear-gradient(
        to right,
        #555 0%,
        #555 35%,
        #fff 50%,
        #555 65%,
        #555 100%
    );

    background-size: 300% 100%;

    animation: hr-glimmer-animation 12s linear infinite;
}

@keyframes hr-glimmer-animation {

    /* Shine moving left → right */
    0% {
        background-position: 300% 0;
    }

    10% {
        background-position: 0% 0;
    }

    /* Stay solid for 5 seconds */
    50% {
        background-position: 0% 0;
    }

    /* Shine moving right → left */
    60% {
        background-position: 300% 0;
    }

    /* Stay solid for 5 seconds */
    100% {
        background-position: 300% 0;
    }
}

.site-footer {
    padding: 2px;
    background: #f7f76b;
    text-align: center;
}

.shrink {
    max-width: 100%;
    height: auto;
}
