/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Photo Modal Styles */
.modal-photo {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
}

.modal-photo img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-photo .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    z-index: 10;
}

.modal-photo .modal-close:hover {
    background: white;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.photo-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.photo-prev { left: 20px; }
.photo-next { right: 20px; }

.photo-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
}

.photo-info h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: #000;
    margin: 0 0 var(--spacing-xs) 0;
}

.photo-info p {
    font-size: var(--text-sm);
    color: #333;
    margin: 0;
}

/* Video Modal */
.modal-video {
    max-width: 1400px;
    width: 90%;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    border: none;
}

.modal-video .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
}

.video-modal-info {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.video-modal-info h3 {
    margin: 0;
    color: #000;
    font-family: var(--font-serif);
}

/* Album Modal */
.modal-album {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: var(--bg-primary);
}

.modal-album .modal-header {
    border-bottom: 1px solid var(--border-color);
}