/* Medea page styles (including Photos and Videos) */

.section.media h4 {
    margin: 2rem auto;
}

.section.media .button-wrapper {
    padding-top: 16px;
}

.section.media .link-box {
    min-width: 13rem;
    width: calc(30% - 1rem);
    margin: 1rem;
}


.media-photos h3 {
    font-size: 26px;
    padding-top: 64px;
    color: #87dbff;  
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(../images/icon-media-camera.png);
    background-size: auto 48px;
}
.media-videos h3 {
    font-size: 26px;
    padding-top: 64px;  
    color: #87dbff;
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(../images/icon-media-video.png);
    background-size: auto 48px;
}





/* Photos page styles */
.photos-section {
    padding: 4rem;
}
.photos-section .wrapper.row > div {
    margin-bottom: 2rem;
}
.photos-section .col-lg-4 {
    margin-bottom: 2rem;
}


.photos-box {
    width: 100%;
    height: 700px;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    position: relative;
}
.photos-box.boys {   
    background-image: url(../images/photos-boys.jpg);
}
.photos-box.girls {   
    background-image: url(../images/photos-girls.jpg);
}
.photos-box a {
    width: 100%;
    height: 100%;
    background-color: rgba(55,38,162,.7);
    position: absolute;
    font-size: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.photos-box a:hover, .photos-box a:focus {    
    background-color: rgba(55,38,162,0);
}


.photos-year {
    margin-top: 20px;
}
.photos-year a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 80px;
    background: #1f0f84;
    border-radius: 15px/15px;   
    cursor: pointer;  
}
.photos-year a i {    
    font-size: 32px;
    line-height: 32px;
    padding-left: 50px;
    position: relative;
    font-style: normal;
    color: #0080d5;
}
.photos-year a i:before {
    content: " ";
    position: absolute;
    display: inline-block;
    width: 36px;
    height: 36px;
    left: 0px;
    top: 0px;
    background-repeat: no-repeat;
    background-position: left 2px;
    background-image: url(../images/icon-media-camera.png);
    background-size: contain;
}
.photos-year a:hover, .photos-year a:focus {    
    border: solid 3px #0080d5;
}


.photos-section .col-lg-4 .link-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}
.photos-section .col-lg-4 .link-box .image-wrapper {
    max-width: 20%;
    margin: 0 2rem;
}
.photos-section .col-lg-4 .link-box .text-wrapper {
        max-width: 65%;
        text-align: left;
}
.photos-section .link-box h6 {
    color: #88dbff;
    font-weight: 600;
}
.photos-section .link-box p {
    text-transform: none;
    line-height: 1.4rem;
}
.photos-section .link-box .button {
    margin-top: 1rem;
    display: inline-block;
}

.photos-section .study-aids .link-box {
    background-image: url(../images/audio-icon.png), url(../images/video-icon.png), url(../images/quiz-icon.png), url(../images/audio-icon.png), url(../images/video-icon.png), url(../images/quiz-icon.png);
    background-size: 4%;
    background-repeat: no-repeat;
    background-position: 2% 2rem, 7% 2rem, 12% 2rem, 88% 2rem, 93% 2rem, 98% 2rem;
}
.photos-section .books.row {
    justify-content: space-around;
    margin-top: 1rem;
}
.photos-section .book.col-xs {
    border: 3px solid #0080d7;
    border-radius: 1.5em;
    display: flex;
    align-items: center;
    max-width: 12em;
    justify-content: center;
    padding: 1rem;
}
.photos-section .book .image-wrapper {
    max-width: 30%;
    margin: 0;
    margin-right: 1rem;
}
.photos-section .book .text-wrapper {
    text-align: left;
}
.photos-section .book .title {
    font-weight: 800;
    text-transform: uppercase;
}
.photos-section .book p {
    margin: 0;
}

.photos-section .link-box.online {
    flex-direction: row;
    align-items: center;
}
.photos-section .link-box.online .image-wrapper {
    max-width: 3rem;
    margin: 0 auto;
}
.photos-section .link-box.online h6 {
    margin: 0 auto;
}

.pswp__caption__center {
    text-align: center !important;
}




/* video page */
.videos {
    padding-top: 40px;
}
.videos h3 {
    font-size: 28px;
    line-height: 32px;
    padding-bottom: 20px;  
    text-align: center; 
}
.video-container {
    
}
.video-container a {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 30px;
    width: 30%;   
    height: 220px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.video-container a p {    
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    font-weight: 700;
    font-size: 22px;
    line-height: 24px;
}
.video-container a p span {    
    width: 90%;    
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 24px;
}
.video-container a:hover p, .video-container a:focus p {
    background: rgba(0,0,0,0);
}



@media(max-width: 1480px) {
    .photos-section .books.row {
        flex-wrap: wrap;
    }
    .photos-section .book.col-xs {
        min-width: 10rem;
        margin: .5rem;
    }

    .photos-section .col-lg-4 .link-box {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    .photos-section .col-lg-4 .link-box .text-wrapper {
        text-align: center;
        margin-top: 1rem;
    }

    .photos-section .link-box.online {
        flex-direction: column;
    }
    .photos-section .link-box.online .image-wrapper {
        margin-bottom: 1rem;
    }
    .photos-section .link-box.online h6 {
        margin-bottom: 2rem;
    }
    .photos-section .link-box.online p {
        margin: 0;
    }
}


@media(max-width: 1150px) {    
    .video-container a {
        display: inline-block;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 30px;
        width: 42%;   
        height: 200px;
        position: relative;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
    
}

@media(max-width: 992px) {
	.section.media .link-box {
        max-width: 12rem;
        margin: 2rem auto;
        margin: 1rem;
    }    
    
}

@media(max-width: 768px) {
    .photos-section {
        padding: 0;
    }
    .photos-section .link-box {
        background-image: none;
    }
    
}

@media(max-width: 640px) {
    .video-container a {
        display: inline-block;
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 30px;
        width: 100%;   
        height: 300px;
        position: relative;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
    
}

