/* フォトスライドショーのスタイル */

.award-contents-photo-slideshow {
    margin: 30px 0;
}

/* 横スクロールコンテナ */
.photo-scroll-container {
    overflow-x: auto;
    padding-bottom: 8px;
}

/* スクロールバーのスタイリング */
.photo-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.photo-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.photo-scroll-container::-webkit-scrollbar-thumb {
    background: #c89826;
    border-radius: 3px;
}

.photo-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a77010;
}

/* 横スクロールラッパー */
.photo-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

/* 写真アイテム */
.photo-item {
    width: 300px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-wrapper {
    position: relative;
    width: 300px;
    height: auto;
    min-height: 100px;
    max-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transform: scale(0.96);
}

.photo-wrapper:hover {
    transform: scale(1.00);
}

.photo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-wrapper.spoiler .photo-image {
    filter: blur(7px);
}

.spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.photo-comment {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 0 10px;
    word-wrap: break-word;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.btn-upload-photo.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photo-upload-btn-box {
    margin: 20px 0;
    text-align: center;
}

/* 画像拡大モーダル */
#photoZoomModal .modal-content {
    background: transparent;
    border: none;
}

#photoZoomModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

#photoZoomModal img {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* アップロードモーダル */
#uploadPhotoModal .form-group {
    margin-bottom: 15px;
}

#uploadPhotoModal .form-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .photo-item {
        width: 250px;
        flex: 0 0 250px;
    }
    
    .photo-wrapper {
        width: 250px;
    }
    
    .photo-scroll-wrapper {
        gap: 15px;
    }
    
    .photo-comment {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .photo-item {
        width: 200px;
        flex: 0 0 200px;
    }
    
    .photo-wrapper {
        width: 200px;
    }
    
    .photo-scroll-wrapper {
        gap: 10px;
    }
    
    .award-contents-photo-slideshow {
        margin: 20px 0;
    }
}