/*
Theme Name: P-51 Airplanes V4
Description: The P-51 Airplanes vintage homepage, editable in the WordPress Customizer.
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: p51-airplanes-v4
*/

:root{--cream:#f2e8d3;--paper:#fbf6ea;--ink:#192b31;--red:#ae4549;--blue:#557d8d;--gold:#f4d58b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:3px}.topline{background:var(--ink);color:var(--cream);text-align:center;font:700 12px 'DM Sans';letter-spacing:.22em;padding:11px}.masthead{background:var(--cream);border-bottom:3px double var(--ink);padding:12px 5% 9px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:132px;height:78px;object-fit:contain}.brand-copy{font:800 18px 'Oswald';letter-spacing:.12em}.brand-copy small{display:block;font:600 10px 'DM Sans';letter-spacing:.22em;color:var(--red)}nav{display:flex;gap:24px;align-items:center}nav a{font:800 15px 'Oswald';letter-spacing:.13em;text-transform:uppercase}nav a:hover{color:var(--red)}.nav-cta,.button{display:inline-block;background:var(--red);color:white;padding:13px 20px;font:800 15px 'Oswald';letter-spacing:.14em;text-transform:uppercase;border:1px solid var(--red)}.button.secondary{background:transparent;color:var(--ink);border-color:var(--ink)}.hero{display:grid;grid-template-columns:48% 52%;min-height:630px;background:var(--cream)}.hero-copy{padding:75px max(32px,8vw) 62px;display:flex;flex-direction:column;justify-content:center;position:relative}.eyebrow{font:800 13px 'Oswald';letter-spacing:.28em;text-transform:uppercase;color:var(--red)}h1,h2,h3,p{margin-top:0}h1{font:400 clamp(66px,7.4vw,130px)/.82 'Oswald';letter-spacing:-.025em;text-transform:uppercase;margin:24px 0 22px}h1 span{color:var(--red)}.hero-lead{font:italic 700 clamp(22px,2.5vw,34px)/1.15 'Fraunces';max-width:500px}.hero-text{line-height:1.75;max-width:490px;font-size:15px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.hero-photo{position:relative;background:#d5d3ce;overflow:hidden}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 42%;display:block}.photo-stamp{position:absolute;bottom:26px;right:28px;background:var(--red);color:white;padding:13px 18px;transform:rotate(-5deg);font:800 19px 'Oswald';letter-spacing:.13em}.ribbon{background:var(--blue);color:white;display:flex;justify-content:space-around;gap:20px;padding:20px 5%;text-align:center;border-top:5px solid var(--ink);border-bottom:5px solid var(--ink);font:800 16px 'Oswald';letter-spacing:.18em;text-transform:uppercase}.section{padding:88px max(28px,8vw)}.section-title{font:400 clamp(38px,4.6vw,66px)/1.1 'Righteous';text-transform:uppercase;letter-spacing:-.02em;margin:13px 0 25px}.section-intro{max-width:700px;line-height:1.8;color:#46555a}.events{background:var(--paper)}.events-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:32px}.event-card{border:2px solid var(--ink);padding:32px;background:var(--cream);min-height:250px;display:flex;flex-direction:column;justify-content:space-between}.event-card h3{font:400 30px 'Righteous';text-transform:uppercase;margin:15px 0}.event-card p{line-height:1.7}.event-card a{font-weight:800;color:var(--red);text-transform:uppercase;font-size:13px;letter-spacing:.08em}.event-note{font-size:13px;color:#5b6768;margin-top:18px}.story{background:var(--ink);color:var(--paper);display:grid;grid-template-columns:1fr 1fr;gap:9vw;align-items:center}.story .section-title{color:var(--gold)}.story p{line-height:1.85}.story-mark{border:1px solid #718185;padding:38px;text-align:center}.story-mark img{width:100%;max-width:380px}.story-mark .caption{font:800 13px 'Oswald';letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}.music{background:#e8d7b9}.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:36px}.feature{border-top:4px solid var(--red);padding:20px 5px}.feature strong{display:block;font:400 27px 'Righteous';text-transform:uppercase}.feature p{font-size:14px;line-height:1.7}.contact{background:var(--cream);text-align:center}.contact p{max-width:600px;margin:0 auto 28px;line-height:1.8}.footer{background:var(--ink);color:var(--cream);padding:25px 8%;display:flex;justify-content:space-between;gap:15px;font-size:12px}.footer a{text-decoration:underline}.tag{display:inline-block;border:1px solid currentColor;padding:5px 9px;font:800 11px 'Oswald';letter-spacing:.2em;text-transform:uppercase}@media(max-width:900px){.masthead{flex-wrap:wrap;justify-content:center}nav{flex-wrap:wrap;justify-content:center;gap:14px}.hero{grid-template-columns:1fr}.hero-copy{padding:62px 7%}.hero-photo{height:560px}.story{grid-template-columns:1fr}.events-grid{grid-template-columns:1fr}}@media(max-width:600px){.topline{font-size:9px}.brand img{width:100px;height:60px}nav a{font-size:12px}.nav-cta{padding:10px}.hero-photo{height:420px}.ribbon{flex-direction:column;gap:8px;font-size:12px}.section{padding:65px 7%}.feature-row{grid-template-columns:1fr}.footer{flex-direction:column}h1{font-size:75px}}

.lang-switch{display:flex;align-items:center;gap:3px;border:1px solid var(--ink);padding:3px}
.lang-switch button{font:700 12px 'DM Sans';padding:7px 9px;background:transparent;border:0;color:var(--ink);cursor:pointer}
.lang-switch button.active{background:var(--ink);color:var(--cream)}
.gallery{background:#f4ecdc}.gallery-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;margin-top:35px}






.gallery .gallery-note{font-size:12px;color:#546167;margin-top:20px}
@media(max-width:650px){.lang-switch{margin:0 auto}}


/* Vintage brochure refinements based on homepage v2 */
:root{--cream:#efe1bf;--paper:#f7edd6;--ink:#172c35;--red:#ae393a;--blue:#466a78;--gold:#edc879}
body{background-color:var(--paper);background-image:repeating-linear-gradient(0deg,transparent 0 4px,rgba(78,48,23,.018) 4px 5px)}
.topline{background:#9d3535;letter-spacing:.3em}.masthead{border-bottom:5px double #9b3d36}
.hero{grid-template-columns:44% 56%;min-height:570px}.hero-copy{padding:58px 5vw}.hero-photo{border-left:7px solid var(--paper)}.hero-photo img{object-position:center center;object-fit:contain;background:#101010}
h1{font-family:'Righteous',sans-serif;font-size:clamp(52px,5.4vw,92px);line-height:.98;letter-spacing:-.055em}
.hero-lead{font-family:'Fraunces',serif}.section-title{letter-spacing:-.035em}.section{border-top:1px solid rgba(44,45,36,.25)}
.ribbon{background:#a83b37;border-top:3px solid #172c35;border-bottom:3px solid #172c35}
.story{gap:5vw}

.mini-kicker,.record-meta{font:700 12px 'Oswald';letter-spacing:.19em}
.music{background:#f0dfbc}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin-top:36px}.record{border-top:5px solid #a83b37;padding-top:12px}.record img{width:100%;aspect-ratio:1;object-fit:contain;display:block;background:#e4d6b9;border:1px solid #9b8b75}.record-meta{color:#a33e37;margin-top:18px}.record h3{font:400 clamp(23px,2.6vw,37px) 'Righteous';margin:7px 0}.record p{font-size:13px;line-height:1.5}.record-link{margin-top:25px;font:700 14px 'Oswald';letter-spacing:.15em;color:#a43d38}
.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-photo{height:auto;border-left:0}.hero-photo img{height:auto}.record-grid{gap:14px}.story{gap:35px}}
@media(max-width:650px){.record-grid{grid-template-columns:1fr}.record img{max-width:420px}.gallery-grid{grid-template-columns:1fr}h1{font-size:clamp(52px,11vw,74px)}}

.hero { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.hero h1 { font-size: clamp(44px, 5vw, 92px); }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(42px, 10vw, 74px); }
}
.hero-photo { background: #101010; }
.visually-hidden:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { display: block; padding: .75rem; background: var(--paper); }
.section-intro, .story p, .contact p, .event-card p { white-space: pre-line; }
.show-poster { display: block; max-width: 100%; height: auto; margin-bottom: 1rem; }
.nav-cta:hover { color: white; background: #852a2b; }

.p51-show-feed { min-width: 0; margin-bottom: 1rem; }
.events-grid > .event-card { min-width: 0; }

.story { grid-template-columns: minmax(0, 1fr); }
.story > div { max-width: 46rem; }
.gallery-grid > figure {
    margin: 0;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border: 6px solid #e6d6b8;
    background: var(--ink);
    overflow: hidden;
}
.gallery-grid > figure > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p51-social-links { justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.p51-social-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    border-radius: 50%;
}
.p51-social-links a:hover { background: var(--ink); color: var(--cream); }

.career-highlights {
    background: var(--paper);
}
.career-highlights .section-title {
    max-width: 22ch;
}
.career-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}
.career-highlights-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--cream);
    border: 4px double var(--red);
}
.career-highlights-panel h3 {
    margin-bottom: .65rem;
    color: var(--red);
    font: 400 clamp(1.25rem, 2.4vw, 1.75rem) 'Righteous', sans-serif;
}
.career-highlights-panel ul {
    margin: 0;
    padding-inline-start: 1.25rem;
}
.career-highlights-panel li {
    padding: .5rem 0;
    line-height: 1.5;
}
.career-highlights-panel li + li {
    border-top: 1px solid #9f8e75;
}
@media (max-width: 650px) {
    .career-highlights-grid { grid-template-columns: 1fr; }
}

.record-action { display: block; height: 100%; }
.record-action:hover h3, .record-action:focus-visible h3 { text-decoration: underline; }

/* Natural image proportions create a masonry composition without cropping. */
.gallery-grid.p51-mosaic {
    display: block;
    columns: 3;
    column-gap: 16px;
}
.gallery-grid.p51-mosaic > figure {
    display: block;
    margin: 0 0 16px;
    width: 100%;
    aspect-ratio: auto;
    break-inside: avoid;
}
.gallery-grid.p51-mosaic > figure > img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
}
.p51-reels { background: var(--cream); }
.p51-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.p51-reels-grid video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #101010;
    border: 6px solid #e6d6b8;
}
@media (max-width: 900px) {
    .gallery-grid.p51-mosaic { columns: 2; }
    .p51-reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gallery-grid.p51-mosaic { columns: 1; }
    .p51-reels-grid { grid-template-columns: minmax(0, 1fr); }
}

.p51-carousel { min-width: 0; }
.p51-carousel .p51-slides { position: absolute; inset: 0; }
.p51-carousel .p51-slide { width: 100%; height: 100%; }
.p51-carousel .p51-slide[hidden],
.p51-carousel .p51-carousel-controls[hidden] { display: none; }
.p51-carousel .p51-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.p51-carousel-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--ink);
    color: var(--cream);
    border: 1px solid var(--cream);
}
.p51-carousel-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}
.p51-carousel-controls button:hover { background: var(--red); }
.p51-carousel-controls span { min-width: 4ch; text-align: center; font-size: 13px; }
@media (max-width: 900px) {
    .hero-photo.p51-carousel { aspect-ratio: 3 / 2; min-height: 0; }
}
