/*
Theme Name: Artist Portfolio
Description: Minimalist WordPress theme for artists
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: ltr;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 2rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 2px;
}

.site-branding .site-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-branding .site-title a:hover {
    color: #666;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

/* Show hamburger menu on all devices for homepage */
body.home .hamburger-menu-toggle {
    display: flex !important;
}

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

body.home .left-side-navigation.mobile-only {
    display: block !important;
}

body.home .nav-overlay.mobile-only {
    display: block !important;
}

/* Regular pages show normal navigation on desktop */
@media (min-width: 769px) {

    body:not(.home) .main-navigation {
        display: flex !important;
    }

    body:not(.home) .hamburger-menu-toggle {
        display: none !important;
    }

    body:not(.home) .left-side-navigation.mobile-only {
        display: none !important;
    }

    body:not(.home) .nav-overlay.mobile-only {
        display: none !important;
    }
}

/* Hamburger Menu Toggle - Hidden by default */
.hamburger-menu-toggle {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hamburger-menu-toggle .hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Left Side Navigation - Hidden by default */
.left-side-navigation {
    display: none !important;
}

/* Mobile Navigation - works on all devices for homepage */
.left-side-navigation.mobile-only {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #eee;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.left-side-navigation.mobile-only.active {
    left: 0;
    pointer-events: auto;
}

/* Overlay for mobile menu */
.nav-overlay.mobile-only {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-overlay.mobile-only.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-header {
    padding: 2.5rem 2rem;
    border-bottom: 2px solid #eee;
    text-align: center;
    z-index: 1;
    background: #f8f9fa;
    flex-shrink: 0;
}

.nav-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
    color: #333;
    text-transform: uppercase;
}

.left-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* center items vertically */
}

.left-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.left-menu a {
    display: block;
    padding: 1.5rem 2rem;
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    /* center text */
}

.left-menu a:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* remove side stripe to keep centered look clean */

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #666;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #333;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Homepage */
.homepage-content {
    text-align: center;
    padding: 4rem 0;
}

.artist-name {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 4px;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.artist-description {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.8;
}

/* Fullscreen Hero Section */
.hero-section.fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff !important;
    min-height: 100vh;
    margin-top: 0;
}

/* Ensure header is visible on homepage */
body.home .site-header {
    display: block !important;
    position: relative !important;
    z-index: 1000 !important;
    background: #fff !important;
    border-bottom: 0px solid #eee !important;
    margin-bottom: -1px !important;
}

/* Hero Images Layout */
.hero-images-layout {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    width: 100%;
    height: 80vh !important;
    min-height: 80vh;
    max-width: none;
    margin: 0;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 100px;
    /* Space for header */
}

/* Large Image (Left) */
.hero-image.large {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 3 !important;
    border-radius: 0 !important;
    height: 100%;
    min-height: 80vh;
}

/* Small Image (Right) */
.hero-image.small {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    border-radius: 0 !important;
    height: 100%;
    min-height: 40vh;
}

/* Hide medium image */
.hero-image.medium {
    display: none !important;
}

/* Desktop placement for diagonal logo (requested values) */
@media (min-width: 769px) {


/* Mobile ‏תאריך וכותרת ראשית */
.artwork-list-year {
		
    color: #222;

    font-size: 1rem !important;

    line-height: 1.2;

    font-weight: 300;
}

.artwork-list-link {

    font-size: 1rem !important;

    line-height: 1.2;

    font-weight: 300;

    color: #111;

    text-decoration: none;

    text-decoration-thickness: 2px;

    text-underline-offset: 6px;
}
/* Mobile ‏תאריך וכותרת ראשית */




    body.home .home-diagonal-logo {
        position: fixed;
        top: 495px;
        left: 46%;
        z-index: 1100;
        transform: rotate(-90deg);
        transform-origin: top left;
        pointer-events: auto;
    }

    body.home .home-diagonal-logo a {
        display: inline-block;
        font-size: 21px;
        line-height: 1;
        letter-spacing: 13px;
        text-decoration: none;
        color: #111;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        border-radius: 4px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
}

/* Desktop override to ensure diagonal logo is visible */
@media (min-width: 769px) {
    body.home .home-diagonal-logo {
        position: fixed;
        top: 24px;
        left: 24px;
        z-index: 3000;
        transform: rotate(-45deg);
        transform-origin: top left;
        pointer-events: auto;
    }
}

/* Homepage diagonal logo */
body.home .home-diagonal-logo {
    position: fixed;
    top: 495px;
    left: 46%;
    z-index: 1100;
    transform: rotate(-90deg);
    transform-origin: top left;
    pointer-events: auto;
}


body.home .home-diagonal-logo a {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 3px;
    text-decoration: none;
    color: #111;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Hide the default site title only on homepage */
body.home .site-header .site-branding {
    display: none !important;
}

/* Mobile override for diagonal logo position/rotation */
@media (max-width: 768px) {

    /* Mobile ‏תאריך וכותרת ראשית */
    .artwork-list-year {

        color: #222;

        font-size: 1rem;

        line-height: 1.2;

        font-weight: 300;
    }

    .artwork-list-link {

        font-size: 1rem;

        line-height: 1.2;

        font-weight: 300;

        color: #111;

        text-decoration: none;

        text-decoration-thickness: 2px;

        text-underline-offset: 6px;
    }

    /* Mobile ‏תאריך וכותרת ראשית */



    body.home .home-diagonal-logo {
        position: fixed;
        top: 651px;
        left: -404px;
        z-index: 23;
        transform: rotate(-90deg);
        transform-origin: top left;
        pointer-events: auto;
    }

    body.home .home-diagonal-logo a {
        display: inline-block;
        font-size: 28px;
        line-height: 1;
        letter-spacing: 18px;
        text-decoration: none;
        color: #111;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        margin-top: 102% !important;
        border-radius: 4px;
        box-shadow: 0 -19px 23px rgba(0, 0, 0, 0.12);
    }
}

.hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Image Background Layer */
.image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Fallback Gradients when no images exist */
.hero-image[data-fallback="gradient-1"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image[data-fallback="gradient-2"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-image[data-fallback="gradient-3"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.9);
    z-index: 2;
}

/* Image Content */
.image-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    z-index: 3;
}

.image-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.image-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.image-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.image-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Artwork archive: list with hover preview */
.artwork-list {
    list-style: none;
    margin: 3rem 0;
    padding: 0 clamp(16px, 4vw, 48px);
    /* balanced L/R padding like reference */
}

.artwork-list-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    /* more vertical rhythm */
    border-bottom: 1px solid #eee;
}

.artwork-list-link {
    font-size: 3rem;
    /* ~48px */
    line-height: 1.2;
    font-weight: 300;
    color: #111;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.artwork-list-link:hover {
    color: #000;
}

.artwork-list-year {
    color: #222;
    font-size: 3rem;
    /* match title height */
    line-height: 1.2;
    font-weight: 300;
}

.artwork-hover-preview {
    position: fixed;
    top: 110px;
    /* below header */
    right: 2rem;
    width: 360px;
    height: 240px;
    background: #000 center/cover no-repeat;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 999;
}

.artwork-hover-preview.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.artwork-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.artwork-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-info {
    padding: 1.5rem;
    background: #fff;
}

.artwork-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.artwork-meta {
    color: #666;
    font-size: 0.9rem;
}

/* Single Artwork Page */
.single-artwork {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.artwork-gallery {
    margin: 2rem 0;
}

.artwork-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.artwork-details {
    background: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.artwork-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.artwork-detail-label {
    font-weight: 500;
    color: #333;
}

.artwork-detail-value {
    color: #666;
}

/* Category Filter */
.category-filter {
    text-align: center;
    margin: 2rem 0;
}

.category-filter ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter li {
    margin: 0;
}

.category-filter a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.category-filter a:hover,
.category-filter a.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.page-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
    margin-top: 2rem;
}

.btn-primary:hover {
    background: #555;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* YouTube Container */
.artwork-youtube {
    margin: 3rem 0;
}

.artwork-youtube h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Single Work (Artwork) minimal, centered layout */
.work-container {
    margin: 0 auto;
    padding: 60px 20px;
    width: 80%;
    max-width: 1400px;
}

.work-header {
    text-align: center;
    margin-bottom: 30px;
}

.work-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.work-meta {
    color: #666;
    font-size: 14px;
}

.work-meta-item {
    display: inline-block;
    margin: 0 6px;
}

.work-cover {
    margin: 30px 0;
}

.work-cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.work-description {
    margin: 24px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.work-content {
    margin: 24px 0;
}

.work-video {
    margin: 32px 0;
}

.work-gallery {
    margin: 40px 0;
}

.work-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.work-gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

.work-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.work-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.work-nav a {
    color: #333;
    text-decoration: none;
}

.work-nav a:hover {
    text-decoration: underline;
}

/* Lightbox (gallery popup) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {


    /* Mobile ‏תאריך וכותרת ראשית */
    .artwork-list-year {

        color: #222;

        font-size: 1rem !important;

        line-height: 1.2;

        font-weight: 300;
    }

    .artwork-list-link {

        font-size: 1rem !important;

        line-height: 1.2;

        font-weight: 300;

        color: #111;

        text-decoration: none;

        text-decoration-thickness: 2px;

        text-underline-offset: 6px;
    }

    /* Mobile ‏תאריך וכותרת ראשית */




    .container {
        padding: 0 1rem;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1rem;
    }

    .site-branding .site-title {
        font-size: 1.6rem;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu-toggle {
        display: flex !important;
    }

    /* Hide desktop navigation on mobile */
    .main-navigation {
        display: none;
    }

    /* Show mobile navigation */
    .left-side-navigation.mobile-only {
        display: block !important;
    }

    .nav-overlay.mobile-only {
        display: block !important;
    }

    .artist-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-filter ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .work-title {
        font-size: 30px;
    }

    .work-container {
        padding: 40px 16px;
        width: 90%;
    }

    .work-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Hero Layout */
    .hero-section.fullscreen {
        background: #fff !important;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        padding: 0;
    }

    .hero-images-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 0 !important;
        width: 100%;
        height: 80vh !important;
        min-height: 80vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        padding: 0;
        max-width: none;
        margin-top: 120px;
        /* Space for header on mobile */
    }

    .hero-image.large {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        height: 100%;
        min-height: 40vh;
        border-radius: 0 !important;
        width: 50% !important;
        margin: 0 0 0 auto !important;
        /* align to right */
        justify-self: end;
        /* align within grid to right */
    }

    .hero-image.small {
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
        height: 100%;
        min-height: 40vh;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .hero-image.medium {
        display: none !important;
    }

    .image-content h2 {
        font-size: 2rem;
    }

    .image-content h3 {
        font-size: 1.5rem;
    }

    .image-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .site-branding .site-title {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .work-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}






/* Layout: תמונה תחתונה גדולה (50vh) + תמונה עליונה חצי מסך בצד ימין עם 100px רווח */
.hero-images-layout {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    /* שתי עמודות */
    grid-template-rows: 50vh 50vh !important;
    /* שתי שורות של חצי מסך */
    height: 100vh !important;
    min-height: 100vh !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* אם תרצה שיגלגל – שנה ל: position: relative והסר bottom/left/right */
    margin-top: 0 !important;
}

/* תחתונה גדולה: פרוסה על כל הרוחב */
.hero-image.large {
    grid-column: 1 / -1 !important;
    /* שתי העמודות */
    grid-row: 2 / 3 !important;
    /* השורה התחתונה */
    min-height: 50vh !important;
}

/* עליונה בצד ימין: חצי מסך + רווח 100px מלמעלה */
.hero-image.small {
    grid-column: 2 / 3 !important;
    /* עמודה ימנית */
    grid-row: 1 / 2 !important;
    /* השורה העליונה */
    min-height: 50vh !important;
    margin-top: 100px !important;
}

/* להשאיר מוסתרת */
.hero-image.medium {
    display: none !important;
}




















/* === NOVIZKI: גלריה/סליידר בגודל אחיד === */
/* קבע יחס ממדים לכל האריחים בגלריה: 1/1 = ריבוע, 4/3, 3/2, 16/9 וכו' */
:root { --gallery-tile-ratio: 4/3; } /* שנה לפי הטעם: למשל 1/1 לריבועים */

/* פריטי גלריה נפוצים בתבנית/וורדפרס */
.work-gallery-grid > *,
.gallery-grid > *,
.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery ul.blocks-gallery-grid li.blocks-gallery-item,
.elementor-image-gallery .gallery-item,
.elementor-gallery__container .e-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;             /* שומר את הפינות המעוגלות שיש לך */
  aspect-ratio: var(--gallery-tile-ratio);
}

/* לבטל מרווחים שמפילים שורות */
.work-gallery-grid figure,
.gallery-grid figure,
.wp-block-gallery .blocks-gallery-item figure { margin: 0 !important; }

/* ודא שהעוטף הפנימי ממלא את האריח */
.work-gallery-grid > * > a,
.gallery-grid > * > a,
.wp-block-gallery .blocks-gallery-item > a,
.wp-block-gallery .blocks-gallery-item > figure,
.elementor-image-gallery .gallery-item > a {
  position: absolute;
  inset: 0;
  display: block;
}

/* התמונה ממלאת את האריח ונחתכת פרופורציונלית */
.work-gallery-grid img,
.gallery-grid img,
.wp-block-gallery .blocks-gallery-item img,
.elementor-image-gallery .gallery-item img,
.elementor-gallery__container .e-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: middle;
}

/* מבטל גבהים/חוקים סותרים שהוגדרו קודם (למשל height:250px) */
.gallery-image,
.work-gallery-image {
  height: auto !important; /* יאוכלס מחדש לגובה האריח דרך !important למעלה */
}









