/* Obecné styly */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #f8f9fa;
  color: #333;
  width: 100%;
  height: 100%;
}

#mainContainer {
  height: calc(100vh - 56px);
  padding: 0;
}

.row {
  margin: 0;
}

#adminForm {
  background-color: #f8f9fa;
  border-right: 1px solid #ccc;
}


/* Galerie obrázků */
.image-card {
  cursor: pointer;
}

.card-title
{
    margin: 2px;
    overflow-wrap: no-wrap;
    white-space: nowrap;
    overflow: hidden;
}

.card-body
{
    padding: 4px !important;
}

/* Fade-in efekt pro obrázky */
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 1s forwards;
}

@keyframes fadeInAnimation {
  to { opacity: 1; }
}

/* Panel pro zobrazení aktuálního filtru a počtu obrázků */
#filter-info {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #333;
}

/* Skupiny tagů */
.tag-group {
  margin-bottom: 15px;
  text-align: left; /* Zarovnáno doleva */
}

.tag-group h5 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000000;
}

/* Kontejner tlačítek – vynucení horizontálního uspořádání */
.tag-group .btn-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

/* Vynucení, aby tlačítka uvnitř btn-group měly svou přirozenou šířku */
.tag-group .btn-group > button {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  margin-left: 0 !important;
}

/* Tlačítka tagů */
.tag-btn {
  border-radius: 5px !important;  /* Mírné zaoblení rohů */
  padding: 5px 10px;
  margin: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s, color 0.3s;
}

/* Aktivní tlačítka tagů */
.tag-btn.active {
  background-color: #007bff !important;
  color: #fff !important;
}

/* Tlačítko Show More/Show Less */
.btn.btn-link {
  font-size: 0.9rem;
  padding: 0;
  margin-top: 5px;
}

/* Karty obrázků */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #fff;
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}


.stats {
  display: flex;
  width: 100%;
  color: #ccc;
}

.stats span {
  flex: 0 0 25%;
  text-align: center;
}


#modal-comments-section {
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.comment {
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.comment strong {
    color: #007bff;
}

.comment-time
{
    vertical-align: sub;
    font-size: smaller;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px; /* volitelně můžete upravit velikost písma */
}

.enable-btn {
    position: absolute;
    top: 5px;
    left: 5px; /* Umístí tlačítko na levý roh karty */
    background-color: #28a745; /* Bootstrap zelená */
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px; /* Vertikální vycentrování textu */
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}



/* styles.css */
#startSlideshow {
}

#slideshowOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s;
  z-index: 1000;
}

#slideshowOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#slideshowImage {
  max-width: 100%;
  max-height: 100%;
  transition: opacity 1s;
}

#ws-image-container {
    width : 100%;
    padding : auto;
}

#ws-image-container img {
    margin : auto;
  align: center;  
  width: 768px;
  height: 768px; /* nebo auto, pokud chcete zachovat poměr stran */
  max-height: 768px; /* nebo auto, pokud chcete zachovat poměr stran */
  object-fit: contain; /* případně cover – záleží na efektu, který chcete */
}


