.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgb(243 110 17 / 54%);
    color: white;
    border: none;
    border-radius: 20%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 2001;
}

.gallery-modal .arrow:hover {
    background: #f36e11c7;
}

.gallery-modal .arrow.left {
    left: 20px;
}

.gallery-modal .arrow.right {
    right: 20px;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgb(243 110 17 / 62%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 2001;
}

.gallery-modal-close:hover {
    background: #f36e11ba;
}

@media (max-width: 768px) {
    .gallery-modal {
        padding: 10px;
    }
    
    .gallery-modal .arrow {
        width: 30px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-modal .arrow.left {
        left: 10px;
    }
    
    .gallery-modal .arrow.right {
        right: 10px;
    }
}