﻿.fsmodal.modal-dialog {
    max-width: 100%;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
}

.fsmodal .modal-content {
    height: 100vh;
    border-radius: 0;
}

.gallery-modal-content.modal-content {
    background-color: #222;
    color: white;
}

    .gallery-modal-content.modal-content .modal-header,
    .gallery-modal-content.modal-content .modal-footer {
        border-color: #710a2c;
    }

    .image-gallery-container .modal-content .modal-title {
        color: white;
    }

.gallery-modal-content .close {
    color: white;
}

    .gallery-modal-content .close:hover {
        color: white;
    }

.gallery-modal-content .carousel-item {
    height: 100%;
}

    .gallery-modal-content .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: contain;
    }

.article-image-gallery-header {
    background-color: #222;
    color: white;
    padding: 8px;
}

    .article-image-gallery-header span {
        font-size: 28px;
    }

.article-image-gallery-footer {
    background-color: #222;
    color: white;
    padding: 8px;
    font-style: italic;
}

.gal-item-container {
    position: relative;
    left: 0;
    transition: left 1s;
    font-size: 0;
}

.gal-controls {
    display: inline-block;
    float: right;
}

.directional-control {
    color: #ffffffcc;
    background-color: transparent;
    border: none;
    font-size: 28px;
}

    .directional-control:hover {
        color: #fff;
    }

.article-image-gallery {
    width: 100%;
    background-color: #222;
    white-space: nowrap;
    overflow: hidden;
}

/* Set item to 1/6th width and a 16:9 aspect ratio */
.gal-item {
    position: relative;
    display: inline-block;
    width: calc(100% / 6);
    padding-top: calc(100% * 0.09375);
}

/* Modal thumbnails */
#controlsMove .gal-item {
    width: calc(100% / 12);
}

.gal-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

    .gal-item img:hover {
        cursor: pointer;
        opacity: 0.9;
    }

.gal-fs-controls {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0;
}

    .gal-fs-controls img {
        display: inline-block;
        width: 160px;
        height: 90px;
        object-fit: cover;
        margin: 0 2px;
    }

        .gal-fs-controls img:first-child {
            margin-left: 0;
        }

        .gal-fs-controls img:last-child {
            margin-right: 0;
        }

        .gal-fs-controls img.active {
            border: 2px solid white;
        }

        .gal-fs-controls img:not(.active):hover {
            cursor: pointer;
            opacity: 0.9;
        }

.gal-control-scroll-container {
    position: relative;
    transition: left 0.6s;
}

.image-gallery-container {
    background-color: #222;
}

.image-gallery-container .carousel-control-next,
.image-gallery-container .carousel-control-prev {
    background: transparent;
    border: none;
}

.gal-no-items {
    padding: 30px;
    font-size: 20px;
    color: white;
}

/* Typical tablet configuration */
@media screen and (min-width:577px) and (max-width: 991px) {
    /* Set item to 1/6th width and a 16:9 aspect ratio */
    .gal-item {
        position: relative;
        display: inline-block;
        width: calc(100% / 3);
        padding-top: 30%;
    }
}

/* Typical phone configuration */
@media screen and (max-width: 576px) {
    /* Set item to 1/6th width and a 16:9 aspect ratio */
    .gal-item {
        position: relative;
        display: inline-block;
        width: 100%;
        padding-top: 100%;
    }
}
