﻿    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      overflow-x: hidden;
    }

    .rolik {
      display: flex;
      justify-content: center;
      gap: 60px;
      padding: 40px 20px;
      background-color: #1b1411;
      flex-wrap: wrap;
    }

    .photo-wrapper {
      position: relative;
      width: 300px;
      height: auto;
      cursor: pointer;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .photo-wrapper:hover {
      transform: scale(1.02);
    }

    .photo-wrapper img {
      width: 100%;
      height: auto;
      display: block;
      transition: opacity 0.3s ease;
    }

    .photo-wrapper video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .photo-wrapper:hover img {
      opacity: 0;
    }

    .photo-wrapper:hover video {
      opacity: 1;
    }

    .video-modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
    }

    .video-modal.open {
      display: flex;
    }

    .video-modal video {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
    }

    .video-modal .close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
    }

    @media (max-width: 768px) {
      .article-navigation ul {
        grid-template-columns: 1fr;
      }

      .share-buttons {
        flex-direction: column;
        align-items: center;
      }

      .share-btn {
        width: 100%;
        max-width: 250px;
      }

      .rolik {
        gap: 30px;
      }

      .photo-wrapper {
        width: 280px;
      }
    }

    * {
      scroll-behavior: smooth;
}

    :target {
      scroll-margin-top: 130px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    [id] {
      scroll-margin-top: 130px;
    }

    @media (max-width: 768px) {
      :target,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      [id] {
        scroll-margin-top: 110px;
      }
    }

    @media (max-width: 768px) {
    .buttons-container,
    .share-block {
        width: calc(100% - 40px);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }
}
  

