/* Custom overrides + the item modal overlay.
   The original theme (Bootstrap 5 + Хрупаница styles) is in /assets/site.css.
   Add your own tweaks here — this file loads AFTER site.css so it wins. */

/* ---- Item modal (vanilla, replaces the original React-Bootstrap modal) ---- */
.hrup-modal { position: fixed; inset: 0; z-index: 1055; display: none; }
.hrup-modal.show { display: block; }
.hrup-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); }
.hrup-modal-dialog {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  max-width: 900px;
  margin: 4vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden auto;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: hrupModalIn .18s ease-out;
}
@keyframes hrupModalIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.hrup-modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .06); color: #222;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.hrup-modal-close:hover { background: rgba(0, 0, 0, .12); }
body.hrup-modal-open { overflow: hidden; }

/* Safety net in case the theme doesn't fully style the modal image column */
.hrup-modal .modal-image { height: 100%; min-height: 220px; }
.hrup-modal .modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hrup-modal .modal-content-section { padding: 1.75rem; }
