/* ===== Header, menus, search, carousels, lightbox, back-to-top - AB Museum Consulting static site (hand-written; matches the Polo look) ===== */
:root{--accent:rgb(28,74,68);--ink:rgb(37,37,37);--menu-font:Raleway,Helvetica,Arial,sans-serif}

/* Polo container widths: 1170 / 970 / 750 / 470 / full */
.wrap{width:100%;max-width:1170px;margin:0 auto;padding:0 15px}
@media (max-width:1199.98px){.wrap{max-width:970px}}
@media (max-width:991.98px){.wrap{max-width:750px}}
@media (max-width:767.98px){.wrap{max-width:470px}}
@media (max-width:479.98px){.wrap{max-width:none}}

/* ---------- header ---------- */
.ph{position:relative;z-index:199;height:80px;font-size:14px;line-height:80px}
.ph-bar{position:relative;height:80px;background:#fff;transition:background-color .4s ease-in-out,box-shadow .4s ease-in-out}
.ph-in{position:relative;display:flex;align-items:center;height:80px}
.ph-logo{flex:0 0 auto;line-height:0;z-index:1}
.ph-logo img{width:180px;height:80px;display:block;max-width:none}
.ph-nav{flex:1 1 auto;display:flex;justify-content:flex-end}
.ph-nav ul{list-style:none;margin:0;padding:0;display:flex}
.ph-nav li{margin-left:6px;line-height:80px}
.ph-nav a{display:inline;padding:11px 14px;font:700 12px/normal var(--menu-font);letter-spacing:1px;text-transform:uppercase;color:var(--ink);transition:.3s}
.ph-nav a:hover,.ph-nav li.current a{color:var(--accent)}
.ph-x{flex:0 0 auto;display:flex;align-items:center;height:80px;padding-left:20px;z-index:201}
.ph-ic{position:relative;display:block;width:14px;height:80px;padding:0;border:0;background:none;cursor:pointer;color:rgb(86,86,86);font:14px/80px FontAwesome}
.ph-ic::before{content:"\f002"}
.ph-ic:hover{color:var(--accent)}
.ph-burger{display:none;position:relative;width:16px;height:80px;padding:0;border:0;background:none;cursor:pointer}
.ph-burger span,.ph-burger span::before,.ph-burger span::after{position:absolute;left:0;width:16px;height:2px;background:var(--ink);transition:.3s}
.ph-burger span{top:35px}
.ph-burger span::before{content:"";top:-5px}.ph-burger span::after{content:"";top:5px}
.ph.mopen .ph-burger span{background:transparent}
.ph.mopen .ph-burger span::before{top:0;transform:rotate(45deg)}
.ph.mopen .ph-burger span::after{top:0;transform:rotate(-45deg)}
/* search bar (replaces the logo + menu while open) */
.ph-search{position:absolute;inset:0;padding:0 15px;opacity:0;visibility:hidden;z-index:-2;transition:opacity .2s ease-in-out}
.ph-search input{display:block;width:100%;height:80px;padding:0 94px 0 0;border:0;background:transparent;outline:0;border-radius:0;font:30px/40px "Open Sans",Helvetica,Arial;letter-spacing:2px;color:rgb(85,85,85)}
.ph.sopen .ph-search{opacity:1;visibility:visible;z-index:10}
.ph.sopen .ph-logo,.ph.sopen .ph-nav,.ph.sopen .ph-burger{opacity:0;visibility:hidden}
.ph.sopen .ph-ic::before{content:"\f00d"}
/* home: transparent over the hero, white menu */
.ph.tr .ph-bar{background:transparent}
.ph.tr .ph-nav a,.ph.tr .ph-nav li.current a,.ph.tr .ph-ic{color:#fff}
.ph.tr .ph-burger span,.ph.tr .ph-burger span::before,.ph.tr .ph-burger span::after{background:#fff}
.ph.tr.mopen .ph-burger span{background:transparent}
.ph.tr .ph-search input{color:#fff}
.ph.tr .ph-search input::placeholder{color:rgba(255,255,255,.8)}
/* sticky after scrolling (desktop only, as on the live site) */
@media (min-width:992px){
  .ph.stuck .ph-bar{position:fixed;top:0;left:0;width:100%;background:#fff;box-shadow:rgba(0,0,0,.06) 0 12px 6px 0}
  .ph.stuck .ph-nav a{color:var(--ink)}
  .ph.stuck .ph-nav a:hover,.ph.stuck .ph-nav li.current a{color:var(--accent)}
  .ph.stuck .ph-ic{color:rgb(86,86,86)}
  .ph.stuck .ph-search input{color:rgb(85,85,85)}
}
@media (max-width:1199.98px){.ph-in.wrap{max-width:970px}}
/* tablet / mobile: white bar, hamburger left, logo centred, search right, menu drops down below */
@media (max-width:991.98px){
  .ph{height:auto;font-size:13px}
  .ph.tr .ph-bar,.ph-bar{background:#fff}
  .ph.tr .ph-ic,.ph-ic{color:var(--ink)}
  .ph.tr .ph-burger span,.ph.tr .ph-burger span::before,.ph.tr .ph-burger span::after{background:var(--ink)}
  .ph.tr.mopen .ph-burger span{background:transparent}
  .ph-bar{height:auto}
  .ph-in{flex-wrap:wrap;height:auto}
  .ph-burger{display:block;order:1}
  .ph-logo{order:2;position:absolute;left:50%;top:0;transform:translateX(-50%)}
  .ph-x{order:3;margin-left:auto}
  .ph-nav{order:4;flex:0 0 100%;display:none;justify-content:flex-start}
  .ph.mopen .ph-nav{display:block}
  .ph-nav ul{display:block}
  .ph-nav li{margin:0;line-height:normal}
  .ph-nav a,.ph.tr .ph-nav a,.ph.tr .ph-nav li.current a{display:block;padding:12px 0;font-size:13px;line-height:15px;color:var(--ink)}
  .ph-nav a:hover,.ph-nav li.current a,.ph.tr .ph-nav a:hover{color:var(--accent)}
  .ph-search{height:80px}
  .ph.tr .ph-search input{color:rgb(85,85,85)}
}
@media (max-width:479.98px){.ph-in.wrap{padding:0 10px}}

/* ---------- phones/tablets: the header is a solid bar, so the hero starts below it (live tucked it under and hid the headline) */
@media (max-width:991.98px){.hero-root{top:0!important;margin-bottom:0!important}}

/* ---------- home hero height (live theme sizes it from the window height) ---------- */
.hero-h{height:calc(100vh / 1.33)!important}
@media (max-width:900px){.hero-h{height:calc(100vh / 2.2)!important}}
@media (max-width:767.98px){.hero-h{height:360px!important}}

/* ---------- carousels (replace the theme's Owl carousels) ---------- */
.oc{position:relative;user-select:none;touch-action:pan-y}
.oc-view{overflow:hidden}
.oc-gallery .oc-view{overflow:visible}
.oc-track{display:flex;transition:transform .6s ease}
.oc-item{flex:0 0 auto;position:relative;transition:opacity .3s}
.oc-gallery .oc-item{opacity:.3}
.oc-gallery .oc-item.on{opacity:1}
.oc-gallery .oc-item a{display:block;line-height:0}
.oc-gallery .oc-item img{display:block;width:100%;height:auto}
.oc-video{display:block;width:100%;height:420px;padding:0;border:0;cursor:pointer;background:#000 center/contain no-repeat;position:relative}
.oc-video::after{content:"";position:absolute;left:50%;top:50%;width:80px;height:80px;margin:-40px 0 0 -40px;transition:transform .1s ease;
  background:no-repeat center/56px url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 64"%3E%3Cpath d="M0 0l56 32L0 64z" fill="%23a0a0a0" fill-opacity=".85"/%3E%3C/svg%3E')}
.oc-video:hover::after{transform:scale(1.3)}
.oc-item iframe{display:block;width:100%;height:420px;border:0;background:#000}
.oc-btn{position:absolute;top:50%;margin-top:-23px;width:46px;height:46px;padding:0;border:2px solid #fff;background:#fff;color:rgb(38,38,38);opacity:0;cursor:pointer;z-index:2;
  font:22px/42px FontAwesome;text-align:center;transition:all .3s ease}
.oc-prev{left:0}.oc-next{right:0}
.oc-prev::before{content:"\f104";margin-left:-2px}.oc-next::before{content:"\f105";margin-right:-2px}
.oc:hover .oc-btn{opacity:1}
.oc:hover .oc-prev{left:10px}.oc:hover .oc-next{right:10px}
@media (max-width:991.98px){.oc-btn{width:36px;height:36px;margin-top:-23px;font-size:18px;line-height:32px}}
.oc-dots{display:flex;justify-content:center;align-items:center;height:14px;margin:20px 0;line-height:0}
.oc-dots button{width:10px;height:10px;margin:0 4px;padding:0;border-radius:50%;border:1px solid rgb(160,160,160);background:transparent;cursor:pointer}
.oc-dots button.on{background:rgb(190,190,190);border-color:rgb(190,190,190)}

/* ---------- image lightbox (About gallery) ---------- */
.lb{position:fixed;inset:0;z-index:1100;background:rgba(11,11,11,.8);display:none;align-items:center;justify-content:center}
.lb.open{display:flex}
.lb img{max-width:calc(100% - 180px);max-height:calc(100% - 80px);box-shadow:0 0 8px rgba(0,0,0,.6)}
@media (max-width:767.98px){.lb img{max-width:calc(100% - 20px)}}
.lb button{position:absolute;background:none;border:0;color:#fff;cursor:pointer;opacity:.65;padding:0}
.lb button:hover{opacity:1}
.lb-close{top:6px;right:16px;font:28px/44px Arial}
.lb-prev,.lb-next{top:50%;margin-top:-40px;width:80px;height:80px;font:60px/80px FontAwesome}
.lb-prev{left:0}.lb-next{right:0}
.lb-prev::before{content:"\f0d9"}.lb-next::before{content:"\f0da"}
.lb-count{position:absolute;right:calc(50% - 50vw + 92px);bottom:20px;color:#ccc;font-size:12px;line-height:18px}

/* ---------- back to top ---------- */
.totop{position:fixed;right:26px;bottom:-60px;width:40px;height:40px;border-radius:100px;border:0;padding:0;background:rgba(0,0,0,.25);color:#fff;
  font:16px/39px FontAwesome;text-align:center;cursor:pointer;z-index:999;opacity:0;transition:opacity .3s,bottom .5s,background-color .1s linear}
.totop::before{content:"\f106"}
.totop.on{opacity:1;bottom:26px}
.totop:hover{background:var(--accent)}

/* ---------- search results page ---------- */
.sr{padding:60px 0 100px}
.sr h1{font-size:34px;line-height:40px;font-weight:400;color:var(--accent);margin:0 0 30px}
.sr form{display:flex;gap:10px;max-width:700px;margin:0 0 40px}
.sr input{flex:1;height:46px;padding:10px 15px;border:1px solid #ddd;font:14px "Open Sans",Helvetica,Arial;color:#333;border-radius:0}
.sr button{height:46px;padding:0 28px;border:0;background:var(--accent);color:#fff;font:700 12px var(--menu-font);letter-spacing:1px;text-transform:uppercase;cursor:pointer}
.sr-count{color:var(--ink);font-weight:600;margin:0 0 20px}
.sr-item{padding:20px 0;border-bottom:1px solid #eee}
.sr-item a{font-size:18px;font-weight:600;line-height:28px}
.sr-item p{margin:6px 0 0}
.sr-item mark{background:rgba(28,74,68,.15);color:inherit}
/* live Owl items carry an empty caption block under each photo */
.oc-gallery .oc-item{padding-bottom:83px}
@media (max-width:767.98px){.oc-gallery .oc-item{padding-bottom:79px}}
