html {
    background-color: #696969;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
.container {
    color: lightblue;
    background-color: teal;
}
.nav {
background-color: pink;
}

.nav-container {
    background-color: green;
}

.nav-item {
    background-color: #fd18fa;
}

/* Nav pinned to the left side of the screen */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    box-sizing: border-box;
    z-index: 1000;
}

.top-title,
.portfolio-section {
    margin-left: 200px;
}

.portfolio-section {
    background-color: darkblue;
}

.calyears, .calmonths {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calyears > div,
.calmonths > div,
.caldays > div {
    padding: 2px 6px;
    cursor: pointer;
}

.calyears > div.selected,
.calmonths > div.selected,
.caldays > div.selected {
    background-color: purple;
    color: white;
}

/* Week days and days share a 7-column grid so they line up */
.calwkdays, .caldays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calwkdays {
    margin-top: 8px;
}

/* data-start is the weekday of the 1st (0 = Sunday), set in behavior.js */
.caldays[data-start="1"] #cal-1 { grid-column-start: 2; }
.caldays[data-start="2"] #cal-1 { grid-column-start: 3; }
.caldays[data-start="3"] #cal-1 { grid-column-start: 4; }
.caldays[data-start="4"] #cal-1 { grid-column-start: 5; }
.caldays[data-start="5"] #cal-1 { grid-column-start: 6; }
.caldays[data-start="6"] #cal-1 { grid-column-start: 7; }
/* Headshot fills its column; the column width in .bio-row sets its size */
.headshot {
    display: block;
    width: 100%;
    height: auto;
}

/* Photo on the left, bio text beside it; stacks when the screen is narrow */
.bio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.bio-row .portfolio__image {
    flex: 0 1 500px;
}

.bio-row .bio-text {
    flex: 1 1 300px;
}

/* Bio buttons: the whole row is clickable, see behavior.js */
.bio-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.bio-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.bio-button img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    transition: transform 0.15s ease-out;
}

.bio-button:hover img {
    transform: scale(1.15);
}

.bio-button:hover a {
    color: violet;
}

.bio-button a {
    color: inherit;
    font-size: 1.2em;
}
/* Clips: tiny thumbnails in a grid */
.clip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.clip-thumb {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.clip-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.15s ease-out;
}

.clip-thumb:hover img {
    transform: scale(1.05);
}

/* Clip player: big and centered over the page */
.clip-player {
    width: min(90vw, 160vh);
    padding: 0;
    border: none;
    background: black;
    overflow: visible;
}

.clip-player::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.clip-player__video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.clip-player__close {
    position: absolute;
    top: -40px;
    right: 0;
    border: none;
    background: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.clip-thumb__title {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
    text-align: center;
}

.clip-thumb:hover .clip-thumb__title {
    color: violet;
}

.clip-thumb__length {
    display: block;
    font-size: 0.8em;
    text-align: center;
    opacity: 0.8;
}

/* Days with an event get a dot next to the number */
.caldays > div.has-event::after {
    content: "•";
    margin-left: 2px;
    color: violet;
}

/* Keep the dot visible on the purple selected day */
.caldays > div.selected.has-event::after {
    color: white;
}

/* Events listed under the calendar, from events.js */
.cal-events {
    margin-top: 16px;
}

.cal-event {
    margin-bottom: 16px;
    padding: 8px;
    border-left: 4px solid transparent;
}

/* Events on the selected day match the selected day's purple */
.cal-event.selected {
    background-color: purple;
    color: white;
    border-left-color: violet;
}

.cal-event h3 {
    margin: 0 0 4px;
}

.cal-event p {
    margin: 0;
}

.cal-event a {
    color: violet;
}

.calendar-item {
    height: 30px;
}
/* Instagram link on the Contact & Newsletter page */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: inherit;
    text-decoration: none;
}

.ig-link img {
    width: 48px;
    height: auto;
    transition: transform 0.15s ease-out;
}

.ig-link:hover img {
    transform: scale(1.15);
}

.ig-link:hover span {
    color: violet;
}

/* Hamburger button: only shown on small screens */
.nav-toggle {
    display: none;
}

/* Small screens: nav hides behind the hamburger, bio stacks vertically */
@media (max-width: 700px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 8px;
        left: 8px;
        z-index: 1001;
        padding: 4px 10px;
        border: none;
        background-color: #fd18fa;
        color: white;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .nav {
        display: none;
        padding-top: 56px;
    }

    .nav.nav-open {
        display: flex;
    }

    .top-title {
        margin-left: 0;
        padding-left: 56px;
    }

    .portfolio-section {
        margin-left: 0;
    }

    .bio-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bio-row .portfolio__image,
    .bio-row .bio-text {
        flex: none;
    }

    .newsletter iframe {
        max-width: 100%;
    }
}
