
    * { margin:0; padding:0; box-sizing:border-box; font-family: "Gilroy", Sans-serif; }

    /* Основні Flexbox-стилі для притискання футера до низу */
    html, body {
        height: 100%;
    }
    body {
        display: flex;
        flex-direction: column;
        background: #222;
        color: #fff;
        font-family: Arial, sans-serif;
    }

    /* Контейнер для основного вмісту, який розтягується */
    main {
        flex: 1;
        padding-top: 120px; /* Відступ, щоб контент не перекривався навігацією */
    }

    a { text-decoration:none; color:inherit; }
    ul { list-style:none; }
    img { max-width:100%; display:block; }

    .nav {
      position: fixed; top: 0; left: 0; width: 100%;
      background: rgba(0,0,0,0.8);
      color: #fff; z-index: 100;
      display: flex; justify-content: space-between; align-items: center;
      padding: 0px 20px;
    }

    .nav-logo img {height: 100px; width: auto; }
    .nav-list { display:flex; gap:80px; }
    .nav-list-item a { color:#fff; font-weight:500; transition:opacity 1.5s; }
    .nav-list-item a:hover { opacity:0.7; }
    .hamburger { display:none; cursor:pointer; }
    .hamburger-line { width:25px; height:3px; background:#fff; margin:5px 0; }
    .social-icons-nav {display: flex; text-align: center; align-items: center; gap: 20px; }
    .social-icons-nav a { font-size: 32px; color: #fff; transition: color 0.3s ease; }
    .social-icons-nav a.fa-facebookk:hover { color: #3b5998; }
    .social-icons-nav a.fa-instagramm:hover { color: #e1306c; }
    .social-icons-nav a.fa-telegramm:hover { color: #229ED9; }
    .social-icons-nav a img {
        filter: brightness(-1) invert(1);
        transition: filter 0.3s ease;
        height: 45px;
    }

    h1 {
      text-align: center;
      padding-top: 20px;
      font-size: 2.4rem;
      text-transform: uppercase;
    }

.gallery {
    display: flex;
    gap: 20px;
    padding: 40px;
    overflow-x: scroll; /* Скролбар завжди видимий */
    overflow-y: hidden;
    max-width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #444 #fff; /* Для Firefox: повзунок (темно-сірий) і фон (білий) */
    align-items: center;
}

/* Стилизация скролла для Chrome/Safari */
.gallery::-webkit-scrollbar {
    height: 10px;
}

.gallery::-webkit-scrollbar-track {
    background: #fff; /* Білий фон скрол-смуги */
}

.gallery::-webkit-scrollbar-thumb {
    background-color: #444; /* Темно-сірий повзунок */
    border-radius: 6px;
    border: 2px solid #fff; /* Біла рамка навколо повзунка */
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px 2px #000000;
    flex-shrink: 0;
}

.gallery-item img {
    max-height: 550px;
    width: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.95);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      max-width: 90%;
      max-height: 90%;
      position: relative;
    }
    .modal-content img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 12px;
    }

    /* Стилі для кнопок навігації в модалці */
    .modal-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 15px;
        cursor: pointer;
        font-size: 24px;
        z-index: 1001;
    }
    #prev-btn { left: 10px; }
    #next-btn { right: 10px; }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      z-index: 1000;
    }
    .pulsing {
        animation: pulse 1.5s infinite ease-in-out;
    }
    .clicked {
        animation: clickEffect 0.3s ease;
    }
    .nota-burger{display: none;}
    .footer {
        background-color: #373737;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }


/* --- Нові стилі для пагінації --- */
.pagination-wrapper {
  text-align: center;
  margin: 40px auto;
  font-size: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap; /* Додаємо, щоб кнопки не виходили за межі екрана на мобільних пристроях */
  justify-content: center;
}

.page-link {
  background: #444;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 500;
  min-width: 40px; /* Щоб усі кнопки були однакової ширини */
  text-align: center;
  border: 2px solid transparent; /* Додаємо прозору рамку за замовчуванням */
}

.page-link:hover {
  background: #666;
}

.page-link.current-page {
    background: #444444;
    color: #ffffff;
    cursor: default;
    font-weight: bold;
    border-color: #fff;
}

.page-link.current-page:hover {
  background: #fff; /* Без зміни кольору при наведенні на поточну сторінку */
}


    @keyframes pulse {
        0%   { transform: scale(1);   opacity: 1; }
        50%  { transform: scale(1.1); opacity: 0.9; }
        100% { transform: scale(1);   opacity: 1; }
    }
    @keyframes clickEffect {
        0%   { transform: scale(1); }
        50%  { transform: scale(0.85); }
        100% { transform: scale(1); }
    }
    @media(max-width:1500px) {
      .nav-list {gap:60px;}
    }
    @media(max-width:1200px) {
      .nav-list {gap:25px;}
    }
    @media(max-width:1000px) {
      .nav-list {gap:10px;}
    }
    @media(max-width:700px) {
      .nav-list { display:none; position:absolute; top:80px; left:0; background:rgba(0, 0, 0, 0.7); width:100%; flex-direction:column;padding-left: 2rem; padding-bottom: 1rem; padding-top: 1rem; }
      .nav-list.show { display:flex; }
      .hamburger { display:block; }
      .social-icons-nav { display: none; }
      #play-melody{ display: none; }
      .nota-burger{
        display: flex;
        align-items: center;
        justify-content: space-between;}
      .nav img {height: 80px;}
      .gallery-item img {max-height: none;}
      .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            padding: 40px;
        }
        .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 0 20px 2px #000000;
        height: fit-content;}
        }
    @media(max-width:570px) {
        .modal-nav-btn { display: none; } /* Приховуємо стрілки на дуже маленьких екранах */
    }
