/* Post Media Modal - Lightbox for Images and Videos */

.post-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-media-modal.active {
    display: flex;
    opacity: 1;
}

.post-media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.post-media-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-media-modal.active .post-media-modal-content {
    transform: scale(1);
}

.post-media-modal-media {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.post-media-modal-video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.post-media-modal-close,
.post-media-modal-prev,
.post-media-modal-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.post-media-modal-close:hover,
.post-media-modal-prev:hover,
.post-media-modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.post-media-modal-close {
    top: 20px;
    right: 20px;
}

.post-media-modal-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.post-media-modal-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.post-media-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .post-media-modal-content {
        max-width: 100vw;
        max-height: 100vh;
    }

    .post-media-modal-image,
    .post-media-modal-video {
        max-height: 100vh;
        border-radius: 0;
    }

    .post-media-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .post-media-modal-prev,
    .post-media-modal-next {
        width: 40px;
        height: 40px;
    }

    .post-media-modal-prev {
        left: 10px;
    }

    .post-media-modal-next {
        right: 10px;
    }

    .post-media-modal-counter {
        bottom: 10px;
    }
}


