﻿* {
    box-sizing: content-box;
}
.modalHide{
    display:none;
}
.modal{
    display:grid;
    grid-template-rows:1fr auto auto;
    background-color:rgba(0, 0, 0, 0.95);
    position:fixed;
    top:0;left:0;
    width:100%;
    height:100%;
    overflow:hidden;
    animation:grow;
    animation-duration:1s;
    z-index:3;
    font-size:3em;    
    align-items:center;
}
@keyframes grow {  
  from {opacity: 0; background-color:ghostwhite}
  to {opacity: 1; background-color: rgba(0, 0, 0, 0.9);}
}
.caption-text{
    grid-row: 2;
    color:ghostwhite;
    margin:10px;
}
.caption-container {
    grid-row: 3;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
}
.prev {
    grid-column: 1;
}
.close{
    grid-column: 2;
}
.next {
    grid-column: 3;    
}
.prev, .next, .close{
    color:ghostwhite; 
    padding-bottom:20px;
}
.prev:hover, .next:hover, .close:hover {
    color:cornflowerblue;
    cursor:pointer;
}
.prev p, .next p, .close p{
    font-size:0.8em;
    margin:0;
}
.mySlides {
    grid-row:1;
    display: grid;
    grid-template-rows: auto 1fr;   
    text-align:center;
}
.numbertext {    
    grid-row: 1;
    color:ghostwhite;
}
.mySlides img {
    grid-row: 2;
    max-height:100vh;
    max-width:100vw;
}
/* small screen - low width */
@media screen and (max-width: 60em) {
    .prev svg, .next svg, .close svg {
        height: 0.8em;
        width: 0.8em;
    }
    .prev p, .next p, .close p {
        font-size: 0.3em;
    }
    .mySlides img {        
        max-height: 75vh;
    }
    .caption-text {
        font-size: 0.5em;
    }
}
/* large screen - width */
@media screen and (min-width: 60em) {
    .mySlides img {
        max-height: 70vh;
    }
}
/* short screen - low height */
@media screen and (max-height: 400px) {
    .numbertext{
        font-size:0.8em;
    }
    .mySlides img {        
        max-width: 45vw;
        max-height: 40vh;
    }
    .prev svg, .next svg, .close svg{
        height:0.5em;
        width:0.5em;
    }
    .prev p, .next p, .close p {
        font-size: 0.3em;
    }
    .caption-text {
        font-size: 0.5em;
    }
}
