

div.section.services > div.wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: space-around;
    padding-top: 44px;
    padding-bottom: 44px;

    a.service {
        max-width: 300px;
        background-color: var(--colour-primary-compliment);
        padding: 22px;
        box-shadow: var(--default-shadow);
        text-decoration: none;
        color: black;

        h3.title {
            text-align: center;
            font-size: 1.8rem;
        }

        hr {
            margin: 22px auto;
            margin-bottom: 28px;
            width: 150px;
        }

        img {
            aspect-ratio: 1 / 1;
            object-fit: cover;
            width: 100%;
        }
    }
}

div.section.reviews {
    margin-top: 66px;
    margin-bottom: 66px;

    div.wrapper {
        background-size: cover;
        margin-top: 22px;
        margin-bottom: 22px;
        padding-top: 100px;
        padding-bottom: 100px;
        padding-left: 22px;
        padding-right: 22px;

        article.review {
            max-width: 500px;
            width: 100%;
            margin: 0 auto;
            font-family: 'Domine';
            display: none;

            &.active {
                display: block;
            }

            div.main {
                background-color: rgba(255, 255, 255, 0.7);
                padding: 66px;
                position: relative;

                &::before {
                    content: '“';
                    font-size: 7rem;
                    position: absolute;
                    top: -11px;
                    left: 22px;
                }

                p {
                    text-align: center;
                    font-size: 1.4rem;
                }

                img {
                    aspect-ratio: 1/1;
                    width: 150px;
                    display: block;
                    margin: 0 auto;
                    object-fit: cover;
                }
            }

            div.author {
                background-color: var(--colour-secondary);
                width: 80%;
                text-align: center;
                margin: 22px auto;
                padding: 22px;
                color: white;
                font-size: 1.2rem;   
            }
        }

        div.paginator {
            display: flex;
            justify-content: center;
            gap: 22px;
            margin-bottom: 44px;
            flex-wrap: wrap;

            > div {
                background-color: var(--colour-primary);
                height: 20px;
                width: 20px;
                border-radius: 50%;
                box-shadow: var(--default-shadow);
                cursor: pointer;

                &.active {
                    background-color: var(--colour-secondary);
                    border: solid 2px var(--colour-primary);
                }
            }
        }
    }
}

div.section.instagram > div.wrapper > div.header {
    margin-top: 22px;
    display: flex;
    gap: 22px;
    justify-content: space-between;
    align-items: center;

    p {
        margin-top: 0;
    }

    a {
        display: flex;
        align-items: center;
        gap: 11px;
        text-decoration: none;
        font-weight: bold;
        color: black;

        svg {
            height: 30px;
            width: 30px;
        }
    }

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

div.gallery {
    --gap: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: center;
    margin-top: 66px;
    margin-bottom: 66px;

    a {
        max-width: 180px;
        width: 100%;
        aspect-ratio: 1/1;
        background-color: silver;
        box-shadow: var(--default-shadow);
        cursor: pointer;

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

    @media (max-width: 768px) {
        > a {
            max-width: calc((100vw / 2) - var(--gap));
        }
    }

    > div.browser {
        &:not(.active) {
            display: none;
        }

        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        gap: 44px;
        justify-content: center;
        align-items: center;
        user-select: none;
        
        div.backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }

        img {
            max-height: 80vh;
            max-width: 80vw;
        }

        svg {
            fill: white;
            width: 40px;
            cursor: pointer;
        }

        .mobile {
            display: none;

            gap: 44px;
            justify-content: center;
        }

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

            .mobile {
                display: flex;
            }

            .desktop {
                display: none;
            }
        }
    }
}

form {
    > :not(:first-child) { 
        margin-top: 22px;
    }

    div.input-row {
        display: flex;
        flex-wrap: wrap;
        gap: 11px;

        > div {
            flex: 1;
            margin-top: 0 !important;
            min-width: 250px;
        }
    }

    div.input {
        label {
            font-weight: bold;
            display: block;
        }

        input,select,textarea {
            width: 100%;
            border: solid 1px silver;
            min-height: 33px;
            resize: vertical;
        }
    }

    button {
        border: none;
        padding: 6px 8px;
        cursor: pointer;
        margin-top: 22px;
        margin-left: auto;
        margin-right: 0;
    }
}

div.section.support-case {
    p.closed {
        text-align: center;
        width: 100%;
    }

    section.posts {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        gap: 22px;

        article.post {
            background-color: white;
            padding: 22px;
            width: 90%;
            display: flex;
            gap: 22px;

            &.megan {
                margin-left: auto;
                flex-direction: row-reverse;
            }

            &.new {
                form {
                    width: 100%;

                    textarea {
                        width: 100%;
                        min-height: 80px;
                        border: solid var(--colour-primary) 1px;
                        padding: 9px;
                    }

                    button {
                        margin-top: 8px;
                    }
                }
            }

            div.author {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 50px;
                gap: 11px;

                label {
                    font-weight: bold;
                    color: var(--colour-primary);
                }

                svg {
                    width: 30px;
                    fill: var(--colour-primary);
                }
            }

            div.content {
                width: 100%;

                p.datetime {
                    text-emphasis: italic;
                    font-size: 0.8rem;
                    color: var(--colour-secondary);
                }
            }
        }
    }
}

*:has(div.loader) {
    position: relative;
            
    > div.loader {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;

        background-color: rgba(255,255,255,0.7);
        z-index: 1;

        display: none;
        align-items: center;
        justify-content: center;

        svg {
            fill: var(--colour-primary);
            width: 40px;
            height: auto;
        }
    }

    &.loading {
        > div.loader {
            display: flex;
        }
    }
}