/* スライドショーコンテナ */
.ss-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
/*    aspect-ratio: 16 / 9;
    border: 1px solid #ddd;
    background: #000;*/
}

.ss-wrapper {
    display: flex;
    height: 100%;
    transition: transform 1.0s ease-in-out;
}

.ss-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ss-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* コントロール（中央下部） */
.ss-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.ss-controls button {
/*    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 14px;*/
	background: none;
	border: none;
    padding: 5px 30px;
    cursor: pointer;
	opacity: 1;
}

.ss-controls button:hover {
/*    background: rgba(255, 255, 255, 0.8);
    color: black;*/
	transition: var(--transition)
}

/* モーダル */
/* モーダル */
.ss-modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    /* Always flex, but visibility/opacity hide it */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ss-modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* 単一画像表示用（矢印非表示） */
.ss-modal.is-single .ss-modal-prev,
.ss-modal.is-single .ss-modal-next {
    display: none;
}

.ss-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#ss-modal-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: auto;
}

.ss-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.ss-modal-prev,
.ss-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ss-modal-prev {
    left: -60px;
}

.ss-modal-next {
    right: -60px;
}

.ss-modal-prev img,
.ss-modal-next img {
    display: block;
    width: auto;
    height: auto;
	margin: auto;
}
@media (max-width: 850px) {
.ss-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}
.ss-modal-prev img,
.ss-modal-next img {
width: 80%;
}
}
@media (max-width: 476px) {
.ss-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}
.ss-modal-prev img,
.ss-modal-next img {
width: 50%;
}
    .ss-modal-prev {
        left: 5px;
    }

    .ss-modal-next {
        right: 5px;
    }
.ss-modal-close {
    position: absolute;
    top: 20%;
    right: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

}