@font-face {
    font-family: Diatype;
    src: url(fonts/ABC\ Diatype\ Regular.ttf);
}

html {
    scroll-behavior: smooth;
  }


#hover-image {
  position: absolute;
  pointer-events: none;
  display: none;
  width: 400px;   /* Explicit width */
  height: auto;   /* Maintain aspect ratio */
  object-fit: contain;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

  


body {
    font-family: Diatype;
    font-size: .9rem;
}

.index-page {
    overflow: hidden;
}
header {
    z-index: 1111;
    background-color: white;
    font-size: 2rem;
    position: sticky;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    top: 0rem;
    
}

video {
    width: 80%;
}

.grid {
    font-size: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
    align-items: center;
}



.text-grid {
    font-size: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
}

.project-grid {
    font-family: Diatype;
    font-size: 2rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
}

.sub-navigation {
font-size: 1rem;
display: flex;
justify-content: flex-start;
gap: 2rem;
margin-bottom: 3rem;


}

.sub-navigation a:hover {

}

.undertitle {
    font-family: Diatype;
    font-size: 1rem;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
    border-top: 1px solid;
    border-bottom: 1px solid;
    margin-bottom: 2rem;
    padding-top: .3rem;
    padding-bottom: .3rem;

}


.two-grid {
    font-family: Diatype;
    font-size: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
}

.project-list a:hover {
    font-style: italic;
}

.address {
    margin-top: 2rem;
}

img {
    width: 80%;

}


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

p {
    margin: 0;
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.underline {
    text-decoration: underline;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.project-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid img {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 1s ease-in-out forwards;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.project-list {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
}


/* Show sticker on hover */
.grid a:hover .hover-sticker {
    opacity: 1;
}

.news-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    height: 400px;
    background-color: #46FF69;
    font-family: Diatype;
    font-size: 0.8rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.news-body {
    padding: 8px;
    font-size: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.news-image {
    margin-top: 1rem;
    width: auto;
    height: 250px;
    align-items: center;
    object-fit: cover;
}

.bottom-note {
    font-size: 0.7rem;
    align-self: flex-end;
    margin-top: auto;
    color: #333;
}




@media (max-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
       justify-items: center;

    }

    .undertitle {
        font-size: .8rem;
        justify-items: center;
        align-items: center;
        position: sticky;
        display: flex;
        justify-content: space-between;

    }

    .description {
        display: none;
    }


    header {
        font-size: .8rem;
        justify-items: center;
        position: sticky;
        display: flex;
        justify-content: space-between;
        margin-bottom: 3rem;
        top: 1rem;
    }

    img {
        width: 100%;
    }

    video {
        width: 100%;
    }
    
    .text-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;

    }

    .news-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 350px;
    background-color: #46FF69;
    font-family: Diatype;
    font-size: 0.8rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}   

.sub-navigation {
    
}
}

