/*
Theme Name: Byas Mortuary
Theme URI: https://byasmortuary.com
Author: Byas Mortuary
Description: Custom theme for Byas Mortuary funeral home website
Version: 1.0
*/

:root {
  --navy: #1a1750;
  --navy-mid: #2d2980;
  --gold: #b8923a;
  --gold-light: #d4aa5a;
  --gold-pale: #f5e8cc;
  --sky: #6eaed6;
  --sky-light: #e8f4fb;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: var(--gray-800); overflow-x: hidden; }
img { max-width: 100%; }
a { text-decoration: none; }

/* ── NAVBAR ── */
.navbar { background: rgba(255,255,255,0.97) !important; backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); padding: 0; height: 76px; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 52px; object-fit: contain; }
.brand-text { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--navy); line-height: 1.2; font-weight: 600; }
.brand-tagline { display: block; font-family: 'Cormorant Garamond', serif; font-size: 0.7rem; color: var(--gold); font-style: italic; font-weight: 400; letter-spacing: 0.05em; margin-top: 2px; }
.navbar-nav .nav-link { color: var(--gray-600) !important; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; transition: color 0.2s; padding: 0.5rem 0.6rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--navy) !important; }
.navbar-toggler { border-color: rgba(26,23,80,0.2); }
.btn-nav-cta, .btn-nav-cta:hover, .btn-nav-cta:focus, .btn-nav-cta:visited { background: var(--navy) !important; color: #fff !important; padding: 10px 20px !important; border-radius: 2px; font-size: 0.72rem !important; letter-spacing: 0.1em; white-space: nowrap; text-decoration: none !important; }
.btn-nav-cta:hover { background: var(--navy-mid) !important; }

/* ── HERO ── */
.hero-section { min-height: 100vh; background: var(--cream); padding-top: 76px; }
.hero-inner { min-height: calc(100vh - 76px); display: flex; align-items: center; padding-top: 1rem; padding-bottom: 2rem; }
.hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--navy); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 700; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-desc { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--gray-600); line-height: 1.8; font-style: italic; margin-bottom: 2.5rem; }
.hero-visual-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-visual-wrap::before { content: ''; position: absolute; width: 380px; height: 380px; background: radial-gradient(circle, var(--sky-light) 0%, transparent 70%); border-radius: 50%; }
.hero-logo-full { width: min(380px, 100%); position: relative; z-index: 1; filter: drop-shadow(0 8px 40px rgba(26,23,80,0.12)); animation: gentleFloat 5s ease-in-out infinite; }
@keyframes gentleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── TRUST BAR ── */
.trust-bar { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 2rem 0; }
.trust-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); font-weight: 700; display: block; line-height: 1; }
.trust-lbl { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-400); font-weight: 700; margin-top: 4px; display: block; }

/* ── SHARED ── */
.section-eyebrow { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.75rem; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--navy); line-height: 1.15; margin-bottom: 1rem; font-weight: 700; }
.gold-rule { display: flex; align-items: center; gap: 10px; margin: 1rem 0; }
.gold-rule-line { height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent); width: 100px; }
.gold-rule-diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.gold-divider { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent); }
.body-text { font-size: 0.95rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 1.25rem; }

/* ── BUTTONS ── */
.btn-primary-custom { background: var(--navy); color: #fff; padding: 13px 30px; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; border-radius: 2px; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-primary-custom:hover { background: var(--navy-mid); color: #fff; transform: translateY(-1px); }
.btn-ghost-custom { background: transparent; color: var(--navy); padding: 13px 30px; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; border: 1.5px solid var(--navy); cursor: pointer; border-radius: 2px; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-ghost-custom:hover { background: var(--navy); color: #fff; }

/* ── CARDS ── */
.content-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 4px; padding: 2rem 1.75rem; height: 100%; position: relative; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.content-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.content-card:hover::before { transform: scaleX(1); }
.content-card:hover { box-shadow: 0 10px 36px rgba(26,23,80,0.09); transform: translateY(-3px); }
.content-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 0.6rem; font-weight: 600; }
.content-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin: 0; }
.card-line { width: 28px; height: 2px; background: var(--gold); margin-bottom: 0.75rem; }
.card-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: rgba(26,23,80,0.08); font-weight: 700; line-height: 1; margin-bottom: 0.75rem; }

/* ── SERVICES DARK SECTION ── */
.services-section { background: var(--navy); padding: 7rem 0; }
.services-section .section-eyebrow { color: var(--gold-light); }
.services-section .section-title { color: #fff; }
.svc-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 2rem 1.75rem; transition: background 0.3s; height: 100%; }
.svc-card:hover { background: rgba(255,255,255,0.08); }
.svc-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: rgba(184,146,58,0.2); font-weight: 700; line-height: 1; margin-bottom: 0.75rem; }
.svc-line { width: 28px; height: 2px; background: var(--gold); margin-bottom: 0.75rem; }
.svc-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #fff; margin-bottom: 0.6rem; font-weight: 600; }
.svc-card h3 a { color: #fff; text-decoration: none; }
.svc-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.75; margin: 0 0 1rem; }
.svc-card .learn-more { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; text-decoration: none; }

/* ── ABOUT ── */
.about-section { background: var(--cream); padding: 7rem 0; }
.about-img-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 4px; padding: 2.5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.about-img-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold), var(--sky)); }
.about-img-card img { width: 200px; filter: drop-shadow(0 4px 16px rgba(26,23,80,0.1)); }
.about-tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; color: var(--gray-600); margin-top: 1.5rem; line-height: 1.6; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.stat-box { border-radius: 4px; padding: 1.25rem 1rem; text-align: center; }
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.stat-box .lbl { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-400); font-weight: 700; margin-top: 4px; display: block; }

/* ── OBITUARIES ── */
.obits-section { background: var(--cream); padding: 7rem 0; }
.obit-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; height: 100%; }
.obit-card:hover { box-shadow: 0 10px 36px rgba(26,23,80,0.1); transform: translateY(-3px); }
.obit-card-top { height: 3px; background: linear-gradient(90deg, var(--gold), var(--sky)); }
.obit-card-body { padding: 1.75rem; }
.obit-dates { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-400); font-weight: 700; margin-bottom: 0.6rem; }
.obit-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
.obit-excerpt { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1.1rem; }
.obit-link { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; text-decoration: none; transition: letter-spacing 0.2s; }
.obit-link:hover { letter-spacing: 0.18em; color: var(--gold); }

/* ── QUOTE BANNER ── */
.quote-banner { background: var(--gold-pale); padding: 5rem 0; border-top: 1px solid rgba(184,146,58,0.2); border-bottom: 1px solid rgba(184,146,58,0.2); }
.quote-text { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--navy); font-style: italic; line-height: 1.4; margin-bottom: 0.75rem; }
.quote-attr { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ── CONTACT ── */
.contact-section { background: #fff; padding: 7rem 0; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; background: var(--sky-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.contact-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 3px; }
.contact-val { font-size: 0.92rem; color: var(--gray-800); line-height: 1.6; }
.contact-val a { color: inherit; }
.map-embed { border-radius: 4px; overflow: hidden; border: 1px solid var(--gray-200); }
.form-control, .form-select { border: 1px solid var(--gray-200); border-radius: 2px; font-family: 'Lato', sans-serif; font-size: 0.9rem; background: var(--gray-50); padding: 12px 15px; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,58,0.12); background: #fff; outline: none; }

/* ── PAGE BANNER ── */
.page-banner { background: linear-gradient(135deg, var(--navy) 0%, #1a3060 60%, var(--navy-mid) 100%); padding: 130px 0 60px; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(110,174,214,0.12) 0%, transparent 60%); }
.page-banner-inner { position: relative; z-index: 1; }
.page-banner-eyebrow { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 10px; }
.page-banner-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold-light); }
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.5rem); color: #fff; font-weight: 700; line-height: 1.1; margin-bottom: 0.75rem; }
.page-banner h1 em { color: var(--gold-light); font-style: italic; }
.page-banner-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: rgba(255,255,255,0.65); font-style: italic; line-height: 1.7; max-width: 540px; }

/* ── CHECK ITEMS ── */
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.check-dot { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.check-text { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }

/* ── CTA BAND ── */
.cta-band { background: var(--navy); padding: 4rem 0; text-align: center; }
.cta-band p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 2.5vw, 2rem); color: rgba(255,255,255,0.85); font-style: italic; margin-bottom: 1.5rem; line-height: 1.5; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 4rem 0 2rem; }
.footer-brand img { width: 150px; margin-bottom: 1.25rem; filter: brightness(1.05); }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.8; }
.footer-col h4 { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 2.5rem 0 1.5rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); font-family: 'Cormorant Garamond', serif; font-style: italic; }
.footer-logo-mini { width: 32px; opacity: 0.35; }

/* ── SINGLE OBITUARY ── */
.obit-single { background: #fff; padding: 5rem 0; }
.obit-single-header { border-bottom: 1px solid var(--gray-200); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.obit-single-name { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); font-weight: 700; line-height: 1.1; margin-bottom: 0.5rem; }
.obit-single-dates { font-size: 0.85rem; color: var(--gray-400); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.obit-single-content { font-size: 1.05rem; color: var(--gray-600); line-height: 2; font-family: 'Cormorant Garamond', serif; }
.obit-single-content p { margin-bottom: 1.5rem; }

/* ── MOBILE ── */
@media (max-width: 991px) {
  .navbar-collapse { background: #fff; padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); }
  .navbar-nav .nav-link { padding: 0.75rem 0 !important; }
  .btn-nav-cta { margin-top: 0.5rem; display: inline-block; }
  .hero-inner { padding: 3rem 0 4rem; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-btns { justify-content: center; }
  .hero-visual-wrap { margin-top: 3rem; }
  .hero-visual-wrap::before { width: 260px; height: 260px; }
  .page-banner { padding: 110px 0 50px; }
}

/* ── CUSTOM LOGO SIZING ── */
.hero-visual-wrap .custom-logo-link,
.hero-visual-wrap .custom-logo-link img,
.hero-visual-wrap img {
    width: min(420px, 100%) !important;
    height: auto !important;
    max-width: 420px !important;
}
.about-img-card .custom-logo-link img,
.about-img-card .custom-logo-link {
    width: 200px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
.navbar-brand .custom-logo-link img,
.navbar-brand .custom-logo-link {
    height: 52px !important;
    width: auto !important;
}
.footer-brand .custom-logo-link img,
.footer-brand .custom-logo-link {
    width: 150px !important;
    height: auto !important;
}
.footer-logo-mini .custom-logo-link img,
.footer-logo-mini {
    width: 32px !important;
    height: auto !important;
    opacity: 0.35;
}

/* ── REMOVE LOGO LINK HIGHLIGHT ── */
.custom-logo-link {
    display: block;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.custom-logo-link:focus,
.custom-logo-link:hover,
.custom-logo-link:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}
.hero-visual-wrap .custom-logo-link {
    position: relative;
    z-index: 1;
}
.hero-visual-wrap .custom-logo-link img {
    filter: drop-shadow(0 8px 40px rgba(26,23,80,0.12));
    animation: gentleFloat 5s ease-in-out infinite;
}

/* ── SERVICE PAGE LAYOUT FIX ── */
.service-page-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.col-lg-4 .content-card {
    position: sticky;
    top: 92px;
}
/* Fix sidebar not extending past footer */
.single-service section .row {
    align-items: flex-start !important;
}
.single-service .col-lg-4 {
    align-self: flex-start !important;
    position: sticky;
    top: 92px;
}

/* ── SIDEBAR HEIGHT FIX ── */
.single-service .col-lg-4 {
    align-self: flex-start !important;
    position: sticky !important;
    top: 92px !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.single-service .col-lg-4::-webkit-scrollbar { width: 0; }

/* ── SIDEBAR STATIC FIX ── */
.single-service .col-lg-4 {
    align-self: flex-start !important;
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* ── HERO BACKGROUND IMAGE ── */
.hero-section {
    background-image: url('/wp-content/themes/byas-mortuary-theme/horse.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.82) !important;
    z-index: 0 !important;
}
.hero-inner {
    position: relative !important;
    z-index: 1 !important;
}

/* ── ABOUT IMAGE HOVER EFFECT ── */
.about-image-wrap {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 500px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
}
.about-image-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: 1;
}
.about-image-wrap:hover::before {
    transform: scaleX(1);
}
.about-image-wrap:hover {
    box-shadow: 0 10px 36px rgba(26,23,80,0.12);
    transform: translateY(-3px);
}
.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── WORDPRESS GALLERY BLOCK STYLING ── */
.wp-block-gallery {
    gap: 1rem !important;
}
.wp-block-gallery .wp-block-image {
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid var(--gray-200) !important;
    transition: box-shadow 0.3s, transform 0.3s !important;
    cursor: pointer !important;
}
.wp-block-gallery .wp-block-image:hover {
    box-shadow: 0 10px 36px rgba(26,23,80,0.12) !important;
    transform: translateY(-3px) !important;
}
.wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s !important;
}
.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.05) !important;
}
.wp-block-gallery figcaption {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
}

/* ── GALLERY BLOCK OVERRIDE ── */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}
.wp-block-gallery .wp-block-image,
.wp-block-gallery figure {
    margin: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid var(--gray-200) !important;
    transition: box-shadow 0.3s, transform 0.3s !important;
    aspect-ratio: 4/3 !important;
}
.wp-block-gallery .wp-block-image:hover {
    box-shadow: 0 10px 36px rgba(26,23,80,0.12) !important;
    transform: translateY(-3px) !important;
}
.wp-block-gallery .wp-block-image img,
.wp-block-gallery figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s !important;
}
.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.05) !important;
}
@media(max-width:768px) {
    .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media(max-width:480px) {
    .wp-block-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* ── GALLERY BLOCK FINAL FIX ── */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
}
.wp-block-gallery .wp-block-image,
.wp-block-gallery figure {
    margin: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid var(--gray-200) !important;
    transition: box-shadow 0.3s, transform 0.3s !important;
    aspect-ratio: 4/3 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.wp-block-gallery .wp-block-image:hover {
    box-shadow: 0 10px 36px rgba(26,23,80,0.12) !important;
    transform: translateY(-3px) !important;
}
.wp-block-gallery .wp-block-image img,
.wp-block-gallery figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s !important;
    max-width: none !important;
}
.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.05) !important;
}
@media(max-width:768px) {
    .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
