body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: url('gallery/lastmap.png') center/cover no-repeat;
    filter: blur(4px);
    z-index: -1;
}

.navbar {
    padding: 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: rgba(0, 0, 0, 1);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    color: black;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    font-weight: bold;
    padding: 20px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 5px 2px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
}

.gallery-container {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.nav-button {
    background: linear-gradient(145deg, rgba(240, 240, 240, 0.95), rgba(217, 217, 217, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-weight: bold;
}

.nav-button#prevBtn {
    left: 20px;
}

.nav-button#nextBtn {
    right: 20px;
}

.nav-button:hover {
    background: linear-gradient(145deg, rgba(220, 220, 220, 0.98), rgba(190, 190, 190, 0.98));
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.nav-button:active {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.image-container {
    perspective: 1000px;
}

.image {
    width: 300px;
    height: auto;
    transition: transform 0.1s ease-out;
    user-select: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.image-info {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.image-info:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.counter-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scale(2);
    transform-origin: center bottom;
}

@media (max-width: 768px) {
    .menu-toggle {
        color: rgba(0, 0, 0, 0.9);
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
        margin: 0;
        border-radius: 0;
    }

    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .nav-button#prevBtn {
        left: 10px;
    }

    .nav-button#nextBtn {
        right: 10px;
    }

    .image {
        width: 250px;
    }
}