.tgwp-video-block,
.tgwp-video-link {
  margin: 1.5em 0 !important;
  padding: 0.35em 0;
  display: block;
}

/* Grid: rows fill full width, equal tiles in a row */
.tgwp-g-grid {
  margin: 1em 0;
  width: 100%;
}
.tgwp-g-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0 0 10px;
}
.tgwp-g-row:last-child {
  margin-bottom: 0;
}
.tgwp-g-row .tgwp-g-item {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f1;
  cursor: pointer;
}
.tgwp-g-row .tgwp-g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider */
.tgwp-g-slider {
  position: relative;
  margin: 1em 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.tgwp-g-slider-track {
  display: flex;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}
.tgwp-g-slider .tgwp-g-item {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  cursor: pointer;
}
.tgwp-g-slider .tgwp-g-item img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.tgwp-g-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  line-height: 1;
}
.tgwp-g-btn.prev { left: 8px; }
.tgwp-g-btn.next { right: 8px; }
.tgwp-g-dots {
  text-align: center;
  padding: 8px 0;
  background: #111;
}
.tgwp-g-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  margin: 0 3px;
  background: #666;
  cursor: pointer;
  padding: 0;
}
.tgwp-g-dots button.is-active { background: #fff; }

/* Lightbox + navigation */
.tgwp-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}
.tgwp-lb.is-open { display: flex; }
.tgwp-lb img {
  max-width: min(95vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.tgwp-lb-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
}
.tgwp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  z-index: 3;
  line-height: 1;
}
.tgwp-lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tgwp-lb-nav.prev { left: 12px; }
.tgwp-lb-nav.next { right: 12px; }
.tgwp-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .tgwp-lb { padding: 40px 8px; }
  .tgwp-lb-nav { width: 40px; height: 40px; font-size: 18px; }
  .tgwp-lb-nav.prev { left: 4px; }
  .tgwp-lb-nav.next { right: 4px; }
}

/* —— Source block —— */
.tgwp-source {
  margin: 1.25em 0;
  line-height: 1.5;
}
.tgwp-source--plain {
  font-size: 0.95em;
}
.tgwp-source--accent {
  font-size: 0.95em;
  color: #1d2327;
  padding: 0.85em 0.75em;
  margin: 1.5em 0;
  border-top: 2px solid #2271b1;
  border-bottom: 2px solid #2271b1;
  background: linear-gradient(90deg, rgba(34, 113, 177, 0.1), rgba(34, 113, 177, 0.02) 80%);
}
.tgwp-source--accent .tgwp-source-label {
  font-weight: 700;
  color: #135e96;
  margin-right: 0.25em;
}
.tgwp-source--accent .tgwp-source-link {
  color: #135e96;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tgwp-source--accent .tgwp-source-link:hover {
  color: #0a4b78;
}
.tgwp-source--card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.75em;
  padding: 0.75em 1em;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  font-size: 0.9em;
}
.tgwp-source-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  background: #229ed9;
  color: #fff;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tgwp-source--card .tgwp-source-label {
  color: #50575e;
  font-weight: 600;
}
.tgwp-source--card .tgwp-source-link {
  color: #1d2327;
  font-weight: 600;
  text-decoration: none;
}
.tgwp-source--card .tgwp-source-link:hover {
  color: #2271b1;
  text-decoration: underline;
}
.tgwp-hashtag-link {
  color: #2271b1;
  text-decoration: none;
}
.tgwp-hashtag-link:hover {
  text-decoration: underline;
}

/* Lightbox: zoom + pan without scrollbars */
.tgwp-lb {
  overflow: hidden;
}
.tgwp-lb-zoom {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.tgwp-lb-zoom:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tgwp-lb-stage {
  max-width: 95vw;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}
.tgwp-lb-stage img {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
  will-change: transform;
}
.tgwp-lb-stage.is-zoomed img {
  cursor: grab;
}
