/*
 * 10 Old Bailey - site stylesheet
 * Replaces the Elementor / Elementor Pro / Happy Addons / Royal Addons / Unlimited Elements / Hello Elementor styles.
 * Sizes are the live site's; breakpoints as before: laptop <= 1700px, tablet <= 1200px, phone <= 767px.
 * Fonts: Hanken Grotesk (self-hosted, declared in inc/site/site.php) and angie-sans (Adobe Fonts kit zpx6bxr).
 *
 *  1. Tokens               8. Specification tiles
 *  2. Base                 9. Accommodation + Plan
 *  3. Shared components   10. Location
 *  4. Header and menu     11. Gallery
 *  5. Hero                12. Footer
 *  6. Home                13. Lightbox
 *  7. Call to action      14. Reveal animations, plain pages
 *     "Tips the scales"
 */

/* 1. Tokens -------------------------------------------------------------- */

:root {
    --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --display: "angie-sans", Georgia, serif;

    --gold: #918263;
    --gold-text: #948464;
    --cream: #ece6de;
    --lilac: #bbcdfd;
    --navy: #213036;
    --green: #156b4d;
    --brown: #401c0d;
    --text: #616161;
    --table: #7a7a7a;
    --panel: #f4f7f8;
    --tint: rgba(221, 229, 254, 0.44);
    --available: rgba(255, 175, 152, 0.66);

    --p-gap: 0.9rem;
    --widget-gap: 20px;
}

/* 2. Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html.menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, p, ul, figure, table {
    margin: 0;
}

h1, h2, h3, h4 {
    font-size: inherit;
    font-weight: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    background: #fff;
    color: #000;
}

.skip-link:focus {
    top: 10px;
}

.icon {
    display: inline-block;
    flex-shrink: 0;
}

/* 3. Shared components --------------------------------------------------- */

/* Small gold capitals (THE BUILDING, FLOORPLANS, SPECIFICATION ...) */
.label {
    margin: 0 0 calc(var(--p-gap) + var(--widget-gap));
    color: var(--gold-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 4.2px;
    text-transform: uppercase;
}

/* Centred section headings (YOUR JOURNEY STARTS HERE, ENVIABLE LOCAL AMENITIES ...) */
.section-title {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 30px calc(var(--p-gap) + 10px);
    color: var(--gold-text);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 4.2px;
    text-align: center;
    text-transform: uppercase;
}

.section-title--spaced {
    padding-top: 80px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 17px;
    border-radius: 3px;
    background: var(--brown);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.3s;
}

.button:hover,
.button:focus-visible {
    background: rgba(64, 28, 13, 0.73);
}

.button__icon {
    width: 16px;
    height: 16px;
}

.rule {
    height: 5px;
    background: var(--gold);
}

.wide-image__img {
    width: 100%;
}

/* 4. Header and menu ----------------------------------------------------- */

.site-header {
    position: relative;
    background: var(--cream);
}

.site-nav {
    display: grid;
    grid-template-columns: 45% 9.332% 45%;
    align-items: center;
}

.site-nav__list {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: block;
    padding: 13px 20px;
    color: #212121;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 4.2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-current {
    color: #000;
}

.site-header__logo {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.site-header__logo-img {
    width: 40px;
}

.menu-toggle {
    display: none;
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    visibility: hidden;
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.4s ease, visibility 0s linear 0.4s;
    overflow-y: auto;
}

.site-menu__inner {
    width: 90vw;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.site-menu__list li {
    margin: 2px;
}

.site-menu__link {
    position: relative;
    display: inline-flex;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-transform: uppercase;
}

.site-menu__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.4s ease;
}

.site-menu__link:hover::after,
.site-menu__link:focus-visible::after {
    width: 100%;
}

html.menu-open .site-menu {
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: transform 0.75s ease, visibility 0s;
}

html.menu-open .site-menu__inner {
    opacity: 1;
    transition: opacity 0.4s ease 0.4s;
}

@media (max-width: 1700px) {
    .site-nav__link {
        letter-spacing: 2px;
    }
}

@media (max-width: 1200px) {
    .site-nav {
        display: block;
        width: 90%;
    }

    .site-nav__list {
        display: none;
    }

    .site-header__logo {
        justify-content: flex-start;
    }

    .site-header__logo-img {
        width: 50px;
    }

    /* Hamburger: three 2px lines in a 60px square, turning into a cross */
    .menu-toggle {
        position: absolute;
        top: 50%;
        left: 90%;
        z-index: 110;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        margin-top: -30px;
        padding: 15px;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        transition: background-color 0.4s;
    }

    .menu-toggle__lines,
    .menu-toggle__lines::before,
    .menu-toggle__lines::after {
        display: block;
        width: 30px;
        height: 2px;
        background: #000;
        transition: all 0.4s ease;
    }

    .menu-toggle__lines {
        position: relative;
    }

    .menu-toggle__lines::before,
    .menu-toggle__lines::after {
        content: "";
        position: absolute;
        left: 0;
        top: -10px;
    }

    .menu-toggle__lines::after {
        top: 10px;
    }

    .menu-toggle:hover {
        background: #2a2a2a;
    }

    .menu-toggle:hover .menu-toggle__lines,
    .menu-toggle:hover .menu-toggle__lines::before,
    .menu-toggle:hover .menu-toggle__lines::after {
        background: #fff;
    }

    .menu-toggle[aria-expanded="true"] {
        position: fixed;
        top: var(--toggle-top, 9px);
        margin-top: 0;
        background: #2a2a2a;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__lines {
        transform: rotate(135deg);
        background: #fff;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__lines::before,
    .menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
        top: 0;
        transform: rotate(90deg);
        background: #fff;
    }

    .menu-toggle[aria-expanded="true"]:hover .menu-toggle__lines {
        transform: rotate(225deg);
    }
}

@media (max-width: 767px) {
    .site-nav {
        width: 80%;
    }

    .site-header__logo-img {
        width: 45px;
    }

    .menu-toggle {
        left: 80%;
    }

    .menu-toggle[aria-expanded="true"] {
        top: var(--toggle-top, 7px);
    }

    .site-menu__list li {
        margin: 0 0 20px;
    }
}

/* 5. Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    padding: 50px;
    overflow: hidden;
    isolation: isolate;
}

.hero--bordered {
    border-bottom: 5px solid var(--gold);
}

.hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 33%, #3f1c0f 70%);
    opacity: 0.59;
    mix-blend-mode: darken;
}

.hero--home .hero__shade {
    opacity: 0.25;
}

.hero__content {
    padding: 20px 0 100px;
}

.hero--home .hero__content {
    padding-bottom: 50px;
}

.hero__heading {
    color: var(--lilac);
    font-size: 80px;
    line-height: 1;
}

.hero__italic {
    display: block;
    margin-bottom: -10px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
}

/* Specification: the italic line is a fixed-width block with no gap under it, and the live title starts with
   an invisible line-separator character that shows as a small indent */
.hero--narrow .hero__italic {
    width: 40.296%;
    margin-bottom: 0;
}

.hero--narrow .hero__title {
    margin-top: 0;
    text-indent: 0.25em;
}

.hero__title {
    display: block;
    margin-top: var(--widget-gap);
    font-weight: 300;
}

.hero__kicker {
    margin-top: var(--widget-gap);
    padding-bottom: var(--p-gap);
    color: var(--cream);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 4.2px;
    text-transform: uppercase;
}

.hero__text {
    width: 22.696%;
    margin-top: var(--widget-gap);
    color: var(--cream);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.2px;
}

.hero__text p {
    margin-bottom: var(--p-gap);
}

@media (max-width: 1700px) {
    .hero--location .hero__text {
        width: 355.969px;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .hero__heading {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 0;
        padding: 80px 20px 20px;
    }

    .hero__content,
    .hero--home .hero__content {
        padding: 250px 0 50px;
    }

    .hero__heading {
        font-size: 40px;
    }

    .hero__text,
    .hero--location .hero__text {
        width: 273.625px;
        max-width: 100%;
    }
}

/* 6. Home ---------------------------------------------------------------- */

/* Logo animation: plays once when it comes into view (oldbailey.js) */
.logo-reveal__video {
    width: 100%;
    margin-bottom: 7px;
}

.building {
    display: flex;
    padding: 50px;
}

.building__media {
    width: 60%;
}

.building__media img {
    width: 100%;
}

.building__body {
    width: 40%;
    padding: 50px;
}

.building__logo {
    width: 305px;
    max-width: 60%;
    margin-bottom: 40px;
}

.building__text {
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.2px;
}

.building__text ul {
    padding-left: 40px;
}

.features {
    display: flex;
    padding: 50px;
    background: var(--tint);
}

.feature {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 5px;
}

.feature:first-child {
    padding: 0 10px 0 0;
}

.feature:last-child {
    padding: 0 0 0 10px;
}

/* Photo tile; the gold caption panel fades in on hover (the live "flip box", fade style) */
.feature__tile {
    position: relative;
    height: 350px;
    overflow: hidden;
    outline-offset: -2px;
}

.feature__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature__back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(145, 130, 99, 0.81);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature__tile:hover .feature__back,
.feature__tile:focus .feature__back {
    opacity: 1;
}

.feature__text {
    margin-bottom: 20px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .building {
        flex-direction: column;
        padding: 20px;
    }

    .building__media,
    .building__body {
        width: 100%;
    }

    .building__body {
        padding: 20px;
    }

    .building__text {
        font-size: 14px;
    }

    .features {
        flex-direction: column;
        padding: 10px;
    }

    .feature,
    .feature:first-child {
        padding: 10px;
    }

    .feature:last-child {
        padding: 10px 10px 30px;
    }
}

/* 7. Call to action ------------------------------------------------------ */

.cta-mark {
    position: relative;
    z-index: 2;
    height: 20px;
}

.cta-mark__logo {
    position: absolute;
    top: 0;
    left: 50%;
    width: 54px;
    transform: translateX(-50%);
}

.cta--brochure-mark .cta-mark__logo {
    top: -20px;
}

.cta {
    text-align: center;
}

.cta--gallery {
    background: var(--tint);
}

.cta__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px;
}

.cta__label {
    padding: 20px 20px 0;
}

.cta--gallery .cta__label {
    padding: 80px 20px 20px;
}

.cta__heading {
    margin: 0 auto -10px;
    color: var(--gold-text);
    font-family: var(--display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
}

.cta__action {
    margin-top: var(--widget-gap);
    padding: 30px;
}

.cta--gallery .cta__action {
    padding-bottom: 80px;
}

@media (max-width: 1700px) {
    .cta--brochure .cta__heading {
        max-width: 818px;
    }

    .cta--gallery .cta__heading {
        max-width: 1126px;
    }
}

@media (max-width: 1200px) {
    .cta__inner {
        max-width: 1024px;
    }

    .cta__heading {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .cta__inner {
        max-width: 767px;
    }

    .cta__heading {
        font-size: 40px;
    }
}

/* "Where ... tips the scales" banners */

.scales {
    display: flex;
    padding: 50px;
}

.scales--history {
    background: var(--navy);
    color: var(--lilac);
}

.scales--sustainability {
    background: var(--green);
    color: var(--cream);
}

.scales--location {
    background: var(--gold);
    color: var(--cream);
}

.scales__col {
    display: flex;
    flex-direction: column;
    width: 33.333%;
    min-width: 0;
}

.scales__col--bottom {
    justify-content: flex-end;
    text-align: right;
}

.scales__heading {
    position: relative;
    z-index: 1;
    font-size: 80px;
    line-height: 1;
}

.scales__light {
    display: block;
    font-weight: 300;
}

.scales__italic {
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
}

.scales__col--top .scales__italic {
    margin-top: calc(var(--widget-gap) - 32px);
}

.scales__col--bottom .scales__italic {
    margin-bottom: -10px;
}

.scales__col--bottom .scales__light {
    margin-top: var(--widget-gap);
}

.scales__image {
    width: 100%;
}

/* Specification: 35 / 29.3 / 35 columns, 60px type, photo centred */
.scales--sustainability .scales__heading {
    font-size: 60px;
}

.scales--sustainability .scales__col--top,
.scales--sustainability .scales__col--bottom {
    width: 35%;
    padding: 20px;
}

.scales--sustainability .scales__col--top {
    text-align: right;
}

.scales--sustainability .scales__col--bottom {
    text-align: left;
}

.scales--sustainability .scales__col--image {
    width: 29.307%;
    justify-content: center;
    align-items: center;
}

.scales--sustainability .scales__col--bottom .scales__italic {
    margin-bottom: -13px;
}

/* Location: two columns, photo above the closing line */
.scales--location .scales__col {
    width: 50%;
}

.scales--location .scales__col--bottom .scales__heading {
    text-transform: uppercase;
}

.scales--location .scales__photo {
    margin-bottom: var(--widget-gap);
}

@media (max-width: 1700px) {
    .scales--sustainability .scales__photo {
        width: 323.297px;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .scales__heading,
    .scales--sustainability .scales__heading {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .scales {
        flex-direction: column;
        padding: 20px;
    }

    .scales__col,
    .scales--sustainability .scales__col--top,
    .scales--sustainability .scales__col--bottom,
    .scales--sustainability .scales__col--image,
    .scales--location .scales__col {
        width: 100%;
    }

    .scales__heading,
    .scales--sustainability .scales__heading {
        font-size: 40px;
    }

    .scales--history .scales__col--top .scales__light {
        padding-bottom: 10px;
    }

    .scales--sustainability .scales__col--top .scales__italic {
        margin-top: calc(var(--widget-gap) - 22px);
    }

    .scales--location .scales__col--top .scales__italic {
        margin-top: calc(var(--widget-gap) - 23px);
    }

    .scales__photo {
        padding: 30px 0;
    }
}

/* 8. Specification tiles ------------------------------------------------- */

.tiles {
    display: flex;
    padding: 50px;
}

.tiles__intro {
    flex: 0 1 30%;
    min-width: 0;
}

.tiles__grid {
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 100%;
    min-width: 0;
    padding: 0;
    list-style: none;
}

.tiles--sustainability .tiles__grid {
    flex-basis: 70%;
}

.tiles__text {
    width: 67.853%;
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.2px;
}

.tiles__item {
    width: 25%;
    padding: 10px;
}

.tiles__image {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.tiles__image:hover {
    transform: scale(1.1);
}

@media (max-width: 1700px) {
    .tiles--sustainability .tiles__grid {
        flex-basis: 100%;
    }

    .tiles--spec .tiles__text {
        width: 262.781px;
    }

    .tiles--sustainability .tiles__text {
        width: 243.594px;
    }
}

@media (max-width: 1200px) {
    .tiles {
        flex-wrap: wrap;
    }

    .tiles__intro,
    .tiles__grid,
    .tiles--sustainability .tiles__grid {
        flex-basis: 100%;
    }

    .tiles__text {
        padding-bottom: var(--p-gap);
    }
}

@media (max-width: 767px) {
    .tiles {
        padding: 20px;
    }

    .tiles__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .tiles__item {
        width: 100%;
    }
}

/* 9. Accommodation + Plan ------------------------------------------------ */

.floors {
    display: flex;
    padding: 50px;
}

.floors__intro {
    width: 20%;
    padding: 10px;
}

.floors__text {
    width: 67.853%;
    padding-bottom: calc(var(--p-gap) + 50px);
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.2px;
}

.plan-buttons {
    padding: 0;
    list-style: none;
}

.plan-buttons li + li {
    margin-top: var(--widget-gap);
}

.plan-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    vertical-align: middle;
}

.plan-button__icon {
    width: 10px;
    height: 16px;
}

.floors__schedule {
    width: 45%;
    padding: 20px;
    background: var(--panel);
}

/* Accommodation schedule: equal columns, each floor a ruled band with an 11px gap */
.schedule {
    width: 100%;
    margin: -9px 0 -11px;
    border-collapse: separate;
    border-spacing: 0 11px;
    color: var(--table);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

/* Equal columns; on a phone the status column widens to keep "AVAILABLE NOW" on one line, as live */
.schedule th,
.schedule td {
    width: 25%;
    padding: 10px;
    font-weight: 300;
    white-space: nowrap;
    vertical-align: middle;
}

.schedule tbody th,
.schedule tbody td {
    border-top: 1px solid #d5d5d8;
    border-bottom: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d8;
}

.schedule tbody td:last-child {
    border-right: 0;
}

.schedule tbody tr.is-available {
    background: var(--available);
}

.schedule tbody tr.is-shaded th,
.schedule tbody tr.is-shaded td {
    border: 0;
    background: rgba(128, 128, 128, 0.07);
}

.floors__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 34.666%;
    padding: 20px;
    background: var(--panel);
}

.floors__stack-img {
    width: 90%;
    margin-bottom: 100px;
}

.floors__legend {
    width: 308px;
    margin-bottom: 7px;
}

/* Plan page */
.floors--plan .floors__intro {
    width: 25%;
}

.floors__panel {
    width: 75%;
    padding: 10px;
    background: var(--panel);
}

.floors__columns {
    display: flex;
}

.floors--plan .floors__schedule {
    width: 40%;
    padding: 10px;
    background: none;
}

.schedule--plan {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    color: var(--table);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-transform: none;
}

.schedule--plan th,
.schedule--plan td,
.schedule--plan tbody th,
.schedule--plan tbody td {
    width: auto;
    padding: 15px;
    white-space: normal;
    border: 1px solid rgba(128, 128, 128, 0.5);
    font-weight: 400;
    vertical-align: top;
}

.schedule--plan thead th {
    border-top: 0;
    font-weight: 700;
}

.schedule--plan th:first-child,
.schedule--plan td:first-child {
    border-left: 0;
}

.schedule--plan th:last-child,
.schedule--plan td:last-child {
    border-right: 0;
}

.schedule--plan tbody tr:last-child th,
.schedule--plan tbody tr:last-child td {
    border-bottom: 0;
}

.schedule__floor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 30px;
    border-radius: 5px;
    color: #4b4b4b;
    cursor: pointer;
}

/* Floor stack: each floor drawing overlaps the one below; hovering a floor number lifts it out (oldbailey.js) */
.floor-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    padding: 10px;
    perspective: 1000px;
}

.floor-stack__layer {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 30px;
    margin-top: -15px;
    border-radius: 15px;
    transition: transform 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.floor-stack__layer img {
    width: 100%;
}

.floor-stack__layer--lg { z-index: 1; }
.floor-stack__layer--g { z-index: 2; }
.floor-stack__layer--1 { z-index: 3; }
.floor-stack__layer--2 { z-index: 4; }
.floor-stack__layer--3 { z-index: 5; }
.floor-stack__layer--4 { z-index: 6; }
.floor-stack__layer--5 { z-index: 7; }
.floor-stack__layer--6 { z-index: 8; }

.floors--plan .floors__legend {
    width: 26.799%;
    margin: 0;
    padding: 10px;
}

@media (max-width: 1700px) {
    .floors__text {
        width: 262.781px;
        max-width: 100%;
    }

    .floors__legend,
    .floors--plan .floors__legend {
        width: 315.328px;
    }
}

@media (max-width: 1200px) {
    .floors--plan {
        flex-wrap: wrap;
    }

    .floors--plan .floors__intro,
    .floors__panel,
    .floors--plan .floors__schedule,
    .floor-stack {
        width: 100%;
    }

    .floors__columns {
        flex-wrap: wrap;
    }

    .floor-stack {
        padding: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .floors {
        flex-direction: column;
        padding: 20px;
    }

    .floors__intro,
    .floors__schedule,
    .floors__stack {
        width: 100%;
    }

    .floors__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .floors__stack-img {
        margin-bottom: 50px;
    }
}

/* 10. Location ----------------------------------------------------------- */

.highlights {
    display: flex;
    padding: 50px;
}

.highlights__item {
    width: 25%;
    padding: 10px;
}

.highlights__item img,
.gallery-row__link img {
    width: 100%;
    margin-bottom: 10px;
}

.highlights figcaption,
.gallery-row figcaption {
    padding-bottom: var(--p-gap);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.amenities {
    display: flex;
    padding: 50px;
}

.amenities__list {
    flex: 0 1 30%;
    min-width: 0;
    padding-top: var(--widget-gap);
}

.amenities__map {
    flex: 0 1 100%;
    min-width: 0;
    padding: 30px;
}

.amenities__map svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.amenities-map__group {
    cursor: pointer;
}

.amenities-map__group:focus-visible {
    outline: 2px solid var(--gold);
}

/* Amenity groups: white bar with a coloured pill and a chevron */
.accordion__heading {
    margin: 0;
}

.accordion__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 6px 0;
    padding: 18px 18px 18px 0;
    border: 0;
    border-bottom: 1px solid #908365;
    border-radius: 0;
    background: #fff;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.accordion__pill {
    margin-left: 5px;
    padding: 5px 20px;
    line-height: 19px;
    border-radius: 20px;
    background: var(--pill);
    color: #fff;
}

.accordion__icon {
    width: 23px;
    height: 29px;
    color: #908365;
    transition: transform 0.3s ease;
}

.accordion__button[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

.accordion__panel {
    padding: 10px 10px 10px 0;
    background: #fff;
    color: var(--table);
}

.places {
    width: calc(100% - 20px);
    margin: 32px 10px 10px;
    border-collapse: collapse;
    color: var(--table);
    font-size: 14.4px;
    line-height: 1.5;
}

.places td {
    padding: 3px;
    line-height: 22.25px;
    background: #fff;
    transition: background-color 0.3s;
}

.places td:last-child {
    text-align: right;
    white-space: nowrap;
}

.places tr:hover td {
    background: var(--row-hover);
}

.transport__inner {
    margin: 30px;
    padding: 50px;
    background: var(--tint);
}

.transport__line img {
    width: 100%;
}

.transport__line + .transport__line {
    margin-top: var(--widget-gap);
}

@media (max-width: 1200px) {
    .amenities {
        flex-wrap: wrap;
    }

    .amenities__list,
    .amenities__map {
        flex-basis: 100%;
    }
}

@media (max-width: 767px) {
    .highlights {
        flex-direction: column;
        padding: 10px;
    }

    .highlights__item {
        width: 100%;
    }

    .highlights figcaption,
    .gallery-row figcaption {
        font-size: 14px;
    }

    .amenities {
        padding: 20px;
    }

    .amenities__list {
        padding: 21px 1px 1px;
    }

    .amenities__map {
        padding: 10px 0 0;
    }

    .transport__inner {
        margin: 10px;
        padding: 10px;
    }
}

/* 11. Gallery ------------------------------------------------------------ */

.gallery-row {
    display: flex;
    padding: 20px 50px;
}

.gallery-row--a,
.gallery-row--d {
    padding: 50px 50px 0;
}

.gallery-row__col {
    flex: 0 0 var(--span);
    width: var(--span);
    min-width: 0;
    margin: 0;
    padding: 10px;
}

.gallery-row__link {
    display: block;
    cursor: zoom-in;
}

.gallery-row__heading {
    margin-bottom: -10px;
    color: var(--gold);
    font-family: var(--display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 1700px) {
    .gallery-row__link img {
        max-width: var(--max, 100%);
    }
}

@media (max-width: 1200px) {
    .gallery-row__heading {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .gallery-row,
    .gallery-row--a,
    .gallery-row--d {
        flex-direction: column;
        padding: 10px;
    }

    .gallery-row__col {
        flex-basis: auto;
        width: 100%;
    }

    .gallery-row__col--spacer {
        display: none;
    }

    .gallery-row__heading {
        font-size: 40px;
    }
}

/* 12. Footer ------------------------------------------------------------- */

.site-footer {
    background: var(--cream);
    color: #202020;
}

.site-footer__inner {
    display: flex;
    padding: 50px;
}

.site-footer__agents {
    display: flex;
    width: 33%;
    padding: 10px;
}

.agent {
    width: 50%;
    padding: 10px;
}

.agent__name {
    margin-bottom: calc(var(--p-gap) + var(--widget-gap));
    color: var(--gold);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: underline;
}

.agent__people p,
.site-footer__address {
    margin-bottom: var(--p-gap);
    font-size: 16px;
    line-height: 1.5;
}

.agent__people strong {
    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer__logo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 33.333%;
    padding: 10px;
}

.site-footer__logo a {
    display: block;
    padding: 52px;
}

.site-footer__logo img {
    width: 200px;
}

.site-footer__info {
    width: 33%;
    padding: 20px;
}

.site-footer__address {
    margin-bottom: calc(var(--p-gap) + var(--widget-gap));
}

.site-footer__bar {
    height: 10px;
    background: var(--navy);
}

@media (max-width: 1200px) {
    .site-footer__inner {
        flex-wrap: wrap;
    }

    .site-footer__agents {
        width: 100%;
    }

    .site-footer__logo,
    .site-footer__info {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .site-footer__inner {
        flex-direction: column;
        padding: 0;
    }

    .site-footer__agents {
        flex-direction: column;
    }

    .agent,
    .site-footer__logo,
    .site-footer__info {
        width: 100%;
    }
}

/* 13. Lightbox ----------------------------------------------------------- */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    padding: 10px;
    border: 0;
    background: transparent;
    color: rgba(238, 238, 238, 0.9);
    cursor: pointer;
}

.lightbox__close:hover {
    color: #fff;
}

.lightbox__close .icon {
    width: 28px;
    height: 28px;
}

/* 14. Reveal animations (the live entrance animations), plain pages ----- */

html.js [data-reveal] {
    opacity: 0;
}

html.js [data-reveal].is-visible {
    animation: ob-fade 1.25s both;
    animation-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal-speed="fast"].is-visible {
    animation-duration: 0.75s;
}

html.js [data-reveal-speed="slow"].is-visible {
    animation-duration: 2s;
}

html.js [data-reveal="fade-up"].is-visible { animation-name: ob-fade-up; }
html.js [data-reveal="fade-down"].is-visible { animation-name: ob-fade-down; }
html.js [data-reveal="fade-left"].is-visible { animation-name: ob-fade-left; }
html.js [data-reveal="fade-right"].is-visible { animation-name: ob-fade-right; }

@keyframes ob-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ob-fade-up {
    from { opacity: 0; transform: translate3d(0, 100%, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes ob-fade-down {
    from { opacity: 0; transform: translate3d(0, -100%, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes ob-fade-left {
    from { opacity: 0; transform: translate3d(-100%, 0, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes ob-fade-right {
    from { opacity: 0; transform: translate3d(100%, 0, 0); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js [data-reveal],
    html.js [data-reveal].is-visible {
        opacity: 1;
        animation: none;
    }
}

.page-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 20px;
}

.article__title {
    margin-bottom: 30px;
    color: var(--gold-text);
    font-family: var(--display);
    font-size: 40px;
    line-height: 1.1;
}

.article__content {
    color: var(--text);
}

.article__content p,
.article__content ul {
    margin-bottom: 1em;
}

.article--404 .button {
    margin-top: 30px;
}
