body {
    margin: auto;
    font-family: sans-serif;
    display: grid;
    grid-template-columns: 5fr 3fr;
    grid-template-rows: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 0;
    height: 100vh;
    max-height: -webkit-fill-available;
}

header {
    padding: 3rem 0;
}

.name {
    margin-bottom: 0.25rem;
}

p,
a {
    font-size: 0.9;
    line-height: 1.64;
    opacity: 0.75;
}

img {
    display: block;
}

.person {
    display: flex;
    flex-direction: row;
    padding: 1.5rem;
}

.person p {
    line-height: 1.1;
}

.gallery {
    overflow-y: scroll;
    width: 100%;
    background: #eee;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rectengular {
    position: relative;
}

.rectengular:before {
    content: "";
    display: block;
    padding-top: 100%;
    width: 100%;
}

.rectengular img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.gallery .rectengular:nth-child(5n - 4) {
    grid-column: span 2;
    grid-row: span 2;
}

.padding {
    padding: 1.5rem;
}

.portrait {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    margin: 0 1.5rem 0 0;
}

.logo {
    margin-top: 0;
    padding: 2rem;
    max-width: 100%;
    display: block;
}

.details {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.teacher {
    color: #000;
}

.rect {
    position: relative;
    text-align: center;
}

.rect:before {
    content: "";
    display: block;
    padding-top: 100%;
    width: 100%;
}

.rect > div {
    position: absolute;
}

@media (max-width: 800px) {
    body {
        display: block;
        padding: 0;
        position: relative;
    }

    .logo {
        padding: 2rem;
        max-width: 50%;
    }

    .logo img {
        max-width: 200px;
    }
}

.backToMain {
    background: #fff;
    position: fixed;
    top: 3rem;
    left: 0;
    padding: 1rem;
    opacity: 1;
    color: #000;
    line-height: 1;
    z-index: 9;
    display: flex;
    align-items: center;
}

.backToMain svg {
    margin-right: 0.5rem;
}

.backToMain:hover {
    background: #000;
    color: #fff;
}

video {
    max-width: 100%;
    width: 100%;
    height: auto;
    order: -1;
}

.projekt-nav a {
    position: fixed;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    opacity: 1;
    z-index: 9;
    transition:
        background 0.2s,
        color 0.2s;
}

.nav-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 0.75rem 0.75rem 0.5rem;
}

.nav-next {
    right: 0;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 0.5rem 0.75rem 0.75rem;
}

.projekt-nav a:hover {
    background: #000;
    color: #fff;
}

.projekt-nav svg {
    width: 24px;
    height: 24px;
}

.projekt-nav .disabled {
    display: none;
}
