/**
 * Event Post Manager Frontend Styles
 * 画像表示とLightboxのスタイル
 */

/* 画像のスタイル */
.event-thumbnail {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.event-thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    opacity: 0.95;
}

.event-image-link {
    display: inline-block;
    max-width: 350px;
}

/* Lightbox */
.event-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.event-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.event-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
}

.event-lightbox-close:hover {
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .event-lightbox img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .event-lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}