section.banner {
    img {
        aspect-ratio: 21/10;
        object-fit: cover;
        object-position: top center;
    }

    div.featured-events {
        div.slides {
            article {
                display: flex;
                flex-direction: column;
                padding-top: calc(var(--brandSize) - calc(var(--headerHeight) / 2));
                justify-content: center;
                align-items: center;
                min-height: 400px;
                text-align: center;
                position: relative;
                background-color: rgba(0, 0, 0, 0.5);
                color: white;
                padding-bottom: 22px;
                text-shadow: white 0px 0px 6px;
                
                &:not(.active) {
                    display: none;
                }

                h2 {
                    font-size: 2.5rem;
                }

                p.datetime {
                    font-weight: bold;
                    margin-bottom: 11px;
                    font-size: 1.2rem;
                }

                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-image: var(--image, url("../../media/images/featured-event-no-image-qRFi1_R.jpg"));
                    background-size: cover;
                    background-position: center center;
                    filter: blur(3px);
                    z-index: -1;
                }

                div.button-row {
                    display: flex;
                    gap: 22px;
                    justify-content: center;
                    border-radius: 4px;
                    margin-top: 22px;
                }
            }
        }
        
        div.paginator {
            display: flex;
            gap: 22px;
            justify-content: center;
            margin-top: 22px;

            button {
                width: 22px;
                height: 22px;
                padding: 0;
                --colour: var(--colourSecondary);

                &.active {
                    --colour: var(--colourPrimary);
                }
            }
        }
    }
}

section.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;

    h1 {
        font-family: 'Indie Flower';
        font-size: 3rem;
        text-align: center;
        gap: 22px;
    }

    @media (max-width: 800px) {
        flex-direction: column;

        h1 {
            font-size: 2rem;
        }
    }
}

section.usps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;

    article {
        max-width: 333px;
        width: 100%;
        display: flex;
        flex-direction: column;
        filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));

        img {
            aspect-ratio: 1/1;
            object-fit: cover;
        }
        h2 {
            text-align: center;
            font-size: 1.2rem;
            margin-bottom: 11px;
        }

        div.content {
            background-color: white;
            padding: 22px;
        }
    }
}

section.quote {
    background-image: url("../../media/images/quote-background-POE52Eg.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    p {
        max-width: 1000px;
        margin: 0 auto;
    }

    p.text {
        margin-top: -12px;
        &::before {
            content: '“';
            font-size: 4rem;
            position: absolute;
            top: -42px;
            left: -12px;
        }
        
        position: relative;
        text-align: center;
        font-family: 'Playpen Sans';
        font-size: 2rem;
    }

    p.author {
        text-align: right;
        width: 100%;
        padding-right: 42px;
    }

    @media (max-width: 800px) {
        padding-top: 44px;
        background-size: 1200px auto;
    }
}

section.tickets {
    div.venue-selection {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 22px;

        &[data-venue-count="1"] {
            display: none;
        }

        > div.venue {
            --borderWidth: 3px;

            max-width: 500px;
            width: 100%;
            background-color: lime;
            padding: 18px;
            user-select: none;
            cursor: pointer;
            position: relative;
            border: solid transparent var(--borderWidth);
            box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);

            h3 {
                font-size: 1.4rem;
            }

            &[data-venue="play-cafe"] {
                background-color: var(--colourPrimary);
            }

            &[data-venue="sensory"] {
                background-color: var(--colourSecondary);
            }

            &.active {
                background-color: var(--colourSuccess);
                border-color: white;
                padding-bottom: 28px;

                &::after {
                    content: '';
                    position: absolute;
                    left: calc(0px - var(--borderWidth));
                    width: calc(100% + var(--borderWidth) * 2);
                    bottom: 0;
                    background-color: var(--colourSuccess);
                    z-index: 50;
                    height: 10px;
                    border-left: solid white var(--borderWidth);
                    border-right: solid white var(--borderWidth);
                }
            }
        }
    }

    div.tickets {
        display: flex;
        filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
        
        &:not(.active) {
            display: none;
        }

        @media (max-width: 800px) {
            --decoratorPosition: top;
            flex-direction: column;

            div.decorated {
                max-width: unset !important;

                img {
                    width: 100% !important;
                    max-height: unset !important;
                    aspect-ratio: 16/9 !important;
                    object-position: top;
                }
            }   
        }

        div.content {
            background-color: white;
            padding: 22px;

            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        div.decorated {
            display: flex;
            flex-shrink: 0;

            img {
                aspect-ratio: 1/1;
                max-height: 400px;
                width: auto;
                object-fit: cover;
            }
        }
    }

    div.choose {
        text-align: center;
        font-family: 'Playpen Sans';
        margin-bottom: 22px;
    }

    [data-thin] {
        display: none;
    }

    @media (max-width: 600px) {
        [data-thin] {
            display: block;
        }

        div.venue-selection {
            margin-bottom: 22px;

            div.venue {
                &::after {
                    display: none !important;
                }

                &.active {
                    padding-bottom: 18px !important;
                }
            }
        }

        div.tickets {
            button {
                text-align: left;
            }
        }
    }
}

section.whats-at-the-square {
    max-width: 1000px;

    h2 {
        text-align: center;
        font-size: 3rem;
    }

    > p {
        text-align: center;
    }

    article {
        display: flex;
        align-items: stretch;
        margin-top: 44px;
        filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));

        @media (max-width: 800px) {
            --decoratorPosition: bottom;
            flex-direction: column;

            div.decorated {
                max-width: unset !important;
            }
        }

        &:has(.decorated.left) {
            flex-direction: row-reverse;
        }

        div.content {
            flex-grow: 1;
            background-color: white;
            padding: 22px;

            h3 {
                font-size: 2rem;
            }

            p.subtitle {
                font-size: 1.4rem;
                margin-bottom: 11px;
            }
        }

        div.decorated {
            display: flex;
            align-items: stretch;
            max-width: 500px;
            width: 100%;

            img {
                aspect-ratio: 4/3;
                object-fit: cover;
                object-position: center center;
            }
        }
    }

    div.baby {
        margin-top: 22px;
        display: flex;
        flex-direction: column;

        h3 {
            font-size: 2.5rem;
            text-align: center;
        }

        article {
            margin-top: 22px;
        }
    }
}

section.private-hire {
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));

    div.title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;

        h2 {
            font-size: 3rem;
        }

        @media (max-width: 800px) {
            flex-direction: column;
            margin-bottom: 22px;
    
            h2 {
                font-size: 1.8rem;
            }

            a.button {
                margin-top: 22px;
            }
        }
    }

    article {
        margin-top: 22px;
        display: flex;
        flex-direction: row;

        div.decorated {
            img {
                height: 100%;
                object-fit: cover;
                object-position: center center;
                aspect-ratio: 1/1;
            }
        }

        div.content {
            background-color: white;
            padding: 22px;

            p:not(:first-of-type) {
                margin-top: 22px;
            }
        }

        @media (max-width: 800px) {
            flex-direction: column-reverse;
            --decoratorPosition: top;
        }
    }
}