.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: block;
}

.modal.visible {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-container {
    width: 100%;
    height: 100%;
    user-select: none;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-zoom-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal,
.fullscreen-toggle {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out;
}

.close-modal:hover,
.fullscreen-toggle:hover,
.download-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.close-modal {
    top: 20px;
    right: 20px;
    font-size: 24px;
    z-index: 10000;
}

.fullscreen-toggle {
    top: 20px;
    right: 70px;
    font-size: 18px;
    z-index: 10000;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}