/* Основни настройки */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px;
    background: #3a3a3a; /* сив фон */
    font-family: Arial, sans-serif;
    color: white;
}


/* Заглавие */

h2 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    max-width: 700px;
    margin: auto;
}


/* Галерия */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
}


.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}


.gallery img:hover {
    transform: scale(1.05);
}


/* Телефон */

@media(max-width:700px){

    body {
        padding:20px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height:300px;
    }

}


/* LIGHTBOX */

#lightbox {

    display:none;

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.95);

    justify-content:center;
    align-items:center;

    z-index:9999;
}


#lightbox img {

    max-width:90%;
    max-height:90%;

    object-fit:contain;

    border-radius:10px;

}


#close {

    position:absolute;

    top:20px;
    right:40px;

    font-size:50px;
    color:white;

    cursor:pointer;

}
/* Галерия */
.gallery img,
.lightbox-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover,
.lightbox-img:hover {
    transform: scale(1.05);
}


/* Fullscreen снимка */
#lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}


#close {
    position: absolute;
    right: 40px;
    top: 20px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}
.button.primary,
.button.primary:visited,
.button.primary:hover,
.button.primary:active {
    color: #000000 !important;
    text-decoration: none;
}
.button.primary {
    display: inline-block;
    background: #49fcd4;
    color: rgb(0, 0, 0) !important;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}


.button.primary:hover {
   
    transform: scale(1.05);
}


.button.primary:visited {
    color: rgb(0, 0, 0) !important;
}
.contact-button {
    text-align: center;
    margin-top: 30px;
}
.kris-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px auto;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 50px;
}


.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}


.gallery img:hover {
    transform: scale(1.05);
}



/* таблет */
@media(max-width:1000px){

    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

}



/* телефон */
@media(max-width:600px){

    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }


    .gallery img {
        border-radius: 6px;
    }

}