:root {
    --color-main: #00b389;
    --color-notification: #ffb44a;
    --color-error: #f44336;
    --color-error-light: #f443362b;
    --color-error-dark: #c90000;
    --color-blue: #0bc8d8;

    --font-rubrik: "rubrik-new", sans-serif;
    --font-freight: "freight-sans-pro", sans-serif;
    --font-osans: "Open Sans", sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-freight);
    color: #000000;
    line-height: 1.375;
    transition: 0.2s;
}

img {
    max-width: 100%;
    height: auto;
}

section,
nav,
footer {
    display: flex;
    justify-content: center;
}
.wrapper {
    max-width: 1250px;
    width: 100%;
    padding: 0 20px;
}
section.full .wrapper {
    max-width: 100%;
    padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-rubrik);
    color: var(--color-main);
}
h1 {
    font-size: 50px;
}

.at-notification {
    display: inline-block;
    border: 5px solid var(--color-notification);
    border-radius: 15px;
    padding: 0 15px;
}
.at-notification.success {
    border-color: var(--color-main);
}
.at-notification.error {
    border-color: var(--color-error);
}

.main-nav .wrapper {
    display: flex;
    justify-content: space-between;
    height: 133px;
    align-items: center;
}
.main-nav .logo img {
    height: 76px;
    width: auto;
}
.main-nav .nav-toggler {
    display: none;
}
.main-nav ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.main-nav ul li {
    position: relative;
    margin-left: 26px;
    margin-bottom: 18px;
}
.main-nav ul li a {
    font-family: var(--font-rubrik);
    text-decoration: none;
}
.main-nav .menus .top a {
    font-size: 16px;
    color: #2c2c2c;
}
.main-nav .menus .bottom a {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-main);
}
.main-nav .top ul li:not(:last-of-type)::after {
    content: "";
    height: 18px;
    width: 1px;
    background: #2c2c2c;
    position: absolute;
    top: 1px;
    right: -14px;
}

.main-nav ul li::before {
    content: "";
    height: 2px;
    width: 0%;
    position: absolute;
    background: var(--color-main);
    transition: 0.2s;
    bottom: 0;
    left: 0;
}
.main-nav ul li:hover::before {
    width: 100%;
}

/* Submenus */
.main-nav {
    position: relative;
    z-index: 1;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    left: -1em;
    padding: 0.5em;
    min-width: 15em;
    border-radius: 0 0 1em 1em;
    background: white;
}

.main-nav .menu-item-has-children > a::after {
    content: "+";
    margin-left: 0.25em;
}

.main-nav .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.main-nav .sub-menu li {
    margin: 0;
}

.main-nav .sub-menu a {
    display: inline-block;
    padding: 0.5em;
    border-radius: 0.5em;
    transition: all 0.3s;
}

.main-nav .sub-menu li::before {
    display: none;
}

.main-nav .menus .sub-menu a:hover {
    color: hsl(166, 100%, 25%);
    background: hsl(166, 100%, 85%);
}

/* Submenus end */

.account-menu {
    background: #028095;
    min-height: 83px;
}
.account-menu ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100%;
    flex-wrap: wrap;
}
.account-menu ul li {
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.account-menu li a {
    color: white;
    text-decoration: none;
    padding: 0 30px;
    font-family: var(--font-rubrik);
    font-size: 23px;
}
.account-menu li.current-menu-item {
    background: #015f6f;
}
.account-menu li:not(.current-menu-item):hover {
    background: #127283;
}

/* School Galleries
------------------------------------------------------------------------------------------------- */

.upload-cta-container {
    margin-bottom: 2rem;
}

a.button,
.upload-cta-container a,
.page-id-5182 a[href="/upload-gallery/"],
.page-id-3975 a[href="/upload-gallery/"] {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-rubrik);
    border: 0;
    cursor: pointer;
    transition: 0.2s;
    background: var(--color-main);
    color: white;
    text-decoration: none;
}

@media (min-width: 420px) {
    .post-type-archive-school-gallery .page-header:not(.pending) {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .page-title {
        margin-right: 1rem;
    }

    .upload-cta-container {
        margin-bottom: 0;
    }
}

/* Listing layout */
.post-type-archive-school-gallery .posts-listing,
.my-galleries {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin-top: 1em;
}

.content .my-galleries h2 {
    font-size: 1.5rem;
}

.my-galleries .delete-gallery {
    float: right;
    position: relative;
    z-index: 1;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2;
    font-size: 1.5rem;
    font-family: var(--font-rubrik);
    border-radius: 10em;
    text-align: center;
    color: white;
    background-color: rgb(184, 20, 20);
    box-shadow: 0 0 0 rgba(65, 31, 31, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.my-galleries .delete-gallery:hover {
    background-color: rgb(255, 0, 0);
    box-shadow: 0 0.1em 0.35em rgba(22, 3, 3, 0.5);
}

.my-galleries .pending > a {
    position: relative;
    display: block;
}

.my-galleries .pending > a::after {
    content: "Pending Review";
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.3em;
    color: white;
    background: rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 420px) {
    .post-type-archive-school-gallery .posts-listing article,
    .my-galleries .gallery {
        width: 48%;
    }
}

@media screen and (min-width: 820px) {
    .post-type-archive-school-gallery .posts-listing article,
    .my-galleries .gallery {
        width: 30.66%;
    }
}

/* Single gallery */

.single-school-gallery hr {
    margin-bottom: 2rem;
}

.single-school-gallery header img {
    width: 100%;
}

.single-school-gallery .videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2%;
}

.single-school-gallery .embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.single-school-gallery iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

.single-school-gallery .video {
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .single-school-gallery .video {
        width: 49%;
        margin-bottom: 2%;
    }
}

@media (min-width: 960px) {
    .single-school-gallery .video {
        width: 31.666%;
    }

    .single-school-gallery .trailing_1 .video:last-child,
    .single-school-gallery .trailing_2 .video:last-child,
    .single-school-gallery .trailing_2 .video:nth-last-child(2) {
        width: 49%;
    }
}

/* ---------------------------------------------------------------------------------------------- */

@media screen and (max-width: 1100px) {
    .main-nav .nav-toggler {
        position: relative;
        display: block;
        height: 50px;
        width: 50px;
        border: 0;
        background: transparent;
        z-index: 10000;
    }
    .main-nav .nav-toggler::before,
    .main-nav .nav-toggler::after {
        content: "";
        position: absolute;
        width: 50px;
        height: 6px;
        border-radius: 100px;
        background: #222;
        top: 13px;
        left: 0;
        transition: 0.2s;
    }
    .main-nav .nav-toggler::after {
        top: 32px;
    }
    .main-nav .nav-toggler.active::before {
        transform: rotate(45deg);
        top: 23px;
    }
    .main-nav .nav-toggler.active::after {
        transform: rotate(-45deg);
        top: 23px;
    }
    .main-nav .menus {
        position: fixed;
        top: 0;
        right: 0;
        background: white;
        height: 100vh;
        z-index: 9999;
        width: 300px;
        transform: translateX(300px);
        transition: 0.2s;
        box-shadow: 0 0 0 rgb(0 0 0 / 20%);
    }
    .main-nav .nav-toggler.active ~ .menus {
        transform: translateX(0);
        box-shadow: 0 0 135px rgb(0 0 0 / 20%);
    }
    .main-nav .menus .top {
        margin-top: 58px;
        display: flex;
    }
    .main-nav .bottom ul {
        flex-direction: column;
        margin-top: 40px;
    }
    .main-nav .nav-toggler.active {
        position: fixed;
        right: 20px;
    }
}

@media screen and (max-width: 900px) {
    footer {
        height: auto;
        padding-top: 50px;
    }
    footer .wrapper {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media screen and (max-width: 700px) {
    .main-nav .logo img {
        height: 60px;
    }
}

@media screen and (max-width: 500px) {
    .main-nav .logo img {
        height: 40px;
    }
}

.page-template-default .page-title {
    margin-top: 0;
}

.embed-container iframe {
    border: none;
}

/* OMB Gallery
Live & dev site page ID = 4469; staging: 4019
------------------------------------------------------------------------------------------------- */

.page-id-4469 {
    background: url(/wp-content/themes/daretobelieve/assets/img/header-curves-right.png)
        no-repeat right top/40%;
    transition: none;
}

.page-id-4469 iframe {
    max-width: 100%;
}

.page-id-4469 .content {
    margin-top: 0;
    background: url(/wp-content/themes/daretobelieve/assets/img/header-curves-left.png)
        no-repeat left top/30%;
    transition: none;
}

.page-id-4469 .page-title {
    text-shadow: 1px 1px 0 white, -1px -1px 0 white;
}

.page-id-4469 .modal-close {
    margin: 1em;
    width: 2em;
    height: 2em;
    border-radius: 2em;
    font-size: 1.5rem;
    font-family: var(--font-rubrik);
    font-weight: 700;
    color: darkred;
}

.page-id-4469 .embed-container {
    background: rgba(0, 0, 0, 0.9);
}

.page-id-4469 #gform_wrapper_3 {
    position: relative;
    padding: 0 2rem 6rem;
    background: url(/wp-content/themes/daretobelieve/assets/img/omb-form-background.jpg)
        no-repeat center/contain;

    @media screen and (min-width: 420px) {
        padding: 0 2rem 18rem;
    }

    @media screen and (min-width: 580px) {
        padding: 0 4rem 30rem;
    }

    @media screen and (min-width: 768px) {
        padding: 0 9rem 40rem;
    }

    @media screen and (min-width: 62rem) {
        padding: 0 18rem 75rem;
    }
}

.page-id-4469 #gform_wrapper_3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

.page-id-4469 #gform_3 {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 1em #ccc;
}

.page-id-4469 .page-title {
    margin-bottom: 0;
    color: black;
}

.page-id-4469 h2 {
    margin-bottom: 1em;
    font-size: 1.8rem;
    color: var(--color-main);
}

.page-id-4469 #gallery-2 {
    --omb-pink: #e0526b;
    --omb-green: #00ad9e;
    --omb-yellow: #f2c76b;
    --omb-blue: #00add9;
}

.page-id-4469 #gallery-2 img {
    border: none;
}

.page-id-4469 #gallery-2 .gallery-item {
    position: relative;
    padding: 0 1em;
    width: 100%;
}

/* Week Numbers */
.page-id-4469 #gallery-2 .gallery-item::before {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    font-family: var(--font-rubrik);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.page-id-4469 #gallery-2 .gallery-item:first-child,
.page-id-4469 #gallery-2 .gallery-item:nth-child(2),
.page-id-4469 #gallery-2 .gallery-item:nth-child(3),
.page-id-4469 #gallery-2 .gallery-item:nth-child(4) {
    padding-top: 4rem;
}

.page-id-4469 #gallery-2 .gallery-item:first-child::before {
    content: "Week 1";
    color: var(--omb-blue);
}

.page-id-4469 #gallery-2 .gallery-item:nth-child(2)::before {
    content: "Week 2";
    color: var(--omb-yellow);
}

.page-id-4469 #gallery-2 .gallery-item:nth-child(3)::before {
    content: "Week 3";
    color: var(--omb-green);
}

.page-id-4469 #gallery-2 .gallery-item:nth-child(4)::before {
    content: "Week 4";
    color: var(--omb-pink);
}

/**/
@media screen and (max-width: 767px) {
    .page-id-4469 #gallery-2 .gallery-item {
        padding-top: 4rem;
    }

    .page-id-4469 #gallery-2 :nth-child(4n + 1 of .gallery-item)::before {
        content: "Week 1";
        color: var(--omb-blue);
    }

    .page-id-4469 #gallery-2 :nth-child(4n + 2 of .gallery-item)::before {
        content: "Week 2";
        color: var(--omb-yellow);
    }

    .page-id-4469 #gallery-2 :nth-child(4n + 3 of .gallery-item)::before {
        content: "Week 3";
        color: var(--omb-green);
    }

    .page-id-4469 #gallery-2 :nth-child(4n of .gallery-item)::before {
        content: "Week 4";
        color: var(--omb-pink);
    }
}

@media screen and (min-width: 500px) {
    .page-id-4469 #gallery-2 .gallery-item {
        width: 50%;
    }
}

@media screen and (min-width: 768px) {
    .page-id-4469 .page-title {
        margin-top: 2em;
    }

    .page-id-4469 #gallery-2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0;
        margin: 4rem 0;
    }

    .page-id-4469 #gallery-2 br {
        display: none;
    }

    .page-id-4469 #gallery-2 .gallery-item {
        width: 100%;
        margin: 0;
        padding: 0 1em 2em;
    }

    .page-id-4469 #gallery-2 .wp-caption-text {
        font-size: 1.2rem;
        font-weight: 700;
    }

    /* Rounded corners */
    .page-id-4469 #gallery-2 .gallery-item:first-child {
        border-radius: 2em 0 0 0;
    }

    .page-id-4469 #gallery-2 .gallery-item:nth-child(4) {
        border-radius: 0 2em 0 0;
    }

    .page-id-4469 #gallery-2 .gallery-item:nth-last-of-type(4) {
        border-radius: 0 0 0 2em;
    }

    .page-id-4469 #gallery-2 .gallery-item:last-of-type {
        border-radius: 0 0 2em 0;
    } /*end*/

    .page-id-4469 #gallery-2 :nth-child(4n + 1 of .gallery-item) {
        background-color: #e6f7fb;
    }

    .page-id-4469 #gallery-2 :nth-child(4n + 2 of .gallery-item) {
        background-color: #fef9f0;
    }

    .page-id-4469 #gallery-2 :nth-child(4n + 3 of .gallery-item) {
        background-color: #e6f7f5;
    }

    .page-id-4469 #gallery-2 :nth-child(4n of .gallery-item) {
        background-color: #fceef0;
    }

    /* Week Numbers */
    .page-id-4469 #gallery-2 .gallery-item::before {
        top: 1em;
    }

    .page-id-4469 #gallery-2 .gallery-item:first-child,
    .page-id-4469 #gallery-2 .gallery-item:nth-child(2),
    .page-id-4469 #gallery-2 .gallery-item:nth-child(3),
    .page-id-4469 #gallery-2 .gallery-item:nth-child(4) {
        padding-top: 6rem;
    }

    /* Weekdays */
    .page-id-4469 #gallery-2 .gallery-icon {
        position: relative;
    }

    .page-id-4469
        #gallery-2
        :nth-child(4n + 1 of .gallery-item)
        .gallery-icon::before {
        position: absolute;
        left: -3em;
        bottom: -1em;
        width: 80%;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        transform: rotateZ(-90deg);
        transform-origin: 0 0;
        color: var(--omb-blue);
    }

    .page-id-4469 #gallery-2 .gallery-item:first-child .gallery-icon::before {
        content: "Monday";
    }

    .page-id-4469
        #gallery-2
        .gallery-item:nth-of-type(5)
        .gallery-icon::before {
        content: "Tuesday";
    }

    .page-id-4469
        #gallery-2
        .gallery-item:nth-of-type(9)
        .gallery-icon::before {
        content: "Wednesday";
    }

    .page-id-4469
        #gallery-2
        .gallery-item:nth-of-type(13)
        .gallery-icon::before {
        content: "Thursday";
    }

    .page-id-4469
        #gallery-2
        .gallery-item:nth-of-type(17)
        .gallery-icon::before {
        content: "Friday";
    } /*end*/
}

/*end OMB gallery */
