.bt_container {
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.bt_container img {
  width: 100%;
  height: auto;
}

.bt_container .bt_btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: red;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
}

.bt_container .bt_btn:hover {
  background-color: green;
}

    bs-body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 2rem;
      background: #111;
      color: #fff;
      position:fixed
      text-align: center;
    }

    #openVideoBtn {
      padding: 12px 24px;
      font-size: 18px;
      cursor: pointer;
      background-color: #d62828;
      color: white;
      border: none;
      border-radius: 8px;
      transition: background-color 0.3s ease;
    }

    #openVideoBtn:hover {
      background-color: #a61c1c;
    }

    /* Popup pozadina */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
      z-index: 1000;
      position:fixed

    }

    /* Animacija */
    .popup-content {
      animation: zoomIn 0.3s ease;
    }

    @keyframes zoomIn {
      from {
        transform: scale(0.8);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Popup sadržaj */
    .popup-content {
      background: rgba(0, 0, 0, 0.85);
      border-radius: 10px;
      max-width: 90%;
      width: 800px;
      max-height: 90%;
      overflow: hidden;
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
      display: flex;
      flex-direction: column;
      position:fixed

    }

    /* Zaglavlje popup-a */
    .popup-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(20, 20, 20, 0.5);
      padding: 10px 20px;
      color: #fff;
    }

    .popup-header h2 {
      margin: 0;
      font-size: 18px;
    }

    .close-btn {
      background: none;
      border: none;
      color: #fff;
      font-size: 26px;
      cursor: pointer;
      transition: color 0.3s ease, transform 0.2s ease;
    }

    .close-btn:hover {
      color: #ff5c5c;
      transform: scale(1.2);
    }

    video {
      width: 100%;
      height: auto;
      background: black;
    }

    /* Komandna traka ispod videa */
    .command-bar {
      background: rgba(255, 255, 255, 0.05);
      padding: 10px 20px;
      color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
    }

    .command-bar a {
      color: #ffcc00;
      text-decoration: none;
      margin-left: 10px;
    }

    .command-bar a:hover {
      text-decoration: underline;
    }

    /* Responsive dizajn */
    @media (max-width: 768px) {
      .popup-content {
        width: 95%;
      }

      .popup-header h2 {
        font-size: 16px;
      }

      .command-bar {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
      }

      video {
        max-height: 40vh;
        height: auto;

      }
    }

/* Dodajte u CSS parent stranice */
@media (max-width: 768px) {
    #3d-viewer-frame {
        height: 500px !important;
    }
}
@media (max-width: 480px) {
    #3d-viewer-frame {
        height: 400px !important;
    }
}
