#heading {
    text-align: center;
    margin-bottom: 35px;
}
#container {
    min-height: calc(100vh - 150px);
}
#container:after {
    display: table;
    clear: both;
    content: "";
}
#items {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}
div.gallery {
    margin: 20px;
    float: left;
    width: 400px;
    height: 600px;
}
div.gallery img {
    width: 100%;
    height: auto;
}
div.desc {
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: left;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    font-size: 1rem;
}

/* 
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) {
    /* heading */
    #heading {
        font-size: 2rem;
    }
}

/* 
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {

    /* heading */
    #heading {
        font-size: 2rem;
    }
}

/* 
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    /* heading */
    #heading {
        font-size: 2.5rem;
    }
}

/*
##Device = Desktops
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (max-resolution: 96dpi) {

    /* heading */
    #heading {
        font-size: 2rem;
    }
    .footer {
        font-size: 1rem;
    }
    .endstuff {
        font-size: 0.75rem;
    }
    .tooltiptext {
        font-size: 1rem;
    }
}

/* 
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {

    /* banner */
    /*
    #banner img {
        height: auto;
        width: 80%;
    }
    */
    /* heading */
    #heading {
        font-size: 2rem;
    }
    #container {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
    
    div.gallery {
        width: 220px;
        height: 330px;
    } 
    div.desc {
        padding: 5px;
        margin-top: 5px;
        margin-bottom: 25px;
        text-align: left;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .footer a {
        margin-right: 10px;
    }
}

/* 
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {

    /* banner  
    #banner img {
        height: auto;
        width: 90%;
    }
    */
    /* heading */
    #heading {
        font-size: 1.5rem;
    }
    /*
    #container {
        margin-left: auto;
        margin-right: auto;
        width: 85%;
    }
    */
    div.gallery {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: auto;
        margin-right: auto;
        float: none;
        width: 250px;
        height: 385px;
    } 
    div.desc {
        padding: 5px;
        margin-top: 5px;
        margin-bottom: 25px;
        text-align: left;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .footer {
        margin-left: 0px;
        margin-right: 0px;
    }
    .footer a {
        margin-right: 10px;
    }
    .endstuff {
        margin-left: 0px;
        margin-right: 0px;
    }
}
