html {
    scroll-snap-type: y proximity;
}

body {
    background: #000;
    color: #c5d0cd;
}

@font-face {
    font-family: 'Bugrino Trial';
    src: url('../typefaces/BugrinoTrial-Heavy.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Bugrino Trial';
    src: url('../typefaces/BugrinoTrial-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

.project-title-container h1 {
    font-family: 'Bugrino Trial', system-ui, sans-serif;
    font-weight: 700;
    color: #f1f4f0;
}

.project-title-container h2 {
    font-family: 'Bugrino Trial', system-ui, sans-serif;
    font-weight: 300;
    color: #aeb8b5;
}

.project-header-information {
    color: #c5d0cd;
}

.project-details-container h3,
.project-description-container h3,
.project-content-text-container h3 {
    color: #d7dedb;
}

.project-content-text-container h2 {
    color: #f1f4f0;
}

.project-image-container h3,
.project-content-image-container h3 {
    color: #8fa09c;
}

.project-divider {
    border-color: #2b3a3a;
}

.detail-bar h1,
.side-menu h1,
.side-menu h2,
.side-menu p,
.side-menu a,
.side-menu button {
    color: #6f807c;
}

a {
    color: #5fcf5a;
}

a:hover {
    color: #7fe07a;
}

.snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    transition: opacity 0.15s ease-out;
}

.video-container {
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #2b3a3a;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    
    object-fit: cover;
    object-position: center center;
}

.project-content-image-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

.project-content-image-container video {
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid #2b3a3a;
    object-fit: cover;
    object-position: center center;
}

.project-analyses-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
}

.project-analyses-grid {
    flex-wrap: nowrap;
}

.project-square-video {
    flex: 1 1 0;
    min-width: 0;
}

.project-square-video-frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #2b3a3a;
    box-sizing: border-box;
}

.project-square-video-frame video,
.project-square-video-frame img {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center center;
}

.project-square-video-placeholder .project-square-video-frame.project-square-video-inner {
    background: #111;
    border-style: dashed;
    border-color: #2b3a3a;
}

.image-carousel {
    position: relative;
    width: 100%;
}

.image-carousel__viewport {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #2b3a3a;
    box-sizing: border-box;
}

.project-content-image-container .image-carousel .image-carousel__image {
    max-width: 100%;
    width: 100%;
    height: auto;
    vertical-align: middle;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.project-content-image-container .image-carousel--video .image-carousel__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    object-fit: cover;
    object-position: center center;
    border: none;
}

.image-carousel__prev,
.image-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #f1f4f0;
    font-size: 1rem;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.image-carousel__icon {
    width: 0.65rem;
    height: 0.65rem;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.image-carousel__prev {
    left: 0.35rem;
}

.image-carousel__next {
    right: 0.35rem;
}

.image-carousel__prev:hover,
.image-carousel__next:hover {
    transform: translateY(-50%) scale(1.12);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.44);
    box-shadow: none;
}

.image-carousel__prev:focus-visible,
.image-carousel__next:focus-visible {
    outline: 2px solid #1a1aff;
    outline-offset: 2px;
    transform: translateY(-50%) scale(1.08);
}

@media (orientation: portrait) {
    .video-container {
        aspect-ratio: 1;
    }

    .project-image-container img {
        font-size: 0.5rem;
    }

    .project-title-container h2 {
        font-weight: bold;
    }
}

@media (max-width: 760px) {
    html {
        scroll-snap-type: none;
    }

    .snap-section {
        min-height: auto;
        scroll-snap-align: none;
        opacity: 1 !important;
    }

    .project-analyses-visual-stack {
        margin-left: 0;
    }

    .project-analyses-grid {
        flex-wrap: wrap;
    }

    .project-square-video {
        flex: 0 0 auto;
    }
}
