@font-face {
    font-family: 'U';
    src: url('/fonts/U-ExtraBlackExt.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'U';
    src: url('/fonts/U-ExtraBlackExtObl.woff2') format('woff2');
    font-weight: 900;
    font-style: oblique;
}

@font-face {
    font-family: 'U';
    src: url('/fonts/U-Black.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'U';
    src: url('/fonts/U-BlackObl.woff2') format('woff2');
    font-weight: bold;
    font-style: oblique;
}

@font-face {
    font-family: 'U';
    src: url('/fonts/U.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'U';
    src: url('/fonts/U-Oblique.woff2') format('woff2');
    font-weight: normal;
    font-style: oblique;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'U', Univers, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1.6;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    max-width: 900px;
    margin: 0 auto;
    align-items: baseline;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 900;
    flex: 1 1 auto;
}

h2 {
    margin: 1.8rem 0 0;
    font-size: 1.8rem;
    font-weight: 900;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 1.2rem;
}

nav ul li a {
    text-decoration: none;
    color: black;
}

a {
    text-decoration: none;
    transition: color 0.5s ease;
    color: black;
}

a:hover {
    color: #cc0000;
}


main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 10%;
}

.action-link {
    margin: 2rem 0 0;
    font-size: 1.2rem;
    font-weight: 900;
}

blockquote {
    margin: 0.5rem 0 0;
    font-size: 1.8rem;
    color: #ccc;
}

blockquote strong {
    font-weight: 900;
}

.news {

}

.news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

video {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

.a-work h3 {
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
    font-weight: normal;
}

main.deets {
    display: flex;
    gap: 2rem;
}

section.deets {
    flex: 1;
}

em {
    font-style: oblique;
}

strong {
    font-weight: bold;
}

em strong, strong em {
    font-weight: bold;
    font-style: oblique;
}

footer {
    padding: 1rem 10%;
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.8rem;
    font-weight: normal;
    color: #444;
}

.carousel {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Set aspect ratio to 4:3 */
}

.carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: initial;

    opacity: 0;
    transition: opacity 0s; /* disable transitions initially */
}

.carousel img.active {
    opacity: 1;
}

/* Once the carousel is loaded, enable the fade transition */
.carousel.loaded img {
    transition: opacity 1s ease-in-out;
}



@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 12px;
    }

    nav ul {
        flex-wrap: wrap;
    }

    main {
        padding: 0 12px;
    }

    main.deets {
        flex-direction: column;
    }

    footer {
        padding: 1rem 12px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
        color: white;
    }

    nav ul li a {
        color: white;
    }

    a {
        color: white;
    }

    blockquote {
        color: #555;
    }

    img {
        border: 1px solid #555;
    }

    video {
        border: 1px solid #555;
    }

    footer {
        color: #bbb;
    }
}
