/* -----------------------------------------
   GLOBAL RESET
----------------------------------------- */
body,
.site-main,
.entry-content,
.site-content,
.content-area,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
figure,
.wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
}

/* -----------------------------------------
   SWITZER FONT
----------------------------------------- */

@font-face {
    font-family: 'Switzer';
    src: url('https://varyastarodubova.ch/webfonts/Switzer-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('https://varyastarodubova.ch/webfonts/Switzer-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('https://varyastarodubova.ch/webfonts/Switzer-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* -----------------------------------------
   STRUCTURE
----------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 33px;
    padding: 0;
    background: white;
    border-bottom: 1px solid black;
}

body {
    padding-top: 0 !important;
}

.site-footer {
    padding: 1rem;
    margin: 0 !important;
}

/* =====================================
   GLOBAL TYPOGRAPHY RESET
===================================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Switzer;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

p, span, li, figcaption, blockquote {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

a {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
}

strong, b {
    font-weight: 400;
}

button, input, textarea, select, label {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
    background: none;
    border: none;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

small {
    font-size: 1rem;
    font-weight: 400;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* -----------------------------------------
   SITE BRANDING
----------------------------------------- */
h1.site-title,
p.site-title {
    margin: 0;
    line-height: 1.2;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Switzer';
}

.site-branding {
    font-family: 'Switzer';
    color: black;
}

/* -----------------------------------------
   NAVIGATION
----------------------------------------- */
.main-navigation {
    margin-left: auto;
    z-index: 9999;
}

.main-navigation ul {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
    margin-left: 1px;
}

.main-navigation ul li a {
    display: block;
    padding: 0 0.6rem;
    line-height: 1;
    background: transparent;
    color: black;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current-menu-ancestor > a {
    background: white;
    color: black;
}

.main-navigation ul ul {
    display: none !important;
}

/* -----------------------------------------
   HOME PAGE — MASONRY GRID
----------------------------------------- */
.home-masonry {
    column-count: 3;
    column-gap: 0;
    width: 100%;
    border-left: 1px solid black;
    border-top: 1px solid black;
}

@media (max-width: 900px) { .home-masonry { column-count: 2; } }
@media (max-width: 600px) { .home-masonry { column-count: 1; } }

.home-masonry .project {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    break-inside: avoid;
    overflow: hidden;
    text-decoration: none;
    color: black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.home-masonry .project img {
    width: 100%;
    height: auto;
    display: block;
    transition: none !important;
}

.home-masonry .project:hover img {
    transform: none !important;
}

.home-masonry .project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 2;
}

.home-masonry .project:hover::after {
    opacity: 0.85;
}

.home-masonry .project h3 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
    font-family: inherit;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 3;
}

.home-masonry .project:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------
   PROJECT PAGE — FIXED HEIGHT GRID
----------------------------------------- */
.project-grid-fixed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    width: 100%;
    border-top: 1px solid black;
    border-left: 1px solid black;
}

.project-fixed {
    height: 420px;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    overflow: hidden;
}

.project-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -----------------------------------------
   PROJECT LIST PAGE
----------------------------------------- */
.project-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid black;
}

.project-list li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0;
    border-bottom: 1px solid black;
}

.project-list li a {
    display: block;
    padding: 0.2rem 0 0.5rem 10px;
    line-height: 0;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 400;
    color: black;
    text-decoration: none;
}

.project-hover-image {
    position: fixed;
    left: 1000px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    border: 1px solid black;
    background: white;
    z-index: 20;
}

.project-list li:hover .project-hover-image {
    opacity: 1;
}

/* -----------------------------------------
   CONTACT PAGE COLUMNS
----------------------------------------- */
.contact-columns {
    display: flex;
    width: 100%;
}

.contact-columns .col {
    flex: 1;
    padding: 20px;
    border-left: 1px solid black;
}

.contact-columns .col:first-child {
    border-left: none;
}

.contact-columns p {
    margin: 0;
    font-size: 15px;
    font-family: inherit!important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: black;
}

/* -----------------------------------------
   LA RAPSODIE — FIXED HEIGHT GRID
----------------------------------------- */
.larapsodie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-top: 1px solid white;
    border-left: 1px solid white;
}

.larapsodie-item {
    border-right: 15px solid white;
    border-bottom: 15px solid white;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.larapsodie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -----------------------------------------
   GRID LAYOUT HEAD IDENTITY PROJECT
----------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 10px;
    padding: 10px;
    max-width: 1800px;
    margin: 100px auto 0 auto;
}

.project-item {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.project-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* FULLSCREEN / SPLIT FULLSCREEN SECTIONS */
.project-item.full {
    grid-column: 1 / -1;
    height: calc(100vh - 100px);
    max-height: 1000px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.project-item.full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-fullscreen {
    grid-column: 1 / -1;
    display: flex;
    width: calc(100vw - 20px);
    height: 100vh;
    margin-left: calc(-50vw + 50% + 10px);
    box-sizing: border-box;
    gap: 10px;
}

.split-fullscreen .project-item {
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
}

.split-fullscreen .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .split-fullscreen {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 0 10px;
        gap: 10px;
    }

    .split-fullscreen .project-item {
        width: 100%;
        height: 60vh;
    }
}

/* -----------------------------------------
   PROJECT METADATA LAYOUT
----------------------------------------- */
.project-meta {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    column-gap: 70px;
    row-gap: 20px;
    max-width: 1800px;
    margin: 10px auto 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.meta-left,
.meta-right,
.meta-third {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-title,
.project-info p,
.meta-left p,
.meta-right p,
.meta-third p {
    margin: 0;
    font-family: inherit;
    font-weight: 400 !important;
    line-height: 1.35;
    font-size: 20px;
    color: black;
}

.meta-right p {
    line-height: 1.45;
    font-size: 16px;
}

@media (max-width: 800px) {
    .project-meta {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 0 10px;
    }

    .meta-left,
    .meta-right,
    .meta-third {
        gap: 5px;
    }
}

/* ENTRY HEADER HIDDEN */
.entry-header {
    display: none !important;
}

/* PROJECT ITEM ORIGINAL SIZE IMAGES */
.project-item.original-size img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    object-fit: unset !important;
    display: inline-block;
}

.project-item.original-size {
    display: inline-block !important;
    vertical-align: top;
    width: auto !important;
    height: auto !important;
    gap: 10px;
}

/* SITE TITLE RESTORED TO ORIGINAL LOOK */
.site-title a {
    font-family: inherit;
    font-weight: 400 !important;       /* original thin style */
    font-size: 1rem !important;
    line-height: 1.2 !important;       /* original vertical spacing */
    color: black !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding-left: 10px;                /* original distance from left */
    display: inline-block;             /* restore original display */
}

.contact-columns,
.contact-columns p {
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-size: inherit;
    color: inherit;
}

.archive .page-header {
    display: none;
}

.archive .site-header,
.home .site-header {
    border-bottom: 0;
}

/* -----------------------------------------
   SINGLE PROJECT — TEXT BLOCK PADDING (OVERRIDE)
----------------------------------------- */

.single-post .entry-content {
    padding: 10px !important;
    box-sizing: border-box;
}

/* CONTACT PAGE — SCREEN EDGE PADDING FIX */
.contact-columns,
.contact-columns .wp-block-group,
.contact-columns .wp-block-column,
.entry-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

/* Make black gallery visually full-width */
.black-fullwidth {
    position: relative;
    width: calc(100% + 20px);  /* add back parent padding */
    left: -10px;               /* shift left by parent padding */
    right: -10px;              /* shift right by parent padding */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: black;   /* optional, for the black background */
}

/* Remove padding/margin from inner gallery/images */
.black-fullwidth .wp-block-gallery,
.black-fullwidth .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
}

.black-spacer {
    background-color: black;
    display: block;
    width: 100%;
}

.black-spacer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: black;
    height: 50px; /* adjust as needed */
}













