.grid-container {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 160px;
  grid-template-rows: 160px auto 100px;  /* topbanner, 본문, bottombanner */
  gap: 3px;
  height: 100vh;
}

.loginarea {
  grid-area: 1 / 1 / 2 / 2;
  background-color: #e2e3e5;
  padding: 10px;
  border: 1px solid #ccc;
  width: 160px;
  height: 160px;
  box-sizing: border-box;
}


.topbanner {
  grid-area: 1 / 2 / 2 / 4;
  background-color: #e2e3e5;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: hidden;
}

.topbanner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottombanner {
  grid-area: 3 / 1 / 4 / 5;
  background-color: #e2e3e5;
  border: 1px solid #ccc;
  padding: 5px;
}


.leftad {
  grid-area: 2 / 1 / 3 / 2;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 0;
  margin: 0;
  width: 160px;
  height: 600px;
  background-color: transparent;
  overflow: visible;
  box-sizing: border-box;
}


.leftad iframe {
  display: block;
  width: 160px;
  height: 600px;
  border: none;
  margin-top: 0;
}


.rightad {
  grid-area: 2 / 4 / 3 / 5;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 0;
  overflow: visible;
  min-height: 600px;
  background-color: transparent;
  border: none;
  width: 160px;
}

.rightad iframe {
  display: block;
  width: 160px;
  height: 600px;
  border: none;
  margin-top: 0;
}



.bestboard {
  grid-area: 2 / 2 / 3 / 3;
  background-color: #e2e3e5;
  padding: 5px;
  border: 1px solid #ccc;
}

.anyoneboard {
  grid-area: 2 / 3 / 3 / 4;
  background-color: #e2e3e5;
  padding: 5px;
  border: 1px solid #ccc;
}
