/* Media Overlay Styles */
.itoc360-media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.itoc360-media-overlay.active {
    display: flex;
    opacity: 1;
}

.itoc360-media-modal {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.itoc360-media-overlay.active .itoc360-media-modal {
    transform: scale(1);
}

.itoc360-media-modal.type-image {
    background: transparent;
    box-shadow: none;
    max-width: fit-content;
}

.itoc360-media-modal.type-video {
    aspect-ratio: 16/9;
}

.itoc360-media-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.itoc360-media-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.itoc360-media-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itoc360-media-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.itoc360-media-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Press Content Styles */
.itoc360-media-modal.type-press {
    background: #fff;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.press-modal-scroll {
    overflow-y: auto;
    padding: 60px;
}

.press-modal-loading {
    padding: 100px;
    text-align: center;
}

.itoc360-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #00A88E;
    border-radius: 50%;
    animation: itoc360-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes itoc360-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .itoc360-media-modal {
        width: 95%;
    }

    .press-modal-scroll {
        padding: 30px 20px;
    }
}