.page {
    $this: &;

    display: flex;
    min-height: 100vh;
    overflow-x: hidden;

    &__inner {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    &__main-wrapper {
        position: relative;
        z-index: 1;
        flex-grow: 1;
    }

    &__main {
        padding-top: 0;
    }

    &__layout-content {
        @extend %container;
        @extend .container--xl;

        display: flex;
        flex-wrap: wrap;
        gap: 60px;

        .container {
            padding: 0;
        }
    }

    &__layout-top,
    &__layout-bottom,
    &__sidebar,
    &__content {
        @include layout-stack;
    }

    &__layout-content {
        margin-top: 80px;
        margin-bottom: 100px;
    }

    &__heading + &__layout-content {
        margin-top: 0;
    }

    &__content {
        z-index: 1;
        flex-grow: 1;
        width: 100%;

        @include breakpoint(xl) {
            width: 1%;
        }
    }

    &__sidebar {
        width: 100%;

        @include breakpoint(xl) {
            width: 445px;
        }

        &.is-medium {
            width: 100%;

            @include breakpoint(xl) {
                width: 200px;
            }
        }
    }

    &__layout-bottom {
        margin-top: 80px;
        margin-bottom: 160px;

        &:has(.excursions) {
            margin-bottom: 0;
        }
    }

    &__footer {
        margin-top: auto;
    }

    &--landing {
        #{$this} {
            &__main {
                padding-bottom: 0;
                padding-top: 0;
            }
        }
    }
}
