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

/*filtered gallery*/
/* Content */
.content {
    padding: .5vh;
    border-radius: 2%;
    text-align: center;
    color: papayawhip;
    position: relative;
}

/* The "show" class is added to the filtered elements */
.show {
    display: block;
}

/*hover & hide*/

.hide{
    display: none;
}

.toHover:hover + .hide{
    display: block;
}

/*modal*/
/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5%;
    cursor: pointer;
    transition: 0.3s;
    height: 72vh;
    width: 24vw;
    object-fit: cover;
  }

    #myImg:hover {
        opacity: 0.7;
    }

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999; /* Sit on top */
    padding: 5vh; /* Location of the box */
    width: auto;
    height: 95vh;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0, .95);
    border-radius: 5%;
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: inline-block;
    width: auto;
    height: 85vh;
    align-items: center;
}

    /* Caption of Modal Image (Image Text)*/
    #caption {
        margin: auto;
        display: inline-block;
        text-align: center;
        color: papayawhip;
        padding: 10px 0;
        width: 50%;
    }

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

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

                to {
                    transform: scale(1)
                }
            }

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

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

/*Arrow buttons*/

.arrow {
  border: solid papayawhip;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  cursor: pointer;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

