.viewer-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.viewer-container {
    flex: 1;
}

.thumbnail-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10vh;
    min-height: 100px;
    margin: 0;
    padding: 0;
    user-select: none; /* テキスト選択を無効化 */
    -webkit-user-select: none; /* Safari対応 */
    -ms-user-select: none; /* 古いIE対応 */
}

.thumbnail-container .thumbnail-images {
    display: flex;
    justify-content: left;
    align-items: center;
    overflow: hidden;
}

.thumbnail-container .thumbnail-images button {
    margin-right: 10px;
}

.thumbnail-container .thumbnail-images button img {
    width: 100px;
    height: 60px;
    cursor: pointer;
    user-select: none;
	-webkit-user-drag: none;
	-moz-user-select: none;
	object-fit: contain;
    background-color: #ccc;
}

.thumbnail-container .thumbnail-images button img.active {
    box-sizing: border-box;
    border: 2px solid #000;
}

.thumbnail-container .thumbnail-images button img[disabled="true"] {
    pointer-events: none;
}

.thumbnail-container .arrow button {
    margin: 0 10px;
    background: #ccc;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 2em;
    height: 2em;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    opacity: .7;
    padding: 0;
    z-index: 1;
}

.thumbnail-container .arrow button svg {
    fill: #000;
    width: 1.2em;
    height: 1.2em;
}

.thumbnail-container button {
    border: none;
    padding: 0;
}

#ctrBtn {
    position: absolute;
    bottom:0;
    margin: 10px 0;
}

#ctrBtn .selectBtn {
    position: relative;
    background: linear-gradient(180deg, #ddd, #b3b3b3 70%, #9a9a9a);
    height: 30px;
    padding: 5px 10px;
    margin-left: 10px;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 0 5px #3d3d3d;
    cursor: pointer;
    z-index: 99;
}

#ctrBtn .selectBtn.active {
    background: linear-gradient(180deg, #c23100, #cd6000 70%, #ffad1e);
}

#ctrBtn .selectBtn::before {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, rgb(255, 255, 255), rgba(255, 255, 255, 0.8) 65%, rgb(255, 255, 255, 0));
    width: 90%;
    height: 18px;
    border-radius: 18px;
    opacity: .3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#ctrBtn .selectBtn.active::before {
    content: '';
    opacity: .5;
}

#ctrBtn .selectBtn span {
    position: relative;
    color: #000;
    font-size: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 999;
}