.nav-wrapper {
    justify-content: space-between;
}

.secondary-nav-ul {
    row-gap: 0;
}

.social-icon {
    background-color: #006BB7;
    border-color: #006BB7;
}

.social-icon:hover {
    color: white !important;
    border: 1.5px solid white;
}

.breadcrumbs {
    margin-top: 2rem;
}

.breadcrumbs a {
    color: var(--link-color);
}

.page-content h2 {
    font-size: 1.75rem;
}

.page-content h3 {
    font-size: 1.375rem;
}

.footer-top a:hover, .footer-top a:focus {
    color: var(--link-color);
}

.bg-grey {
    background-color: #f1f1f1;
}

.editor.bg-grey {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

blockquote {
    margin: 0;
}

header.sticky-active .site-logo-container {
    width: 5rem;
    height: 5rem;
}

.home .site-title h1 {
    margin-bottom: 0;
}

.site-logo-container {
    margin-right: 1rem;
    background-color: white;
    border-radius: 50%;
    padding: .5rem;
    width: 5rem;
    height: 5rem;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 4px 3px rgba(0, 0, 0, 0.10);
}

.site-logo {
    object-fit: contain;
}

.section-heading {
    margin-bottom: 1rem;
}

.banner-image {
    height: auto;
    padding: 2rem 0;
}

.banner-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.app-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-box {
    width: 100%;
    border-radius: 5px;
    background: #FFF8DA;
}

.app-title {
    padding: 1rem;
    border-radius: 5px;
    background: #FFD420;
}

.app-content {
    padding: 1rem;
    border-radius: 5px;
}

/* Colour palette for app boxes */
.bg-yellow .app-title {
    background: #FFD420;
}

.bg-yellow {
    background: #FFF8DA;
}

.bg-red .app-title {
    background: #D2202F;
    color: white;
}

.bg-red {
    background: #E6C6C97A;
}

footer {
    padding-top: 2rem;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: .5rem;
    justify-content: center;
}

.footer-bottom .district-logo {
    margin-bottom: 0;
}

.page-header {
    background-color: white;
    background-image: url('/images/learning.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    min-height: 11vw;
}

.page-header::after {
    position: absolute;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.60) 100%);
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-content h1 {
    color: var(--dark-font-color);
    font-size: 2rem;
    margin: 0 0 1rem;
}

.quicklinks-community {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.quicklink-community {
    border-radius: 5px;
    background: #006BB7;
    color: white;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: block;
    padding: 1.75rem 1.5rem;
}

.video-col {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    aspect-ratio: 960 / 600;
    position: relative;
    padding: 1.5rem 0;
}

.video-section .text-col {
    padding: 1.5rem 1rem;
    background-color: #EFEFEF;
    ;
}

.play-btn i {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    color: #D2202F;
    cursor: pointer;
    transition: all .3s ease-in-out;
    z-index: 1;
    text-align: center;
    font-size: 5rem;
}

.instagram-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.instagram-wrapper a {
    flex-basis: 100%;
    max-width: 100%;
    position: relative;
    display: block;
}

.instagram-wrapper i {
    color: white;
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    font-size: 1.5rem;
}

.instagram-wrapper img {
    border-radius: 5px;
    aspect-ratio: 1/1;
    width: 100%;
}

/* Community Page */
.header-images {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.header-img {
    flex-basis: 100%;
    max-width: 100%;
}

.header-img img {
    width: 100%;
    aspect-ratio: 600/200;
}

/* .header-img:nth-of-type(2) img {
    object-fit: contain;
} */

.poster-img img {
    width: 100%;
    border: 10px solid #E6C6C97A;
    border-radius: 5px;
}

.community-quote blockquote {
    margin: 0 0 0 2rem;
    background-color: #E3F1FB;
    border-left: none;
    border-radius: 5px;
}

.quote-icon {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--link-color);
    color: #E3F1FB;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote-icon span {
    font-size: 4rem;
    display: inline-block;
    line-height: 4rem;
    margin-top: 2rem;
}

.community-boxes {
    row-gap: 1.5rem;
}

.community-box-contact h4 {
    margin-top: 0;
}

.community-box .community-box-title {
    border-radius: 5px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.community-box-contact .community-box-title {
    background-color: #FFD420;
}

.community-box-location .community-box-title {
    background-color: #D2202F;
    color: white;
}

.community-box-resources .community-box-title {
    background-color: #006BB7;
    color: white;
}

.community-box-content {
    padding: 0 .5rem;
}

/* About Page */
.mvwrapper {
    background-color: #E6C6C97A;
    border-radius: 5px;
    padding: 1.5rem;
}

.mission-wrapper {
    margin-bottom: 1.5rem;
}

.mvwrapper .btn {
    margin: auto;
}

.mvwrapper hr {
    background-color: rgba(210, 32, 47, .48);
    height: 2px;
    border-radius: 5px;
}

.members-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 1.5rem;
}

.member {
    flex-basis: 100%;
    max-width: 100%;
}

.member img {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 5px;
}

.member h4 {
    margin: .5rem 0 .25rem;
}

.member p {
    font-weight: 500;
}

.about-cta {
    background-color: #FFF8DA;
    border-radius: 5px;
    padding: 2rem 1rem;
}

.about-cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
}

/* Gallery */
.gallery-item {
	margin-bottom: 2rem;
}
.gallery-item img {
    min-height: unset;
	aspect-ratio: 4/3;
	width: 100%;
}

.pswp__custom-caption {
    text-align: center;
    font-size: 16px;
    color: #fff;
    width: fit-content;
    max-width: 800px;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
}

@media (min-width:48em) {
    .instagram-wrapper a {
        flex-basis: calc(50% - .5rem);
        max-width: calc(50% - .5rem);
    }

    .footer-contacts {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        margin: auto;
        justify-content: center;
    }

    .quote-icon {
        left: -3rem;
        width: 4rem;
        height: 4rem;
    }

    .quote-icon span {
        font-size: 5rem;
        line-height: 5rem;
        margin-top: 2.5rem;
    }

    .header-img {
        flex-basis: calc(100% / 3);
        max-width: calc(100% / 3);
    }

    .header-img img {
        aspect-ratio: 600/250;
    }

    .member {
        flex-basis: calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 991px) {
    .home .site-title h1,
    .site-title h1 {
        font-size: 1.2rem;
        line-height: 1.5;
    }
}

@media (min-width: 62em) {
    .breadcrumbs {
        margin-top: 3rem;
    }
    .site-title-wrapper {
        max-width: 50%;
    }

    .video-modal .modal-info {
      width: 70%; 
      max-width: 1500px; 
    }

    .content-container,
    .container.pad-side {
        padding: 0 5%;
        width: auto;
    }

    .footer-contacts {
        width: 80%;
    }

    .banner-image {
        height: 30vw;
    }

    .banner-container {
        width: 100%;
        padding: 0 12%;
    }

    .app-boxes-container {
        padding: 0 3rem;
    }

    .app-box {
        width: calc(50% - .5rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .app-title {
        padding: 1.5rem 2rem;
    }

    .app-content {
        padding: 1.5rem 2rem;
    }

    .video-section {
        display: flex;
    }

    .video-col {
        flex-basis: 50%;
        max-width: 50%;
    }

    .video-section .text-col {
        flex: 0 0 auto;
        flex-grow: 1;
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        max-width: 100%;
        padding: 1.5rem 3%;
    }

    .instagram-wrapper a {
        flex-basis: calc((100% - 4rem)/5);
        max-width: calc((100% - 4rem)/5);
    }

    .sidebar {
        width: 40%;
    }

    .member {
        flex-basis: calc((100% - 3rem) / 4);
        max-width: calc((100% - 3rem) / 4);
    }
}

@media (min-width: 75em) {
    .site-logo-container {
        margin-right: 1rem;
        width: 8rem;
        height: 8rem;
    }

    .member {
        flex-basis: calc((100% - 5rem) / 6);
        max-width: calc((100% - 5rem) / 6);
    }
}