﻿.gallery-card-container{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.gallery-card {
    width: 316px;
    overflow: hidden;
    padding: 7px;
    /*box-shadow: 0px 0px 6px 3px #d2d2d2;*/
    border: 1px solid #0000001a;
    border-radius: 3px;
    text-align: center;
    position: relative;
    margin: 0px 0px 25px;
    transition: all 0.6s;
}

.gallery-card:hover{
    border: 1px solid #d1d1d1;
}

    .gallery-card .modal-content {
        border: 0;
    }
.gallery-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 5px;
    text-align: center;
    display: inline-block;
    /*border: 1px solid #d1d1d1;*/
}

.gallery-card-img img {
    /*height: 100%;*/
}

.gallery-card-caption {
    height: 22px;
    overflow: hidden;
    font-size: 16px;
    margin-bottom: 3px
}

.gallery-card-video{
    position: relative;
    width: 300px;
    height: 200px;
}

.gallery-card-video iframe{
    border-radius: 3px;
}

.gallery-video-card-head {
    height: 22px;
    overflow: hidden;
    font-size: 16px;
    margin: 10px 0px 5px;
}
.gallery-video-card-description {
    height: 100px;
    overflow-y: auto;
    font-size: 14px;
}

.modal-dialog-gallery{
    max-width: 450px;
}

.gallery-modal-content-image {
    height: 300px;
    overflow: hidden;
}

/* Reduce a modal below a specific width */
@media (max-width: 575px) {
    /*.modal-backdrop {
        display: none !important;
    }

    .modal-gallery {
        display: none !important;
    }*/

    .modal-dialog-gallery {
        margin: .5rem auto;
    }
}

@media(max-width: 500px){
    .gallery-modal-content-image{
        height: auto;
    }
}

@media(max-width: 475px){
    .modal-dialog-gallery{
        max-width: 350px;
    }
}

@media(max-width: 375px) {
    .modal-dialog-gallery {
        max-width: 300px;
    }
}