/*
Theme Name: Ollomont le camp
Version: 1.0
*/
*{box-sizing:border-box}body{margin:0;background:#a8a8a8;color:#282828;font:16px/1.4 Arial,sans-serif}header{min-height:59px;background:#606060;display:grid;place-items:center}nav ul{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;margin:0;padding:14px;list-style:none}nav a{font:18px/24px Impact,"Arial Narrow",sans-serif;color:white;text-decoration:none}nav a:hover,nav .current-menu-item a{text-decoration:underline}header button{display:none}main{max-width:980px;margin:80px auto 60px;padding:18px 30px 60px;background:#ffffffce;text-align:center;min-height:480px}h1{font-family:"Arial Narrow",Arial,sans-serif;font-weight:400;line-height:1.2;font-size:38px;margin:0 auto 54px}.home{background:#606060}.home main{margin:43px auto 0;background:transparent;padding:0;min-height:980px}.home h1{font-size:20px;color:#dadada;margin:90px auto 20px}.logo{width:275px;height:275px;border-radius:50%;margin:auto;display:grid;place-content:center;background:#ecebe6;color:#444;font:32px Georgia,serif}.logo small{display:block;font:12px Arial;margin-top:8px}.wp-block-button{margin:7px auto}.wp-block-button__link{display:inline-grid;place-items:center;background:#000;color:white;width:189px;min-height:37px;padding:5px;text-decoration:none;font-size:13px;border-radius:0}.wp-block-button__link:hover{background:#454545}.history{max-width:577px;margin:auto;text-align:left}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:590px;margin:auto}.gallery figure{margin:0}.gallery img{width:100%;aspect-ratio:190/169;object-fit:cover;display:block}.lodge{max-width:820px;grid-template-columns:1.54fr 1fr 1fr;gap:32px}.lodge figure:first-child{grid-row:span 2}.lodge img{height:100%}.contact{max-width:492px;text-align:right;margin:auto}.contact input,.contact textarea{display:block;width:100%;margin-bottom:5px;padding:6px;border:1px solid #aaa;font:14px Arial}.contact textarea{height:130px}.contact button,header button{background:#222;color:white;border:0;padding:9px 20px;cursor:pointer}.links{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:700px;margin:auto;text-align:left}.links a{color:inherit}footer{text-align:center;color:white;padding:40px 12px;font-size:14px}body:has(.docs) main{padding-top:125px}.menu-toggle{font-size:16px}dialog{padding:12px;border:0;max-width:92vw}dialog img{max-width:80vw;max-height:70vh}dialog button{display:block;margin-left:auto}figure a{display:block;height:100%}
@media(max-width:720px){header{justify-items:end;padding:8px 16px}header button{display:block}nav{width:100%}nav ul{display:none;flex-direction:column;text-align:center;gap:12px}nav.open ul{display:flex}main{margin:32px 12px;padding:25px 16px}h1{font-size:30px}.gallery,.lodge{grid-template-columns:repeat(2,1fr);gap:8px}.lodge figure:first-child{grid-row:auto;grid-column:span 2}.links{grid-template-columns:1fr}.home .logo{width:220px;height:220px}.home main{min-height:750px}}
@font-face{font-family:Anton;src:url(Anton-Regular.ttf) format("truetype");font-display:swap}
body{background:#a8a8a8 none center center/cover fixed no-repeat}
header{background:#000}nav ul{width:min(980px,98vw);justify-content:space-around;gap:0}nav a,h1,.wp-block-button__link{font-family:Anton,Impact,sans-serif;font-weight:400}
.home{background-color:#606060}.logo{color:#171717;background:transparent;font:bold 24px/1.05 Arial,sans-serif}.logo strong{display:block;font:bold 84px/1 Arial,sans-serif}.logo strong small{display:inline;font-weight:bold}.logo p{margin:0}.logo small{font-size:11px}.annonces{background:rgba(255,255,255,.60);max-width:372px;margin:82px auto 0;padding:16px 8px 29px}.home h1{color:#171717;margin:0 auto 18px;line-height:31px}.wp-block-button__link{font-size:13px}.home footer{background:#0008}.camp-photos main{padding-top:25px}.camp-contact main,.camp-direct-du-camp main{padding-top:45px}.camp-histoire main{padding-top:40px}.wp-block-button{display:block}.gallery figure>a{overflow:hidden}.gallery img{transition:transform .2s}.gallery a:hover img{transform:scale(1.03)}
@media(max-width:720px){header{min-height:53px}.home main{margin-top:20px;min-height:540px}.home .logo{width:190px;height:190px}.annonces{max-width:min(90%,300px);margin:15px auto}.home h1{font-size:18px;line-height:25px}.gallery:not(.lodge){grid-template-columns:repeat(3,minmax(0,1fr))}.gallery:not(.lodge) img{height:169px}.menu-toggle{background:transparent;color:white}nav ul{width:100%}.logo strong{font-size:64px}}


main{color:#111}
main h1:not(.home h1)::after{content:"";display:block;width:36px;margin:13px auto 0;border-bottom:3px solid}
.camp-contact main{max-width:658px;min-height:546px;margin-top:76px;padding-top:55px}
.camp-contact h1{margin-bottom:43px}.contact input,.contact textarea{background:#f4f4f4}.contact button{font:14px Anton}
.camp-photos main{max-width:774px;margin-top:64px;padding-top:36px}.camp-photos h1{margin-bottom:41px}
.camp-la-gran-baita main{max-width:884px;margin-top:60px;padding:34px 18px}.camp-la-gran-baita h1{margin-bottom:38px}.lodge{grid-template-rows:160px 160px;row-gap:40px}
.camp-direct-du-camp main{max-width:786px;margin-top:108px;min-height:568px;padding-top:20px}
.camp-liens-utiles{background-image:none}.camp-liens-utiles main{max-width:594px;min-height:390px;margin-top:144px;padding-top:72px}
.camp-liens main{max-width:840px}.camp-histoire main{max-width:740px}
@media(max-width:720px){main{max-width:100%}.camp-photos main,.camp-contact main,.camp-la-gran-baita main{margin-top:16px}.camp-photos main{padding-top:12px}.lodge{grid-template-rows:auto}.lodge figure:first-child{max-height:240px}.camp-liens-utiles main{margin-top:60px}.camp-photos h1{margin-bottom:24px}}
.home{background-image:none;background-position:center;background-size:cover;background-attachment:fixed}
.camp-footer{margin:449px auto 0;color:#fff;padding:0 10px 133px;text-align:center;font:300 14px/17px Lato,Arial,sans-serif}.camp-footer p{margin:0}
@media(max-width:720px){.camp-footer{margin-top:165px;padding-bottom:261px}}
.home figure.logo{margin:0 auto;display:block}
.home .logo img,.embleme img{display:block;width:100%;height:100%;object-fit:contain}
.camp-footer .embleme{width:102px;height:102px;margin:0 auto 15px}
@media(max-width:720px){.camp-footer .embleme{width:52px;height:52px;margin-bottom:11px}}

@font-face{font-family:Lato;src:url(Lato-Light.ttf) format("truetype");font-weight:300;font-display:swap}
@font-face {
    font-family: Lato;
    src: url("Lato-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

.camp-histoire h1 {
    font-size: 34px;
    color: #000;
}

.camp-histoire .history {
    font: 300 16px/19px Lato, sans-serif;
    color: #000;
    text-align: justify;
}

.camp-histoire .history .chronologie {
    font-style: italic;
    margin-block: 0;
}
.camp-histoire .history p { margin: 0; }
.camp-histoire h1 { margin-bottom: 48px; }
@font-face {font-family:"Lato Histoire";src:url(lato-wix.woff2) format("woff2");font-weight:300;font-display:swap}
@font-face {font-family:"Lato Histoire";src:url(lato-wix-italic.woff2) format("woff2");font-weight:300;font-style:italic;font-display:swap}
.camp-histoire .history {font-family:"Lato Histoire",Lato,sans-serif}
/* The block editor can wrap the figures in an inner group on the public page. */
.lodge > .wp-block-group__inner-container { display: contents; }
.gallery.lodge {
    width: min(100%, 815px);
    max-width: none;
    grid-template-columns: 327fr 35fr 213fr 27fr 213fr;
    grid-template-rows: repeat(2, auto);
    gap: 40px 0;
    position: relative;
    left: clamp(-15.5px, calc((884px - 100vw) / 2), 0px);
}
.lodge figure { min-width: 0; margin: 0; }
.lodge figure:first-child { grid-column: 1; grid-row: 1 / span 2; }
.lodge figure:nth-child(2), .lodge figure:nth-child(4) { grid-column: 3; }
.lodge figure:nth-child(3), .lodge figure:nth-child(5) { grid-column: 5; }
.lodge figure:not(:first-child) { aspect-ratio: 213 / 160; }
.lodge figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; }
.lodge a:hover img { transform: none; }
.camp-la-gran-baita h1 { margin-bottom: 55.4px; }
@media (max-width: 720px) {
    .camp-la-gran-baita h1 { margin-bottom: 14px; }
    .gallery.lodge { display: flex; flex-direction: column; align-items: center; gap: 0; left: auto; }
    .lodge figure:first-child { width: min(71.875vw, 100%); max-height: none; aspect-ratio: 230 / 253; }
    .lodge figure:not(:first-child) { width: min(46.875vw, 100%); aspect-ratio: 150 / 113; margin-top: 3.75vw; }
    .lodge figure:nth-child(2) { margin-top: 3.125vw; }
    .lodge figure:nth-child(3) { margin-top: 2.5vw; }
}
.camp-viewer { background: #151515; color: white; border: 0; padding: 12px; max-width: 96vw; max-height: 95dvh; }
.camp-viewer::backdrop { background: rgba(0,0,0,.9); }
.camp-viewer img { display: block; width: min(88vw,1400px); height: 75dvh; max-width: none; max-height: none; object-fit: contain; }
.camp-viewer .viewer-controls { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.camp-viewer button { margin: 0; cursor: pointer; background: #252525; color: white; border: 1px solid #777; padding: 8px 12px; }
.lodge figure { position: relative; }
.lodge figure > a { position: absolute; inset: 0; }
@media (min-width:721px) {
    .gallery.lodge { aspect-ratio: 815 / 360; grid-template-rows: repeat(2,minmax(0,1fr)); row-gap:11.1111%; }
}
.camp-photos .gallery > .wp-block-group__inner-container { display: contents; }
.camp-photos .gallery { gap: 10px; }
.camp-photos .gallery figure { min-width: 0; margin: 0; }
.camp-photos .gallery a, .camp-photos .gallery img { display: block; }
.camp-photos .gallery a:hover img { transform: none; }
@media (min-width: 721px) {
    .camp-photos h1 { margin-bottom: 61.4px; }
}
@media (max-width: 720px) {
    .camp-photos .gallery { width: min(80.625vw, 100%); }
}
.camp-direct-du-camp .wp-block-embed { max-width: 640px; margin: 0 auto; }
.camp-direct-du-camp .wp-block-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
