/* Gallery grid container */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    justify-items: center;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    box-sizing: border-box;
}

/* Gallery images */
.gallery-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(34,34,59,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    display: block;
}

.gallery-photo:hover {
    transform: scale(1.07) translateY(-6px);
    box-shadow: 0 8px 32px rgba(58,134,255,0.18);
    z-index: 2;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(34,34,59,0.85);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    background: #18191a;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(34,34,59,0.10);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #fff;
    background: rgba(34,34,59,0.7);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #845ec2;
}