/**
 * Vertex Gallery Ads
 * Keeps Vertex Gallery column flex intact so images still render.
 */

.vg-modal.vga-has-fixed {
  --vga-fixed-width: 300px;
  inset: 0 !important;
  height: 100% !important;
  max-height: 100vh !important;
  min-height: 0 !important;
}

.vg-modal.vga-has-fixed .vg-modal-content {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.vg-modal.vga-has-fixed .vg-modal-img-wrapper {
  flex: 1 1 auto !important;
  min-height: 45vh !important;
}

.vga-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.35rem;
  text-align: center;
}

.vg-modal.vg-theme-light .vga-label {
  color: rgba(26, 26, 26, 0.65);
}

.vga-slot,
.vga-slot .mod-custom,
.vga-slot p {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.vga-loader {
  display: none;
  width: 42px;
  height: 42px;
  margin: 1.4rem auto;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--vg-accent, #0005f0);
  border-radius: 50%;
  animation: vga-spin 0.75s linear infinite;
}

.vg-modal.vg-theme-light .vga-loader {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: var(--vg-accent, #0005f0);
}

.vga-slot.vga-is-loading > .vga-loader {
  display: block;
}

.vga-slot.vga-is-loading .vga-vidverto-mount,
.vga-slot.vga-is-loading .vga-ad-body {
  opacity: 0;
}

.vga-slot.vga-is-ready > .vga-loader {
  display: none;
}

@keyframes vga-spin {
  to {
    transform: rotate(360deg);
  }
}

.vga-slot script {
  display: none !important;
}

.vga-slot iframe,
.vga-slot img,
.vga-slot video,
.vga-slot ins.adsbygoogle {
  display: block;
  max-width: 100%;
}

.vga-slot ins.adsbygoogle {
  min-height: 90px;
  max-height: 280px;
  width: 100%;
  overflow: hidden;
}

.vga-fixed {
  flex: 0 0 auto !important;
  width: min(728px, calc(100% - 1.5rem));
  max-height: min(320px, 42vh);
  margin: 0 auto 0.45rem;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  z-index: 40;
  background: transparent;
  border: 0;
}

.vga-fixed .aries_div,
.vga-fixed .aries_stage,
.vga-fixed .aries_videoWrapper,
.vga-fixed .aries_videoPlayer {
  width: 100% !important;
  max-height: 22vh !important;
  height: 22vh !important;
}

.vg-modal.vga-fixed-suppressed .vga-fixed {
  display: none !important;
}

@media (max-width: 767px) {
  .vg-modal.vga-hide-fixed-mobile .vga-fixed {
    display: none !important;
  }
}

.vga-interstitial {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.78);
  box-sizing: border-box;
  cursor: pointer;
}

.vg-modal.vg-theme-light .vga-interstitial {
  background: rgba(255, 255, 255, 0.86);
}

.vg-modal.vga-interstitial-open .vga-interstitial {
  display: flex;
}

.vga-interstitial-card {
  width: min(720px, calc(100% - 1.5rem));
  max-height: min(80vh, 560px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  cursor: default;
}

.vga-interstitial .vga-slot,
.vga-interstitial .vga-vidverto-mount {
  width: 100%;
  max-height: min(62vh, 480px);
  overflow: hidden;
  margin: 0 auto;
}

.vga-interstitial .vga-vidverto-mount {
  min-height: 120px;
  height: auto;
}

.vga-interstitial iframe,
.vga-interstitial .aries_div,
.vga-interstitial .aries_stage,
.vga-interstitial .aries_videoWrapper,
.vga-interstitial .aries_videoPlayer,
.vga-interstitial .vga-vidverto-mount iframe {
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(62vh, 480px) !important;
}

.vga-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--vg-accent, #0005f0);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.vga-continue:hover,
.vga-continue:focus {
  filter: brightness(1.08);
}
