@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');:root{--ink:#171519;--wine:#741e3b;--line:#e6e0e3;--paper:#fff;--sub:#68606a}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--wine)}.mast{text-align:center;padding:36px 12px 23px;border-bottom:1px solid var(--line)}.mast>a{font:700 clamp(24px,4vw,52px)/1.1 'Playfair Display',Georgia,serif;letter-spacing:-.04em}.mast p{font-size:12px;letter-spacing:.18em;text-transform:uppercase;margin:10px 0 0}.nav{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;padding:13px;border-bottom:1px solid var(--line);font-size:12px;text-transform:uppercase;letter-spacing:.07em}.wrap{max-width:1180px;margin:0 auto;padding:45px 22px 90px}.sectiontop{border-bottom:1px solid var(--line);padding-bottom:25px;margin-bottom:30px}.eyebrow{color:var(--wine);letter-spacing:.14em;text-transform:uppercase;font-size:11px;font-weight:700}.sectiontop h1,.story h1{font:600 clamp(36px,6vw,74px)/1.08 'Playfair Display',Georgia,serif;letter-spacing:-.04em;margin:10px 0}.sectiontop p{color:var(--sub)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.card{border-bottom:1px solid var(--line)}.card img,.placeholder{width:100%;height:225px;object-fit:cover;background:#f4eff1}.placeholder{display:flex;align-items:center;justify-content:center;color:var(--wine);font-family:Georgia,serif;font-size:24px}.cardbody{padding:15px 0 25px}.card h2{font:600 26px/1.15 'Playfair Display',Georgia,serif;margin:8px 0}.card p{font-size:14px;color:var(--sub);margin:0}.card small{color:var(--wine)}.story{max-width:830px}.story .lead{font-size:21px;color:var(--sub)}.heroimg{width:100%;max-height:540px;object-fit:cover;margin:20px 0}.prose{white-space:normal;font-size:18px;line-height:1.9;margin:30px 0}.footer{border-top:1px solid var(--line);padding:24px;display:flex;justify-content:space-between;gap:16px;color:var(--sub);font-size:12px}.empty{padding:80px 20px;text-align:center;background:#f8f5f7}.auth{max-width:520px;margin:80px auto;padding:30px}.auth h1,h1,h2{font-family:'Playfair Display',Georgia,serif}.auth h1{font-size:42px;line-height:1.15}label{font-weight:600;font-size:13px;display:block;margin:17px 0}input,textarea,select{display:block;width:100%;border:1px solid #cdc7ca;background:#fff;border-radius:3px;padding:13px 12px;margin-top:6px;font:inherit;font-size:15px;color:var(--ink)}input[type=file]{padding:10px}button,.button{border:0;background:var(--wine);color:#fff;cursor:pointer;font:600 14px 'DM Sans',sans-serif;padding:13px 18px;display:inline-block;border-radius:3px}button:hover,.button:hover{background:#52142c;color:#fff}.error,.success{border-left:4px solid #b22;padding:14px;background:#fff0f0}.success{border-color:#287d4b;background:#f0fff2}.admin{display:grid;grid-template-columns:225px 1fr;min-height:85vh}.sidebar{background:#211b20;color:#fff;padding:25px 15px;display:flex;flex-direction:column;gap:4px}.sidebar a{padding:8px 10px;font-size:13px}.sidebar a:hover{background:#4f2435;color:#fff}.sidebar .brand{font:700 24px/1 Georgia,serif;margin-bottom:22px}.sidebar .brand small{font:12px 'DM Sans',sans-serif;letter-spacing:.08em}.adminmain{max-width:1100px;width:100%;padding:35px 32px}.adminheading{display:flex;align-items:center;justify-content:space-between;gap:20px}.adminheading h1{margin:0 0 24px}.pills{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:22px}.pills a{border:1px solid var(--line);border-radius:25px;padding:5px 11px;font-size:12px}.contentrow{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:17px 0;gap:20px}.contentrow small{color:var(--sub)}.rowactions{display:flex;align-items:center;gap:10px}.rowactions a,.textbutton{font-size:12px}.rowactions form{display:inline}.textbutton{background:none;color:var(--wine);padding:3px}.textbutton:hover{background:none;color:#000}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:20px}.check{display:flex;align-items:center;gap:10px}.check input{width:auto}.preview{max-width:260px;max-height:190px;object-fit:cover}.msg{border-bottom:1px solid var(--line);padding:15px 0}.narrow{max-width:700px}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin{grid-template-columns:1fr}.sidebar{display:flex;flex-direction:row;flex-wrap:wrap;padding:15px}.sidebar .brand{width:100%;margin-bottom:6px}.adminmain{padding:25px 15px}}@media(max-width:550px){.grid{grid-template-columns:1fr}.footer{display:block}.twocol{grid-template-columns:1fr}.contentrow{flex-wrap:wrap}.nav{gap:12px}.adminheading{align-items:start;flex-direction:column}}

/* Build 2 functional editor elements */
.blocktools{border:1px solid #e7dce0;padding:14px;margin:14px 0;border-radius:6px}.blocktools button{margin:4px;padding:9px 13px}.bodyimage{max-width:100%;height:auto}.prose blockquote{border-left:4px solid #741e3b;padding:12px 20px;background:#faf7f8;font-size:1.4rem}.prose p:empty{display:none}.adminmain .check{display:flex;align-items:center;gap:10px;margin:9px 0}.adminmain .check input{width:auto}

/* Simple visual publishing editor */
.visualbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px;background:#faf8f9;border:1px solid #d9d1d5;border-bottom:0;border-radius:6px 6px 0 0}.visualbar button{background:#fff;color:#251d22;border:1px solid #d9d1d5;padding:8px 12px}.visualbar button:hover{background:#741e3b;color:white}.visualeditor{min-height:330px;border:1px solid #d9d1d5;border-radius:0 0 6px 6px;padding:22px;font-size:17px;line-height:1.8;outline:none;overflow-wrap:anywhere}.visualeditor:focus{border-color:#741e3b}.visualeditor:empty:before{content:attr(data-placeholder);color:#999}.visualeditor img{max-width:100%;height:auto;display:block;margin:15px auto}.visualeditor figure{margin:20px 0}.visualeditor h2{font-size:29px}.editorhint{color:#706871;font-size:13px;margin:8px 0}.prose img{max-width:100%;height:auto}.prose figure{margin:20px 0}.prose h2{font-size:32px;line-height:1.3}.prose a{color:#741e3b;text-decoration:underline}

/* Build 4: calm magazine story typography; preserve entire portrait images */
.story .heroimg{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;object-position:center;margin:28px auto 36px;background:#fff}
.story .prose{max-width:76ch;margin:30px auto 44px;font-size:18px;line-height:1.85;overflow-wrap:anywhere}
.story .prose p{margin:0 0 1.2em}
.story .prose h2,.story .prose h3{line-height:1.22;margin:1.65em 0 .65em}
.story .prose figure{margin:2em auto;text-align:center}
.story .prose figure img,.story .prose img{display:block;max-width:100%;height:auto;margin:0 auto}
@media(max-width:650px){.story .heroimg{max-height:none;margin:18px auto 24px}.story .prose{font-size:16px;line-height:1.75}.story .lead{font-size:18px}}

/* Build 5 hotfix: body copy must read as normal left-aligned editorial text. */
.story .prose, .story .prose p, .story .prose h2, .story .prose h3,
.story .prose ul, .story .prose ol, .story .prose li,
.story .prose blockquote {text-align:left !important;}
.story .prose ul, .story .prose ol {padding-left:1.5em; margin:0 0 1.3em;}
.story .prose li {margin-bottom:.35em;}
.story .prose img {display:block;max-width:100%;height:auto;margin:1.6em auto;}

/* Build 6: automatic magazine homepage */
.homehero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:44px;border-bottom:1px solid var(--line);padding:10px 0 48px}.homehero h1{font:600 clamp(40px,5.5vw,76px)/1.05 'Playfair Display',Georgia,serif;letter-spacing:-.045em;margin:15px 0}.homehero-text>p{font-size:19px;color:var(--sub);max-width:520px}.homehero-image img{display:block;width:100%;max-height:550px;object-fit:contain}.readmore{display:inline-block;border-bottom:2px solid var(--wine);margin-top:16px;padding-bottom:5px;font-weight:700}.homeblock{margin:48px 0 56px}.blockhead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:24px}.blockhead h2{font:600 clamp(26px,3vw,38px)/1.2 'Playfair Display',Georgia,serif;margin:0 0 15px}.blockhead a{font-size:13px;color:var(--wine);font-weight:700}.eventlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.eventitem{border:1px solid var(--line);padding:14px;display:flex;flex-direction:column;gap:3px}.eventitem time{color:var(--wine);font-weight:700;font-size:12px}.eventitem strong{font-size:17px}.eventitem span{color:var(--sub);font-size:13px}.home-settings-row{display:grid;grid-template-columns:1fr 180px 150px;align-items:end;gap:15px;border-bottom:1px solid var(--line);padding:10px 0}.home-settings-row label{margin:4px 0}.movebuttons{display:flex;gap:5px}.movebuttons button{padding:10px;font-size:12px}.homepage .card img{object-fit:cover}.homepage .card h2{overflow-wrap:anywhere}@media(max-width:760px){.homehero{grid-template-columns:1fr;gap:15px}.homehero-image{grid-row:1}.homehero h1{font-size:42px}.eventlist{grid-template-columns:1fr}.home-settings-row{grid-template-columns:1fr 1fr}.movebuttons{grid-column:1/-1}}

/* Build 7: simple listing forms */
[hidden]{display:none!important}.structured-fields{border:1px solid #e8dfe3;padding:22px;margin:18px 0 22px;border-radius:8px;background:#fff}.structured-fields h2{margin:0 0 12px}.structured-fields label{margin-top:12px}.structured-fields .twocol{align-items:end}


/* Build 8: image fitting hotfix for cards and detail pages */
.card img,.homepage .card img{display:block;width:100%;height:auto;max-height:520px;aspect-ratio:4/5;object-fit:contain;object-position:center center;background:#f6f2f4;}
.card .placeholder{aspect-ratio:4/5;height:auto;min-height:260px;}
.story .heroimg{display:block;width:100%;max-width:720px;height:auto;max-height:none;object-fit:contain;object-position:center center;background:#f6f2f4;border:1px solid var(--line);}
.homehero-image img{width:100%;height:auto;max-height:680px;object-fit:contain;object-position:center center;background:#f6f2f4;}
@media(max-width:760px){.card img,.homepage .card img{aspect-ratio:auto;max-height:none}.story .heroimg{max-width:100%;margin:18px 0 24px}}

/* Build 9 monetization */
.advertisement{max-width:1000px;margin:28px auto;padding:16px 0;text-align:center;border-block:1px solid var(--line)}.advertisement span{display:block;text-align:right;font:600 10px 'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--sub);margin-bottom:8px}.advertisement img{display:block;max-width:100%;height:auto;max-height:420px;object-fit:contain;margin:auto}.ad-form{max-width:750px;background:#faf8f9;border:1px solid var(--line);padding:24px;margin:20px 0 40px}.adpreview{max-width:100%;max-height:250px;object-fit:contain}.ad-form .check input{width:auto}


/* BUILD 10 · APPROVED I AM PUERTO VALLARTA EDITORIAL IDENTITY */
:root{--ink:#171315;--wine:#741e3b;--line:#e8e1dc;--paper:#fdfbf8;--sub:#665f61;--warm:#f5eee7;--taupe:#d9c7b8}
body{background:var(--paper);color:var(--ink)}
body,button,input,textarea,select{font-family:'DM Sans',Arial,sans-serif}
.mast{background:#fdfbf8;padding:30px 16px 23px;border-bottom:1px solid var(--line)}
.mast>a{font-family:'Playfair Display',Georgia,serif;font-weight:600;letter-spacing:-.045em;font-size:clamp(28px,4.2vw,59px)}
.mast p{font-size:11px;letter-spacing:.23em;margin-top:12px}
.nav{position:relative;background:#fff;border-bottom:1px solid var(--line);gap:clamp(12px,1.7vw,28px);padding:16px 18px;font-size:11px;letter-spacing:.055em}
.nav a{padding-bottom:3px;border-bottom:1px solid transparent}.nav a:hover{border-color:var(--wine)}
.wrap{max-width:1220px;padding:54px clamp(20px,4vw,56px) 100px}
.eyebrow{font-size:10px;letter-spacing:.17em}
.homepage{padding-top:48px}.homehero{background:linear-gradient(110deg,#faf6f1 0%,#f9f3ed 52%,#fff 100%);border:1px solid #eee6de;border-radius:14px;overflow:hidden;gap:0;padding:0;min-height:430px;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr)}
.homehero-text{padding:clamp(27px,4.4vw,65px);align-self:center}.homehero h1{font-size:clamp(42px,5.1vw,74px);line-height:1.07;letter-spacing:-.04em}
.homehero-text>p{font-size:16px;line-height:1.65}.homehero-image{align-self:stretch;display:flex;min-width:0;background:#efe5db;align-items:center;justify-content:center}
.homehero-image img{width:100%;height:100%;max-height:620px;object-fit:contain;object-position:center}
.readmore{background:var(--wine);color:#fff;border:0;border-radius:4px;padding:12px 18px;font-size:12px;margin-top:17px}.readmore:hover{color:#fff;background:#511427}
.homeblock{margin:58px 0 72px}.blockhead{margin-bottom:24px}.blockhead h2{letter-spacing:-.03em;font-size:clamp(29px,3.4vw,42px)}
.grid{gap:26px}.card{background:#fff;border:1px solid #ece6e0;border-radius:10px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #1a10100b}
.card img,.homepage .card img{max-height:340px;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f4efeb}
.cardbody{padding:20px 21px 25px}.card h2{font-size:clamp(20px,2vw,29px);line-height:1.22}.card p{line-height:1.55}
.eventitem{background:#fff;border:1px solid #e9e0da;border-radius:8px;padding:19px}.eventitem strong{font:600 20px/1.25 'Playfair Display',Georgia,serif}
.sectiontop h1{font-size:clamp(48px,6vw,82px)}.sectiontop p{font-size:17px}
.story{max-width:900px}.story>h1{font-size:clamp(43px,6vw,78px)}.story .lead{font-size:clamp(18px,2vw,23px);line-height:1.5}
.story .heroimg{max-width:760px;width:100%;height:auto;max-height:none;object-fit:contain;border:0;background:transparent;margin:32px auto 36px}
.story .prose{max-width:740px;margin:36px auto;font-size:18px;line-height:1.84;color:#292326}.story .prose p{margin:0 0 1.3em}
.story .prose h2{font-size:clamp(27px,3vw,40px);line-height:1.2;margin:1.8em 0 .6em}
.story .prose blockquote{background:transparent;border-left:3px solid var(--wine);font-family:'Playfair Display',Georgia,serif;font-size:1.45em}
.advertisement{border:1px solid #ece6e0;background:#fff;border-radius:9px;padding:16px 20px;margin:34px auto}.advertisement img{max-height:390px;object-fit:contain}
.footer{background:#f8f4f0;padding:35px clamp(20px,4vw,60px)}
.mobile-menu-button{display:none}.mobile-nav[hidden]{display:none!important}
@media(max-width:850px){.homehero{grid-template-columns:1fr}.homehero-image{grid-row:1;min-height:0}.homehero-image img{height:auto;max-height:460px}.homehero-text{padding:28px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{display:none}.mobile-menu-button{display:flex;align-items:center;gap:8px;margin:0 auto 13px;background:transparent;color:var(--ink);border:1px solid var(--line);padding:10px 16px}.mobile-menu-button:hover{background:#eee7e3;color:var(--ink)}.mobile-nav:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#fff;padding:12px 16px 20px;border-bottom:1px solid var(--line)}.mobile-nav a{font-size:12px;padding:11px;border-bottom:1px solid var(--line)}.mast{padding:22px 14px}.wrap{padding-top:24px}.story .prose{font-size:17px}}
@media(max-width:540px){.grid{grid-template-columns:1fr}.mobile-nav:not([hidden]){grid-template-columns:1fr}.homehero{border-radius:9px}.homehero h1{font-size:42px}.card img,.homepage .card img{aspect-ratio:auto;max-height:none}.story .heroimg{max-width:100%;max-height:none}.story .prose{font-size:16px;line-height:1.76}.story>h1{font-size:clamp(38px,10vw,57px)}.footer{line-height:2}}
@media(prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}

/* Build 11: full-bleed, art-directed cards; full portrait within article */
.card,.homehero-image{overflow:hidden}
.card img,.homepage .card img{display:block;width:100%;aspect-ratio:4/3;height:auto;max-height:none;object-fit:cover;object-position:center 25%;background:#f6f2f4}
.story .heroimg{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center}
@media(max-width:650px){.card img,.homepage .card img{aspect-ratio:4/3}.homehero-image img{width:100%;height:auto;max-height:none;object-fit:contain}}

/* Build 12 - portrait-safe frame with image-derived soft edge fill; original never cropped */
.smart-image{display:flex;position:relative;isolation:isolate;align-items:center;justify-content:center;overflow:hidden;width:100%;height:100%;background:#e9e1da;min-height:180px}
.smart-image::before{content:"";position:absolute;z-index:-1;inset:-24px;background-image:var(--smart-bg);background-position:center;background-size:cover;filter:blur(28px) saturate(.6) brightness(1.08);opacity:.58}
.smart-image img{display:block;position:relative;width:100%;height:100%;object-fit:contain!important;object-position:center!important;max-height:inherit;aspect-ratio:auto!important;background:transparent!important}
.card .smart-card{aspect-ratio:4/3;max-height:360px}
.card .smart-card.orientation-portrait{aspect-ratio:4/5;max-height:520px}
.card .smart-card.orientation-square{aspect-ratio:1/1;max-height:440px}
.card .smart-card img,.homepage .card .smart-card img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
.homehero-image .smart-hero{min-height:320px;max-height:610px;aspect-ratio:5/4}
.homehero-image .smart-hero.orientation-portrait{aspect-ratio:4/5}
.homehero-image .smart-hero img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
.story .smart-detail{height:auto;max-height:850px;min-height:0;margin:28px auto 34px;aspect-ratio:auto;background:transparent}
.story .smart-detail::before{display:none}
.story .smart-detail img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:850px;object-fit:contain!important}
@media(max-width:600px){.card .smart-card,.card .smart-card.orientation-portrait{max-height:580px}.homehero-image .smart-hero{min-height:220px}.story .smart-detail img{max-height:none}}

/* Build 13 image sizing: natural aspect ratio, no blurred/empty bands. */
.smart-image,.card .smart-card,.homehero-image .smart-hero,.story .smart-detail{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:transparent!important;overflow:hidden}
.smart-image::before{display:none!important}
.smart-image img,.card .smart-card img,.homepage .card .smart-card img,.homehero-image .smart-hero img,.story .smart-detail img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;background:transparent!important}
.card .smart-card.orientation-portrait img{max-width:100%}
.card{align-self:start}
.homehero-image{align-self:start}
@media(min-width:820px){.grid{align-items:start}}
