body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    background-color: black;
}

.grid-container {
    display: grid;
    grid-template-columns: 2% repeat(4, 1fr) 2%;
    grid-template-rows: 10% 1fr 12%;
    width: 100vw;
    height: 100vh;
    column-gap: 10px;
}

.item-logo {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-content: center;
}

.item-logo img {
    height: 80%;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    float: left;
}

.item-link {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
    align-content: center;
}

.item-link img {
    height: 50%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main-body {
    display: block;
    grid-column: 1 / 7;
    grid-row: 2 / 4;
    opacity: 80%;
}

.main-body img {
    width: 100%;
    height: 100%;
}

.item-davinci {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    z-index: 9;
    align-content: end;
    text-align: center;
    color: #e9ff92;
}

.item-davinci img {
    width: 90%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.item-davinci p {
    font-size: 1.75vw; /* Responsive font size */
}

.item-davinci p:last-child {
    font-size: 1vw;
}

/* Media query for narrow windows (desktop or mobile) */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Single column */
        grid-template-rows: auto auto auto 1fr; /* Rows for logo, link, davinci, main-body */
        height: auto; /* Allow height to adjust */
        column-gap: 0;
        padding: 10px;
    }

    .item-logo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: center;
    }

    .item-logo img {
        height: auto;
        max-height: 80px; /* Slightly larger for desktop */
        max-width: 90%;
        float: none;
    }

    .item-link {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        text-align: center;
        margin: 10px 0;
    }

    .item-link img {
        height: auto;
        max-height: 50px;
        max-width: 90%;
    }

    .item-davinci {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        align-content: center;
        margin: 10px 0;
    }

    .item-davinci img {
        width: 80%;
        max-width: 250px; /* Adjusted for desktop */
    }

    .item-davinci p {
        font-size: 6vw; /* Responsive font size */
    }

    .item-davinci p:last-child {
        font-size: 5vw;
    }

    .main-body {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        height: auto;
    }

    .main-body img {
        height: auto;
        object-fit: cover;
    }
}
