* {
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

.is-hidden {
    display: none !important;
}

.js-gallery {
    display: flex;
    height: 100%;
    width: 100%;
    min-height: 500px;
}

.js-gallery>* {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.js-gallery--column {
    flex-direction: column;
}

.js-gallery--row {
    flex-direction: row;
}

.js-gallery-viewer {
    display: flex;
    position: relative;
    flex: 2 1 500px;
    padding: 32px;
    overflow: hidden;
}

.js-gallery--icon {
    position: absolute;
    top: 50%;
    font-family: 'Courier New', Courier, monospace;
    font-style: normal !important;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    z-index: 120;
    cursor: pointer;
    transition: opacity .2s;
}

.js-gallery--icon:hover {
    opacity: 0.5;
}

.js-gallery--icon-left {
    left: 60px;
}

.js-gallery--icon-left::before {
    content: '\276C';
}

.js-gallery--icon-right {
    right: 60px;
}

.js-gallery--icon-right::before {
    content: '\276D';
}

.js-gallery-viewer--image {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.js-gallery-viewer--image img {
    height: auto;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.js-gallery-picker {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 8px;
    padding-bottom: 32px;
    overflow-x: auto;
    overflow:visible;
    max-width: 500px;
    margin: auto;
    -ms-overflow-style:auto;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.js-gallery-picker::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.js-gallery--column .js-gallery-picker {
    flex-direction: row;
}

.js-gallery--row .js-gallery-picker {
    flex-direction: column;
}

.js-gallery-picker--image {
    display: flex;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.js-gallery-picker--image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.js-gallery-picker--image:hover {
    transform: scale(1.1);
}

.js-gallery-picker--active {
    border: 5px solid white;
}
.js-gallery-picker--count{
    position: absolute;
    left: 50%;
    transform: translateY(-100%);
    top: 0px;
    color: rgb(173, 173, 173);
    font-style: italic;
}