@font-face {
    font-family: 'Bebas Kai';
    src: url('fonts/Bebas Kai.woff2') format('woff2');
    font-display: block;
}

@font-face {
    font-family: 'Impact';
    src: url('fonts/Impact.woff2') format('woff2');
    font-display: block;
}

@font-face {
    font-family: 'Decotech';
    src: url('fonts/DecoTech TL.woff2') format('woff2');
    font-display: block;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fffafa;
    font-family: 'Bebas Kai', sans-serif;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #fffafa #101010;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 0;
}

.header-table {
    background-color: #101010;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px #101010;
}

.nav-table {
    width: 100%;
}

.nav-left {
    text-align: left;
    width: 20%;
}

.nav-center {
    text-align: center;
    width: 60%;
}

.nav-right {
    text-align: right;
    width: 20%;
}

.small-image {
    width: 156px;
    height: auto;
    display: block;
}

.small-image2 {
    width: 80px;
    height: auto;
    margin-right: 50px;
}

.menu-link {
    color: #fffafa;
    text-decoration: none;
    font-size: clamp(1.6rem, 5vw, 4rem);
    text-shadow: 2px 1px 4px #fffafa;
    margin: 20px;
}

.menu-link:hover {
    color: #101010;
    text-shadow: 2px 1px 4px #fffafa;
}

.portfolio-content {
    background-color: #fffafa;
    text-align: center;
    padding: 40px 20px 20px;
}

.portfolio-content input[type="radio"] {
    display: none;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-bottom: 70px;
}

.portfolio-tab-label {
    font-family: 'Decotech', sans-serif;
    color: #101010;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 2px;
    text-shadow: 2px 1px 4px #101010;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.portfolio-tab-label:hover,
#stills-tab:checked ~ .portfolio-tabs label[for="stills-tab"],
#motion-tab:checked ~ .portfolio-tabs label[for="motion-tab"] {
    color: #fffafa;
    text-shadow:
        -1px -1px 0 #101010,
         1px -1px 0 #101010,
        -1px  1px 0 #101010,
         1px  1px 0 #101010,
         0 0 8px #101010;
}

.portfolio-separator {
    width: 2px;
    height: 55px;
    background-color: #101010;
    box-shadow: 0 0 10px rgba(16,16,16,0.4);
}

.gallery-panel {
    display: none;
    opacity: 0;
    animation: galleryFade 0.45s ease forwards;
}

#stills-tab:checked ~ .stills-panel,
#motion-tab:checked ~ .motion-panel {
    display: block;
}

@keyframes galleryFade {
    from {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto 80px;
    column-count: 3;
    column-gap: 22px;
}

.gallery-grid a {
    display: inline-block;
    width: 100%;
    margin-bottom: 22px;
    text-decoration: none;
    break-inside: avoid;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
	
	background-color: rgba(16,16,16,0.05);

    opacity: 0;
    transform: translateY(14px);

    box-shadow: 0 0 20px rgba(16,16,16,0.25);

	transition:
		opacity 0.45s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.gallery-grid img.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid img:hover {
    transform: scale(1.015);
    opacity: 0.9;
    box-shadow: 0 0 26px rgba(16,16,16,0.45);
}

/* -------------------- */
/* IMAGE PROTECTION */
/* -------------------- */

.gallery-grid img,
.viewer-slide img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.video-grid {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.video-grid iframe {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(16,16,16,0.25);
}

/* -------------------- */
/* VIEWER */
/* -------------------- */

body.viewer-open {
    overflow: hidden;
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background-color: #101010;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.viewer-stage {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}

.viewer-track {
    height: 100vh;

    display: flex;
    align-items: center;

    will-change: transform;
}

.viewer-slide {
    width: 100vw;
    height: 100vh;

    flex: 0 0 100vw;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 9vw;
    box-sizing: border-box;
}

.viewer-slide img {
    max-width: 82vw;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;
    display: block;

    user-select: none;
    -webkit-user-drag: none;
}

.viewer-close {
    position: fixed;
    top: 22px;
    right: 30px;

    z-index: 10003;

    background: none;
    border: none;

    color: #fffafa;

    font-family: 'Bebas Kai', sans-serif;
    font-size: 4rem;
    line-height: 1;

    cursor: pointer;

    opacity: 0.75;

    transition: opacity 0.25s ease;
}

.viewer-close:hover {
    opacity: 1;
}

.viewer-arrow {
    position: fixed;
    top: 50%;

    width: 70px;
    height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateY(-50%);

    z-index: 10002;

    background: none;
    border: none;
    padding: 0;
    margin: 0;

    color: #fffafa;

    font-family: 'Bebas Kai', sans-serif;
    font-size: 6rem;
    line-height: 1;

    cursor: pointer;

    opacity: 0.45;

    transition: opacity 0.25s ease;
}

.viewer-arrow:hover {
    opacity: 1;
}

.viewer-prev {
    left: 25px;
}

.viewer-next {
    right: 25px;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;

    transition: opacity 0.2s ease;
}

.legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {

    .nav-table tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        width: auto;
    }

    .small-image {
        width: 90px;
    }

    .small-image2 {
        width: 50px;
        margin-right: 10px;
    }

    .menu-link {
        margin: 0 6px;
    }

    .portfolio-content {
        padding: 35px 14px 20px;
    }

    .portfolio-tabs {
        gap: 22px;
        margin-bottom: 50px;
    }

    .portfolio-tab-label {
        font-size: 2rem;
    }

    .portfolio-separator {
        height: 38px;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 12px;
        margin-bottom: 60px;
    }

    .gallery-grid a {
        margin-bottom: 12px;
    }

    .viewer-slide {
        padding: 0 4vw;
    }

    .viewer-slide img {
        max-width: 92vw;
        max-height: 78vh;
        transform: translateY(-2vh);
    }

    .viewer-arrow {
        display: none;
    }

    .viewer-close {
        top: 12px;
        right: 16px;
        font-size: 3rem;
        z-index: 10003;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}

a,
img {
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #101010;
    border-radius: 14px;
    box-shadow: inset 0 0 6px rgba(255,255,255,.3);
}

::-webkit-scrollbar-thumb {
    background: #fffafa;
    border-radius: 14px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
}

#viewerPrev,
#viewerNext {
    position: fixed !important;
    top: 50vh !important;
    bottom: auto !important;

    width: 70px !important;
    height: 70px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    transform: translateY(-50%) !important;

    z-index: 999999 !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;

    color: #fffafa !important;

    font-size: 6rem !important;
    line-height: 1 !important;

    opacity: 0.55 !important;
}

#viewerPrev {
    left: 25px !important;
    right: auto !important;
}

#viewerNext {
    right: 25px !important;
    left: auto !important;
}

.viewer.is-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    transform: none !important;
}

.viewer-stage,
.viewer-track,
.viewer-slide {
    height: 100vh !important;
}

@media screen and (max-width: 768px) {
    #viewerPrev,
    #viewerNext {
        display: none !important;
    }

    .viewer-close {
        display: block !important;
        position: fixed !important;
        top: 12px !important;
        right: 16px !important;
        z-index: 999999 !important;
    }
}

