/* ==========================================================================
   CSS styles for picture galleries
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    align-items: center;
}

.gallery_wrapper{
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    align-items: center;
    width: 95%;
    margin: auto;
}

.gallery_image {
    width: 70%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    margin-bottom: 10%;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.gallery_image a {
    width: 100%;
    height: 100%;
  }

  .gallery_image_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.gallery_description {
    opacity: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10px;
    height: 90%;
    color: #151E3F;
    transition: all 0.9s ease;
}

.gallery_description table {
    transition: all 0.9s ease;
    transform: scale(0.1);
    background: #FFFFFF;
    border-collapse: collapse;
    border: thick;
    border-style: solid;
}

.gallery_description tr {
    height: 2em;
    border-top: thin;
    border-bottom: thin;
    border-top-style: dotted;
    border-bottom-style: dotted;
}

@media screen and (max-width: 1000px) {
    .gallery_description tr {
        font-size: 1.5vw;
    }
}

.table_header_gallery {
    font-weight: bold;
    background-color: #a0a0ff;
}

@media screen and (min-width: 1000px) {
    .gallery_image:hover .gallery_description {
        opacity: 0.8;
        width: 90%;
        transition: all 0.5s ease;
    }

    .gallery_image:hover .gallery_description table {
        transform: scale(1);
        transition: all 0.9s ease;
    }
}

.gallery_image_big {
    width: 90%;
    max-width: 1920px;
    height: 90%;
    opacity: 0;
    position: fixed;
    top: 120px;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.9s ease;
    transform: scale(0.1);
    z-index: -1;
}

.gallery_image_big img{
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 90%;
    object-fit: contain;
}

.gallery_bg {
	background-repeat: repeat;
	background-position: center center;
	background-image: url('../pictures/bg_gallery.png');
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.gallery_bg_black {
    background-color: black;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery_bg::-webkit-scrollbar {
    display: none;
}

.table_content_gallery_cell a:link {
	color: blue;
}

.table_content_gallery_cell a:visited {
	color: blue;
}