/* Native Divi controls retain control of typography, colours, rows and spacing.
   This stylesheet only adds scoped image treatments and the requested menu behaviour. */
body:has(.d27-native){margin:0}
.d27-native{font-family:Arial,Helvetica,sans-serif;background:#fff;color:#252525}
.d27-native .et_pb_text a{color:inherit}
.d27-native .et_pb_text a:hover{text-decoration:underline;text-underline-offset:4px}
.d27-native .d27n-section{scroll-margin-top:24px}
.d27-native .d27n-header{position:relative;z-index:20;border-bottom:1px solid #ded8cf}
.d27-native .d27n-logo img{width:auto;max-width:100%;height:110px;object-fit:contain}
.d27-native .d27n-logo .et_pb_image_wrap,.d27-native .d27n-media-logo .et_pb_image_wrap{display:block;text-align:center}
.d27-native .d27n-media-logo img{width:100%;height:130px;object-fit:contain}
.d27-native .d27n-bta .et_pb_image_wrap{background:#D16324;padding:18px}
.d27-native .d27n-bta img{height:94px}
.d27-native .d27n-event-logo .et_pb_image_wrap{display:block;aspect-ratio:1882/780;overflow:hidden}
.d27-native .d27n-event-logo img{display:block;width:100%;max-width:none;height:auto;margin-top:-15.4%}
.d27-native .d27n-portrait .et_pb_image_wrap{display:block;width:160px;height:160px;border-radius:50%;overflow:hidden;margin:auto}
.d27-native .d27n-portrait img{width:160px;height:160px;object-fit:cover;object-position:center top}
.d27-native .d27n-marszalek img{object-position:center bottom;transform:scale(1.12);transform-origin:center 55%}
.d27-native .d27n-wojewoda img{object-position:61% center}
.d27-native .d27n-starosta img{object-position:12% 30%}
.d27-native .d27n-time{font-size:13px;font-weight:700;color:#896332;padding-bottom:4px}
.d27-native .d27n-session{font-size:11px;font-weight:700;color:#896332;padding-bottom:5px;text-transform:uppercase}
.d27-native .d27n-menu .et_pb_menu__logo-wrap{width:220px;height:94px;overflow:hidden}
.d27-native .d27n-menu .et_pb_menu__logo{width:220px;max-width:none;overflow:visible}
.d27-native .d27n-menu .et_pb_menu__logo img{width:220px;max-width:none;height:auto;max-height:none;margin-top:-34px}
.d27-native .d27n-menu .et-menu .menu-item-has-children>a:first-child:after{display:none}
.d27-native .d27n-menu .et-menu .menu-item-has-children>a:first-child{padding-right:0}
.d27-native .d27n-menu .et-menu>li{padding-left:18px;padding-right:18px}
.d27-native .d27n-menu .nav li:focus-within>ul{opacity:1;visibility:visible}
.d27-native .d27n-menu .nav li:hover>ul{opacity:1;visibility:visible}
.d27-native .d27n-menu ul.sub-menu{min-width:250px}
.d27-native .d27n-menu ul.sub-menu li,.d27-native .d27n-menu ul.sub-menu a{width:100%}
@media(max-width:980px){.d27-native .d27n-menu .et_pb_menu__logo-wrap{width:175px;height:76px}.d27-native .d27n-menu .et_pb_menu__logo{width:175px}.d27-native .d27n-menu .et_pb_menu__logo img{width:175px;margin-top:-27px}}

.d27-native .d27n-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Use Divi's actual theme header and its primary menu. */
body.d27-theme-navigation #main-footer{display:none}
body.d27-theme-navigation #top-menu .menu-item-has-children>a:first-child:after{display:none}
body.d27-theme-navigation #top-menu .menu-item-has-children>a:first-child{padding-right:0}
body.d27-theme-navigation #top-menu li:hover>ul,
body.d27-theme-navigation #top-menu li:focus-within>ul{opacity:1;visibility:visible}
body.d27-theme-navigation .d27n-section{scroll-margin-top:130px}
body.d27-theme-navigation #main-header .logo_container>a{display:inline-block;width:200px;height:78px;overflow:hidden;vertical-align:middle}
body.d27-theme-navigation #main-header #logo{display:block;width:200px;height:auto;max-height:none;max-width:none;margin-top:-31px}
@media(max-width:980px){body.d27-theme-navigation #main-header .logo_container>a{width:170px;height:68px}body.d27-theme-navigation #main-header #logo{width:170px;margin-top:-26px}}
