@import url("https://use.typekit.net/knu6zkh.css");

/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: p22-fllw-eaglefeather, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.nav-open {
    overflow: hidden;
}

/* Site header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.template-homepage .site-header {
    border-bottom: none;
}

.site-logo {
    font-size: 2rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #333;
    text-decoration: none;
}

/* Hamburger button */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: #333;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger X state */
.nav-open .hamburger {
    background: transparent;
}

.nav-open .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide-out nav */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 105;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-open .site-nav {
    transform: translateX(0);
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list li {
    margin-bottom: 0.5rem;
}

.site-nav__list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.site-nav__list a:hover {
    color: #447cac;
}

/* Nav overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* Offset content for fixed header */
.gallery-index,
.gallery-page,
.flex-page,
.contact-page {
    padding-top: 60px;
}

/* Ensure gallery main element also gets padding */
main.gallery {
    padding-top: 60px;
}

/* Home page - hero is full-bleed, no top padding */
.home-page {
    padding-top: 0;
}

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

a {
    color: #333;
}

/* Page header */
.page-header {
    text-align: left;
    padding: 40px 1rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.page-intro {
    font-size: 1.1rem;
    color: #666;
}

/* Hero block */
.hero {
    width: 100%;
    margin: 0;
}

.hero__image {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: left center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: hero-pan 60s ease-in-out infinite alternate;
}

/*.hero__image:hover {
    animation-play-state: paused;
}*/

@keyframes hero-pan {
    0% {
        background-position: left center;
    }
    100% {
        background-position: right center;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero__image {
        animation: none;
        background-position: center;
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
    margin-top: 10vh;
}

.hero__heading {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.hero__subheading {
    font-size: 1.75rem;
    font-weight: 300;
    margin: 0;
}

.hero__quote {
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 0;
    margin-top: 69px;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__quote p {
    margin: 0 0 0.5rem;
}

.hero__quote cite {
    font-style: normal;
    font-size: 1.2rem;
    opacity: 0.9;
    color: #FFFFFF;
}

/* Artwork grid */
.artwork-grid {
    padding: 2rem 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.artwork-grid__heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 2rem;
}

.artwork-grid__items {
    display: grid;
    gap: 2rem;
}

.artwork-grid--cols-2 .artwork-grid__items {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.artwork-grid--cols-3 .artwork-grid__items {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.artwork-grid--cols-4 .artwork-grid__items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Artwork block */
.artwork {
    margin: 0;
    text-align: center;
}

.artwork__link {
    display: block;
    overflow: hidden;
}

.artwork__image {
    width: 100%;
    transition: transform 0.3s ease;
}

.artwork__link:hover .artwork__image {
    transform: scale(1.02);
}

.artwork__info {
    padding: 1rem 0;
}

.artwork__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.artwork__year {
    font-size: 0.875rem;
    color: #666;
}

.artwork__medium,
.artwork__dimensions {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0;
}

.artwork__price {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.artwork__status--sold {
    color: #999;
    font-style: italic;
}

.artwork__buy-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.artwork__buy-btn:hover {
    background: #555;
}

.artwork__description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Text block */
.text-block {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.text-block p {
    margin-bottom: 1.25rem;
}

/* Image block */
.image-block {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.image-block--full {
    max-width: 100%;
    padding: 0;
}

.image-block__caption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Gallery list (index page) */
.gallery-list {
    padding: 2rem 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-list h2 {
    text-align: left;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #447cac;
    margin: 0 0 2rem;
}

.gallery-list__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .gallery-list__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-card {
    text-align: left;
}

.gallery-card__link {
    display: block;
    overflow: hidden;
}

.gallery-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card__link:hover .gallery-card__image {
    transform: scale(1.03);
}

.gallery-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #447cac;
}

.gallery-card__title a {
    text-decoration: none;
    color: inherit;
}

.gallery-card__title a:hover {
    text-decoration: underline;
    color: #333;
}

.gallery-card__desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* Gallery nav */
.gallery-nav {
    padding: 2rem 1rem;
    text-align: center;
}

.gallery-nav__back {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Blockquote styling */
blockquote {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #447cac;
}

blockquote p {
    margin: 0 0 1rem;
}

blockquote cite {
    font-style: normal;
    font-size: 0.875rem;
    color: #666;
}

/* About/Flex page */

/* About page two-column layout */
.about-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-layout__main .image-block:first-child {
    max-width: 100%;
    margin: 0 0 2rem;
    padding: 0;
}

.about-layout__main .image-block:first-child img {
    display: block;
}

.about-layout__main .text-block,
.about-layout__sidebar .text-block {
    max-width: 100%;
    margin: 0 0 2rem;
    padding: 0;
}

.about-layout__sidebar {
    align-self: start;
}

.about-layout__sidebar .section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.about-butterfly {
    margin-top: 2rem;
    text-align: center;
}

.about-butterfly img {
    max-width: 350px;
    opacity: 0.85;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.about-layout__sidebar .text-block:first-child h2:first-child {
    margin-top: -13px;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-layout__sidebar {
        position: static;
        order: -1;
    }
}

.flex-page .text-block h2 {
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #447cac;
    margin: 2.5rem 0 1rem;
}

.flex-page .text-block h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    margin: 2rem 0 0.75rem;
}

.flex-page .text-block ul {
    padding-left: 1.5rem;
}

.flex-page .text-block li {
    margin-bottom: 0.5rem;
}

/* Home page */
.home-page .hero {
    margin-bottom: 0;
}

.home-page .text-block {
    padding: 2rem 1rem 4rem;
}

/* Home page header - transparent over hero */
.template-homepage .site-header {
    background: transparent;
    backdrop-filter: none;
}

.template-homepage .site-logo {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.template-homepage .hamburger,
.template-homepage .hamburger::before,
.template-homepage .hamburger::after {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Keep hamburger dark when nav is open */
.template-homepage.nav-open .hamburger::before,
.template-homepage.nav-open .hamburger::after {
    background: #333;
    box-shadow: none;
}

/* Masonry Gallery */
.masonry-gallery {
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.masonry-gallery__heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.masonry {
    column-count: 4;
    column-gap: 8px;
}

@media (max-width: 1200px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .masonry {
        column-count: 1;
    }
}

.masonry__item {
    position: relative;
    display: block;
    margin-bottom: 8px;
    break-inside: avoid;
    overflow: hidden;
}

.masonry__link {
    display: block;
    cursor: pointer;
}

.masonry__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.masonry__item:hover img {
    transform: scale(1.05);
}

/* Hover overlay */
.masonry__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry__item:hover .masonry__overlay {
    opacity: 1;
}

.masonry__info {
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.masonry__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.masonry__medium,
.masonry__dimensions {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    opacity: 0.9;
}

.masonry__price {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0 0;
}

/* GLightbox custom styling - matches hover overlay */
.gslide-description {
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 1.5rem !important;
    text-align: center !important;
}

.gslide-title {
    font-family: p22-fllw-eaglefeather, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    color: #fff !important;
}

.gslide-desc {
    font-family: p22-fllw-eaglefeather, sans-serif !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
}

/* Main content grows to push footer down */
.gallery-index,
.gallery-page,
.flex-page,
.home-page {
    flex: 1;
}

/* Contact Form */
.contact-form-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-form {
    max-width: 600px;
}

.contact-intro {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #447cac;
}

.contact-form label .required {
    color: #447cac;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: p22-fllw-eaglefeather, sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #447cac;
    box-shadow: 0 0 0 3px rgba(68, 124, 172, 0.1);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form .form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.85rem;
    color: #666;
}

.contact-form .form-errors {
    margin-top: 0.375rem;
    color: #c00;
    font-size: 0.9rem;
}

.contact-form .form-submit {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: p22-fllw-eaglefeather, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: #333;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form .form-submit:hover {
    background: #447cac;
}

.contact-thank-you {
    text-align: center;
    font-size: 1.2rem;
    padding: 3rem 0;
}

/* Site footer - echo of homepage hero */
.site-footer {
    width: 100%;
    margin-top: 250px;
}

.site-footer__image {
    height: 249px;
    background-image: url('/media/original_images/Passages-1-scaled.jpg');
    background-size: cover;
    background-position: center;
}

/* Hide footer on homepage */
.template-homepage .site-footer {
    display: none;
}
