:root {
    --main-font: "Monospace821Regular", monospace, sans-serif;
    --link-color: #0000EE;
    --bg-color: #fff;
    --text-color: #000;
    --max-width: 800px;
    --hover-dark: #333;
}
/* Minimalist CSS Instagram Logo */
.insta-logo {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid var(--link-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* This creates the inner circle */
.insta-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1px solid var(--link-color);
    border-radius: 50%;
}

/* This creates the top-right dot */
.insta-logo::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 2px;
    height: 2px;
    background-color: var(--link-color);
    border-radius: 50%;
}

/* Optional: Invert colors on hover to match other links */
.insta-logo:hover {
    background-color: var(--link-color);
}

.insta-logo:hover::before {
    border-color: var(--bg-color);
}

.insta-logo:hover::after {
    background-color: var(--bg-color);
}
/* Font Faces */
/* Font Faces */
@font-face {
  font-family: 'FlorenceSans';
  src: url('../fonts/SFFlorencesans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: 'CaslonPro';
  src: url('../fonts/ACaslonPro-SemiboldItalic.otf') format('opentype');
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Monospace821Regular";
  src: url('../fonts/MONOSPACE821BT.TTF')  format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monospace821Bold";
  src: url('../fonts/MONOSPACE821BOLDBT.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--main-font);
    margin: 0;
    padding: 0;
}

a {
    font-family: var(--main-font);
    font-size: 14px;
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    text-decoration: line-through;
}

.section {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    box-sizing: border-box;
}

.unContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.unMenu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 20px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 0 10px;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.unMenu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.unLogoLink {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    font-family: var(--main-font);
    font-size: 14px;
    text-decoration: none;
    color: var(--link-color);
}

.unLogo {
    font-family: "Monospace821Regular", monospace, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 8vw;
    letter-spacing: 0.2vw;
    gap: 0.5vw;
}

.unLogo span {
    font-family: 'CaslonPro', serif;
    font-style: italic;
}

.caslon {
    font-family: 'CaslonPro', serif;
    font-style: italic;
}

blockquote {
    font-family: var(--main-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    width: 80vw;
    max-width: fit-content;
    margin: 20px auto;
    box-sizing: border-box;
}

blockquote cite {
    display: block;
    text-align: right;
    font-style: italic;
    margin-top: 10px;
}

.unquote {
    width: 70%;
}
#story {
    padding-bottom: 150px;
}
.unTextContent {
    font-family: var(--main-font);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.6;
    color: var(--text-color);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 0;
    width: 100%;
    box-sizing: border-box;
}
.unTextContent a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
/* --- Video Gallery Styles --- */
/* AFTER */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: var(--max-width); /* Use the same max-width as the text */
    margin: 40px auto;
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}
/* Find all existing .thumbnail-overlay rules and REPLACE with this entire block */

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    padding: 10px;
}

.video-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.video-title-overlay {
    font-family: "Monospace821Regular", monospace, sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px; /* Adds space between title and "play" */
}

.play-text-overlay {
    font-family: var(--main-font);
    font-size: 0.8rem;
    padding: 2px 8px;
    border: 1px solid var(--bg-color); /* This is the border you want to keep */
}
/* Responsive adjustments for the gallery */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

.unAbout,
.unWork {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.unWork video {
    max-width: 100%;
}

.unWork h2 {
    font-family: "Monospace821Regular", monospace, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.unFooter {
    font-family: var(--main-font);
    font-size: 0.7rem;
    position: fixed;
    bottom: 2px;
    right: 20px;
}

.unContact {
    font-family: var(--main-font);
    font-size: 0.8rem;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-link {
    margin-top: 40px;
    font-size: 0.8rem;
    display: inline-block;
    color: var(--link-color);
    padding: 8px;
    border: 1px solid var(--link-color);
    text-align: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--bg-color);
    background-color: var(--link-color);
    border-color: var(--link-color);
}

.contact-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.contact-popup-content {
    background: var(--bg-color);
    width: 80%;
    max-width: 500px;
    padding: 50px 20px 20px 20px; /* Increased top padding */
    text-align: center;
    position: relative;
    border-radius: 0;
    border: 0px solid var(--link-color);
    box-sizing: border-box; /* Added for consistency */
}

.contact-popup-content input,
.contact-popup-content textarea {
    font-family: var(--main-font); /* Use main site font */
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--link-color); /* Use theme color for border */
    border-radius: 0; /* Removed rounded corners */
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.contact-popup-content button {
    font-family: var(--main-font); /* Use main site font */
    background-color: var(--link-color);
    color: var(--bg-color);
    border: 1px solid var(--link-color); /* Add a border for consistency */
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 0; /* Removed rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover */
}

.contact-popup-content button:hover {
    background-color: var(--bg-color); /* Invert colors on hover */
    color: var(--link-color);
}

.contact-popup-close {
    position: absolute;
    top: 15px;  /* Repositioned within the new padding area */
    right: 15px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--link-color);
}

.backToTop {
    position: fixed;
    bottom: 50%;
    right: 20px;
    width: 34px;
    height: 34px;
    color: var(--link-color);
    font-family: var(--main-font);
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 1000;
    box-sizing: border-box;

    /* Fix #1: Add these 3 lines to center the arrow */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fix #2: Add these 2 lines to hide the button by default */
    opacity: 0;
    visibility: hidden;

    /* Transition for all effects */
    transition: all 0.3s ease;
}

.backToTop:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50%;
}

.backToTop.visible {
    opacity: 1;
    visibility: visible;
}
/* Responsive */
@media (max-width: 768px) {
    .unLogo {
        font-size: 10vw;
    }

    blockquote { /* Removed the dot before blockquote */
        width: 90vw;
    }
    .unTextContent {
        width: 90vw;
        padding: 40px 20px 0;
    }
}

@media (max-width: 480px) {
    .unLogo {
        font-size: 14vw;
    }

    .blockquote,
    .unTextContent {
        width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
    .unMenu {
        top: 8%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
        padding: 0 5px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .unMenu a {
        font-size: 10px;
        padding: 0.3rem 0.4rem;
        white-space: nowrap;
    }
}

@media (max-width: 320px) {
    .unLogo {
        flex-direction: column;
        align-items: center;
        white-space: normal;
        gap: 1vw;
        letter-spacing: normal;
        font-size: 12vw;
    }
}