/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    background-color: var(--color-background);
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 24px;
    overflow: hidden;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-background), transparent);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: white;
    transform: rotate(90deg);
}

.close-modal svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: calc(var(--spacing-unit) * 8);
}

.modal-title {
    font-size: 3rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.modal-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.modal-cta {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4);
    background: linear-gradient(135deg, rgba(184, 159, 93, 0.05), rgba(184, 159, 93, 0.02));
    border-radius: 16px;
}

.modal-cta p {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
}