.container-banner {
    margin-top: 20px;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    }

   .d-day-counter {
    text-align: center;
    background: var(--bg);
    padding: 20px;
    outline: 2px solid var(--muted);
    border-radius: 10px;
  }
  .d-day-counter ruby {
    font-size: 0.8em;
    color: var(--accent);
  }
  .d-day-counter .d-day {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text);
  }


    .banner {
        margin: 6px 0px;
    }

    .menu-btn {
        width: 100%;
        height: 100%;
        min-height: 40px;
        border-radius: 10px;
        outline: solid 2px var(--muted);
        overflow: hidden;
        cursor: pointer;
        margin: 0;
        font-size: 1em;
        font-family: 'Pretendard';
        font-weight: 600;
        color: var(--text);
        background-color: var(--bg);
    }


.menu-btn:hover {
  outline: solid 2px var(--accent2);
}

  .grid-container {
    display: grid;
    grid-template-columns: 2fr 200px;
    grid-template-rows: 4fr 2fr 1fr 2fr 2fr 2fr 2fr;
    gap: 10px;
    width: 100%;
    max-width: 900px;
    margin-top: 70px;
    margin-bottom: 3em;
    max-height: 440px;
    height: 100%;
  }

  .grid-item {
    border: none;
    background-color: transparent;
    height: auto;
    display: inline-block;
    align-self: center;
    align-items: center;
    justify-content: center;
  }

.grid-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 8; 
  height: 100%;
  align-content: end;
}


.grid-item:nth-child(2) {
  grid-column: 2 / 3; 
  grid-row: 1 / 2;
}

  .name{
    font-size: 30px;
    font-weight: bold;
    color: black;
    text-align: center;
  }


  @media(max-width: 768px){ 
  
    .container-banner {
      width:100%;

      }

    .grid-container {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
      margin-top: 10px;
      height: 100%;
      max-height: 800px;
      padding: 0px 10px;
      gap: 15px;
      }

   .grid-item:nth-child(1) {
        grid-column: 1 / 3; /* First column */
        grid-row: 1 / 2;
        height: 100%;
      }
    
    .grid-item:nth-child(2) {
        grid-column: 1 / 3; /* Second column */
        grid-row: 5 / 6;
        width: 100%;
      }

      .grid-item:nth-child(3) {
        grid-column: 1 / 3; /* Second column */
        grid-row: 6 / 7;
        width: 100%;
        display: flex;
      }

      .grid-item:nth-child(4) {
        grid-column: 1 / 3; /* Second column */
        grid-row: 2 / 3;
        width: 100%;
      }

      .grid-item:nth-child(5) {
        grid-column: 1 / 2; /* Second column */
        grid-row: 3 / 4;
        width: 100%;
      }

      .grid-item:nth-child(6) {
        grid-column: 2 / 3; /* Second column */
        grid-row: 3 / 4;
        width: 100%;
      }

      .grid-item:nth-child(7) {
        grid-column: 1 / 2; /* Second column */
        grid-row: 4 / 5;
        width: 100%;
      }

      .grid-item:nth-child(8) {
        grid-column: 2 / 3; /* Second column */
        grid-row: 4 / 5;
        width: 100%;
      }

  }

  .dot{ /*동그라미*/
    cursor: pointer;
  }

.dot:hover{
 background-color: var(--accent2);
}

/* TOOLTIP */
[data-tooltip]{position:relative;}
[data-tooltip]:before,
[data-tooltip]:after{visibility:hidden;opacity:0;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;transition:all .2s ease;font-size:15px;font-family:inherit;letter-spacing:-0.7px;}
[data-tooltip]:before{content:attr(data-tooltip);height:13px;position:absolute;top:-20px;padding:5px 10px 14px 10px;border-radius:5px;color:var(--bg);background:var(--text);box-shadow:0 3px 8px rgba(165, 165, 165, 0.5);}
[data-tooltip]:after{content: '';border-left:5px solid transparent;top:7px;border-right:5px solid transparent;border-top:5px solid var(--text);}
[data-tooltip]:not([data-tooltip=""]):hover:before{visibility:visible;opacity:1;top:-32px}
[data-tooltip]:not([data-tooltip=""]):hover:after{visibility:visible;opacity:1;top:0px}

.grid-main{
  display: grid;
    grid-template-columns: 3fr 5fr 2fr;
    grid-template-rows: 1fr 2fr 4fr;
    gap: 10px;
    width: 100%;
    max-width: 900px;
    margin-top: 50px;
    margin-bottom: 1em;
    height: 550px;
  }

  .item-main {
    border: 2px solid var(--muted);
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
  }

  .item-main:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        width: 100%;
      }
     .item-main:nth-child(1) img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 이미지 비율을 유지하며 부모 요소에 맞춤 */
      }

  .item-main:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        width: 100%;
        border: none;
        align-self: end;
        align-items: end;
        justify-content: start;
      }

  .item-main:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        width: 100%;
        padding: 2px 5px;
        align-self: start;
        align-items: start;
      }

           
  .item-main:nth-child(4) {
      grid-column: 2 / 3;
      grid-row: 3 / 4;
      width: 100%;
      }

      .item-main:nth-child(4) img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 이미지 비율을 유지하며 부모 요소에 맞춤 */
      }

 .item-main:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
        width: 100%;
        align-self: start;
        align-items: start;
        justify-content: end;
        border: none;
      }
.item-main:nth-child(5) img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      }

      .item-main:nth-child(6) {
        grid-column: 1 / 4;
        grid-row: 3 / 4;
        width: 100%;
        display: none;
        overflow-y: auto;
        border: none;
      }

@media (max-width: 768px) { 
  
.grid-main{
    grid-template-columns: 4fr 2fr 4fr 4fr;
    grid-template-rows: 3fr 4fr 4fr;
    height: auto;
    max-height: 700px;
    padding: 10px;
    margin-top: 15px;
  }

.item-main:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
      }
.item-main:nth-child(2) {
        grid-column: 2 / 5;
        grid-row: 1 / 2;
      }
.item-main:nth-child(3) {
      grid-column: 3 / 5;
      grid-row: 3 / 4;
      }
.item-main:nth-child(4) {
        grid-column: 2 / 4;
        grid-row: 2 / 3;
      }
.item-main:nth-child(5) {
      grid-column: 4 / 5;
      grid-row: 2 / 3;
      }
   .item-main:nth-child(6) {
    display: block;
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    }
}

@media (max-width: 520px) { 
  
.item-main:nth-child(5) img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      }
    }
#notice:hover{
 color: var(--accent2);
 cursor: pointer;
}