/*
Theme Name: ACT Divi Child
Theme URI: https://artculture.siocom.net/
Description: Minimal Divi 5 child theme for Art & Culture Today. Visual layouts remain managed in Divi and DiviFlash.
Author: Art & Culture Today
Template: Divi
Version: 1.0.100
Text Domain: act-divi
*/

@font-face {
  font-family: "CoFo Sans";
  src: url("assets/fonts/CoFoSans-Regular.woff2") format("woff2"),
       url("assets/fonts/CoFoSans-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CoFo Sans";
  src: url("assets/fonts/CoFoSans-Bold.woff2") format("woff2"),
       url("assets/fonts/CoFoSans-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "CoFo Sans", Arial, sans-serif;
  font-feature-settings: "ss04" 1;
  font-synthesis: none;
}

/*
 * Divi 5 fallback for the ACF-controlled continuous editorial surface.
 *
 * Canonical Theme Builder classes:
 * - .act-entry-color-header on the outer global-header section.
 * - .act-entry-color-surface on the single outer editorial section.
 *
 * The older hero/surface classes remain temporary migration aliases. Singular
 * body scoping prevents a selected entry color from leaking onto archives or
 * static pages that reuse the global header.
 */
body.single-post:is(.act-entry-color-e4cdd4, .act-post-color-e4cdd4) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-e4cdd4, .act-event-color-e4cdd4) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #E4CDD4 !important;
}

body.single-post:is(.act-entry-color-d5b8af, .act-post-color-d5b8af) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-d5b8af, .act-event-color-d5b8af) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #D5B8AF !important;
}

body.single-post:is(.act-entry-color-d5c7ac, .act-post-color-d5c7ac) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-d5c7ac, .act-event-color-d5c7ac) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #D5C7AC !important;
}

body.single-post:is(.act-entry-color-e7cfbb, .act-post-color-e7cfbb) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-e7cfbb, .act-event-color-e7cfbb) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #E7CFBB !important;
}

body.single-post:is(.act-entry-color-cdcfc9, .act-post-color-cdcfc9) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-cdcfc9, .act-event-color-cdcfc9) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #CDCFC9 !important;
}

body.single-post:is(.act-entry-color-c7c7b2, .act-post-color-c7c7b2) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-c7c7b2, .act-event-color-c7c7b2) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #C7C7B2 !important;
}

body.single-post:is(.act-entry-color-acbfcc, .act-post-color-acbfcc) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface),
body.single-event:is(.act-entry-color-acbfcc, .act-event-color-acbfcc) :is(.act-entry-color-header, .act-entry-color-surface, .act-post-color-hero, .act-post-color-surface, .act-event-color-hero, .act-event-color-surface) {
  background-color: #ACBFCC !important;
}

/* Fixed literal modules in shared BG/EN Theme Builder templates only. */
html[lang^="bg"] .act-lang-en,
html[lang^="en"] .act-lang-bg {
  display: none !important;
}

/*
 * The Home-only Header is transparent over its hero and uses white native SVG,
 * Link and Polylang module colors while closed. Divi can make the parent
 * Section white on hover, but its installed controls cannot propagate that
 * parent hover state to sibling modules. Divi still owns every module,
 * dropdown, color value, dimension and interaction.
 */
@media (min-width: 1280px) {
  body.home [aria-label="Global header"]:hover .et_pb_svg svg,
  body.home [aria-label="Global header"]:hover .et_pb_svg svg * {
    fill: #1B1B1B !important;
  }

  body.home [aria-label="Global header"]:hover .act-desktop-dropdown-parent > .et_pb_link_inner,
  body.home [aria-label="Global header"]:hover > .et_pb_row > .et_pb_column > .et_pb_group > .et_pb_group > .et_pb_link > .et_pb_link_inner {
    color: #1B1B1B !important;
  }
}

@media (min-width: 1601px) {
  /* Native shared navigation Font presets own responsive typography. */

  [aria-label="Global header"] .act-desktop-dropdown-parent > .et_pb_link_inner {
    column-gap: 8px !important;
  }

  [aria-label="Global header"] .act-desktop-dropdown-parent .et-pb-icon {
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
    font-size: 12px !important;
    line-height: 12px !important;
  }

}

/*
 * Divi owns the Dropdown visibility, sizing, positioning and hover/focus
 * behavior, and the Section Hover state owns the opaque open-header color.
 * Its installed controls do not expose a separate backdrop layer, so this
 * visual-only rule cannot keep the menu open or intercept interaction.
 */
@media (min-width: 1280px) {
  [aria-label="Global header"] .act-desktop-dropdown-parent:is(:hover, :focus-within)::after {
    content: "";
    position: fixed;
    inset: 347px 0 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(36.54px);
    backdrop-filter: blur(36.54px);
    pointer-events: none;
  }

  body.admin-bar [aria-label="Global header"] .act-desktop-dropdown-parent:is(:hover, :focus-within)::after {
    inset-block-start: 379px;
  }
}

/*
 * Divi 5.10 lays each full-viewport desktop Dropdown out from its trigger and
 * then translates it back to the viewport. The painted panel is correct, but
 * the untranslated layout box expands document.scrollWidth. Anchor only the
 * visible ACT desktop panels to the viewport; Divi still owns open/close,
 * hover/focus continuity, content, padding, height, color and stacking.
 * Remove when Divi can viewport-anchor Dropdowns without retaining the
 * pre-transform layout box in horizontal overflow calculations.
 */
@media (min-width: 1280px) {
  [aria-label="Global header"] .et_pb_module:has(> .act-desktop-dropdown-parent) > .et_pb_dropdown_bridge {
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  [aria-label="Global header"] .act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden) {
    position: fixed !important;
    inset: 80px 0 auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: 0 !important;
    transform: none !important;
  }

  body.admin-bar [aria-label="Global header"] .act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden) {
    inset-block-start: 112px !important;
  }
}

/*
 * Exact static-page geometry gaps left by Divi 5.10's rendered defaults.
 * Both scope classes are authored on the native outer Section, so these rules
 * cannot affect Theme Builder singles, listings, legal pages, or the shell.
 */
.act-static-page-section .et_pb_heading_container > :is(h1, h2, h3, h4, h5, h6) {
  padding: 0;
}

.act-static-contacts textarea.et_pb_contact_message {
  height: 126px;
  min-height: 126px;
}

.act-static-contacts .et_pb_contact_submit {
  width: 93px;
  height: 40px;
  min-height: 40px;
  line-height: 40px;
  padding: 0;
}

@media (max-width: 1279px) {
  .act-static-contacts .et_pb_contact_submit {
    width: 95px;
  }
}

@media (min-width: 1601px) {
  .act-static-contacts textarea.et_pb_contact_message {
    height: 279px;
    min-height: 279px;
  }
}

/*
 * Divi 5.10 gives flex Image wrappers width: fit-content. The generated
 * Article/Event editorial Sections carry these exact surface classes; related
 * cards are in a separate white Section. One extra class of specificity lets
 * the native responsive Image sizing fill its authored rail without !important.
 */
:is(.act-post-color-surface, .act-event-color-surface) .et_pb_image:where(.et_flex_module) > .et_pb_image_wrap {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  :is(#home-hero, .act-upcoming-gallery-carousel) .et_pb_group_carousel_track {
    transition: none !important;
  }
}

/*
 * Installed WordPress 7.0.3 core/video exposes no aspect attribute. The
 * Single Video Theme Builder row owns this exact class, and its saved native
 * markup is figure.wp-block-video > video[controls][poster]. Keep the native
 * player and crop only its visual viewport to the four Figma media ratios.
 */
.act-single-video-editorial-media-surface .wp-block-video > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 342 / 170 !important;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .act-single-video-editorial-media-surface .wp-block-video > video {
    aspect-ratio: 640 / 320 !important;
  }
}

@media (min-width: 1280px) and (max-width: 1600px) {
  .act-single-video-editorial-media-surface .wp-block-video > video {
    aspect-ratio: 1084 / 565 !important;
  }
}

@media (min-width: 1601px) {
  .act-single-video-editorial-media-surface .wp-block-video > video {
    aspect-ratio: 1357 / 676 !important;
  }
}

/*
 * Divi's saved Tablet Wide visibility switches at 1279.98px, while its
 * desktop navigation remains rendered for the single 1279px CSS interval.
 * Hide only the desktop navigation Group in that interval; 1278 and below
 * keep the native Canvas trigger, and 1280 and above keep the desktop shell.
 */
@media (min-width: 1279px) and (max-width: 1279.98px) {
  [aria-label="Global header"] .et_pb_group:has(> .et_pb_module > .act-desktop-dropdown-parent) {
    display: none !important;
  }
}

/*
 * Compact Canvas exceptions for Divi 5.10's generated descendants.
 * - The Section's permanent vertical scrollbar subtracts 15px from a native
 *   width:100% Row, so viewport units preserve the authored 24/32px gutters.
 * - Divi collapses the native language-only Menu to its hamburger below 980px
 *   even when the module's own element controls disable that hamburger.
 * - Click Dropdowns remain absolutely positioned and overlap later nav rows;
 *   static flow lets the native hidden/open state expand the list normally.
 * Remove each rule when the installed Divi controls serialize those outcomes.
 */
@media (max-width: 767px) {
  [aria-label="Mobile navigation"] > .et_pb_row {
    width: calc(100vw - 48px) !important;
    max-width: 342px !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  [aria-label="Mobile navigation"] > .et_pb_row {
    width: calc(100vw - 64px) !important;
    max-width: 704px !important;
  }
}

@media (max-width: 1279px) {
  :is(#act-language-bg-canvas, #act-language-en-canvas) .et_pb_menu__menu {
    display: flex !important;
  }

  :is(#act-language-bg-canvas, #act-language-en-canvas) .et_mobile_nav_menu {
    display: none !important;
  }

  [aria-label="Mobile navigation"] .act-compact-dropdown-trigger + .et_pb_dropdown {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* Applied only while the native compact Divi Canvas is visibly open. */
html.act-canvas-menu-open,
html.act-canvas-menu-open body {
  overflow: hidden !important;
}

/* Divi adds a 60px Section row gap between the authored 560px and 80px footer rows. */
[aria-label="Global footer"] {
  row-gap: 0 !important;
}

/* Divi does not auto-center the compact legal Group despite its 342/704px max width. */
@media (max-width: 1279px) {
  [aria-label="Global footer"] > .et_pb_row:last-of-type > .et_pb_column > .et_pb_group {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/*
 * Divi's default search template omits a page heading. Keep its native result
 * loop intact and add only the localized semantic title emitted by functions.php.
 */
.act-search-results-heading {
  margin: 0 0 32px;
}

.act-search-results-heading__title {
  margin: 0;
  padding: 0;
  color: #1B1B1B;
  font-family: "CoFo Sans", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .act-search-results-heading__title {
    font-size: 48px;
    line-height: 56px;
  }
}

@media (min-width: 1280px) {
  .act-search-results-heading__title {
    font-size: 64px;
    line-height: 64px;
  }
}

@media (min-width: 1601px) {
  .act-search-results-heading__title {
    font-size: 80px;
  }
}

/*
 * Owner visual-acceptance corrections, release 1.0.55.
 *
 * Divi still owns the authored Header, Carousel, Footer and Post Navigation
 * modules. These rules are limited to generated descendants and interaction
 * gaps that the installed Divi 5.10 controls cannot express reliably.
 */
@media (min-width: 1280px) {
  /* The transparent bridge closes the pointer gap above each fixed panel. */
  [aria-label="Global header"] .act-desktop-dropdown-parent {
    position: relative;
  }

  [aria-label="Global header"] .act-desktop-dropdown-parent::before {
    content: "";
    position: absolute;
    z-index: 10001;
    inset: 100% 0 auto;
    height: 32px;
    background: transparent;
  }

  [aria-label="Global header"] .act-desktop-dropdown-parent:is(:hover, :focus-within)::after {
    -webkit-backdrop-filter: blur(36.54px);
    backdrop-filter: blur(36.54px);
  }

  /* Palette-backed singular Headers must still enter the authored white state. */
  body:is(.single-post, .single-event) .et-l--header [aria-label="Global header"].act-entry-color-header.act-entry-color-header:is(:hover, :focus-within),
  body:is(.single-post, .single-event) .et-l--header [aria-label="Global header"].act-post-color-hero.act-post-color-hero:is(:hover, :focus-within),
  body:is(.single-post, .single-event) .et-l--header [aria-label="Global header"].act-event-color-hero.act-event-color-hero:is(:hover, :focus-within) {
    background-color: #FFFFFF !important;
  }

  body:is(.single-post, .single-event) .et-l--header [aria-label="Global header"]:is(:hover, :focus-within) .et_pb_svg svg,
  body:is(.single-post, .single-event) .et-l--header [aria-label="Global header"]:is(:hover, :focus-within) .et_pb_svg svg * {
    fill: #1B1B1B !important;
  }
}

/* The owner-approved Widescreen hero controls use the Figma arrow assets. */
@media (min-width: 1601px) {
  #home-hero .et_pb_group_carousel_arrow {
    top: auto !important;
    bottom: 82px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14.8248px 21.7071px !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  #home-hero .et_pb_group_carousel_arrow::before {
    content: none !important;
  }

  #home-hero .et_pb_group_carousel_arrow_prev {
    right: 331px !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE0LjgyNDgiIGhlaWdodD0iMjEuNzA3MSIgdmlld0JveD0iMCAwIDE0LjgyNDggMjEuNzA3MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDM1Ij4KPGxpbmUgaWQ9IkxpbmUgMjE1IiB4MT0iNy41MDAwOCIgeTE9IjAuNzA3MTA3IiB4Mj0iNy41MDAwOCIgeTI9IjIxLjcwNzEiIHN0cm9rZT0iI0YzRjNGMyIvPgo8bGluZSBpZD0iTGluZSAyMTYiIHgxPSI3LjQxMjQ1IiB5MT0iMC4zNTM1NTMiIHgyPSIxNC40NzEzIiB5Mj0iNy40MTIzOCIgc3Ryb2tlPSIjRjNGM0YzIi8+CjxsaW5lIGlkPSJMaW5lIDIxNyIgeDE9IjcuNDEyNDUiIHkxPSIxLjA2NDgyIiB4Mj0iMC4zNTM2MyIgeTI9IjguMTIzNjUiIHN0cm9rZT0iI0YzRjNGMyIvPgo8L2c+Cjwvc3ZnPgo=") !important;
    transform: rotate(-90deg) !important;
  }

  #home-hero .et_pb_group_carousel_arrow_next {
    right: 231px !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE0LjgyNDgiIGhlaWdodD0iMjEuNzA3MSIgdmlld0JveD0iMCAwIDE0LjgyNDggMjEuNzA3MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDM2Ij4KPGxpbmUgaWQ9IkxpbmUgMjE1IiB4MT0iNy41IiB5MT0iMC43MDcxMDciIHgyPSI3LjUiIHkyPSIyMS43MDcxIiBzdHJva2U9IiNGM0YzRjMiLz4KPGxpbmUgaWQ9IkxpbmUgMjE2IiB4MT0iNy40MTIzOCIgeTE9IjAuMzUzNTUzIiB4Mj0iMTQuNDcxMiIgeTI9IjcuNDEyMzgiIHN0cm9rZT0iI0YzRjNGMyIvPgo8bGluZSBpZD0iTGluZSAyMTciIHgxPSI3LjQxMjM4IiB5MT0iMS4wNjQ4MiIgeDI9IjAuMzUzNTUzIiB5Mj0iOC4xMjM2NSIgc3Ryb2tlPSIjRjNGM0YzIi8+CjwvZz4KPC9zdmc+Cg==") !important;
    transform: rotate(90deg) !important;
  }
}

/* Extracted social-button rectangles must retain the source SVG's fill:none. */
[aria-label="Global footer"] :is([aria-label="Instagram"], [aria-label="Facebook"], [aria-label^="YouTube"]) svg rect {
  fill: none !important;
}

/* ACT structure corrections, 2026-09-09. Native modules retain content and state. */
@media (min-width:1280px) {
  /* Let the native trigger wrapper anchor its submenu, at every locale/width. */
  [aria-label="Global header"] .act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden) {
    position:absolute !important;
    inset:52px auto auto 0 !important;
    width:max-content !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:20px 0 !important;
    transform:none !important;
    background:transparent !important;
  }
  body.admin-bar [aria-label="Global header"] .act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden) { inset-block-start:52px !important; }
  [aria-label="Global header"] .act-desktop-dropdown-parent + .et_pb_dropdown > .et_pb_link { margin-inline:0 !important; transform:none !important; }
  [aria-label="Global header"] .act-desktop-dropdown-parent::after { content:none !important; }
  /* Native open state persists while traversing the submenu, unlike trigger hover. */
  [aria-label="Global header"]:has(.act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden))::before {
    content:"";
    position:absolute;
    inset:80px 0 auto;
    height:267px;
    background:#fff;
    pointer-events:none;
  }
  [aria-label="Global header"]:has(.act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden))::after {
    content:"";
    position:fixed;
    inset:347px 0 0;
    background:rgba(255,255,255,.5);
    backdrop-filter:blur(36.54px);
    -webkit-backdrop-filter:blur(36.54px);
    pointer-events:none;
    z-index:-1;
  }
  body.admin-bar [aria-label="Global header"]:has(.act-desktop-dropdown-parent + .et_pb_dropdown:not(.et_pb_dropdown_hidden))::after { top:379px; }
}

/* Remove the generated second glyph; keep the original focusable arrow buttons. */
@media (min-width:1280px) {
  #home-hero { --act-hero-rail:1148px; }
  #home-hero .et_pb_group_carousel_slide > .et_pb_group {
    position:relative;
    /* Shared native Slide Rail Spacing preset owns authored padding. */
  }
  #home-hero .act-home-hero-panel { position:static !important; margin-inline:0 !important; }
  #home-hero .act-home-hero-counter {
    position:absolute !important;
    inset:auto calc((100% - var(--act-hero-rail)) / 2 + 20px) 82px auto !important;
    margin:0 !important;
    width:60px !important;
    text-align:center !important;
  }
  #home-hero .et_pb_group_carousel_arrow {
    top:auto !important; bottom:74px !important; left:auto !important;
    width:40px !important; height:40px !important;
    padding:0 !important; margin:0 !important; border:0 !important;
    background:transparent !important; color:#F3F3F3 !important;
    transform:none !important;
  }
  #home-hero .et_pb_group_carousel_arrow_prev { right:calc((100% - var(--act-hero-rail)) / 2 + 80px) !important; }
  #home-hero .et_pb_group_carousel_arrow_next { right:calc((100% - var(--act-hero-rail)) / 2 - 20px) !important; }
  #home-hero .et_pb_group_carousel_arrow > .et-pb-icon { display:none !important; }
  #home-hero .et_pb_group_carousel_arrow::before {
    content:"" !important; display:block; position:absolute; inset:8px;
    background:currentColor;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h19M14 5l7 7-7 7' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  #home-hero .et_pb_group_carousel_arrow_prev::before { transform:rotate(180deg); }
  #home-hero .et_pb_group_carousel_arrow::after { content:none !important; }
}
@media (min-width:1601px) { #home-hero { --act-hero-rail:1438px; } }

/* Heading padding is a generated Divi descendant, not an authored layout gap. */
.act-article-frame .et_pb_heading_container > :is(h1,h2,h3) { padding:0; }

/* ACT design review, 2026-09-09. Shared generated-descendant corrections. */
.et_pb_heading_container > :is(h1,h2,h3,h4,h5,h6) { padding:0; }
.act-newsletter-secondary { color:rgba(27,27,27,.4); }
.act-article-frame .et_pb_group:has(> .act-lang-bg.preset--module--divi-text--act-text-body-small-v2):has(> .act-lang-en.preset--module--divi-text--act-text-body-small-v2) > .preset--module--divi-text--act-text-body-large-v2 :is(.et_pb_text_inner,p) { font-weight:700 !important; }
@media (max-width:767px) {
  .act-listing-page .act-listing-pagination { margin-top:12px !important; }
}

/* Reuse the approved arrow glyph for every native carousel control. */
:is(#home-hero,.act-upcoming-gallery-carousel) .et_pb_group_carousel_arrow > .et-pb-icon { display:none !important; }
:is(#home-hero,.act-upcoming-gallery-carousel) .et_pb_group_carousel_arrow::before {
  content:"" !important; display:block; position:absolute; inset:8px;
  background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h19M14 5l7 7-7 7' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
}
:is(#home-hero,.act-upcoming-gallery-carousel) .et_pb_group_carousel_arrow_prev::before { transform:rotate(180deg); }
:is(#home-hero,.act-upcoming-gallery-carousel) .et_pb_group_carousel_arrow::after { content:none !important; }
.act-upcoming-gallery-carousel { padding-bottom:8px !important; }
.act-upcoming-gallery-carousel .act-gallery-counter { width:100%; text-align:center; }
.act-upcoming-gallery-carousel .act-gallery-counter :is(.et_pb_text_inner,p) { width:100%; text-align:center !important; }
.act-upcoming-gallery-carousel .et_pb_group_carousel_arrow {
  top:auto !important; bottom:0 !important; width:40px !important; height:40px !important;
  padding:0 !important; margin:0 !important; border:0 !important;
  background:transparent !important; color:#1b1b1b !important; transform:none !important;
}
.act-upcoming-gallery-carousel .et_pb_group_carousel_arrow_prev { left:calc(50% - 80px) !important; right:auto !important; }
.act-upcoming-gallery-carousel .et_pb_group_carousel_arrow_next { right:calc(50% - 80px) !important; left:auto !important; }
@media (max-width:1279px) {
  :is(#act-mobile-menu-bg,#act-mobile-menu-en) { top:var(--wp-admin--admin-bar--height,0px) !important; height:calc(100dvh - var(--wp-admin--admin-bar--height,0px)) !important; min-height:0 !important; width:100% !important; backdrop-filter:blur(36.54px); -webkit-backdrop-filter:blur(36.54px); overflow-y:auto !important; }
  body:has(:is(#act-mobile-menu-bg,#act-mobile-menu-en)[style*="display: flex"]) .et-l--header .act-entry-color-header { visibility:hidden !important; }
  :is(#act-mobile-menu-bg,#act-mobile-menu-en) [aria-label="Close menu"] .et-pb-icon { font-size:0 !important; }
  :is(#act-mobile-menu-bg,#act-mobile-menu-en) [aria-label="Close menu"]::before { content:""; position:absolute; inset:8px; background:#1b1b1b; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 5 14 14M19 5 5 19' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat; }
  :is(#act-mobile-menu-bg,#act-mobile-menu-en) [aria-label="Close menu"] .et-pb-icon { color:#1b1b1b !important; }
  body.home #page-container .et-l--header .act-entry-color-header { background:transparent !important; }
  body.home #page-container .et-l--header [aria-label="Open menu"] .et-pb-icon { color:#f3f3f3 !important; }
  #home-hero .et_pb_group_carousel_arrow { top:auto !important; bottom:16px !important; width:40px !important; height:40px !important; padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important; color:#f3f3f3 !important; transform:none !important; }
  #home-hero .et_pb_group_carousel_arrow_prev { left:calc(50% - 80px) !important; right:auto !important; }
  #home-hero .et_pb_group_carousel_arrow_next { right:calc(50% - 80px) !important; left:auto !important; }
  #home-hero .act-home-hero-counter { position:absolute !important; top:auto !important; bottom:24px !important; left:50% !important; right:auto !important; width:60px !important; margin:0 !important; transform:translateX(-50%) !important; }
}

/* Keep proportional counter digits inside one fixed authored text frame. */
#home-hero .act-home-hero-counter { font-variant-numeric:tabular-nums; }
#home-hero .act-home-hero-counter :is(.et_pb_text_inner,p) { text-align:center !important; }
@media (max-width:767px) {
  .act-article-frame .preset--module--divi-text--act-text-body-large-v2 :is(.et_pb_text_inner,p) { font-size:16px !important; line-height:24px !important; }
  #home-hero .act-home-hero-panel { overflow:visible !important; }
  #home-hero .act-home-hero-panel .act-home-hero-counter { bottom:-48px !important; }
}



/* Native Link modules do not resolve WordPress current-page ancestry. */
body:not(.home) .act-native-nav-link:is(:hover,:focus-within) > .et_pb_link_inner { color:#1b1b1b !important; }
body:is(.page-id-13001,.page-id-13002,.page-id-13003,.page-id-13004,.single-event) .act-desktop-dropdown-parent.act-nav-events > .et_pb_link_inner,
body:is(.page-id-13005,.page-id-13006,.page-id-13007,.page-id-13008,.page-id-13009,.page-id-13010,.single-post) .act-desktop-dropdown-parent.act-nav-learn > .et_pb_link_inner,
body:is(.page-id-13203,.page-id-13204,.page-id-13205,.page-id-13206) .act-desktop-dropdown-parent.act-nav-about > .et_pb_link_inner,
body:is(.page-id-13201,.page-id-13202) .act-nav-services > .et_pb_link_inner { color:#1b1b1b !important; }
body.page-id-13001 .et-l--header a[href$="/sabitiya/"] > .et_pb_link_inner,body.page-id-13002 .et-l--header a[href$="/en/events/"] > .et_pb_link_inner,
body.page-id-13003 .et-l--header a[href$="/sabitiya/arhiv/"] > .et_pb_link_inner,body.page-id-13004 .et-l--header a[href$="/en/events/archive/"] > .et_pb_link_inner,
body.page-id-13005 .et-l--header a[href$="/video/"] > .et_pb_link_inner,body.page-id-13006 .et-l--header a[href$="/en/videos/"] > .et_pb_link_inner,
body.page-id-13007 .et-l--header a[href$="/statii/"] > .et_pb_link_inner,body.page-id-13008 .et-l--header a[href$="/en/articles/"] > .et_pb_link_inner,
body.page-id-13009 .et-l--header a[href$="/v-mediite/"] > .et_pb_link_inner,body.page-id-13010 .et-l--header a[href$="/en/in-media/"] > .et_pb_link_inner,
body.page-id-13203 .et-l--header a[href$="/profil/"] > .et_pb_link_inner,body.page-id-13204 .et-l--header a[href$="/en/profile/"] > .et_pb_link_inner,
body.page-id-13205 .et-l--header a[href$="/kontakti/"] > .et_pb_link_inner,body.page-id-13206 .et-l--header a[href$="/en/contacts/"] > .et_pb_link_inner { color:#1b1b1b !important; }
/* Native text hover controls cannot style the surrounding text from an inline link. */
.act-about-inline-events .et_pb_text_inner, .act-about-inline-events .et_pb_text_inner p { transition:color .18s ease; }
.act-about-inline-events .et_pb_text_inner:has(a:is(:hover,:focus-visible)), .act-about-inline-events .et_pb_text_inner:has(a:is(:hover,:focus-visible)) p { color:rgba(27,27,27,.4) !important; }
.act-about-inline-events a { color:#1b1b1b !important; text-decoration:underline !important; text-underline-offset:.12em; text-decoration-thickness:1px; }
.act-about-inline-events a:focus-visible { outline:1px solid currentColor; outline-offset:4px; }

/* Divi Post Filter generates wrapper grids and margins outside native field controls. */
/* Empty loop taxonomy values have no native empty-output visibility control. */
.act-shared-card .preset--module--divi-text--act-text-chip-v2:empty { display:none; }

/* Native loop cards share their record's approved detail-page background. */
:is(.act-listing-card,.act-home-editorial-card)[data-act-card-color] { transition:background-color .18s ease; }
@media (hover:hover) and (pointer:fine) {
  :is(.act-listing-card,.act-home-editorial-card)[data-act-card-color]:hover { background-color:var(--act-card-hover-color) !important; }
}
:is(.act-listing-card,.act-home-editorial-card)[data-act-card-color]:has(a:focus-visible) { background-color:var(--act-card-hover-color) !important; }
@media (prefers-reduced-motion:reduce) {
  :is(.act-listing-card,.act-home-editorial-card)[data-act-card-color] { transition:none; }
}
