*, html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth !important;
}

.headerLogo {
    display: flex;
    align-items: center;
}

.academyLabel {
    font-size: 11px;
    color: white;
    background: #E67D04;
    padding: 2px 3px 2px 4px;
    border-radius: 2px;
    text-transform: uppercase;
    font-family: var(--font-stack-heading);
    letter-spacing: .1em;
}

.videosWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-column-gap: 36px;
    grid-row-gap: 36px;
    margin-bottom: 64px;
    justify-items: center;
    padding: 0 48px;
}

.twoVids .videoThumb:nth-of-type(1) {
    grid-column: 2 / 4;
}

.oneVid .videoThumb:nth-of-type(1)  {
    grid-column: 3 / 5;
}

.videoThumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    grid-column: span 2;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    max-width: 800px;
    align-self: center;
    position: relative;
}

.videoThumb:nth-of-type(5) {
   /* grid-column: 2/4; */
}

.singleVid .videoThumb {
    justify-self: center;
}

.playIcon {
    display: block;
    width: 64px;
    height: 64px;
    background: url('icon-play.svg') no-repeat;
    background-size: 64px;
    opacity: .7;
    transition: opacity .3s;
}

.videoThumb:hover > .playIcon {
    opacity: 1;
}

.videoDuration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,.5);
    padding: 2px 4px;
    border-radius: 2px;
    color: white;
    font-size: 11px;
    font-family:  var(--font-stack-heading);
}

.dialogCloser {
    color: #333;
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.1em;
    cursor: pointer;
}

.dialogCloser:hover {
    color: black;
}

.contentWrapper {
    width: 1200px;
}

.midHero {
    margin-bottom: 0;
    padding: 100px 0;
}

.academyHero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 48px;
    align-items: center;
    position: relative;
    padding: 0;
}

.academyHero .videoThumb {
    grid-column: span 1;
}

.academyHeroText h1 {
    font-size: 48px;
    margin-bottom: 24px;
    text-align: left;
}

.academyHeroText p.withArrow {
    font-size: 18px;
    position: relative;
    margin-bottom: 36px;
}

.academyHeroText p.withArrow:before {
    content: '';
    display: block;
    width: 100px;
    height: 35px;
    background: url('arrow.svg') no-repeat;
    position: absolute;
    left: -100px;
    top: -10px;
    background-size: 100px;
    padding-left: 24px;
}

.introText {
    display: block;
    font-size: 16px;
    line-height: 1.4em;
}

.navigationContentWrap {
    display: grid;
    width: 100%;
    grid-template-columns: 350px 1fr;
    scroll-behavior: smooth;
}

.sidebarNavigation {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
}

.sidebarNavigation a {
    color: var(--text-color);
    padding: 20px;
    width: 100%;
    display: flex;
    cursor: pointer;
}

.sidebarNavigation a:hover {
    color: var(--link-hover-color);
    border-bottom: none;
}

.sidebarNavigation a:hover > .navIndicator {
    opacity: 1;
    transition: opacity .5s;
}

.sidebarNavigation ul {
    position: sticky;
    top: 24px;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.sidebarNavigation li {
    display: inline-block;
    font-size: 16px;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.videoContent {
    padding-top: 48px;
}

.acDividerOne {
    background: #6C3483;
}

.acDividerTwo {
    background: #C03025;
}

.acDividerThree {
    background: #795548;
}

.acDividerFour {
    background: #FBC02D;
}

.acDividerFive {
    background: #009688;
}

.navIndicator {
    border-radius: 2px;
    width: 16px;
    height: 16px;
    display: block;
    margin-right: 20px;
    opacity: .5;
    flex-shrink: 0;
}

.desktopHide {
    display: none;
    height: 0;
}

dialog.videoDialog {
    width: 1400px;
}


@media only screen and (max-width: 1400px) {
    .videosWrapper {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-column-gap: 24px;
        grid-row-gap: 24px;
    }

    .twoVids .videoThumb:nth-of-type(1) {
        grid-column: 1/3;
    }

    .oneVid .videoThumb:nth-of-type(1) {
        grid-column: 2/4;
    }

    .videoThumb:nth-of-type(5) { /* should be five, but is six because of hidden element */
        grid-column: 3/5;
    }

    .videoThumb:nth-of-type(6) { /* should be five, but is six because of hidden element */
        grid-column: 2/4;
    }

    nav a {
        color: inherit;
        border-bottom: none;
    }

    dialog.videoDialog {
        width: 1300px;
    }
}


@media only screen and (max-width: 1300px) {

    .navigationContentWrap {
        grid-template-columns: 240px 1fr;
    }

    .sidebarNavigation li {
        font-size: 14px;
    }

    dialog.videoDialog {
        width: 1200px;
    }
}

@media only screen and (max-width: 1100px) {
    .videosWrapper {
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 0;
        grid-row-gap: 24px;
    }

    .twoVids .videoThumb:nth-of-type(1),  .oneVid .videoThumb:nth-of-type(1), .videoThumb:nth-of-type(6), .videoThumb:nth-of-type(5) {
        grid-column: 1/3;
    }

    dialog.videoDialog {
        width: 960px;
    }

    nav a {
        color: inherit;
        border-bottom: none;
    }
}

@media only screen and (max-width: 600px) {
    .navigationContentWrap {
        grid-template-columns: 1fr;
    }

    .academyHero {
        padding: 24px;
        grid-template-columns: 1fr;
        grid-column-gap: 0;
    }

    .academyHeroText h1 {
        font-size: 24px;
        margin: 0;
    }

    .midHero .contentWrapper, .academyHero {
        width: 100%;
    }

    .sidebarNavigation, .videoContent {
        padding: 0;
        max-width: 100%;
        overflow: hidden; /* not sure why needed, something's going wide.. */
    }

    .sidebarNavigation {
        align-items: start;
    }

    .videosWrapper {
        padding: 0 24px;
        margin-bottom: 36px;
    }

    .videoContent .contentWrapper {
        padding: 0 8px 12px;
    }

    .midHero {
        padding: 24px;
    }

    .midHero p {
        margin-bottom: 0;
        text-align: left;
        display: none;
    }

    .midHero p:before {
        display: none;
    }

    .academyHeroText p:after {
        content: '';
        display: block;
        width: 100px;
        height: 35px;
        background: url('arrow.svg') no-repeat;
        position: absolute;
        left: 20px;
        top: 12px;
        transform: rotate(180deg);
        background-size: 100px;
        padding-left: 24px;
    }

    .sidebarNavigation ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 12px;
        grid-row-gap: 12px;
        padding: 12px;
        top: 24px;
    }

    .sidebarNavigation li {
        border-bottom: none;
        background: #F8f8f8;
        border-radius: 6px;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0;
        font-size: 14px;
    }

    .sidebarNavigation a {
        color: var(--link-color);
        border-bottom: none;
        padding: 12px;
        width: 100%;
        line-height: 1.2em;
    }

    .academyHero {
        padding: 0;
    }

    .navIndicator {
        margin-right: 8px;
        width: 14px;
        height: 14px;
    }

    dialog.videoDialog {
        width: calc(100% - 24px);
        padding: 40px 12px 24px;
    }

    dialog .video {
        margin-bottom: 0;
    }

    .dialogCloser {
        top: 12px;
        right: 12px;
    }

    .desktopHide {
        display: flex;
        height: auto;
    }

    .mobileHide {
        display: none;
    }
}