/* COLORS */
:root{
    --dark-grey: #d0cfd4;
    --grey: #efefef;
    --white: #f4f4f4;
    --black: #333333;
}

/* TYPOGRAPHY */
html {font-size: 100%;}
body {
    font-family: Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.25;
}
h1, h2, h3, h4, h5 {
    margin: 0.5rem 0px;
    font-weight: 700;
    line-height: 1.25;
}
h1 {font-size: 2rem;}
p {margin-bottom: 1rem;}


/* MAP LAYOUT */
body {
    padding: 0;
    margin: 0;
}
html, body, #map {
    height: 100%;
    width: 100vw;
}

/* MOBILE */
@media only screen and (max-width: 799px) {
    #modal-content{
        max-width: 95vw;
    }
    #filtered{
        top: 10px;
        bottom: initial !important;
    }
    .leaflet-control-container{
        display:none;
    }
    .img-link{ /* deactivate links on mobile (still accessible by keyboard) */
        pointer-events: none;
        cursor: default;
    }
}

/* MODAL LAYOUT */
#modal{
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--grey);
    color: var(--black);
    font-family: Helvetica, sans-serif;
    opacity: 1;
}
#modal-content{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem 1rem 1rem;
    background-color: var(--grey);
    padding-bottom:1rem;
}
.big-button{
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    width: 100%;
    padding: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: var(--white);
    color: var(--black);
}
.big-button:hover, .big-button:focus{
    border: 2px solid rgba(0, 0, 0, 0.5);
}

/* LOCATION INTRO */
.intro-description{
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* POSTS */
.post{
    margin-left: auto;
    margin-right: auto;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5rem;
    background-color: var(--white);
}
.post-img, .post-caption{
    width: 100%;
}
.post-img{
    cursor: zoom-in;
    height: 100%;
    border-radius: 0px 0px 5px 5px;
}
.post-img.has-caption{
    border-radius: 0px !important;
}
.post-date, .post-caption{
    margin: 1rem;
}
.post-date{
    font-weight: 700;
}
.post-tag{
    display:inline-block;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-color: var(--white);
    font-size: 0.75rem;
    padding: 0.05rem 0.4rem;
    margin: auto .5rem auto 0px;
    color: var(--black);
    text-decoration: none;
}
.post-tag:hover, .post-tag:focus{
    border: 2px solid rgba(0, 0, 0, 0.5);
}
.post-tags{
    margin:auto .5rem auto 0px;
}
.post-caption:empty{
    display:none;
}
.img-link{
    width: 100%;
}

/* MEMORIES NOT PICTURED */
#not-pictured{
    margin-top:0px;
    margin-bottom:5rem;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 1rem;
    padding: 0.5rem 1rem 1rem 1rem;
    border-radius: 5px;
    background-color: var(--white);
}
#not-pictured ul{
    padding-left:0px;
    list-style: none;
}
#not-pictured li{
    display:inline-block;
    border: var(--black) 0.05rem solid;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    border-radius:5px;
    margin-bottom:0.7rem;
}

/* MAP FILTER */
#filtered {
    font-size: 0.9rem;
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #fff;
    color: var(--black);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}
#filtered a {
    display: inline-block;
    height: 100%;
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    padding: 5px 8px 4px 10px;
    border-right: 1px solid #ccc;
    outline: none;
    font-weight: 700;
}
#filtered a:hover, #filtered a:focus{
    background-color: #f4f4f4;
}
#filtered span{
    padding: 5px 10px 4px 8px;
}