html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}
body {
    margin: 0;
    background: url('../images/gallery/office_picture_2.jpg') no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    font-family: "Exo", sans-serif;
    font-weight: 300;
    box-sizing: border-box;
}

/* Header block */
header {
    text-align: center;
    padding: 20px;
}
header img {
    max-width: 100%;
}

/* Navigation menu */
nav a, nav a:hover {
    text-decoration: none;
}
body > nav {
    background-color: rgb(158,31,99);
    margin: 0;
    padding: 0;
}
nav h1 {
    text-align: center;
    padding: 20px;
    margin: 0;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
nav p {
    padding: 0 10px;
}
nav div {
    column-count: 3;
    padding: 0 10px;
}
nav div ul {
    display: block;
    padding: 0 30px;
    list-style-type: none;
}
nav ul li {
    flex-basis: auto;
    flex: 1 1 150px;
    text-align: center;
    /*font-size: 12pt;*/
}
nav div ul li {
    text-align: center;
    padding: 0;
    font-weight: 300;
}
nav ul a {
    display: block;
    white-space: nowrap;
    background-color: rosybrown;
    color: whitesmoke;
    padding: 7px;
    text-decoration: none;
    border-radius: 7px;
}
nav ul a:hover {
    color: white;
    background-color: rgb(114,42,130);
    text-decoration: none;
}
.current_page {
    color: white;
    background-color: rgb(62,95,170);
}
article nav > ul > li > a {
    font-size: 10pt;
    border-radius: 5px;
}

/* Body formatting */
article {
    padding: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}
img {
    max-width:100%;
    max-height:100%;
}

/* Section formatting */
section, article > nav {
    padding: 20px;
    background-color: rgba(255,255,255,0.5);
}
section:nth-child(odd) {
    background-color: rgba(255,255,255,0.7);
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
}
.gallery img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.small_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding-bottom: 40px;
}
.small_gallery img {
    height: 150px;
}
.img_text {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
}
.img_text img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
iframe.map {
    width: 100%;
    height: 250px;
}
.img_text img.image_subject_left {
    object-position: 70% center;
}
.img_text div {
    grid-column: span 2;
}

/* Footer formatting */
footer {
    color: white;
    background-color: rgba(56,56,59,0.8);
    text-align: center;
    margin: 0;
    padding: 20px;
}
footer a {
    color: white;
}
footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
footer li {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
div.centred {
    margin-left: 10%;
    margin-right: 10%;
}

/* Text styles */
h1, h2, h3, h4, h5, h6, li {
    font-weight: 600;
}
h1 {
    font-size: xx-large;
    text-align: center;
}
h2 {
    font-size: large;
}
blockquote {
    font-style: italic;
    padding: 10px 30px;
}
ul {
    display: inline-block;
    text-align: left;
}
section li {
    padding-bottom: 5px;
}
section li i {
    font-weight: 300;
    font-style: normal;
}
.callout_box {
    padding: 1px 20px 10px;
    margin: 0 10px;
    backdrop-filter: brightness(80%);
}
.callout_box h1 {
    margin-top: 12px;
}


/* Back button styles */
p.back_button {
    text-align: center;
    font-size: small;
    font-weight: bold;
}
p.back_button > a {
    white-space: nowrap;
    background-color: rosybrown;
    color: whitesmoke;
    padding: 2px 5px 2px 5px;
    text-decoration: none;
    border-radius: 7px;
}
p.back_button > a:hover {
    color: white;
    background-color: rgb(114,42,130);
    text-decoration: none;
}

/* Form styles */
textarea, input {
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
    padding: 5px;
}

/* Small Screen Rules */
@media screen and (max-width:900px) {
    footer ul {
        flex-direction: column;
        padding: 0;
    }
    footer ul li {
        flex: initial;
        width: 100%;
    }
    nav div {
        column-count: 1;
    }
    nav div ul li {
        padding: 5px;
    }
}

/* Mobile Screen Rules */
@media screen and (max-width: 600px) {
    /* Make wide items full width */
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        flex: initial;
        width: 100%;
    }
    hr{
        width: 100%;
    }

    footer ul {
        flex-direction: column;
        padding: 0;
    }

    footer ul li {
        flex: initial;
        width: 100%;
    }

    blockquote{
        padding: 10px;
    }
    
    .img_text {
        display: block;
    }

    .img_text img, .img_text p.map {
        object-fit: cover;
        object-position: top;
        width: 100%;
        height: 200px;
    }

    .small_gallery {
        display: grid;
        grid-template-columns: 100%;
    }
    nav div {
        column-count: 1;
        padding-left: 0;
    }
    nav div ul li {
        padding-bottom: 10px;
    }
}