/* font-family: 'Amatic SC', cursive;      400, 700      title
   font-family: 'Jost', sans-serif;        400           nav also
   font-family: 'Poiret One', cursive;     400           text */

body {
    margin: 0;
    padding: 0;
    color: #808080;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Poiret One', cursive;
    background-color: #f5f5f5;
}

*, *:before, *:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.container_small {
    width: 100%;
    max-width: 800px;
}

/* Navigation */
.nav {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
}

.nav_item, .nav_item a {
    color: #808080;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s linear;
    font-family: 'Jost', sans-serif;
}

.nav_item_active a, .nav_item a:hover {
    color: #ffdd00;
}

/* Section */
.section {
    text-align: center;
}

.section_title {
    font-family: 'Amatic SC', cursive;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Buttons */
.gallery_buttons {
    margin: 20px 0;
}

.gallery_buttons .container {
    display: flex;
    justify-content: center;
}

.gallery_btn {
    margin: 0 15px;
    border: 1px solid transparent;
    border-radius: 15px;
    background-color: #fff;
    transition: background-color 0.3s linear;
    color: #000;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
}

.gallery_btn:hover {
    background-color: #ffdd00;
}

.gallery_btn:active {
    bottom: -2px;
}

/* Gallery */
.gallery {
    margin-bottom: 50px;
}

.gallery .container {
    display: flex;
    flex-wrap: wrap;
}

.gallery_item {
    margin: 15px 10px;
    overflow: hidden;
    width: calc(33.33333% - 20px);
    transition: all 0.5s linear;
}

.gallery_name {
    text-align: center;
    font-weight: 700;
    font-size: 20px;
}

.gallery_item img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.hide {
    display: none;
}

/* Footer */
.footer {
    margin: 50px 0 20px 0;
}

.footer_bio {
    display: flex;
    align-items: center;
}

.footer_bio_img {
    width: 25%;
}

.footer_bio_img img {
    width: 60%;
    border-radius: 999px;
}

.footer_bio_text {
    width: 75%;
}

.footer_bio_text:before, .footer_bio_text:after {
    content: "";
    display: block;
    width: 50%;
    height: 1px;
    background-color: #3366ff;
    margin: 0 auto;
}

.footer_social {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.social_item {
    text-align: center;
}

.social_icon {
    display: flex;
    align-items: center;
    font-size: 48px;
}

.social_icon i {
    margin: 10px auto; 
}

.social_name a {
    border-radius: 999px;
    border: 1px transparent solid;
    padding: 10px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.whatsapp, .whatsapp_name a {
    color: #43d854;
    transition: color .3s linear;
}

.whatsapp_name a:hover {
    color: #fff;
    background-color: #43d854;
}

.telegram, .telegram_name a {
    color: #27aade;
    /*background-color: #e5f6ff;*/
    transition: color, background-color .3s linear;
}

.telegram_name a:hover {
    color: #fff;
    background-color: #27aade;
}

.instagram, .instagram_name a {
    color: #3f729b ;
    /*background-color: #f9f0ff;*/
    transition: color, background-color .3s linear;
}

.instagram_name a:hover {
    color: #fff;
    background: #3f729b;
}

.youtube, .youtube_name a {
    color: #FF0000;
    transition: color, background-color .3s linear;
}

.youtube_name a:hover {
    color: #fff;
    background-color: #FF0000;
}

.footer_contacts {
    display: flex;
    justify-content: center;
}

.footer_contact_item {
    margin: 20px 50px 10px;
}

.footer_contact_item a {
    text-decoration: none;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* Copyright */
.copyright {
    background-color: #5b5858;
    padding: 10px 0;
}

.copyright .container {
    text-align: center;
    color: #fff;
}

/* Media */
@media (max-width: 600px) {
    /* Gallery */
    .gallery_item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 460px) {
    /* Navigation */
    .nav {
        display: none;
    }

    /* Section */
    .section {
        margin-top: 20px;
    }

    /* Gallery Buttons */
    .gallery_btn {
        margin: 0 10px;
    }

    /* Footer */
    .footer_social {
        display: block;
    }
}

@media (max-width: 450px) {
    /* Gallery Buttons */
    .gallery_btn {
        margin: 0 1px;
        padding: 5px;
    }

    /* Footer */
    .footer_contacts {
        display: block;
        text-align: center;
    }
}

@media (max-width: 420px) {
    /* Gallery Buttons */
    .gallery_btn {
        margin: 0 5px;
    }

    /* Gallery */
    .gallery_item {
        width: 100%;
    }
}