
.evg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.evg-item {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}
.evg-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.evg-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.evg-tags {
  margin-top: 10px;
}
.evg-tags span {
  background: #f0f0f0;
  color: #333;
  font-size: 12px;
  border-radius: 3px;
  padding: 3px 8px;
  margin-right: 5px;
  display: inline-block;
}
.evg-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.evg-filters select,
.evg-filters button {
  padding: 8px 12px;
}
.evg-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.evg-modal-content {
  width: 90%;
  max-width: 800px;
  background: #000;
  position: relative;
}
.evg-modal iframe {
  width: 100%; height: 450px;
}
.evg-modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  color: white;
  background: black;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.evg-thumb {
  position: relative;
}
.evg-thumb .evg-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: url('./play-icon.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

.evg-thumb {
  position: relative;
}
.evg-thumb .evg-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url('./play-icon.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}
.evg-thumb[data-iframe=""] .evg-play-icon {
  display: none;
}
.evg-thumb:hover::after {
  content: attr(data-title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.evg-thumb {
  position: relative;
}
.evg-thumb .evg-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url('/wp-content/plugins/exhaust-video-gallery/assets/play-icon.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}
.evg-thumb[data-iframe=""] .evg-play-icon {
  display: none;
}
.evg-thumb:hover::after {
  content: attr(data-title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.evg-thumb {
  position: relative;
  cursor: pointer;
}
.evg-thumb .evg-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url('/wp-content/plugins/exhaust-video-gallery/assets/play-icon.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}
.evg-thumb[data-iframe=""] .evg-play-icon {
  display: none;
}
.evg-thumb:hover::after {
  content: attr(data-title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.evg-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.evg-modal-content {
  width: 90%;
  max-width: 800px;
  background: transparent;
  position: relative;
}
.evg-modal iframe {
  width: 100%; height: 450px;
  border: none;
  display: block;
}
.evg-modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  color: white;
  background: black;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.evg-thumb {
  position: relative;
  cursor: pointer;
}
.evg-thumb[data-iframe*="youtube"]::after,
.evg-thumb[data-iframe*="vimeo"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
 background: url('/wp-content/plugins/exhaust-video-gallery-patched/assets/play-icon.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
  border:2px solid #eee;
}
