:root{
    --max: 1100px;
    --pad: 24px;
    --border: #e8e8e8;
    --text: #111;
    --muted: #666;
  }
  
  *{ box-sizing: border-box; }
  body{
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
  }
  
  a{ color: inherit; text-decoration: none; }
  a:hover{ text-decoration: underline; }
  
  .nav{
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
  }
  
  .logo{ font-weight: 600; }
  .links a{ margin-left: 16px; color: var(--muted); }
  .links a:hover{ color: var(--text); }
  
  main{
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
  }
  
  .hero{
    padding: 64px 0 40px;
  }
  .hero h1{
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
  }
  .hero p{ margin: 0; color: var(--muted); }
  
  .section{
    padding: 80px 0;              /* more space inside sections */
    margin-top: 40px;             /* adds gap before the border/section */
    border-top: 1px solid var(--border);
  }
  
  .section h2{
    font-size: 18px;
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .card{
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .card:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-decoration: none;
  }
  .card img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #f4f4f4;
  }
  .meta{
    padding: 14px 14px 16px;
  }
  .meta h3{
    margin: 0 0 6px;
    font-size: 16px;
  }
  .meta p{
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  
  .footer{
    border-top: 1px solid var(--border);
    padding: 22px var(--pad);
    text-align: center;
    color: var(--muted);
  }
  
  @media (max-width: 820px){
    .grid{ grid-template-columns: 1fr; }
    .card img{ height: 220px; }
  }

  /* ===== Modal (override) ===== */
/* ===== Modal (fixed) ===== */
.modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;

  padding: 24px;
  justify-content: center;
  align-items: center;
}

.modal.open{
  display: flex;
}

.modal-content{
  position: relative;   /* IMPORTANT */
  background: #fff;
  color: #111;

  width: min(920px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;

  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* Close button */
.close{
  position: absolute;   /* IMPORTANT */
  top: 16px;
  right: 18px;

  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #111;
  line-height: 1;
  z-index: 10;
}

.close:hover{
  opacity: 0.6;
}

/* media inside modal */
#modalMedia {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

#modalMedia img,
#modalMedia video,
#modalMedia iframe {
  width: 100%;
  border-radius: 12px;
  display: block;
}

#modalMedia iframe {
  aspect-ratio: 16 / 9;
  border: 0;
}


  
  
