:root {
    --background-color: #ddd;
    --text-color: #000;
    --highlight-color: #9a9a9a;
    --card-bg-color: #eee;
    --font-primary: "Gill Sans MT", "Gill Sans", Calibri, "Trebuchet MS", sans-serif;

    /* Signature 3-Stripe Colors */
    --stripe-yellow: #ffff00;
    --stripe-magenta: #ff00ff;
    --stripe-blue: #00ffff;

    --border-color: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    /* Subtle Archival Dot Tile Grid Pattern */
    background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Navigation Header */
.site-header {
    background: var(--background-color);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 18px;
}

.logo-icon span {
    height: 4px;
    width: 100%;
    display: block;
}

.logo-icon span:nth-child(1) {
    background-color: var(--stripe-yellow);
}

.logo-icon span:nth-child(2) {
    background-color: var(--stripe-magenta);
}

.logo-icon span:nth-child(3) {
    background-color: var(--stripe-blue);
}

.logo-text {
    display: block;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #333
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.user-badge {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--text-color);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background-color: var(--text-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    max-width: 900px;
    margin: 3rem auto 2rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #333;
    max-width: 680px;
    margin: 0 auto 2rem auto;
}

/* Carousel Section */
.carousel-section {
    margin: 2rem 0 4rem 0;
    width: 100%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#carouselContainer,
.carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem 0;
    position: relative;
}

/* Forces track to remain strictly horizontal */
.carousel-track,
.marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 2rem;
}

.carousel-track.animated,
.marquee-track {
    animation: marquee 35s linear infinite;
}

.carousel-track.animated:hover,
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Spinner & Error States */
.carousel-loader {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid var(--highlight-color);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.carousel-error {
    width: 100vw;
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

/* 35mm Slide Card Mount */
.slide-card,
.slide-mount-card {
    background-color: var(--card-bg-color);
    border: 2px solid var(--text-color);
    width: 260px;
    flex-shrink: 0 !important;
    padding: 1rem 1rem 0 1rem;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.slide-card:hover,
.slide-mount-card:hover {
    transform: translateY(-6px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.25);
}

.slide-frame-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.slide-aperture,
.slide-aperture-window {
    background-color: #111;
    border: 2px solid #888;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}

.slide-aperture img,
.slide-aperture-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-card-id {
    font-size: 0.75rem;
    color: #555;
    font-family: monospace;
    margin-bottom: 1rem;
}

/* Stacked 3 Stripes on Card Bottom */
.card-stripes,
.stripe-bar-3 {
    display: flex;
    flex-direction: column;
    height: 9px;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
}

.card-stripes .stripe,
.stripe-bar-3 div {
    height: 3px;
    width: 100%;
}

.stripe.yellow,
.stripe-y {
    background-color: var(--stripe-yellow);
}

.stripe.magenta,
.stripe-m {
    background-color: var(--stripe-magenta);
}

.stripe.blue,
.stripe-b {
    background-color: var(--stripe-blue);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card-bg-color);
    border: 3px solid var(--text-color);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.4);
    max-width: 650px;
    width: 100%;
    position: relative;
    padding: 2rem;
}

.modal-narrow {
    max-width: 420px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
}

.modal-header h3 {
    font-size: 1.35rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1rem;
}

.lightbox-image-container {
    background: #000;
    border: 2px solid var(--text-color);
    margin-bottom: 1.25rem;
    max-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.slide-tag {
    font-family: monospace;
    font-size: 0.8rem;
    background: var(--highlight-color);
    padding: 0.15rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-slide-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-slide-desc {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.notice-box {
    background-color: var(--background-color);
    border-left: 4px solid var(--text-color);
    padding: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid var(--text-color);
    background: #fff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--stripe-blue);
}

/* Page Bottom Full-Width 3 Stacked Stripes */
.site-footer {
    width: 100%;
    margin-top: auto;
}

.footer-stripes {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 15px;
}

.footer-stripes .stripe {
    height: 5px;
    width: 100%;
}