/* ============================================================
   BRHCC CLUB GALLERIES - PUBLIC DISPLAY v1.06
   Navbar and theme remain under Blocksy. This stylesheet
   affects only the shortcode and its photograph viewer.
   ============================================================ */
/* Match the original cards: align the left edge with the older row
   without expanding the gallery 48px beyond the right edge. */
.brhcc-gallery-block {box-sizing:border-box;width:100%;max-width:none;margin:0 auto;}
@media(min-width:901px){body.home .brhcc-gallery-block{width:100%;margin-left:-24px;}}
.brhcc-gallery-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.brhcc-gallery-card {min-width:0;overflow:hidden;border-radius:10px 10px 0 0;}
.brhcc-gallery-whole, .brhcc-gallery-photo-link {display:block;text-decoration:none!important;color:inherit;}
.brhcc-gallery-card a:focus-visible {outline:3px solid #c6a15b;outline-offset:-3px;}
.brhcc-gallery-card :is(.brhcc-gallery-photo-wrap,.brhcc-gallery-photo-link) {display:block;line-height:0;overflow:hidden;}
.brhcc-gallery-card .brhcc-gallery-cover {display:block;width:100%;height:auto;aspect-ratio:2.12 / 1;object-fit:cover;transition:transform .25s ease;}
.brhcc-gallery-card:has(a:hover) .brhcc-gallery-cover {transform:scale(1.025);}
.brhcc-gallery-caption {box-sizing:border-box;padding:11px 16px 10px!important;background:#0b1f3a!important;color:#fff!important;min-height:94px;text-align:left;}
.brhcc-gallery-caption h3 {margin:0 0 5px!important;font:700 12px/1.25 Montserrat,Arial,sans-serif!important;letter-spacing:.09em;text-transform:uppercase;color:#fff!important;}
.brhcc-gallery-caption h3 a {color:#fff!important;text-decoration:none!important;}
.brhcc-gallery-description {font:600 10px/1.25 Montserrat,Arial,sans-serif;color:#fff;letter-spacing:.055em;text-transform:uppercase;overflow-wrap:anywhere;}
.brhcc-gallery-description :is(p,h2,h3,h4,ul,ol,blockquote) {font:inherit!important;color:inherit!important;margin:0 0 4px!important;padding:0!important;}
.brhcc-gallery-description :is(ul,ol) {padding-left:18px!important;}
.brhcc-gallery-description :is(strong,b) {font-weight:800;}
.brhcc-gallery-count {font:500 10px/1.25 Montserrat,Arial,sans-serif;color:#e4c581;margin:4px 0 3px!important;}
.brhcc-gallery-motif {display:flex;align-items:center;justify-content:center;gap:9px;color:#c6a15b;margin-top:3px;}
.brhcc-gallery-motif span {display:block;background:#c6a15b;width:25px;height:2px;}
.brhcc-gallery-view-button {display:inline-block!important;margin:12px 0 0;padding:7px 13px;border:1px solid #c6a15b;border-radius:3px;font:600 12px/1.3 Montserrat,Arial,sans-serif!important;color:#fff!important;text-decoration:none!important;}
.brhcc-gallery-view-button:hover {background:#c6a15b;color:#0b1f3a!important;}
.brhcc-gallery-empty {padding:12px;text-align:center;}
@media(max-width:800px){.brhcc-gallery-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}}
@media(max-width:570px){.brhcc-gallery-cards{grid-template-columns:1fr;gap:20px;}.brhcc-gallery-card .brhcc-gallery-cover{aspect-ratio:2.12/1;}.brhcc-gallery-caption{min-height:unset;}}
/* Full-screen photograph viewer */
.brhcc-gallery-dialog {box-sizing:border-box;border:0;border-radius:9px;background:#08182e;color:#fff;max-width:95vw;width:min(1200px,95vw);max-height:94vh;padding:0;box-shadow:0 20px 80px rgba(0,0,0,.6);}
.brhcc-gallery-dialog::backdrop {background:rgba(0,0,0,.88);}
.brhcc-gallery-viewer {padding:14px;}
.brhcc-gallery-viewer-top {display:flex;gap:16px;justify-content:space-between;align-items:center;padding:0 6px 10px;font:600 16px/1.4 Montserrat,Arial,sans-serif;}
.brhcc-gallery-dialog button {cursor:pointer;background:rgba(11,31,58,.82);border:1px solid #c6a15b;border-radius:6px;color:#fff;font:700 32px/1 Arial,sans-serif;min-width:40px;min-height:40px;}
.brhcc-gallery-dialog button:focus-visible {outline:2px solid #fff;outline-offset:2px;}
.brhcc-gallery-image-frame {display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:160px;}
.brhcc-gallery-large {width:auto;max-width:calc(100% - 94px);max-height:calc(94vh - 135px);height:auto;object-fit:contain;min-width:0;}
.brhcc-gallery-viewer-count {text-align:center;padding:11px 0 2px;color:#e4c581;font:500 13px/1.4 Montserrat,Arial,sans-serif;}
@media(max-width:570px){.brhcc-gallery-viewer{padding:8px;}.brhcc-gallery-viewer-top{font-size:13px;}.brhcc-gallery-large{max-width:calc(100% - 77px);}.brhcc-gallery-dialog button{min-width:34px;min-height:38px;font-size:26px;}}
