/*
Theme Name: Monochrome Memories — Moments
Theme URI: https://monmem.com/moments
Author: Gonzalo Rodriguez
Author URI: https://stm.pm
Description: Custom blog theme for the /moments slug, matching the header, footer, and body design system of the static monmem.com site (Cormorant Garamond + Inter, black/white editorial look, off-canvas menu). v1.1: off-canvas menu is rendered via wp_nav_menu() so it's editable under Appearance > Menus, instead of being hardcoded in JS. v1.2: Gallery blocks render as a grayscale photo grid matching the homepage, and posts with a featured image get a full-bleed hero header. v1.3: off-canvas menu fixes verified against the real Salient theme source — social/phone row no longer pinned to the bottom with a dead gap, close button repositioned to the panel's top-right corner and shrunk, panel fades out in sync with the page on close instead of lingering, scroll position restores instantly instead of visibly animating, mobile phone link is a proper full-width tap target. v1.4: added a "Moments" nav link (off-canvas menu + footer) between Digital Advantage and Booking — not yet added to the live static site, do that separately later.
Version: 1.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mm-moments
*/

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #111; margin: 0; }

#site-content { padding-top: 7rem; }

a { color: inherit; }

.btn-outline-white { display: inline-block; border: 1.5px solid #fff; color: #fff; padding: 0.75rem 2.5rem; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: background 0.25s, color 0.25s; }
.btn-outline-white:hover { background: #fff; color: #111; }
.btn-dark { display: inline-block; background: #111; color: #fff; padding: 0.75rem 2.5rem; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: background 0.25s; }
.btn-dark:hover { background: #333; }

/* Section label / title — same system used across monmem.com */
.section-label { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: #aaa; margin-bottom: 1rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; line-height: 1.2; color: #111; }

/* Footer */
footer { background: #111; color: #fff; padding: 3rem 2rem; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }

/* Blog archive */
.blog-wrap { max-width: 860px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.blog-header { text-align: center; margin-bottom: 3.5rem; }
.blog-grid { display: grid; gap: 3.5rem; }
.blog-card { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 2rem; align-items: center; }
.blog-card-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; filter: grayscale(100%); }
.blog-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; line-height: 1.25; margin: 0.5rem 0 0.75rem; }
.blog-card-title a { text-decoration: none; color: #111; }
.blog-card-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #999; }
.blog-card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.8; }
.blog-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #111; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 2px; }
@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; }
}

.blog-pagination { display: flex; justify-content: space-between; margin-top: 4rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.blog-pagination a { text-decoration: none; color: #111; border-bottom: 1px solid #111; padding-bottom: 2px; }

/* Single post */
.post-wrap { max-width: 720px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.post-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #999; margin-bottom: 1rem; text-align: center; }
.post-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; line-height: 1.2; text-align: center; margin-bottom: 2.5rem; }
.post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; filter: grayscale(100%); margin-bottom: 3rem; }

/* Full-bleed hero — only renders when a post has a featured image set */
.post-hero { position: relative; margin-top: -7rem; height: 70vh; min-height: 420px; max-height: 640px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 3rem; }
.post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.post-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.post-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 1.5rem; }
.post-hero-meta { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 1rem; display: block; }
.post-hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; line-height: 1.2; margin: 0; }

.post-content { font-size: 1.02rem; line-height: 1.85; color: #333; }
.post-content p { margin: 0 0 1.5rem; }
.post-content h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.9rem; margin: 2.5rem 0 1rem; color: #111; }
.post-content h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; margin: 2rem 0 1rem; color: #111; }
.post-content img { width: 100%; height: auto; display: block; filter: grayscale(100%); margin: 2rem 0; }
.post-content a { color: #111; text-decoration: underline; }
.post-content blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-style: italic; color: #333; border-left: 2px solid #ddd; padding-left: 1.5rem; margin: 2rem 0; }

/* Gallery block — drop multiple photos from a shoot in as a Gallery block (not
   individual Image blocks) to get this grid instead of stacked full-width images. */
.post-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 3px !important; margin: 2.5rem 0 !important; }
.post-content .wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; }
.post-content .wp-block-gallery .wp-block-image img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(100%); display: block; margin: 0 !important; }
.post-content .wp-block-gallery .wp-block-image figcaption { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #999; text-align: center; margin-top: 0.4rem; }
@media (max-width: 640px) {
  .post-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}

.post-back { display: block; text-align: center; margin-top: 4rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #111; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 2px; }
