* {
    box-sizing: border-box;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #262626;
    font-family: "Noto Serif", serif;
    color: white;
    margin: 0;
    display: flex;
    justify-content: center;
}

.wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.25rem;
}

.title-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header {
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.section-nav {
    width: min(100%, 65ch);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.section-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #b3b3b3;
}

.section-link.active {
    color: #d0d0d0;
}

.divider {
    color: #808080;
}

.content-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-content {
    display: none;
    width: 100%;
}

.section-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio {
    width: min(100%, 65ch);
    line-height: 1.8;
    text-align: justify;
}

.photo-intro {
    width: min(100%, 65ch);
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    text-align: justify;
}

.photo-columns {
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 auto;
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photo-item {
    width: 100%;
    height: auto;
    display: block;
}

.contact-info {
    width: fit-content;
    max-width: min(100%, 65ch);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    color: white;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #b3b3b3;
}

.contact-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Tablet */
@media (max-width: 1000px) {
    .photo-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet / large phone */
@media (max-width: 700px) {
    .wrapper {
        padding: 2rem 1rem;
    }

    .header {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .section-nav {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .bio {
        text-align: left;
    }

    .photo-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .photo-column {
        gap: 0.75rem;
    }
}

/* Phone */
@media (max-width: 480px) {
    .header {
        font-size: 1.5rem;
    }

    .photo-columns {
        grid-template-columns: 1fr;
    }
}

.photo-item {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.photo-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    padding: 2rem;
}

.photo-modal.active {
    display: flex;
}

.modal-open {
    overflow: hidden;
}

.modal-content {
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.modal-arrow-left {
    left: 1.5rem;
}

.modal-arrow-right {
    right: 1.5rem;
}

.modal-close:hover,
.modal-arrow:hover {
    color: #b3b3b3;
}

@media (max-width: 700px) {
    .photo-item {
        cursor: default;
    }

    .photo-modal {
        display: none !important;
    }
}