/* --- LIGHTBOX MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#lightbox-caption {
    margin-top: 1.2rem;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-rose);
    transform: scale(1.1);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--primary-rose);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

@media (max-width: 768px) {
    .modal-prev {
        left: 10px;
        padding: 0.6rem 0.8rem;
    }

    .modal-next {
        right: 10px;
        padding: 0.6rem 0.8rem;
    }

    .modal-close {
        top: 15px;
        right: 20px;
    }
}

/* --- NAVIGATION BUTTONS --- */
.nav-btn {
    background: var(--bg-blush);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-rose);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(255, 82, 123, 0.1);
}

.nav-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 82, 123, 0.25);
}
