/*
Theme Name: Model Guide Magazine
Theme URI: https://example.com/model-guide-magazine
Author: Your Name
Description: A fashion and modeling magazine theme with modeling categories, an upcoming events calendar, a models gallery, built-in Google AdSense placements, and the essential policy pages AdSense reviewers look for.
Version: 1.0.0
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: model-guide-magazine
Tags: blog, news, magazine, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, right-sidebar, grid-layout
*/

:root{--ink:#1d1530;--paper:#fff;--soft:#f4f0fa;--muted:#6a6479;--line:#e3dded;--accent:#d6246e;--serif:Didot,"Bodoni 72","Bodoni MT","Playfair Display",Georgia,"Times New Roman",serif;--sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:17px/1.65 var(--sans);color:var(--ink);background:var(--paper)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration-color:var(--accent);text-underline-offset:3px}
a:hover{color:var(--accent)}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.15;letter-spacing:-.01em;margin:0 0 .5em;font-weight:700}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto;width:auto;height:auto;background:#fff;padding:10px 14px;z-index:100;top:6px;left:6px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.mgm-wrap{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header */
.mgm-topbar{background:var(--ink);color:#e8e2f3;font-size:14px}
.mgm-topbar .mgm-wrap{display:flex;justify-content:space-between;align-items:center;min-height:38px;gap:12px}
.mgm-socials{display:flex;gap:16px;flex-wrap:wrap}
.mgm-socials a{color:#e8e2f3;text-decoration:none}
.mgm-socials a:hover{color:#fff;text-decoration:underline}
.mgm-brand{text-align:center;padding:30px 20px 20px}
.mgm-brand__title{font:700 clamp(2.2rem,6vw,4.4rem)/1 var(--serif);letter-spacing:-.02em;margin:0}
.mgm-brand__title a{text-decoration:none;color:var(--ink)}
.mgm-brand__tag{margin:8px 0 0;color:var(--muted)}
.custom-logo{max-height:90px;width:auto;margin:0 auto}
.mgm-nav{border-block:3px solid var(--ink);background:#fff;position:sticky;top:0;z-index:50}
.mgm-nav .mgm-wrap{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mgm-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.mgm-nav li{position:relative}
.mgm-nav a{display:block;padding:14px 14px;text-decoration:none;font-weight:600;font-size:15.5px}
.mgm-nav a:hover,.mgm-nav .current-menu-item>a{color:var(--accent)}
.mgm-nav .sub-menu{display:none;position:absolute;left:0;top:100%;background:#fff;min-width:230px;border:1px solid var(--line);box-shadow:0 12px 30px rgba(29,21,48,.14);flex-direction:column}
.mgm-nav li:hover>.sub-menu,.mgm-nav li:focus-within>.sub-menu{display:flex}
.mgm-nav .sub-menu a{padding:10px 16px;font-weight:500}
.mgm-nav__toggle{display:none;background:var(--ink);color:#fff;border:0;padding:10px 16px;font:600 15px var(--sans);cursor:pointer}
.mgm-nav__search{margin-left:auto}
.mgm-nav__search form{display:flex}
.mgm-nav__search input[type=search]{border:1px solid var(--line);padding:8px 10px;width:150px;font:inherit;font-size:14px}
.mgm-nav__search input[type=submit]{display:none}

/* Layout */
.mgm-main{min-height:50vh;padding-bottom:50px}
.mgm-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;margin-top:34px}
.mgm-narrow{max-width:780px;margin:34px auto 0;padding:0 20px}
.mgm-section{margin-top:54px}
.mgm-section__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px;border-bottom:3px solid var(--ink);padding-bottom:8px}
.mgm-section__head h2{font-size:clamp(1.7rem,3vw,2.4rem);margin:0}
.mgm-section__head a{font-weight:600;font-size:15px}
.mgm-page-title{font-size:clamp(2rem,5vw,3.4rem);margin:34px 0 8px}
.mgm-archive-desc{color:var(--muted);max-width:60ch;margin:0 0 24px}
.mgm-crumbs{font-size:14px;color:var(--muted);margin-top:22px}
.mgm-crumbs a{color:var(--muted)}

/* Cards */
.mgm-grid{display:grid;gap:28px 24px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.mgm-grid--wide{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.mgm-card__media{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--soft)}
.mgm-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.mgm-card:hover .mgm-card__media img{transform:scale(1.04)}
.mgm-card__ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--soft),#e6dcf5)}
.mgm-card__body{padding-top:12px}
.mgm-card__title{font-size:1.28rem;margin:4px 0 6px}
.mgm-card__title a{text-decoration:none}
.mgm-card__excerpt{color:var(--muted);margin:0 0 8px;font-size:15.5px}
.mgm-kicker{color:var(--accent);font-weight:700;font-size:14px;text-decoration:none}
.mgm-meta{color:var(--muted);font-size:13.5px}
.mgm-infeed{grid-column:1/-1}

/* Hero */
.mgm-hero{display:grid;grid-template-columns:1.35fr 1fr;gap:26px;margin-top:30px}
.mgm-hero__lead .mgm-card__media{aspect-ratio:4/3}
.mgm-hero__lead .mgm-card__title{font-size:clamp(1.8rem,3.4vw,2.9rem)}
.mgm-hero__side{display:grid;gap:18px;align-content:start}
.mgm-hero__side .mgm-card{display:grid;grid-template-columns:130px 1fr;gap:14px}
.mgm-hero__side .mgm-card__media{aspect-ratio:1}
.mgm-hero__side .mgm-card__body{padding:0}
.mgm-hero__side .mgm-card__title{font-size:1.08rem}

/* Topic tiles */
.mgm-topics{display:flex;flex-wrap:wrap;gap:10px}
.mgm-topics a{background:var(--soft);padding:9px 16px;text-decoration:none;font-weight:600;font-size:15px;border-radius:99px}
.mgm-topics a:hover,.mgm-topics a.is-active{background:var(--ink);color:#fff}
.mgm-topics small{opacity:.65;font-weight:500;margin-left:4px}

/* Events */
.mgm-events{display:grid;gap:0;border-top:1px solid var(--line)}
.mgm-event{display:grid;grid-template-columns:86px 1fr auto;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.mgm-event__date{background:var(--ink);color:#fff;text-align:center;padding:10px 6px;line-height:1.1}
.mgm-event__date b{display:block;font:700 2rem var(--serif)}
.mgm-event__date span{font-size:13px;opacity:.85}
.mgm-event__title{font-size:1.3rem;margin:2px 0 4px}
.mgm-event__title a{text-decoration:none}
.mgm-event__info{color:var(--muted);font-size:14.5px}
.mgm-btn{display:inline-block;background:var(--accent);color:#fff;padding:11px 20px;border:0;font:600 15px var(--sans);text-decoration:none;cursor:pointer}
.mgm-btn:hover{background:var(--ink);color:#fff}
.mgm-btn--ghost{background:transparent;color:var(--ink);border:2px solid var(--ink)}

/* Models */
.mgm-model__media{display:block;aspect-ratio:3/4;overflow:hidden;background:var(--soft)}
.mgm-model__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.mgm-model:hover .mgm-model__media img{transform:scale(1.04)}
.mgm-model__name{font-size:1.15rem;margin:10px 0 0}
.mgm-model__name a{text-decoration:none}
.mgm-model__sub{color:var(--muted);font-size:14px}
.mgm-profile{display:grid;grid-template-columns:minmax(0,420px) 1fr;gap:40px;margin-top:30px}
.mgm-profile__facts{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:18px 0;padding:16px 0;border-block:1px solid var(--line)}
.mgm-profile__facts dt{color:var(--muted)}
.mgm-profile__facts dd{margin:0;font-weight:600}

/* Single */
.mgm-single__head{margin-top:26px}
.mgm-single__title{font-size:clamp(2rem,4.6vw,3.3rem)}
.mgm-single__thumb{margin:20px 0}
.mgm-single__thumb figcaption{font-size:13.5px;color:var(--muted);margin-top:6px}
.entry-content{font-size:18px;line-height:1.75}
.entry-content>*{max-width:70ch}
.entry-content>.alignwide,.entry-content>.wp-block-gallery,.entry-content>figure{max-width:100%}
.entry-content h2{margin-top:1.8em;font-size:1.9rem}
.entry-content h3{margin-top:1.5em;font-size:1.45rem}
.entry-content blockquote{border-left:4px solid var(--accent);margin:1.6em 0;padding:.2em 0 .2em 20px;font:italic 1.35rem/1.45 var(--serif)}
.entry-content table{border-collapse:collapse;width:100%}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.mgm-share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:28px 0;font-weight:600}
.mgm-share a{padding:7px 14px;border:1px solid var(--line);text-decoration:none;font-size:14.5px}
.mgm-author{display:flex;gap:16px;background:var(--soft);padding:20px;margin:30px 0}
.mgm-author img{border-radius:50%}
.mgm-author p{margin:4px 0 0;color:var(--muted)}
.mgm-tags a{display:inline-block;margin:0 8px 8px 0;font-size:14px;color:var(--muted)}

/* Sidebar & widgets */
.widget{margin-bottom:34px}
.widget__title{font-size:1.35rem;border-bottom:3px solid var(--ink);padding-bottom:6px}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:8px 0;border-bottom:1px solid var(--line)}
.widget li a{text-decoration:none}
.mgm-mini-event{display:flex;gap:12px;align-items:center}
.mgm-mini-event b{background:var(--ink);color:#fff;padding:6px 8px;text-align:center;line-height:1.1;min-width:52px;font-family:var(--serif)}
.mgm-mini-event small{display:block;font:500 11px var(--sans);opacity:.8}
input[type=search],input[type=text],input[type=email],input[type=url],textarea,select{width:100%;padding:11px 12px;border:1px solid #cbc3d9;font:inherit;background:#fff}
.mgm-form p{margin:0 0 16px}
.mgm-form label{display:block;font-weight:600}
.mgm-form label>*{margin-top:6px;font-weight:400}
.mgm-notice{padding:14px 16px;margin-bottom:20px;border-left:4px solid var(--accent);background:var(--soft)}

/* Ads */
.mgm-ad{margin:28px auto;text-align:center;max-width:100%;overflow:hidden;min-height:50px}
.mgm-ad__label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.mgm-ad--placeholder{border:2px dashed var(--line);padding:30px;color:var(--muted)}

/* Pagination / comments */
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:36px}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--line);text-decoration:none}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.comments-area{margin-top:40px}
.comment-list{list-style:none;padding:0}
.comment-body{padding:16px 0;border-bottom:1px solid var(--line)}
.comment-list .children{list-style:none;padding-left:24px}

/* Footer */
.mgm-footer{background:var(--ink);color:#d9d2e6;padding:50px 0 24px;margin-top:40px}
.mgm-footer a{color:#fff}
.mgm-footer__cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:34px}
.mgm-footer .widget__title{color:#fff;border-color:#4b3f66}
.mgm-footer .widget li{border-color:#3a2f52}
.mgm-footer__menu{list-style:none;display:flex;flex-wrap:wrap;gap:6px 22px;padding:0;margin:34px 0 14px;border-top:1px solid #3a2f52;padding-top:22px}
.mgm-footer__menu a{text-decoration:none;font-size:15px}
.mgm-footer__note{font-size:14px;opacity:.8;margin:0}

/* Lightbox */
.mgm-lightbox{position:fixed;inset:0;background:rgba(10,6,20,.92);display:flex;align-items:center;justify-content:center;z-index:200;cursor:zoom-out;padding:20px}
.mgm-lightbox img{max-height:94vh;max-width:94vw;object-fit:contain}
.entry-content img,.mgm-profile__photo img{cursor:zoom-in}

@media (max-width:900px){
 .mgm-layout,.mgm-hero,.mgm-profile{grid-template-columns:1fr}
 .mgm-nav__toggle{display:block}
 .mgm-nav .mgm-wrap{flex-wrap:wrap}
 .mgm-nav .menu-wrap{display:none;width:100%;order:3}
 .mgm-nav.is-open .menu-wrap{display:block}
 .mgm-nav ul{flex-direction:column}
 .mgm-nav .sub-menu{display:flex;position:static;box-shadow:none;border:0;padding-left:14px}
 .mgm-nav__search{margin:0}
 .mgm-event{grid-template-columns:70px 1fr}
 .mgm-event .mgm-btn{grid-column:2;justify-self:start}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.mgm-nav .menu-wrap{order:1}
.mgm-nav__search{order:2}
@media (max-width:900px){.mgm-nav .menu-wrap{order:3}}
