.diplomy-galerie {
  display: flex;
  flex-direction: column;   /* diplomy pod sebou */
  align-items: center;
  gap: 20px;
  padding: 0 15px;          /* malá mezera od okrajů kontejneru */
}
.diplomy-galerie a {
  display: block;
  width: 100%;
}
.diplomy-galerie img {
  width: 100%;         /* roztáhne se na šířku kontejneru */
  height: auto;        /* zachová poměr stran, nic se neořízne */
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: transform 0.2s;
}
.diplomy-galerie img:hover {
  transform: scale(1.02);
}

/* Lightbox – fullscreen okno */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  width: 96vw;
  height: 96vh;
  object-fit: contain;   /* vyplní obrazovku, zachová poměr, neořízne */
  cursor: default;
}
#lightbox .zavrit {
  position: absolute;
  top: 15px;
  right: 25px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: background 0.2s;
  z-index: 2;
}
#lightbox .zavrit:hover {
  background: rgba(255, 0, 0, 0.7);
}

/* Šipky pro listování */
#lightbox .sipka {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  z-index: 2;
}
#lightbox .sipka:hover {
  background: rgba(0, 0, 0, 0.75);
}
#lightbox .predchozi {
  left: 20px;
}
#lightbox .dalsi {
  right: 20px;
}
