/* Google Drive Gallery */
.gdrive-browser {
  margin: 15px 0;
}

/* Breadcrumbs */
.gdrive-breadcrumbs {
  font-size: 14px;
  margin-bottom: 15px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}
.gdrive-breadcrumbs a {
  color: var(--color-primary, #108615);
  text-decoration: none;
}
.gdrive-breadcrumbs a:hover {
  text-decoration: underline;
}
.gdrive-sep {
  margin: 0 5px;
  color: #999;
}

/* Folder grid */
.gdrive-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.gdrive-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 8px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.gdrive-folder:hover {
  background: #ecf5ec;
  border-color: var(--color-primary, #108615);
}
.gdrive-folder-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.gdrive-folder-name {
  font-size: 13px;
  text-align: center;
  color: #333;
  word-break: break-word;
}

/* Image grid */
.gdrive-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.gdrive-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: border-color 0.15s;
}
.gdrive-image-link:hover {
  border-color: var(--color-primary, #108615);
}
.gdrive-image-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Loading */
.gdrive-loading {
  text-align: center;
  padding: 30px;
  color: #888;
}
.gdrive-loading::after {
  content: 'Načítám...';
}

/* Empty */
.gdrive-empty {
  color: #888;
  padding: 20px;
  text-align: center;
}

/* Lightbox */
.gdrive-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.gdrive-lightbox-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
}
.gdrive-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}
.gdrive-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
}
.gdrive-lightbox-close {
  position: fixed;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 2;
}
.gdrive-lightbox-prev,
.gdrive-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  padding: 15px 20px;
  line-height: 1;
  z-index: 2;
  transition: background 0.15s;
}
.gdrive-lightbox-prev:hover,
.gdrive-lightbox-next:hover {
  background: rgba(0,0,0,0.8);
}
.gdrive-lightbox-prev { left: 10px; }
.gdrive-lightbox-next { right: 10px; }
