/**
 * Gallery Styles
 */
.vimeify-gallery {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.vimeify-gallery-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.vimeify-gallery-main-player {
  margin-bottom: 20px;
}

.vimeify-gallery-player-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.vimeify-gallery-iframe,
.vimeify-gallery-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vimeify-gallery-video-info {
  margin-top: 15px;
}

.vimeify-gallery-video-title {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.vimeify-gallery-video-description {
  color: #666;
  line-height: 1.6;
}

.vimeify-gallery-slider .vimeify-gallery-thumbnails-wrapper {
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: #f5f5f7;
  border: 2px solid transparent;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail:hover {
  border-color: #6366F1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail.active {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3), 0 4px 12px rgba(139, 92, 246, 0.15);
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail-info {
  padding: 8px 10px;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}
.vimeify-gallery-slider .vimeify-gallery-thumbnail-date {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.vimeify-gallery-load-more-wrapper {
  margin-top: 20px;
  text-align: center;
}

.vimeify-gallery-load-more {
  padding: 12px 24px;
  background: #6366F1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}
.vimeify-gallery-load-more:hover {
  background: #8B5CF6;
}

.vimeify-gallery-loading {
  color: #666;
  font-style: italic;
}

.vimeify-gallery-playlist .vimeify-playlist-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}
.vimeify-gallery-playlist .vimeify-playlist-player {
  min-width: 0;
}
.vimeify-gallery-playlist .vimeify-playlist-sidebar {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vimeify-gallery-playlist .vimeify-playlist-items {
  overflow-y: auto;
  padding: 10px;
}
.vimeify-gallery-playlist .vimeify-playlist-items::-webkit-scrollbar {
  width: 8px;
}
.vimeify-gallery-playlist .vimeify-playlist-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.vimeify-gallery-playlist .vimeify-playlist-items::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.vimeify-gallery-playlist .vimeify-playlist-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.vimeify-gallery-playlist .vimeify-playlist-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.vimeify-gallery-playlist .vimeify-playlist-item:hover {
  border-color: #6366F1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.vimeify-gallery-playlist .vimeify-playlist-item.active {
  border-color: #8B5CF6;
  background: #f0f4ff;
}
.vimeify-gallery-playlist .vimeify-playlist-item-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
}
.vimeify-gallery-playlist .vimeify-playlist-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vimeify-gallery-playlist .vimeify-playlist-item-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vimeify-playlist-item:hover .vimeify-gallery-playlist .vimeify-playlist-item-play-icon, .vimeify-playlist-item.active .vimeify-gallery-playlist .vimeify-playlist-item-play-icon {
  opacity: 1;
}
.vimeify-gallery-playlist .vimeify-playlist-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vimeify-gallery-playlist .vimeify-playlist-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.vimeify-gallery-playlist .vimeify-playlist-item-date {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}
.vimeify-gallery-playlist .vimeify-playlist-item-meta {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}
.vimeify-gallery-playlist .vimeify-playlist-item-meta .meta-separator {
  margin: 0 4px;
}
.vimeify-gallery-playlist .vimeify-playlist-item-meta .author-link {
  color: #6366F1;
  text-decoration: none;
}
.vimeify-gallery-playlist .vimeify-playlist-item-meta .author-link:hover {
  text-decoration: underline;
}
.vimeify-gallery-playlist .vimeify-playlist-item-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.vimeify-gallery-playlist .vimeify-playlist-loading {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}
.vimeify-gallery-playlist .vimeify-gallery-video-title-above {
  margin-bottom: 15px;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .meta-author,
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .meta-date {
  display: inline-flex;
  align-items: center;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .meta-author a {
  color: #6366F1;
  text-decoration: none;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .meta-author a:hover {
  text-decoration: underline;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta-inline .meta-sep {
  color: #999;
  margin: 0 4px;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta .vimeify-video-meta-item {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta .vimeify-video-meta-item .meta-label {
  font-weight: 600;
  margin-right: 8px;
  color: #333;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta .vimeify-video-meta-item .meta-value {
  color: #666;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta .vimeify-video-meta-item .author-link {
  color: #6366F1;
  text-decoration: none;
}
.vimeify-gallery-playlist .vimeify-gallery-video-meta .vimeify-video-meta-item .author-link:hover {
  text-decoration: underline;
}

@media (max-width: 968px) {
  .vimeify-gallery-playlist .vimeify-playlist-container {
    grid-template-columns: 1fr;
  }
  .vimeify-gallery-playlist .vimeify-playlist-sidebar {
    order: 2;
  }
  .vimeify-gallery-playlist .vimeify-playlist-items {
    max-height: 400px;
  }
}
@media (max-width: 768px) {
  .vimeify-gallery-slider .vimeify-gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .vimeify-gallery-video-title {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  .vimeify-gallery-playlist .vimeify-playlist-item-thumbnail {
    width: 80px;
    height: 45px;
  }
  .vimeify-gallery-playlist .vimeify-playlist-item-title {
    font-size: 13px;
  }
}
