﻿.gallery p {
    padding: 0;
    margin: 0;
}

.heading {
    text-align: center;
    font-size: 2.0em;
    letter-spacing: 1px;
    padding: 40px;
    color: white;
}

.gallery-image {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.addiconbutton {
    height: 200px;
    width: 200px;
    display: block;
    transform: scale(1.0);
}

.gallery-image img {
    height: 250px;
    width: 350px;
    transform: scale(1.0);
    transition: transform 0.4s ease;
    opacity: 1.0;
}

.img-box {
    box-sizing: content-box;
    border: 1px solid black;
    border-radius: 5px;
    margin: 10px;
    height: 250px;
    width: 350px;
    overflow: hidden;
    display: inline-block;
    color: white;
    position: relative;
    background-color: white;
}

.caption {
    position: absolute;
    padding-left: 20px;
    bottom: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    width: inherit;
}

.transparent-box {
    height: 250px;
    width: 350px;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease;
}

.img-box:hover img {
    transform: scale(1.1);
}

.image-action {
    z-index: 2;
    position: absolute;
    padding-right: 20px;
    opacity: 0.0;
    top: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1.0;
    width: inherit;
}

    .image-action button {
        color: black;
    }

    .image-action .mud-menu {
        left: 300px;
    }

.img-box:hover .transparent-box {
    background-color: rgba(0, 0, 0, 0.3);
}

.img-box .add-images .mud-button {
    background-color: var(--mud-palette-action-default-hover);
    height: 250px;
    width: 350px;
}
.img-box:hover .caption {
    /*transform: translateY(-20px);*/
    opacity: 1.0;
}

.img-box:hover {
    cursor: pointer;
}

.caption > p:nth-child(2) {
    font-size: 0.8em;
}

.opacity-low {
    opacity: 0.5;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}