/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.image-fade-border {
  -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
  mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

/* Hide Turbo progress bar on mobile and show custom spinner */
@media (max-width: 767px) {
  .turbo-progress-bar {
    display: none !important;
  }

  html[aria-busy="true"] .mobile-loading-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.mobile-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-in-out;
}

.js {
  .js-hidden {
    display: none;
  }
}
