/*
 * 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.
 */

  /*
 *= require bootstrap
 *= require royl
 */
 
 .clamp-2{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

 #accessoryModal img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 80dvh;  /* ensures full visibility within viewport */
    object-fit: contain; /* show entire image without cropping */
    margin: 0 auto;      /* centre horizontally */
  }

  @media (max-width: 576px) {
    #accessoryModal .modal-dialog {
      margin: 0;
      max-width: 100%;
      height: 100%;
    }
    #accessoryModal .modal-content {
      height: 100%;
      border-radius: 0;
    }
    #accessoryModal .modal-body {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0.5rem;
    }
  }
  