.modal-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-gallery.active {
    display: flex;
}

.modal-gallery__content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-gallery__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-gallery__close:hover {
    color: var(--primary-dark);
}

.gallery-main {
    position: relative;
}

.gallery-main__image img {
    width: 100%;
    border-radius: var(--border-radius-md);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    transition: var(--transition-base);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-nav.prev {
    left: -2rem;
}

.gallery-nav.next {
    right: -2rem;
}