.ibe-gallery-video-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.ibe-gallery-video-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ibe-gallery-video-actions .dashicons {
  margin-top: 2px;
}

.ibe-gallery-video-count {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0f0f1;
  color: #50575e;
}

.ibe-gallery-video-count strong {
  color: #c74100;
}

.ibe-gallery-video-link-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(200px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #f6f7f7;
}

.ibe-gallery-video-link-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
}

.ibe-gallery-video-link-form label span {
  font-size: 12px;
}

.ibe-gallery-video-link-form input {
  width: 100%;
  min-height: 38px;
}

.ibe-gallery-video-link-form .button {
  min-height: 38px;
}

.ibe-gallery-video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ibe-gallery-video-item {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dcdcde;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(15, 23, 42, .06);
  cursor: grab;
}

.ibe-gallery-video-item.is-dragging {
  opacity: .45;
  cursor: grabbing;
}

.ibe-gallery-video-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #646970;
}

.ibe-gallery-video-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #101b37;
  color: #fff;
  font-size: 22px;
}

.ibe-gallery-video-item label {
  min-width: 0;
}

.ibe-gallery-video-item input {
  width: 100%;
  min-height: 36px;
}

.ibe-gallery-video-item small {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #646970;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ibe-gallery-video-remove {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c74100;
  color: #fff;
  cursor: pointer;
}

.ibe-gallery-video-remove:hover {
  background: #991f00;
}

.ibe-gallery-video-empty {
  padding: 18px;
  border: 1px dashed #c3c4c7;
  border-radius: 10px;
  text-align: center;
  color: #646970;
}

.ibe-gallery-video-empty[hidden] {
  display: none !important;
}

.ibe-gallery-videos {
  position: relative;
  isolation: isolate;
  margin-top: clamp(58px, 8vw, 104px);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border-radius: 28px;
  background: #101b37;
  color: #fff;
}

.ibe-gallery-videos::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -210px;
  border: 52px solid rgba(199, 65, 0, .5);
  border-radius: 50%;
}

.ibe-gallery-videos-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.ibe-gallery-videos-heading span {
  display: block;
  margin-bottom: 6px;
  color: #ff9c6c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ibe-gallery-videos-heading h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "IBE Bebas", sans-serif !important;
  font-size: clamp(52px, 7vw, 86px) !important;
  line-height: .88 !important;
}

.ibe-gallery-videos-heading h2 em {
  color: #ff7840;
  font-style: normal;
}

.ibe-gallery-videos-heading p {
  max-width: 430px;
  margin: 0;
  color: #d8deea;
  font-size: 15px;
  line-height: 1.55;
  text-align: right;
}

.ibe-gallery-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ibe-gallery-video-card {
  min-width: 0;
  margin: 0;
}

.ibe-gallery-video-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  background: #050a14;
  box-shadow: 0 18px 42px rgba(3, 8, 18, .3);
}

.ibe-gallery-video-media iframe,
.ibe-gallery-video-media video {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
  object-fit: contain;
}

.ibe-gallery-video-card h3 {
  margin: 13px 2px 0 !important;
  color: #fff !important;
  font-size: clamp(16px, 1.7vw, 21px) !important;
  line-height: 1.25 !important;
}

.ibe-gallery-video-fallback {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

.ibe-gallery-video-fallback i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c74100;
  color: #fff;
  font-style: normal;
}

.ibe-gallery-video-card:focus-within .ibe-gallery-video-media {
  outline: 3px solid #ff7840;
  outline-offset: 4px;
}

@media (max-width: 782px) {
  .ibe-gallery-video-link-form {
    grid-template-columns: 1fr;
  }

  .ibe-gallery-video-link-form .button {
    width: 100%;
    justify-content: center;
  }

  .ibe-gallery-video-item {
    grid-template-columns: 28px 36px minmax(0, 1fr) 34px;
    gap: 7px;
    padding: 8px;
  }

  .ibe-gallery-video-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 680px) {
  .ibe-gallery-videos {
    margin-top: 48px;
    padding: 27px 16px 30px;
    border-radius: 22px;
  }

  .ibe-gallery-videos-heading {
    display: block;
    margin-bottom: 20px;
  }

  .ibe-gallery-videos-heading h2 {
    font-size: 58px !important;
  }

  .ibe-gallery-videos-heading p {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
  }

  .ibe-gallery-videos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ibe-gallery-video-card,
  .ibe-gallery-video-media {
    scroll-behavior: auto;
  }
}
