.gallery-container {
    position: relative;
    min-height: 1500px;
    margin: 0 auto;
    padding: 20px;
}

.photo-item {
    position: absolute;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    background-color: var(--light-color);
    padding: 10px;
}

.photo-item:hover {
    transform: scale(1.05);
    z-index: 100 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.mode-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.photo-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .gallery-container {
        min-height: 2000px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
    }
} 