.jazel-gallery {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Main Image */
.jazel-gallery__showcase {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    width: 100%;
}

.jazel-gallery__showcaseImages div {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .jazel-gallery__showcaseImages div img {
        height: 300px;
    }
}

.jazel-gallery__showcase .jazel-gallery__showcaseImages img {
    cursor: pointer;
    max-height: 100%;
    max-width: 90%;
}
.jazel-gallery__showcase .jazel-gallery__showcaseImages div img[data-active=false] {
    cursor: default;
}

@media all and (max-width: 767px) {
    .jazel-gallery__showcase .jazel-gallery__showcaseImages img {
        height: auto;
        max-width: 100%;
    }
}

/* Thumbnails */
.jazel-gallery__thumbnails-container {
    flex-basis: 80%;
    flex-grow: 1;
    order: 2;
    overflow: hidden;
    position: relative;
}
.jazel-gallery__thumbnails-container.hidden {
    height: 0;
}
.jazel-gallery__thumbnail {
    background: no-repeat 50%;
    background-size: cover;
    border: 1px solid transparent;
    border-radius: 8px;
    display: block;
    height: 100%;
    margin: 0 5px;
    overflow: hidden;
}
.jazel-gallery__thumbnail[data-clickable=yes] { cursor: pointer; }
[data-layout=carousel] .jazel-gallery__thumbnail:hover,
[data-layout=gallery] .jazel-gallery__thumbnail:not(.jazel-gallery__thumbnail--active):hover { border-color: #000; }
.jazel-gallery__thumbnails .my-siema__list,
.jazel-gallery__thumbnails .my-siema__item {
    height: 100%;
}

/* Thumbnail */
[data-layout=gallery] .jazel-gallery__thumbnail--active { border: 4px solid #000; }
.jazel-gallery__video-thumbnail {
    background-clip: content-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    flex-basis: 20%;
    order: 4;
    padding: 0 5px;
    position: relative;
}
.jazel-gallery__video-overlay {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    position: absolute;
    width: calc(100% - 10px);
}

/* Carousel */
.jazel-gallery .modal__button,
.jazel-gallery .my-siema__arrow { cursor: pointer; }

/* Buttons */
.jazel-gallery__buttons {
    display: flex;
    order: 6;
    width: 100%;
}
.jazel-gallery__button { cursor: pointer; }

/* Modal Slider */
.modal {
    order: 8;
    display: none;
}
.modal.is-open { display: block; }
@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal__overlay {
    align-items: center;
    animation: mmfadeIn .3s cubic-bezier(0,0,.2,1);
    background: rgba(0,0,0,.85);
    bottom: 0;
    display: flex;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}
.modal__content {
    position: relative;
    width: 100%;
    z-index: 1;
}
.modal__container {
    align-items: center;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    margin: auto;
    width: 90vw;
}
.modal.image .modal__container {
    height: 100vh;
    width: 100vw;
}
.modal__container > img {
    height: 80vh;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}
.modal__container .video-vinreal,
.modal__container > iframe {
    background: #fff;
    border-radius: 5px;
    min-height: 400px;
    max-height: 100%;
    max-width: 100%;
    padding: 20px 24px 20px 24px;
}
.modal__button,
.modal__button:focus,
.modal__button:hover,
.modal__button:active {
    background-color: transparent;
    border: none;
    height: 40px;
    outline: none;
    padding: 8px;
    position: absolute;
    width: 40px;
    z-index: 3;
}
.modal__button svg {
    fill: white;
    height: 100%;
    width: 100%;
}
.modal__button--arrow {
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 1000;
}
.modal__button--prev {
    left: 15px;
}
.modal__button--next {
    right: 15px;
}
.modal__button.modal__button--close {
    background-color: transparent;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E%0A");
    height: 40px;
    right: 30px;
    top: 30px;
    width: 40px;
}
@media only screen and (max-width: 1023px) and (orientation: portrait) {
    .modal__container > iframe[data-src*="flickfusion.net"] { aspect-ratio: 4/2; }
}
@media only screen and (max-width: 1023px) and (orientation: landscape) {
    .modal__container > iframe[data-src*="flickfusion.net"] { aspect-ratio: 4/2; }
}
@media only screen and (max-width: 767px) and (orientation: portrait) {
    .modal__container > iframe[data-src*="flickfusion.net"] { aspect-ratio: 4/3; }
}
@media all and (min-width: 1024px) {
    .modal__container > iframe[data-src*="flickfusion.net"] { aspect-ratio: 5/2; }
    .modal__button:not(.modal__button--close),
    .modal__button:not(.modal__button--close):focus,
    .modal__button:not(.modal__button--close):hover,
    .modal__button:not(.modal__button--close):active {
        height: 80px;
        width: 80px;
    }
}
