/* Auto Zoom モーダルスタイル */
.auto-zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.auto-zoom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
}

.auto-zoom-modal-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    margin: auto;
    transition: 0.3s;
    animation: autoZoomIn 0.6s;
}

@keyframes autoZoomIn {
    from {
        transform: scale(0.1);
    }
    to {
        transform: scale(1);
    }
}

.auto-zoom-modal-caption {
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    margin-top: 10px;
}

.auto-zoom-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    transition: 0.3s;
}

.auto-zoom-modal-close:hover,
.auto-zoom-modal-close:focus {
    color: #bbb;
}

.auto-zoom-scalable {
    cursor: zoom-in !important;
    transition: 0.3s;
}

.auto-zoom-scalable:hover {
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media only screen and (max-width: 700px) {
    .auto-zoom-modal-content {
        max-width: 95%;
    }
    
    .auto-zoom-modal-close {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }
}