/* Základní nastavení */
body {
  margin: 0;
  font-family: sans-serif;
  background: #fff;
  color: #333;
  display: flex;
  justify-content: center;
}

/* Obsahový wrapper */
.wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hlavička */
header {
  padding: 20px 0;
}

.logo img {
  height: 300px;
  width: auto;
  display: block;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.menu {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.menu a {
  text-decoration: none;
  color: #333;
  padding: 10px;
  position: relative;
}

.menu a.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: #333;
}

/* Galerie bloky */
.gallery-block {
  margin-bottom: 50px;
}

/* Miniatury */
.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 0;
}

.thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.thumb img:hover {
  transform: scale(1.05);
}

.thumb.placeholder {
  background: #eee;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border: 1px dashed #ccc;
}

/* Panorama */
.panorama {
  margin: 20px 0;
}

.panorama iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.panorama-placeholder {
  background: #f9f9f9;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border: 1px dashed #ccc;
}

/* 🔄 3D blok: 1x velké + 2x malé */
.object-3d-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.object-3d-large {
  flex: 2;
}

.object-3d-large iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.object-3d-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔧 FIX: Malé 3D přímo ve sloupci bez extra divu */
.object-3d-column > iframe {
  width: 100%;
  height: 300px;
  border: none !important;
  display: block;
}

/* Placeholder pro malé 3D */
.object-3d-column > .placeholder {
  height: 420px;
  background: #eee;
  color: #999;
  text-align: center;
  padding: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.object-3d-large.placeholder {
  background: #eee;
  color: #999;
  text-align: center;
  padding: 20px;
  border: 1px dashed #ccc;
}

/* Patička */
footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: #888;
}

/* Modal režim */
body.modal {
  margin: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.modal-container {
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Tlačítko Zavřít */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10;
  font-size: 16px;
}

.close:hover {
  background: rgba(0, 0, 0, 0.8);
}



.object-3d-single {
  margin: 30px 0;
}

.object-3d-single iframe {
  width: 100%;
  height: 600px;
  border: none;
}