/* =====================================================
   Francis Davis Millet Theme — main.css
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
}

/* ── PAGE WRAPPER ── */
.page {
    display: flex;
    width: 1440px;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
    background: #FFF;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    display: flex;
    height: 92px;
    width: 100%;
    padding: 19px 25px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    background: #262E0A;
}

.logo {
    color: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

/* ── Navigation ── */
.site-nav {
    display: flex;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.site-nav .nav-link {
    color: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    opacity: 0.75;
}

/* ── Enquiry Button ── */
.btn-enquiry {
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: #EFBA5F;
    color: #262E0A;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-enquiry:hover,
.btn-enquiry:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    width: 1440px;
    height: 350px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) -54.13%,
        rgba(0, 0, 0, 0.55) 95.66%
    );
}

/* =====================================================
   CONTENT SECTION
   ===================================================== */
.content {
    display: flex;
    padding: 25px 190px;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    width: 100%;
}

/* ── Left: text column ── */
.content-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-text h1 {
    color: #000;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.content-text h2 {
    color: #000;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.content-text p,
.content-text .wp-block-paragraph {
    color: #000;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.75;
}

/* WordPress block editor paragraph spacing */
.content-text > * + * {
    margin-top: 16px;
}

/* ── Right: aside column ── */
.content-aside {
    width: 282px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portrait {
    width: 100%;
    aspect-ratio: 282 / 262;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.essay-caption {
    color: #000;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.65;
}

/* ── Download PDF button ── */
.btn-pdf {
    display: flex;
    width: 100%;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background: #EFBA5F;
    color: #262E0A;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-pdf:hover,
.btn-pdf:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    display: flex;
    height: 183px;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    background: #262E0A;
    padding: 0 40px;
}

.footer-disclaimer {
    color: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    text-align: center;
    line-height: 1.65;
    max-width: 900px;
}

.footer-institute {
    color: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    text-align: center;
}

.footer-copyright {
    color: #FFF;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    text-align: center;
}

/* =====================================================
   GALLERY GRID PAGE
   ===================================================== */
.gallery-section {
    width: 100%;
    padding: 40px 190px 60px;
}

.gallery-title {
    color: #000;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    border: 1px solid #e0ddd5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gallery-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f2ee;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.03);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e5de;
    color: #888;
    font-size: 13px;
    font-family: 'Merriweather', Georgia, serif;
}

.gallery-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 2px solid #262E0A;
}

.gallery-card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
}

.gallery-card-date {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 12px;
    font-weight: 300;
    color: #555;
}

.gallery-card-owner {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 300;
    color: #777;
}

.gallery-empty {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 14px;
    font-weight: 300;
    color: #666;
    padding: 40px 0;
}

/* =====================================================
   SINGLE PAINTING DETAIL PAGE
   ===================================================== */
.painting-detail {
    width: 100%;
    padding: 32px 190px 60px;
}

.painting-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #262E0A;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.painting-back:hover {
    opacity: 0.65;
}

.painting-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.painting-image-wrap {
    flex: 0 0 520px;
}

.painting-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e0ddd5;
}

.painting-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e8e5de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 14px;
}

.painting-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.painting-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

/* Meta table */
.painting-meta {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
}

.painting-meta tr {
    border-bottom: 1px solid #e8e5de;
}

.painting-meta th {
    text-align: left;
    font-weight: 700;
    color: #262E0A;
    padding: 10px 16px 10px 0;
    width: 160px;
    vertical-align: top;
}

.painting-meta td {
    color: #000;
    font-weight: 300;
    padding: 10px 0;
    line-height: 1.6;
}

/* Text sections */
.painting-description,
.painting-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.painting-description h2,
.painting-section h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #262E0A;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #262E0A;
    padding-bottom: 6px;
}

.painting-description p,
.painting-section p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    color: #000;
    line-height: 1.75;
}

/* =====================================================
   WORDPRESS ADMIN BAR OFFSET
   ===================================================== */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
