.megacarousel-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    align-content: start;
    height: 264px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    border-radius: 4px;
    position: relative;
}
.megacarousel-break {
    flex-basis: 100%;
    width: 0;
}
.megacarousel-see-more {
    position: absolute;
    z-index: 1;
    bottom: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #0066b3;
    color: #0066b3;
    text-transform: uppercase;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    padding: 10px 15px 8px 15px;
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
}
.megacarousel-backdrop {
    display: none;
    background: rgba(50, 50, 50, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: fixed;
    z-index: 100000;
}
.megacarousel-popup-button {
    vertical-align: middle;
    font-size: 20px;
    line-height: 22px;
    padding: 10px 15px;
    background: #004074;
    color: #fff !important;
    font-weight: 900;
    border-radius: 30px;
    margin: 6px;
    text-decoration: none !important;
}
.megacarousel-close {
    display: inline-block;
    font-size: 24px;
    line-height: 26px;
    text-align: right;
    right: 20px;
    position: absolute;
    color: #333;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.megacarousel-close:hover, .megacarousel-close:active {
    text-decoration: none;
    opacity: 0.9;
}
.megacarousel-popup-button:hover, .megacarousel-popup-button:active {
    opacity: 0.9;
    color: #eee;
    text-decoration: none;
}
.megacarousel-popup {
    background: #fff;
    text-align: center;
    margin: 40px auto 0 auto;
    padding: 20px;
    width: 90%;
    max-height: 90%;
    z-index: 100001;
    position: relative;
}
.megacarousel-popup img {
    width: 600px;
    height: 400px;
    max-height: 400px;
    object-fit: cover;
}
.megacarousel-see-more:hover, .megacarousel-see-more:active {
    background: #eee;
    border: 1px solid #5096f3;
    color: #3076d3;
    text-decoration: none !important;
}
.megacarousel-photo-large {
    width: 390px;
    height: 264px;
}
.megacarousel-photo-small {
    width: 187px;
    height: 126px;
}
.megacarousel-photo:hover {
    opacity: 0.92;
}
.megacarousel-photo {
    flex: 0 0 auto;
    margin-right: 12px;
    overflow: hidden;
    display: inline-block;
}
.megacarousel-photo img {
    display: inline-block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.megacarousel-clear {
    content: "";
    display: table;
    clear: both;
    zoom: 1;
}
.megacarousel-selected {
    opacity: 1.0 !important;
}
.megacarousel-thumbnails {
    width: 100%;
    overflow: hidden;
    margin-top: 16px;
}
.megacarousel-thumbnail:hover {
    opacity: 0.9 !important;
}
.megacarousel-thumbnail {
    display: inline-block;
    opacity: 0.5;
    width: 110px;
    height: 70px;
}
.megacarousel-thumbnail img {
    border: 1px solid #fff;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.megacarousel-selected img {
    border: 1px solid #333;
}

@media only screen and (max-width: 600px) {
    .megacarousel-mobile {
        position: relative;
        background: #333;
        font-size: 0;
        line-height: 0;
        width: 100% !important;
        padding: 0;
        margin: 0;
        height: calc(100vw / 1.5);
    }
    .megacarousel-scroll {
        width: auto;
        height: 100%;
        overflow: scroll;
        display: flex;
        flex-wrap: nowrap;
        scroll-snap-type: mandatory;
        scroll-snap-points-y: repeat(100%);
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .megacarousel-scroll::-webkit-scrollbar {
        display: none;
    }
    .megacarousel-mobile img {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        scroll-snap-align: start;
    }
    .megacarousel-mobile-controls {
        display: block;
        position: absolute;
        bottom: 10px;
        text-align: center;
        margin: 0 auto;
    }
    .megacarousel-mobile-count {
        display: block;
        position: absolute;
        z-index: 1;
        right: 10px;
        bottom: 10px;
        background: rgba(40, 40, 40, 0.6);
        color: #fff;
        font-weight: normal !important;
        padding: 4px 6px;
        border-radius: 4px;
        text-align: right;
        font-size: 15px;
        line-height: 17px;
    }
}
