@font-face {
    font-family: 'bold';
    src: url('fonts/display_bold-webfont.woff2') format('woff2'),
    url('fonts/display_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'text';
    src: url('fonts/micro-webfont.woff2') format('woff2'),
    url('fonts/micro-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body{
    margin:0;
    padding:0;
    width: 100%;
    height:100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-font-feature-settings: 'kern' 1;
    -o-font-feature-settings: 'kern' 1;
    font-feature-settings: 'kern' 1;
    -webkit-font-kerning: normal;
    font-kerning: normal;
}

.overlay{
    position:absolute;
    top: 0;
    bottom: 0;
    left:0;
    right:0;
    height: 98.5%;
    width: 100%;
    opacity: 0;
    transition: .3s ease;
    background-color: rgba(22,40,74,0.3);
    cursor:pointer;
}

#header p{
    font-family: text;
    color:#16284A;
}
#italic{
    font-family: bold;
    margin-top:20px;
    display: block;
}
.title{
    display: inline;
    color: #16284A;
    padding: 5px 20px 0 15px;
    background-color: rgb(93, 252, 113);
    border-radius: 0 1em 1em 0;
    font-size: 1.5rem;
}
.column img{
    width: 100%;
}

#myModal .column img{
    display: none;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22,40,74,0.9);
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: auto;
    width: 85%;
    height:90%;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 1400px;
    align-items: center;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
}

#caption{
    margin:0;
    font-family: text;
    max-height: 100%;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 3%;
    right: 2.5%;
    z-index: 99;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
    justify-content: space-between;
    align-items: center;
}

.mySlides img{
    max-height:100%;
    max-width: 100%;
    margin: 0 auto;
}


/* Next & previous buttons */
.prev,
.next {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    opacity:0.3;
    font-weight: bold;
    font-size: 17px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Position the "next button" to the right */
.next {
    right:30%;
    border-radius: 50%;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity:1;
}

/* Caption text */
.caption-container {
    text-align: left;
    padding: 0 16px 0 16px;
    color: white;
    width:30%;
    height:90%;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

img.demo {
    opacity: 0.3;
}

a{
    font-family: bold;
    color:#16284A;
    text-decoration: none;
}

.active,
.demo:hover {
    opacity: 1;
}

img:hover{
    cursor: pointer;
}

#masonry {
    padding: 1em;
    columns:4;
    overflow-y: auto;
    overflow-x: hidden;
    column-gap: 1em;
    width: 100%;
    max-width:1600px;
    margin:0 auto;
}

#tag{
    display:inline-block;
    padding-bottom: 10px;
}



#intro{
    margin:10px auto;
    width: 100%;

}

#header{
    width:60%;
    margin:0 auto;
    padding:30px 0 10px 0;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.masonry-brick {
    margin-bottom:1em;
    /* No cross browser 'break-inside' property being supported yet: */
    display: inline-block;
    position: relative;
    width: 100%;
}

.overlay p{
    font-family: text;
    color:white;
    font-size: 40px;
    opacity: 1;
    bottom:5px;
    right: 5px;
    position: absolute;
}
.masonry-brick:hover .overlay {
    opacity: 1;

}

.masonry-brick img{
   width: 100%;
}

.mySlides{
    width:70%;
}

#footer{
    padding:50px 0 50px 0;
    text-align: center;
}

#footer p{
  font-family: text;
}

#logo{
    width:20vw;
    max-width:200px;
    margin: 0 auto;
    display: block;
}

h1{
    font-family: bold;
    margin:0;
}

h2{
    font-family: bold;
    font-size: 1.1rem;
    margin-top:20px;
}

@media screen and (max-width: 900px) {
    #masonry{columns:3;}
    .caption-container{height:auto; width:100%; margin-top:30px; margin-bottom:30px ;padding:0;}
    .mySlides{ width:100%; }
    .modal-content{ display: block; }
    .next{right:0;opacity: 1;}
    .prev{opacity: 1;}
    #header{align-items: flex-start; width: 80%;}
}
@media screen and (max-width: 700px) {
    #masonry{columns:2;}
    .caption-container{height:auto; width:100%; margin-top:30px; margin-bottom:30px ;padding:0 0 5px 0;}
    .mySlides{ width:100%; }
    .modal-content{ display: block; }
    .next{right:0;opacity: 1;}
    .prev{opacity: 1;}
    .hover-shadow{opacity: 1;}
    #header{width: 90%;}

}
@media screen and (max-width: 600px) {
    #masonry{columns:1;}
    .caption-container{width:100%; margin-top:30px;  margin-bottom:30px ;padding:0 0 5px 0;}
    .mySlides{ width:100%; }
    .modal-content{ display: block;}
    .next{right:0;opacity: 1;}
    .prev{opacity: 1;}
    #header{width: 95%;}
    #left{margin:0;}
}