/*
Theme Name: Minimalio Child
Template: minimalio
*/

/* ─── FONT ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Playfair Display';
    font-weight: normal;
    font-style: normal;
}

/* ─── RESET / BASE ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: #FFF;
    color: #690009;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: blue;
    text-decoration: none;
}

a:hover {
    color: red;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ─── LAYOUT ────────────────────────────────────────────── */
/*
  Structure:
  ┌─────────────────────────────────────────┐
  │  #site-header (full width, fixed top)   │
  ├──────────┬──────────────────────────────┤
  │ #sidebar │  #main-content               │
  └──────────┴──────────────────────────────┘
*/

#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── HEADER ────────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 100px;
    background: #FFF;
}

#site-header .header-logo {
    width: 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
	padding-top: 20px
}

#site-header .header-logo img {
    width: 130px;
    height: 100px;
    
}

#site-header nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    gap: 40px;
}

#site-header nav a {
    font-size: 16px;
}

/* ─── BODY LAYOUT BELOW HEADER ──────────────────────────── */
#body-wrapper {
    display: flex;
    flex: 1;
    margin-top: 100px; /* 0px padding + 100px header height */
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
#sidebar {
    position: fixed;
    top: 115px;
    left: 0;
    bottom: 0;
    width: 200px;
    padding: 100px 10px;
    overflow-y: auto;
    background: #FFF;
    z-index: 50;
    text-align: center;
}

#sidebar .sidebar-section-title {
    font-size: 16px;
    margin-bottom: 12px;
}

#sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#sidebar ul li a {
    font-size: 16px;
}

/* ─── MAIN CONTENT ──────────────────────────────────────── */
#main-content {
    margin-left: 200px;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* ─── FRONT PAGE ────────────────────────────────────────── */
#front-page-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
}

#front-page-content img {
    max-height: calc(100vh - 160px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ─── GALLERY / ARCHIVE PAGE ─────────────────────────────── */
#gallery-content {
    padding: 10px;
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

.masonry-item a {
    display: block;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.masonry-item a:hover img {
    opacity: 0.85;
}

/* ─── SINGLE PAINTING PAGE ───────────────────────────────── */
#single-painting-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 40px 40px 40px;
    gap: 20px;
}

.single-col-left {
    width: 200px;
    min-width: 200px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0px;
}

.single-col-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.single-col-center img {
    max-height: calc(100vh - 160px);
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.single-col-right {
    width: 200px;
    min-width: 200px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0px;
	padding-left: 50px;
}

.single-col-right .painting-meta {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.single-col-left .go-back a {
    font-size: 16px;
	text-align: left;
}

/* ─── MOBILE NAV OVERLAY (hidden on desktop) ─────────────── */
.hamburger {
    display: none;
}

#mobile-nav-overlay {
    display: none;
}

.mobile-nav-links-section {
    margin-top: 32px;
}

.mobile-nav-links-section .sidebar-section-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.mobile-nav-links-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Hide "Links" nav item on desktop if you add class mobile-only-nav-item via WP Menus */
.mobile-only-nav-item {
    display: none;
}

/* ─── MOBILE SINGLE PAGE BELOW-IMAGE BLOCK ───────────────── */
.single-mobile-below {
    display: none;
}

/* ─── single page painting size adjustment ─────────────── */

@media (max-width: 1200px) {
    #single-painting-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 100px);
        padding: 35px;
        gap: 35px;
    }

    .single-col-left,
    .single-col-right {
        display: none;
    }

    .single-col-center {
        width: 100%;
    }

    .single-col-center img {
        max-height: none;
        width: 100%;
    }

    .single-mobile-below {
        display: block;
        width: 100%;
        padding-top: 12px;
        padding-bottom: 40px;
    }

    .single-mobile-below .painting-meta {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .single-mobile-below .go-back a {
        font-size: 16px;
        color: blue;
    }

    .single-mobile-below .go-back a:hover {
        color: red;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE BREAKPOINT — max-width: 768px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Header ── */
    #site-header {
        height: 100px;
        padding: 0 16px;
        justify-content: space-between;
    }

    #site-header .header-logo {
        width: auto;
        min-width: unset;
        padding: 0;
        padding-top: 0;
        justify-content: flex-start;
    }

    #site-header .header-logo img {
        width: 130px;
        height: 100px;
		padding-top: 4px;
		padding-bottom: 4px;
    }

    #site-header .desktop-nav {
        display: none;
    }

    /* ── Hamburger ── */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        border-radius: 0;
    }

    .hamburger:hover,
    .hamburger:focus,
    .hamburger:focus-visible,
    .hamburger:active {
        outline: none;
        box-shadow: none;
        background: none;
        border: none;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: blue;
    }

    /* ── Mobile nav overlay ── */
    #mobile-nav-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: #FFF;
        z-index: 200;
        padding: 60px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    #mobile-nav-overlay.is-open {
        transform: translateX(0);
    }

    .mobile-nav-close {
        position: absolute;
        top: 16px;
        right: 20px;
        background: none;
        border: none;
        outline: none;
        font-size: 32px;
        cursor: pointer;
        font-family: 'Playfair Display', serif;
        line-height: 1;
        color: red;
        -webkit-tap-highlight-color: transparent;
        border-radius: 0;
    }

    .mobile-nav-close:hover,
    .mobile-nav-close:focus,
    .mobile-nav-close:focus-visible,
    .mobile-nav-close:active {
        outline: none;
        box-shadow: none;
        background: none;
        border: none;
        color: red;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-top: 100px;
    }

    .mobile-nav-links a {
        font-size: 20px;
        color: blue;
        text-decoration: none;
    }

    .mobile-nav-links a:hover {
        color: red;
    }

    .mobile-nav-links-section ul li a {
        font-size: 20px;
    }

    /* ── Body / sidebar / layout ── */
    #body-wrapper {
        margin-top: 100px;
        flex-direction: column;
    }

    #sidebar {
        display: none;
    }

    #main-content {
        margin-left: 0;
    }

    /* ── Front page ── */
    #front-page-content {
        align-items: center;
        min-height: calc(100vh - 80px);
        padding: 20px;
    }

    /* ── Gallery / masonry ── */
    #gallery-content {
        padding: 20px;
    }

    .masonry-grid {
        column-count: 1;
        column-gap: 0;
    }

    /* ── Single painting page ── */
    #single-painting-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 80px);
        padding: 16px;
        gap: 16px;
    }

    /* Hide desktop left/right columns */
    .single-col-left,
    .single-col-right {
        display: none;
    }

    .single-col-center {
        width: 100%;
    }

    .single-col-center img {
        max-height: none;
        width: 100%;
    }

    /* Show mobile below-image block */
    .single-mobile-below {
        display: block;
        width: 100%;
        padding-top: 12px;
    }

    .single-mobile-below .painting-meta {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .single-mobile-below .go-back a {
        font-size: 16px;
        color: blue;
    }

    .single-mobile-below .go-back a:hover {
        color: red;
    }

}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
#about-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 40px;
    padding-top: 120px;
}
 
.about-text {
    max-width: 600px;
    width: 100%;
    font-size: 16px;
    line-height: 1.8;
	text-align: center;
}
 
@media (max-width: 768px) {
    #about-content {
        padding: 20px;
        align-items: center;
    }
}

 