/* BHB foto galerija */
.gallery{display:grid !important;gap:6px;margin:6px 0 22px !important;grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery.gallery-columns-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery.gallery-columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.gallery.gallery-columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.gallery.gallery-columns-7{grid-template-columns:repeat(7,minmax(0,1fr))}
.gallery.gallery-columns-8{grid-template-columns:repeat(8,minmax(0,1fr))}
.gallery.gallery-columns-9{grid-template-columns:repeat(9,minmax(0,1fr))}
.gallery .gallery-item{margin:0 !important;padding:0;width:auto !important;max-width:none !important;float:none !important;position:relative;overflow:hidden;border-radius:6px;background:#E6E5DC;aspect-ratio:1/1}
.gallery.gallery-columns-1 .gallery-item,.gallery.gallery-columns-2 .gallery-item{aspect-ratio:3/2}
.gallery .gallery-icon,.gallery .gallery-icon a{display:block;width:100%;height:100%;margin:0}
.gallery .gallery-item img{display:block;width:100% !important;height:100% !important;max-width:none;object-fit:cover;border:0 !important;border-radius:0;transition:transform .35s ease,filter .35s ease}
.gallery .gallery-item a:hover img{transform:scale(1.06);filter:brightness(.88)}
.gallery .gallery-item a{cursor:zoom-in}
.gallery .gallery-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:18px 8px 6px;font-size:12px;line-height:1.3;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7));pointer-events:none}
.gallery br{display:none}
/* Gutenberg galerija */
.wp-block-gallery.has-nested-images{gap:6px !important}
.wp-block-gallery.has-nested-images figure.wp-block-image{border-radius:6px;overflow:hidden}
.wp-block-gallery.has-nested-images figure.wp-block-image img{transition:transform .35s ease}
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.06)}
@media (max-width:1024px){
.gallery.gallery-columns-5,.gallery.gallery-columns-6,.gallery.gallery-columns-7,.gallery.gallery-columns-8,.gallery.gallery-columns-9{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:767px){
.gallery{gap:4px}
.gallery.gallery-columns-3,.gallery.gallery-columns-4,.gallery.gallery-columns-5,.gallery.gallery-columns-6,.gallery.gallery-columns-7,.gallery.gallery-columns-8,.gallery.gallery-columns-9{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery .gallery-caption{display:none}
}
/* Video u članku (YouTube, Vimeo, Facebook): puna širina, 16:9 bez crnih traka */
.elementor-widget-theme-post-content iframe[src*="youtube.com"],.elementor-widget-theme-post-content iframe[src*="youtube-nocookie.com"],.elementor-widget-theme-post-content iframe[src*="youtu.be"],.elementor-widget-theme-post-content iframe[src*="player.vimeo.com"],.elementor-widget-theme-post-content iframe[src*="facebook.com/plugins/video"]{display:block;width:100% !important;max-width:100%;height:auto !important;aspect-ratio:16/9;border:0;border-radius:8px;margin:6px 0 22px;background:#000}
.elementor-widget-theme-post-content iframe[src*="youtube.com/embed"][src*="shorts"]{aspect-ratio:9/16;max-width:360px !important;margin-left:auto;margin-right:auto}
.elementor-widget-theme-post-content .wp-block-embed__wrapper,.elementor-widget-theme-post-content .fluid-width-video-wrapper{padding-top:0 !important;height:auto !important}
.elementor-widget-theme-post-content .fluid-width-video-wrapper iframe{position:static !important}