.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal-container.active {
    transform: scale(1);
    opacity: 1;
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.modal-close-button:hover {
    transform: scale(1.1);
    background-color: #f3f4f6;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.carousel-arrow.left {
    left: 1rem;
}

.carousel-arrow.right {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.modal-content {
    padding: 2rem;
}

@media (max-width: 640px) {
    .modal-container {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-image {
        height: 250px;
    }

    .modal-content {
        padding: 1rem;
    }

    .carousel-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .carousel-arrow.left {
        left: 0.5rem;
    }

    .carousel-arrow.right {
        right: 0.5rem;
    }
}
