/* Galleria toiminnallisuudet */
/* https://www.w3schools.com/css/css3_images.asp */
div.gallery {
    border: 1px solid #ccc;
}
      
div.gallery:hover {
    border: 1px solid #777;
}
      
div.gallery img {
    width: 100%;
    height: auto;
}
      
div.desc {
    padding: 15px;
    text-align: center;
}
      
* {
    box-sizing: border-box;
}

/* Galleria toiminnallisuudet */
/* https://www.w3schools.com/css/css3_images.asp */
.responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
}
@media only screen and (max-width: 700px) {
    .responsive {
        width: 49.99999%;
        margin: 6px 0;
    }
}
@media only screen and (max-width: 500px) {
    .responsive {
        width: 100%;
    }
}
      
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/*Lisämäärittely dark mode-toiminnallisuudelle*/
/* Lähde osin https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_dark_mode */
body {
    background-color: white;
    color: black;
}
.dark-mode {
    background-color: black;
    color: white;
}
.dark-mode .container {
    background-color: black;
    color: white;
}

.dark-mode div.gallery {
    background-color: black;
    color: white;
}

.dark-mode div.gallery:hover {
    background-color: black;
    color: white;
    border-color: #ccc;
}

.dark-mode .container-fluid {
    background-color: black;
    color: white;
}

.dark-mode .row {
    background-color: black;
    color: white;
}

.dark-mode .navbar {
    background-color: black;
    color: white;
}

.dark-mode .nav-item {
    background-color: black;
    color: white;
}

.dark-mode .nav-link {
    background-color: black;
    color: white;
}

.dark-mode .nav-item.active {
    background-color: black;
    color: white;
}