/* ÐžÐ±Ñ‰Ð¸Ðµ ÑÑ‚Ð¸Ð»Ð¸ */
body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ° */
h1 {
    font-family: "Modern No. 20", "Script MT Bold";
    font-size: 50px;
    text-align: center;
    margin-top: 30px;
}

/* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ Ð¼Ð°Ñ€ÐºÐµÑ€Ñ‹ ÑÐ¿Ð¸ÑÐºÐ° */
ul, ol {
    list-style-type: none;
    padding: 0;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð¸Ð¾Ð³Ñ€Ð°Ñ„Ð¸Ð¸ */
.bio {
    text-align: center;
    font-family: "Bodoni MT", sans-serif;
    font-size: 20px;
    max-width: 500px;
    margin: 0 auto;
    color: lightgrey;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ„Ð¾Ñ‚Ð¾Ð³Ñ€Ð°Ñ„Ð¸Ð¸ Ð¿Ñ€Ð¾Ñ„Ð¸Ð»Ñ */
.profile-picture {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¸Ð¼ÐµÐ½ */
#name1, #name2 {
    font-family: "Modern No. 20", "Script MT Bold";
    font-size: 30px;
    text-align: center;
    margin-bottom: 5px;
}

#name3 {
    font-size: 18px;
    color: lightgrey;
    text-align: center;
    margin-top: 8px;
}

#name4 {
    margin-top: -12px;
    text-align: right;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ "Ð½Ð°Ð²ÐµÑ€Ñ…" */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: none;
}

.scroll-to-top:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.profile-picture img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ¾Ð½Ñ‚Ð°ÐºÑ‚Ð¾Ð² */
#contacts {
    text-align: center;
    margin-top: 50px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ */
.work {
    text-align: center;
    width: 400px;
    margin: 45px auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.work img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ Ð¾ÐºÐ½Ð° */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(2px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    position: fixed; /* Ð¤Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð°Ñ Ð¿Ð¾Ð·Ð¸Ñ†Ð¸Ñ */
    top: 50%; /* ÐŸÐ¾Ð·Ð¸Ñ†Ð¸Ñ ÑÐ²ÐµÑ€Ñ…Ñƒ Ð½Ð° 50% */
    left: 50%; /* ÐŸÐ¾Ð·Ð¸Ñ†Ð¸Ñ ÑÐ»ÐµÐ²Ð° Ð½Ð° 50% */
    transform: translate(-50%, -50%);
}

/* Ð—Ð°ÐºÑ€Ñ‹Ñ‚ÑŒ ÐºÐ½Ð¾Ð¿ÐºÑƒ */
.close {
    position: flex;
    right: -8px;
    color: #ffffff;
    padding: 18px;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1;
}

.close:hover, .close:focus {
    color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ð¾Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ */
.main-image {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(2.3); /* Ð˜Ð·Ð¼ÐµÐ½Ð¸Ñ‚Ðµ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ðµ Ð½Ð° ÑÐ²Ð¾Ðµ ÑƒÑÐ¼Ð¾Ñ‚Ñ€ÐµÐ½Ð¸Ðµ */
}

/* Ð”Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ñ‹Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ */
.additional-images {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.additional-images img {
    width: 100px;
    height: 100px;
    margin: 0 10px;
    cursor: pointer;
}

.additional-images img:hover {
    opacity: 0.7;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÑÑ‚Ñ€ÐµÐ»Ð¾Ðº */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.left-arrow {
    left: -10px;
}

.right-arrow {
    right: -10px;
}

/* Ð¡ÐºÑ€Ñ‹Ð²Ð°ÐµÐ¼ Ð¾ÑÐ½Ð¾Ð²Ð½Ð¾Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ Ð¸ ÑÑ‚Ñ€ÐµÐ»ÐºÐ¸ Ð² Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð¼ Ð¾ÐºÐ½Ðµ Ð½Ð° ÑÐµÐ½ÑÐ¾Ñ€Ð½Ñ‹Ñ… ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð²Ð°Ñ… */
@media (hover: none) {
    .main-image,
    .left-arrow,
    .right-arrow {
        display: none !important;
    }

    .close {
    position: fixed;
    top: calc(50% - 20px); /* Выравниваем по вертикали относительно центра окна браузера */
    right: -8px;
    transform: translateY(-50%); /* Корректируем положение крестика по вертикали */
    color: #ffffff;
    padding: 18px;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1;
    }

    .bio {
    text-align: center;
    font-family: "Bodoni MT", sans-serif;
    font-size: 20px;
    max-width: 320px;
    margin: 0 auto;
    color: lightgrey;
    }
    
    .work {
    text-align: center;
    width: 320px;
    margin: 45px auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .additional-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90vw; /* Пропорциональная ширина относительно ширины экрана */
        max-width: 500px; /* Максимальная ширина, чтобы не превышать ширину контейнера */
        margin-top: 20px;
    }
    .additional-images img {
        width: 100%; /* Ширина изображения равна ширине его контейнера */
        height: auto; /* Высота изображения равна высоте его контейнера */
        max-width: 100%; /* Максимальная ширина изображения, чтобы не превышать ширину экрана */
        object-fit: contain; /* Гарантирует полное отображение изображения в контейнере */
        margin-bottom: 20px;
    }
    .modal-content {
        overflow-y: auto;
    }
}

.modal-open {
    overflow: hidden;
}
