/* ---------------------------
   MAIN MENU
--------------------------- */
/* ========================================
   MAIN MENU
   ======================================== */


/* ========================================
   MAIN MENU
   ======================================== */

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu li {
    position: relative;
    background-color: var(--red-dark);
}

.menu-item {
    display: flex;
    align-items: stretch;
    background-color: var(--red);
}

.menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.menu-item > a {
    flex: 1;
}

.menu a:hover,
.menu a:focus-visible {
    background-color: var(--red-dark);
    color: white;
}

/* ========================================
   DROPDOWN MENUS
   ======================================== */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    line-height: 1.25;
    z-index: 1000;
    background-color: var(--red-dark);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
    display: block;
}

/* Nested dropdowns */

.submenu .submenu {
    top: 0;
    left: 100%;
}

/* ========================================
   SUBMENU ARROWS
   ======================================== */

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    border: 0;
    color: white;
    padding: 0 10px;
    cursor: pointer;
    font-size: 13px;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    background: var(--red-dark);
}

.submenu .submenu-toggle span {
    display: inline-block;
    transform: rotate(-90deg);
}

/* Mobile menu button hidden on desktop */

.mobile-menu-toggle {
    display: none;
}

/* ========================================
   MOBILE MENU
   ======================================== */

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
        background: var(--red);
        color: white;
        border: 0;
        padding: 12px 18px;
        font-size: 16px;
        cursor: pointer;
    }

    .menu-container {
        display: none;
    }

    .menu-container.open {
        display: block;
    }

    .menu-main {
        display: block;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        white-space: normal;
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
    }

    /* Use arrow buttons, not hover, on mobile */

    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        display: none;
    }

    .has-submenu.open > .submenu {
        display: block;
    }

    /* Indent nested levels */

    .submenu > li > a,
    .submenu > li > .menu-item > a {
        padding-left: 30px;
    }

    .submenu .submenu > li > a,
    .submenu .submenu > li > .menu-item > a {
        padding-left: 45px;
    }

    .submenu .submenu .submenu > li > a,
    .submenu .submenu .submenu > li > .menu-item > a {
        padding-left: 60px;
    }

    .submenu .submenu-toggle span {
        transform: none;
    }

    .has-submenu.open > .menu-item
        > .submenu-toggle span {
        transform: rotate(180deg);
    }
}



/* ========================================
   HEADER
   ======================================== */
/* ========================================
   HEADER
   ======================================== */

.site-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--red, #bd0010);
    padding: 15px 30px;
    position: relative;
    z-index: 100;
}

.header-inner {
    flex-shrink: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
}

.brand-name {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 16px;
    margin-top: 3px;
}

.site-header .brand,
.site-header .brand:visited,
.site-header .brand:hover {
    color: white;
    text-decoration: none;
}

.menu {
    min-width: 0;
}

/* Narrow screens */

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu {
        width: 100%;
    }
}
.menu-main {
  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;

  list-style: none;
}

/* BRAND */

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    margin-right: 40px;
}

.brand-name {
    font-size: 32px;
    font-weight: bold;
}

.brand-tagline {
    font-size: 16px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: white;
    font-weight: 600;
    padding: 34px 0 28px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    text-decoration: none;
    border-bottom-color: white;
}


/* ========================================
   PAGE
   ======================================== */

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 24px;
}

h1 {
    color: var(--red-dark);
    font-size: clamp(2.0rem, 4vw, 3.0rem);
    line-height: 1.05;
    margin: 0;
    margin-top:40px
}

.subtitle {
    color: #687180;
    font-size: 1.25rem;
    margin: 6px 0 30px;
}


/* ========================================
   ARTWORK
   ======================================== */

.artwork-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(340px, .92fr);
    gap: 24px;
    align-items: start;
}

.main-artwork {
    width: 100%;
    background: #eee;
}

.thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.thumbnail {
    width: 112px;
    height: 112px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--red);
}

.thumbnail-help {
    margin-top: 8px;
    color: #596273;
    font-size: .88rem;
}


/* ========================================
   DETAILS / PURCHASE PANEL
   ======================================== */

.purchase-panel {
    padding: 30px;
    background: var(--panel);
    border-radius: 4px;
}

.artwork-details {
    margin: 0 0 30px;
}

.detail-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
}

.detail-row dt,
.detail-row dd {
    margin: 0;
}

.detail-row dt {
    font-weight: 500;
}

.purchase-panel h2 {
    color: var(--red-dark);
    font-size: 1.75rem;
    margin: 0 0 16px;
}

.delivery-options{
    width:65%;

}

.price {
    font-weight: 700;
    font-size: 1.05rem;
    float:right;
}

.order{
    background-color: #8f0009;
    color: white;
    padding:5px 10px;
    width: 50%;
    font-size: larger;
}

.order-option {
    font-size: 16px;
    padding: 5px 10px;
    background-color: #8f0009;
    color: white;
}


/* ========================================
   DELIVERY INFORMATION
   ======================================== */

.delivery-info {
    margin-top: 22px;
    padding: 18px;
    background: #e9e9e9;
    border-radius: 4px;
}

.delivery-info p {
    margin: 0 0 16px;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}


/* ========================================
   ABOUT THE PAINTING
   ======================================== */

.about {
    border-top: 1px solid var(--line);
    margin-top: 45px;
    padding: 34px 0 22px;
    max-width: 1040px;
}

.about h2 {
    color: var(--red-dark);
    font-size: 2rem;
    margin: 0 0 10px;
}

.about p {
    font-size: 1.08rem;
    max-width: 980px;
}

.back-link {
    margin-top: 20px;
    padding: 28px 0 55px;
    font-size: 1.05rem;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background:
        linear-gradient(
            135deg,
            rgba(160, 0, 10, .25),
            rgba(210, 0, 15, .1)
        ),
        var(--red);
    color: white;
    text-align: center;
    padding: 28px 24px;
}

.footer-title {
    font-weight: 700;
}

.footer-title span {
    font-weight: 400;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .6);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
}

.footer-nav a {
    color: white;
}

.copyright {
    font-size: .9rem;
    opacity: .9;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {

    .header-inner {
        display: block;
    }

    .main-nav {
        gap: 18px;
        overflow-x: auto;
    }

    .main-nav a {
        padding: 20px 0 12px;
        white-space: nowrap;
    }

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

    .purchase-panel {
        margin-top: 10px;
    }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-name {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .purchase-panel {
        padding: 20px 16px;
    }

    .detail-row {
        grid-template-columns: 110px 1fr;
    }

    .price-option {
        grid-template-columns: 25px 1fr auto;
        padding: 12px 10px;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

/* ========================================
   LIGHBOX
   ======================================== */
   
/* DRAWINGS GALLERY */

.drawings-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.drawing-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f5f5f5;
    cursor: zoom-in;
}

.drawing-item img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.25s ease;
}

.drawing-item:hover img {
    transform: scale(1.04);
}

/* LIGHTBOX */

.drawing-lightbox[hidden] {
    display: none;
}

.drawing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.drawing-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.drawing-lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
}

.lightbox-close {
    top: 15px;
    right: 25px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* TABLET */

@media (max-width: 900px) {
    .drawings-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .drawings-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .drawing-lightbox {
        padding: 55px 45px;
    }
}


/* GUIZOUKI PROJECT PAGES */

.guizouki-page {
    padding-bottom: 50px;
}

.project-section {
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}

.project-section h2 {
    margin-bottom: 25px;
}

.project-section h3 {
    margin-bottom: 15px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.project-step {
    margin-bottom: 40px;
}

.project-step:last-child {
    margin-bottom: 0;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.project-images img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 3px;
}

/* TABLET AND MOBILE */

@media (max-width: 768px) {

    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-section {
        padding: 25px 0;
    }

    .project-images {
        gap: 15px;
    }

    .project-images img {
        max-height: 350px;
    }
}

/* GUIZOUKI PROJECT PAGES */

.guizouki-page {
    padding-bottom: 50px;
}

.project-section {
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}

.project-section h2 {
    margin-bottom: 25px;
}

.project-section h3 {
    margin-bottom: 15px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.project-step {
    margin-bottom: 40px;
}

.project-step:last-child {
    margin-bottom: 0;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.project-images img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 3px;
}

/* TABLET AND MOBILE */

@media (max-width: 768px) {

    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-section {
        padding: 25px 0;
    }

    .project-images {
        gap: 15px;
    }

    .project-images img {
        max-height: 350px;
    }
}


/* GUIZOUKI PROJECT INDEX */

.guizouki-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.guizouki-card {
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.guizouki-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    padding: 20px;
    background: #eee;
}

.guizouki-card-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.guizouki-card-image:hover img {
    transform: scale(1.04);
}

.guizouki-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px;
}

.guizouki-card-content h3 {
    margin-top: 0;
}

.guizouki-card-content p {
    flex: 1;
}

.guizouki-button {
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    padding: 12px 18px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.guizouki-button:hover {
    background: #555;
    color: white;
}

/* MOBILE */

@media (max-width: 700px) {

    .guizouki-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guizouki-card-image {
        height: 280px;
    }

    .guizouki-card-content {
        padding: 20px;
    }
}


/* =====================================
   PORTRAIT GALLERIES
   Used by all painting category pages
   ===================================== */

.portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.portrait-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.portrait-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.portrait-card:hover img {
    transform: scale(1.04);
}

.portrait-card h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 14px 0 0;
}

.portrait-card:hover h2 {
    text-decoration: underline;
}

/* Smaller screens */

@media (max-width: 600px) {

    .portrait-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .portrait-card img {
        height: 200px;
    }

}
/* ========================================
   SITE HEADER / FOOTER FINAL STYLES
   ======================================== */

:root {
    --red: #bd0010;
    --red-dark: #8f0009;
    --text-dark: #222;
    --text-light: #fff;
}

/* Global typography */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: #fff;
}

/* HEADER */

.site-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--red);
    padding: 15px 30px;
}

.header-inner {
    flex-shrink: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
}

.brand,
.brand:visited,
.brand:hover {
    color: white;
    text-decoration: none;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 16px;
    margin-top: 3px;
}

/* FOOTER */

.site-footer {
    background:
        linear-gradient(
            135deg,
            rgba(160, 0, 10, .25),
            rgba(210, 0, 15, .10)
        ),
        var(--red);
    color: white;
    text-align: center;
    padding: 28px 24px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
}

.footer-title span {
    font-weight: 400;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.6);
}

.copyright {
    margin-top: 14px;
    font-size: .9rem;
    opacity: .9;
}

/* Main content typography */

.container {
    font-family: Arial, Helvetica, sans-serif;
}

.container h1 {
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
}

/* Gallery */

.portrait-card {
    text-decoration: none;
    color: var(--text-dark);
}

.portrait-card h2 {
    font-size: 1rem;
    font-weight: 600;
}

/* MOBILE */

@media (max-width: 900px) {

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand-name {
        font-size: 28px;
    }

    .footer-title span {
        display: block;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        margin-top: 5px;
    }
}

/* SOLD PAINTINGS GALLERY */

.sold-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.sold-gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.sold-gallery-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sold-gallery-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.sold-gallery-item:hover img {
    transform: scale(1.04);
}

/* LIGHTBOX */

.sold-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
}

.sold-lightbox.active {
    display: flex;
}

.sold-lightbox img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sold-lightbox button {
    position: absolute;
    z-index: 2;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 36px;
    padding: 10px 18px;
}

.sold-lightbox-close {
    top: 10px;
    right: 20px;
}

.sold-lightbox-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.sold-lightbox-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.sold-lightbox button:hover {
    color: #ccc;
}

/* TABLET */

@media (max-width: 1000px) {
    .sold-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .sold-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sold-gallery-item {
        height: 180px;
        padding: 8px;
    }

    .sold-lightbox img {
        max-width: 85vw;
        max-height: 80vh;
    }

    .sold-lightbox button {
        font-size: 28px;
        padding: 8px;
    }
}

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

    .sold-gallery-item {
        height: 260px;
    }
}

/* SOLD GALLERY CAPTIONS */

.sold-gallery-item {
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.sold-gallery-item img {
    flex: 1 1 auto;
    min-height: 0;
    object-fit: contain;
}

.sold-gallery-caption {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    padding: 10px 4px 2px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: #444;
}

/* Homepage-only styles; the shared header, menu and footer use style.css. */
        .home-hero { padding: 3.5rem 0 0; max-width: 850px; }
        .home-eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
        .home-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.12; margin: .65rem 0 1rem; }
        .home-hero p { font-size: 1.15rem; line-height: 1.7; max-width: 850px; }
        .home-button { display: inline-block; margin-top: .7rem; padding: .8rem 1.25rem; border: 1px solid currentColor; border-radius: 4px; color: inherit; text-decoration: none; font-weight: 600; }
        .home-button:hover, .home-button:focus-visible { background: #222; color: #fff; }
        .home-section { padding: 2rem 0 3rem; }
        .home-section h2 { margin-bottom: .4rem; }
        .home-section-intro { max-width: 850px; line-height: 1.65; }
        .home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
        .home-card { border: 1px solid rgba(100,100,100,.25); border-radius: 6px; overflow: hidden; }
        .home-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
        .home-card-content { padding: 1.2rem; }
        .home-card h3 { margin: 0 0 .5rem; }
        .home-card p { line-height: 1.55; margin: 0 0 1rem; }
        .home-card a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
        .home-about { border-top: 1px solid rgba(100,100,100,.25); }
        @media (max-width: 750px) { .home-grid { grid-template-columns: 1fr; } .home-hero { padding-top: 2rem; } }