.ggc-participants {
  width: 100%;
}

.ggc-participants-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ggc-participants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ggc-participants-table th,
.ggc-participants-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.ggc-participants-table th {
  font-weight: 700;
}

.ggc-participants-table tbody tr:hover {
  background: rgba(0,0,0,.03);
}

.ggc-vehicle-link {
  cursor: pointer;
  text-decoration: underline;
}

.ggc-participants-error {
  padding: 14px;
  border: 1px solid #d8b7b7;
  background: #fff3f3;
}

.ggc-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.88);
  z-index: 999999;
}

.ggc-lightbox.open {
  display: flex;
}

.ggc-lightbox-inner {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.ggc-lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.ggc-lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
}

.ggc-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .ggc-participants-table {
    min-width: 760px;
    font-size: 14px;
  }
}


.ggc-lightbox-prev,
.ggc-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.25);
  color: #fff;
  width: 52px;
  height: 72px;
  border-radius: 8px;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.ggc-lightbox-prev { left: 18px; }
.ggc-lightbox-next { right: 18px; }

.ggc-lightbox-prev:hover,
.ggc-lightbox-next:hover {
  background: rgba(0,0,0,.45);
}

@media (max-width: 700px) {
  .ggc-lightbox-prev,
  .ggc-lightbox-next {
    width: 44px;
    height: 60px;
    font-size: 34px;
  }

  .ggc-lightbox-prev { left: 8px; }
  .ggc-lightbox-next { right: 8px; }
}


/* Lightbox always above themes, headers, popups and Avada elements */
.ggc-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: translateZ(0);
}

.ggc-lightbox-inner {
  position: relative;
  z-index: 2147483647;
}

.ggc-lightbox-image {
  position: relative;
  z-index: 2;
}

.ggc-lightbox-caption {
  position: relative;
  z-index: 3;
}

.ggc-lightbox-close {
  z-index: 2147483647 !important;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55) !important;
  border-radius: 50%;
}

.ggc-lightbox-prev,
.ggc-lightbox-next {
  z-index: 2147483647 !important;
  background: rgba(0,0,0,.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  opacity: 1 !important;
  visibility: visible !important;
}

.ggc-lightbox-prev {
  left: 34px !important;
}

.ggc-lightbox-next {
  right: 34px !important;
}

.ggc-lightbox-prev:hover,
.ggc-lightbox-next:hover,
.ggc-lightbox-close:hover {
  background: rgba(0,0,0,.9) !important;
}

@media (max-width: 700px) {
  .ggc-lightbox-prev {
    left: 12px !important;
  }

  .ggc-lightbox-next {
    right: 12px !important;
  }
}


/* v1.3 – mobile landscape / touch hardening */
.ggc-lightbox {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  touch-action: manipulation;
  pointer-events: auto !important;
}

.ggc-lightbox-inner {
  width: min(1200px, calc(100vw - 120px)) !important;
  max-height: calc(100dvh - 40px) !important;
  pointer-events: none;
}

.ggc-lightbox-image,
.ggc-lightbox-caption {
  pointer-events: none !important;
}

.ggc-lightbox-close,
.ggc-lightbox-prev,
.ggc-lightbox-next {
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  position: fixed !important;
}

.ggc-lightbox-close {
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  min-width: 56px;
  min-height: 56px;
}

.ggc-lightbox-prev,
.ggc-lightbox-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
  min-width: 56px;
  min-height: 72px;
}

.ggc-lightbox-prev {
  left: max(14px, env(safe-area-inset-left)) !important;
}

.ggc-lightbox-next {
  right: max(14px, env(safe-area-inset-right)) !important;
}

@media (orientation: landscape) and (max-height: 600px) {
  .ggc-lightbox {
    padding:
      max(8px, env(safe-area-inset-top))
      max(74px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(74px, env(safe-area-inset-left)) !important;
  }

  .ggc-lightbox-inner {
    width: calc(100vw - 150px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .ggc-lightbox-image {
    max-height: calc(100dvh - 58px) !important;
    max-width: 100% !important;
  }

  .ggc-lightbox-caption {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .ggc-lightbox-close {
    width: 52px !important;
    height: 52px !important;
    font-size: 34px !important;
  }

  .ggc-lightbox-prev,
  .ggc-lightbox-next {
    width: 54px !important;
    height: 68px !important;
    font-size: 38px !important;
  }
}
