/* overlay behind modal */
.lb-overlay
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  z-index: 9998;
  display: none;
}

/* modal container */
.lb-modal
{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  background: #222;	/*fff;*/
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* header with title and controls */
.lb-header
{
  background: #222;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.lb-title
{
  font-weight: bold;
  font-size: 1.1em;
  flex-grow: 1;
  padding-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-controls button
{
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3em;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s ease;
}

.lb-controls button:hover
{
  color: #ddd;
}

/* image container, centers image */
.lb-image-container
{
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.lb-image-container img
{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

/* description toggle and panel */
.lb-description-toggle
{
  cursor: pointer;
  font-weight: bold;
  color: #fff; /*222;*/
  padding: 8px 15px;
  /* border-top: 1px solid #eee; */
  user-select: none;
  display: flex;
  align-items: center;
  font-size: 1em;
  user-select: none;
}

.lb-description-toggle span
{
  margin-left: 6px;
  font-weight: normal;
}

.lb-description-content
{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background: #222;	/*fafafa;*/
  font-size: 0.95em;
  color: #fff; /*333;*/
}

.lb-description-content.open
{
  max-height: 200px; /* enough for text, adjust as needed */
  padding: 10px 15px;
}
