﻿.gallery {
    padding-top: 6px;
    background-color: rgb(0,2,42);
    content-visibility: auto;
}

.container-all {
    margin: 0;
    width: fit-content;
}

    .container-all h1 {
        text-align: center;
        color: white;
    }

    .container-all img {
        width: 100%;
        transition-duration: .3s;
        max-width: 100%;
        display: block;
        overflow: hidden;
        cursor: pointer;
    }

.galleryContainer {
    width: calc(33%);
    overflow: hidden;
    height: fit-content;
    padding-left: 3px;
    padding-right: 3px;
    display: block;
    position: relative;
    background-color: rgb(0,2,42);
    padding-bottom: 6px;
}

.CaptionTitle {
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    text-shadow: 1px 1px 1px rgb(0, 1, 42);
}

.caption {
    margin-bottom: 4%;
    width: 100%;
}

.ImageContainer {
    width: 100%;
    overflow: hidden;
    height: fit-content;
}

.title {
    position: absolute;
    display: block;
    cursor: pointer;
    top: 35%;
    display: none;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.6em;
    text-shadow: 1px 5px 10px black;
    transition-duration: .3s;
}

.text {
    position: absolute;
    top: 50%;
    cursor: pointer;
    max-width: 80%;
    text-align: center;
    left: 50%;
    text-shadow: 1px 5px 10px black;
    font-size: 1em;
    display: none;
    margin-right: -50%;
    transition-duration: .3s;
    transform: translate(-50%, -50%)
}

.ImageContainer:hover img {
    transform: scale(1.2);
    transition-duration: .3s;
    filter: grayscale(50%);
    opacity: .7;
}

.ImageContainer:hover span {
    color: white;
    display: block;
    transition-duration: .3s;
}

@media only screen and (min-width: 900px) {
    .container-all {
        display: flex;
    }
}

@media only screen and (max-width: 900px) {
    .galleryContainer {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
    }
}
