h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #22223b;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 8px #e0c3fc55;
}

/* Gallery grid container */


body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #f7f7f9 0%, #e0c3fc 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


a {
    color: #3a86ff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

a:hover {
    color: #845ec2;
    text-decoration: underline;
}


.container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(34, 34, 59, 0.08);
    text-align: center;
    margin: 5% auto;
    max-width: 700px;
    z-index: 1;
    position: relative;
}


div {
    border: none;
}


.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;
}