#landing {
    width: 100%;
    height: 50%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 70px 0px 50px 0px;
}

#landing .background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#landing .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

#landing .transition {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 50px;
    bottom: 0px;
    left: 0px;
    background: var(--gradient-main-transition);
}

#landing .transition::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-page-main);
    opacity: 0.2;
}

#landing .textbox {
    border-radius: 60px;
}

#detail-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-page-main);
}

#detail-info .item {
    margin-top: 50px;
    margin-bottom: 50px;
}

#detail-info .item h1 {
    font-weight: normal;
    text-align: center;
    font-size: 30px;
    letter-spacing: 4px;
}

#detail-info-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

#detail-info-gallery .wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#detail-info-gallery .wrapper>img {
    width: 768px;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
}

#detail-info-gallery .wrapper .images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 452px;
}

#detail-info-gallery .wrapper .images img {
    width: 256px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    cursor: pointer;
}

#detail-info-project {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#detail-info-project img {
    width: 640px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
}

#detail-info .item.active {
    display: flex;
}

#detail-info .item.inactive {
    display: none;
}

#detail-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;

    margin-top: 50px;
    margin-bottom: 100px;
}

#detail-table.inactive {
    display: none;
}

#detail-table h1 {
    font-weight: normal;
    text-align: center;
    font-size: 30px;
    letter-spacing: 4px;
}

#detail-table .wrapper {
    overflow-x: auto;
    width: 100%;
}

#detail-table table {
    padding: 0px 20px 0px 20px;
    margin: 0px auto 1px auto;
}

#detail-table :is(td,th) {
    padding: 20px 30px 20px 30px;
}

#detail-table th {
    text-align: left;
}

#detail-table tr {
    position: relative;
}

#detail-table tbody th {
    font-weight: normal;
}

#detail-table tr::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-heading);
}

#detail-table tbody tr::after {
    opacity: 0.5;
}

#contact {
    display: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 50%;
}

#contact .background {
    position: absolute;
    z-index: -1;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#contact .background img {
    object-fit: cover;
    object-position: top;
}

#contact .transition {
    content: '';
    position: absolute;
    width: 100%;
    height: 50px;
    left: 0px;
    top: 0px;
    background: var(--gradient-main-transition-reverse);
}

#contact .transition::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-page-main);
    opacity: 0.2;
}

#contact h1 {
    font-weight: normal;
    font-size: 40px;
    letter-spacing: 8px;
    text-shadow: 0px 0px 4px var(--color-text-shadow);
    color: var(--color-text-heading);
}

#error {
    display: flex;
    justify-content: center;
    margin-top: 200px;
    font-size: 2em;
}

@media (max-width: 1280px) {
    #detail-info-gallery .wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        height: auto;
    }

    #detail-info-gallery .wrapper>img {
        height: auto;
        aspect-ratio: 16/9;
    }

    #detail-info-gallery .wrapper .images {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: scroll;
        max-height: auto;
        height: auto;
        max-width: 100%;
    }
}

@media (width < 1280px) {
    #landing {
        height: 100%;
    }

    #landing .transition {
        height: 50px;
    }
}

@media (max-width: 768px) {
    #detail-info-gallery .wrapper>img {
        width: 100%;
    }

    #contact {
        height: auto;
        padding: 50px 0px 80px 0px;
    }
}

@media (width < 768px) {
    #landing {
        height: fit-content;
    }

    #contact h1 {
        font-size: 26px;
        letter-spacing: 4px;
    }
}

@media (max-width: 640px) {
    #detail-info {
        margin-top: 50px;
    }

    #detail-info-project img {
        width: 100%;
    }

    #detail-info-gallery .wrapper .images img {
        width: 128px;
    }

    #detail-info-project {
        min-height: auto;
        gap: 40px;
    }
}

@media (max-width: 425px) {
    #landing .textbox {
        padding: 25px 60px 25px 60px;
    }

    #detail-info .item h1 {
        font-size: 20px;
    }

    #detail-info .item {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    #detail-info-gallery .wrapper {
        padding: 0px 10px 0px 10px;
    }

    #detail-table :is(td,th) {
        padding: 10px 20px 10px 20px;
    }
}