/* 67th on 7th — child theme V3: isolated fixes; preserve all other approved components */
body.s67-child-site .modern-logo img,
body.s67-child-site .cw3-social-logo img,
body.s67-child-site .cw3-footer-logo,
body.s67-child-site .footer img {
  filter:none!important; -webkit-filter:none!important; opacity:1!important;
}
body.s67-child-site .modern-logo img{width:auto!important;height:auto!important;max-width:160px!important;max-height:54px!important;object-fit:contain!important;}
body.s67-child-site .cw3-social-logo img{width:100%;height:auto;max-width:180px;object-fit:contain;}
body.s67-child-site .cw3-footer-logo{max-width:165px;height:auto;object-fit:contain;}
/* Four photo preview: no implicit auto-row stretching or odd grid spans. */
body.s67-child-site .gallery-preview{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:repeat(2,minmax(0,190px))!important;
  grid-auto-rows:190px!important;
  gap:14px!important;
  align-items:stretch!important;
  height:auto!important;
  min-width:0;
}
body.s67-child-site .gallery-preview > img{
  display:block!important; grid-column:auto!important;grid-row:auto!important;
  width:100%!important;height:100%!important;min-width:0;min-height:0;
  object-fit:cover!important; border-radius:18px;
}
body.s67-child-site .gallery-preview > img:nth-child(1){grid-column:1!important;grid-row:1 / 3!important;}
body.s67-child-site .gallery-preview > img:nth-child(2){grid-column:2!important;grid-row:1!important;}
body.s67-child-site .gallery-preview > img:nth-child(3){grid-column:3!important;grid-row:1!important;}
body.s67-child-site .gallery-preview > img:nth-child(4){grid-column:2 / 4!important;grid-row:2!important;}
body.s67-child-site .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
body.s67-child-site .gallery-grid .server-gallery-item{min-width:0;overflow:hidden;border-radius:18px;aspect-ratio:16/10;}
body.s67-child-site .gallery-grid .server-gallery-item img{width:100%;height:100%;object-fit:cover;}
body.s67-child-site .s67-social-agents{margin-top:24px;max-width:500px;}
@media(max-width:900px){
  body.s67-child-site .gallery-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,180px)!important;}
  body.s67-child-site .gallery-preview > img:nth-child(n){grid-column:auto!important;grid-row:auto!important;}
  body.s67-child-site .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
  body.s67-child-site .modern-logo img{max-width:112px!important;max-height:46px!important;}
  body.s67-child-site .gallery-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,132px)!important;gap:9px!important;}
  body.s67-child-site .gallery-preview > img{border-radius:12px;}
  body.s67-child-site .gallery-grid{grid-template-columns:1fr;gap:12px;}
  body.s67-child-site .s67-social-agents a{display:flex;flex-wrap:wrap;gap:8px;}
}

/* V4: gallery must remain visible even when Enfold styles affect buttons. */
body.s67-child-site .gallery-grid .server-gallery-item:not(.hidden):not(.gallery-page-hidden){display:block!important;}
body.s67-child-site .gallery-grid .server-gallery-item img{display:block!important;}
.s67-gallery-admin-note{grid-column:1/-1;font-size:13px;color:#555;}
