/* ==========================
   Base / Reset
   ========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

html, body{
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111;
  background-color: #fff;
}


/* Prevent overflow issues */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================
   Main Content Wrapper
   ========================== */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- MODAL ---- */

/* ==========================
   GLOBAL MODAL (BASE)
   ========================== */

.modal {
    display: none; /* ALWAYS hidden by default */
    position: fixed;
    inset: 0;
    z-index: 9999;

    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 2rem;
    color: white;
    cursor: pointer;
}


/* ==========================
   Accessibility & Motion
   ========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

