* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 20px;
    font-family: monospace;
    padding-top: 40px; /* h1 높이만큼 여백 추가 */
}


h1 {
    line-height: 13pt;
    margin-top: 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    font-size: 10pt;
    font-weight: normal;
    padding: 10px 0;
    padding-left: 20px;
    z-index: 1000;
    border-bottom: 0.5px dotted black;
}

small { 
    font-size: 10pt;
    line-height: 15pt
}

img {
    width: 300px;
    height: 200px;
    margin-right: 10px;
    margin-top: 10px;
}

img:hover {
    opacity: 50%;
}

h1 + div {
  margin-top: 20px;       /* 기존 여백 */
  display: flex;          /* 가로 배치 핵심 */
  gap: 12px;              /* 링크들 사이 간격 */
  align-items: flex-start;
  flex-wrap: wrap;        /* 좁으면 줄바꿈 허용 */
}

/* 링크(카드) 자체는 세로 쌓임: 텍스트 위, 이미지 아래 */
h1 + div a {
  cursor: pointer;
  text-decoration: none;
  color: black;
  display: inline-flex;
  flex-direction: column;
}

/* 이미지: 하단 공백 제거 + 고정 크기(필요시 조정 가능) */
h1 + div img {
  display: block;
  width: 300px;
  height: 200px;
  margin-top: 10px;
}


@media screen and (max-width: 704px) {
    img {
        display: block;
        margin: auto;
        margin-top: 30px;
        width: 400px;
        height: 250px;
    }

div {
    padding-top: 10px;
}

}
