/*
 Theme Name:  Divi custom
 Description: Child theme of Divi
 Author:      Dipolis.com
 Author URI:  http://dipolis.com
 Template:    Divi
 Version:     1.0.0
 Author:      Dipolis.com
 License:     GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: Divi-custom
*/
#top-menu li.wpml-ls-item ul.sub-menu {
  right: 0;
  width: 100px;
}

ul.et_mobile_menu li a {
  background-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.03) !important;
  line-height: 20px;
}
ul.et_mobile_menu li a:active {
  background-color: rgba(0, 0, 0, 0.03);
}
ul.et_mobile_menu li.menu-item-has-children {
  position: relative;
}
ul.et_mobile_menu li.menu-item-has-children > a {
  background-color: transparent;
  font-weight: normal;
  padding: 10px 36px 10px 5%;
}
ul.et_mobile_menu li.menu-item-has-children > a + a {
  position: absolute;
  right: 0;
  top: 0;
  padding: 10px 10px;
  font-size: 20px;
  font-weight: normal;
  cursor: pointer;
  z-index: 3;
  background-color: transparent !important;
  border: none !important;
}
ul.et_mobile_menu li.menu-item-has-children > a + a:hover {
  opacity: 1;
}
ul.et_mobile_menu li.menu-item-has-children > a + a.menu-closed:before {
  content: "L";
  display: block;
  color: #666;
  font-size: 16px;
  font-family: ETmodules;
  -moz-transition: all 0.3s linear;
  -webkit-transition: all 0.3s linear;
  transition: all 0.3s linear;
}
ul.et_mobile_menu li.menu-item-has-children > a + a.menu-closed.menu-open:before {
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
ul.et_mobile_menu li.current-menu-item > a, ul.et_mobile_menu li.current-menu-ancestor > a {
  background-color: rgba(0, 0, 0, 0.03);
}

@media only screen and (max-width: 540px) {
  #main-header #logo {
    max-width: 38%;
  }
}

#main-footer .sub-menu li {
  margin-left: -13px;
}

.widget_product_search .screen-reader-text {
  display: none;
}
.widget_product_search input[type=search], .widget_product_search button[type=submit] {
  padding: 0.7em;
  height: 40px !important;
  margin: 0;
  font-size: 14px;
  line-height: normal !important;
  border: 1px solid #ddd;
  color: #666;
}
.widget_product_search input[type=search] {
  width: 100%;
  border-radius: 3px;
}
.widget_product_search .woocommerce-product-search {
  position: relative;
}
.widget_product_search button[type=submit] {
  background-color: #ddd;
  width: 70px;
  -webkit-border-top-right-radius: 3px;
  -webkit-border-bottom-right-radius: 3px;
  -moz-border-radius-topright: 3px;
  -moz-border-radius-bottomright: 3px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  position: absolute;
  right: 0;
  top: 0;
}

.widget_search button[type=submit] {
  width: auto !important;
}

#left-area .woocommerce {
  margin-bottom: 40px;
}
#cookie-notice .cookie-notice-container {
  display: flex;
}
#cookie-notice .cookie-notice-container a {
  -webkit-transition: all 0.2s cubic-bezier(0, 0, 0.58, 1);
  -moz-transition: all 0.2s cubic-bezier(0, 0, 0.58, 1);
  -o-transition: all 0.2s cubic-bezier(0, 0, 0.58, 1);
  -ms-transition: all 0.2s cubic-bezier(0, 0, 0.58, 1);
  transition: all 0.2s cubic-bezier(0, 0, 0.58, 1);
}
#cookie-notice .cookie-notice-container .cn-text-container {
  text-align: left;
  margin-bottom: 0;
  padding-left: 10%;
  flex-shrink: 0; /* shrinks to 0 to apply 70% width*/
  flex-basis: 80%; /* sets initial width to 70% */
}
#cookie-notice .cookie-notice-container .cn-buttons-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
#cookie-notice .cookie-notice-container .cn-buttons-container .cn-button {
  opacity: 0.9;
}
#cookie-notice .cookie-notice-container .cn-buttons-container .cn-button:hover {
  opacity: 1;
}
@media only screen and (max-width: 980px) {
  #cookie-notice .cookie-notice-container {
    flex-direction: column;
  }
  #cookie-notice .cookie-notice-container .cn-text-container {
    text-align: center;
    padding: 0 5px;
    margin-bottom: 10px;
  }
  #cookie-notice .cookie-notice-container .cn-buttons-container {
    justify-content: center;
  }
}

.variable-items-wrapper .variable-item-contents .variable-item-span:after,
.variable-items-wrapper .variable-item-contents .variable-item-span-button:after {
  content: none !important;
}

.is-parent-page, .is-not-direct-child {
  display: none;
}

.page-list-first-level-child .has-child ul.wp-block-navigation__submenu-container {
  display: none;
}

body.author #left-area .et_pb_post {
  margin-bottom: 15px;
}
body.author #left-area .et_pb_post:last-of-type {
  margin-bottom: 60px;
}

/*# sourceMappingURL=style.css.map */


/* Header menu: keep all items on one line (added during migration) */
@media (min-width: 981px) {
  .et_pb_column_0_tb_header { width: 33% !important; }
  .et_pb_column_1_tb_header { width: 64.5% !important; }
  .et_pb_menu .et-menu > li { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 981px) and (max-width: 1250px) {
  .et_pb_menu .et-menu > li { padding-left: 5px; padding-right: 5px; }
}@media (min-width: 981px) and (max-width: 1049px) {
  .et_pb_menu .et-menu > li { padding-left: 2px; padding-right: 2px; }
}

/* Article pages: hide the empty 1/4 column and let the content use the full row width,
   so it lines up with the title and the breadcrumbs (added during migration) */
@media (min-width: 981px) {
  .et_pb_row_3-4_1-4 > .et_pb_column_1_4:not(:has(.et_pb_module)) { display: none; }
  .et_pb_row_3-4_1-4:not(:has(> .et_pb_column_1_4 .et_pb_module)) > .et_pb_column_3_4 {
    width: 100% !important;
    margin-right: 0 !important;
  }
}
.et_pb_row_3-4_1-4:not(:has(> .et_pb_column_1_4 .et_pb_module)) .et_pb_image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Article reading width = 750px, centered (matches the old Drupal site).
   Applies to the content row, and to the breadcrumbs/title row of the header template. */
@media (min-width: 981px) {
  .et_pb_row_3-4_1-4:not(:has(> .et_pb_column_1_4 .et_pb_module)),
  body:not(.home):has(.et_pb_row_3-4_1-4) .et_pb_row_1_tb_header:has(.et_pb_post_title) {
    width: min(750px, 90%) !important;
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Article / author lists (category.php, taxonomy-autorius.php) */
.fsspx-list { max-width: 750px; width: 90%; margin: 0 auto; padding: 30px 0 60px; }
.fsspx-list h1.entry-title { color: #990000; text-transform: uppercase; padding-bottom: 10px; }
.fsspx-sort { margin: 0 0 20px; color: #777; font-size: 14px; }
.fsspx-sort a { color: #990000; }
.fsspx-sort a.active { font-weight: 700; text-decoration: none; cursor: default; color: #333; }
.fsspx-article-list { list-style: none; margin: 0; padding: 0; }
.fsspx-article-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.fsspx-article-list a { color: #990000; font-weight: 600; }
.fsspx-article-date { color: #999; font-size: 13px; margin-left: 8px; white-space: nowrap; }
/* breadcrumbs on list pages: same look as in the article header */
.fsspx-breadcrumb { background: #f5f5f5; padding: 10px 20px; font-size: 12px; margin-bottom: 20px; }
.fsspx-breadcrumb a { color: #990000; }
/* Book navigation */
.fsspx-book-nav { max-width: 750px; width: 90%; margin: 30px auto 50px; font-size: 14px; }
.fsspx-book-nav a { color: #990000; }
.fsspx-book-outline { margin-bottom: 14px; border: 1px solid #eee; padding: 8px 14px; background: #fafafa; }
.fsspx-book-outline summary { cursor: pointer; font-weight: 600; }
.fsspx-book-outline ul { list-style: none; margin: 8px 0 0; padding-left: 0; }
.fsspx-book-outline ul ul { padding-left: 18px; margin-top: 4px; }
.fsspx-book-outline li { padding: 2px 0; }
.fsspx-book-outline li.current > a { font-weight: 700; color: #333; text-decoration: none; }
.fsspx-book-pager { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #eee; display: flex; justify-content: space-between; gap: 12px; }
.fsspx-book-pager li { flex: 1; }
.fsspx-book-pager .up { text-align: center; }
.fsspx-book-pager .next { text-align: right; }
/* Divi adds bullets/indents to lists in content: not wanted in the book navigation */
.entry-content .fsspx-book-nav ul, .fsspx-book-nav ul { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.fsspx-book-nav li { list-style: none !important; padding-left: 0 !important; }
.fsspx-book-nav li::before, .fsspx-book-nav li::marker { content: none !important; }
.fsspx-book-outline ul ul { padding-left: 18px !important; }
/* Book navigation text = same size as the chapter text (18px) */
.fsspx-book-nav, .fsspx-book-nav a, .fsspx-book-nav summary, .fsspx-book-nav li { font-size: 18px !important; line-height: 1.7em; }
/* Footnotes (superscript link in the text + note list at the end) */
sup.fsspx-fnref { font-size: 0.7em; line-height: 0; }
sup.fsspx-fnref a { color: #990000; text-decoration: none; font-weight: 600; }
.fsspx-footnotes { margin-top: 2em; padding-top: 1em; border-top: 1px solid #ddd; font-size: 0.9em; }
.fsspx-footnotes ol { margin: 0; padding-left: 1.8em; }
.fsspx-footnotes li { margin-bottom: 0.5em; scroll-margin-top: 120px; }
.fsspx-fn-back { color: #990000; text-decoration: none; margin-left: 4px; }
sup.fsspx-fnref { scroll-margin-top: 120px; }
/* Apie mus: titles of the section links (h2 with a link) = 30px */
.page-id-148 .et_pb_text_inner h2, .page-id-148 .et_pb_text_inner h2 a { font-size: 30px !important; line-height: 1.2em; }
/* H2 headings inside articles and book chapters: 30px, #222222 */
.single-post .et_pb_text_inner h2, .fsspx-book .et_pb_text_inner h2,
.single-post .et_pb_text_inner h2 a, .fsspx-book .et_pb_text_inner h2 a {
  font-size: 30px !important; color: #222222 !important; line-height: 1.25em;
}
/* H3 headings inside articles and book chapters: 28px, #222222 */
.single-post .et_pb_text_inner h3, .fsspx-book .et_pb_text_inner h3,
.single-post .et_pb_text_inner h3 a, .fsspx-book .et_pb_text_inner h3 a {
  font-size: 28px !important; color: #222222 !important; line-height: 1.25em;
}
/* Same heading style on pages (not the home page, not "Apie mus" which has its own rule): H2 30px, H3 28px, #222222 */
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h2,
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h2 a {
  font-size: 30px !important; color: #222222 !important; line-height: 1.25em;
}
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h3,
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h3 a {
  font-size: 28px !important; color: #222222 !important; line-height: 1.25em;
}
/* Headings that are links keep the red link colour (the #222222 applies to plain headings only) */
.single-post .et_pb_text_inner h2 a, .fsspx-book .et_pb_text_inner h2 a,
.single-post .et_pb_text_inner h3 a, .fsspx-book .et_pb_text_inner h3 a,
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h2 a,
body.page:not(.home):not(.page-id-148) .et_pb_text_inner h3 a {
  color: #990000 !important;
}
/* Category / author lists: tighter spacing, no separator lines */
.fsspx-article-list li { padding: 3px 0 !important; border-bottom: none !important; }
/* Reading column (750px) aligned to the LEFT edge of the site container (same edge as the logo), not centred */
@media (min-width: 981px) {
  .et_pb_row_3-4_1-4:not(:has(> .et_pb_column_1_4 .et_pb_module)),
  body:not(.home):has(.et_pb_row_3-4_1-4) .et_pb_row_1_tb_header:has(.et_pb_post_title) {
    width: 80% !important; max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important;
  }
  .et_pb_row_3-4_1-4:not(:has(> .et_pb_column_1_4 .et_pb_module)) > .et_pb_column_3_4,
  body:not(.home):has(.et_pb_row_3-4_1-4) .et_pb_row_1_tb_header:has(.et_pb_post_title) > .et_pb_column {
    width: 750px !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
  }
}
/* category / author lists and book navigation */
.fsspx-list { width: 80% !important; max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; }
.fsspx-list > * { max-width: 750px; }
.fsspx-book-nav { width: 80% !important; max-width: 1080px !important; box-sizing: border-box; padding-right: max(0px, calc(100% - 750px)); }
.fsspx-book-nav > * { max-width: 750px; }
@media (max-width: 980px) { .fsspx-list, .fsspx-book-nav { width: 90% !important; padding-right: 0; } }
/* book navigation: width limited by its children (750px), left edge = site container edge */
.fsspx-book-nav { padding-right: 0 !important; }
/* Pages: gap between the title line and the content reduced by one third
   (landing pages had 74px = 49px section + 25px row padding -> 49px; imported pages had 62px -> 41px) */
body.page:not(.home) .et_pb_section.et_pb_section_0:not([class*="tb_"]):not(:has(.et_pb_row_3-4_1-4)) { padding-top: 2% !important; }
body.page:not(.home) .et_pb_section.et_pb_section_0:not([class*="tb_"]):has(.et_pb_row_3-4_1-4)       { padding-top: 33px !important; }
/* Articles and book chapters: gap between the title line and the content halved
   (articles 49px -> ~25px; book chapters 41px -> ~20px) */
.single-post .et_pb_section.et_pb_section_0:not([class*="tb_"]) { padding-top: 2% !important; }
body.page.fsspx-book:not(.home) .et_pb_section.et_pb_section_0:not([class*="tb_"]):has(.et_pb_row_3-4_1-4),
body.page.fsspx-book:not(.home) .et_pb_section.et_pb_section_0:not([class*="tb_"]):not(:has(.et_pb_row_3-4_1-4)) { padding-top: 12px !important; }
/* H1 headings INSIDE the content of articles and pages (not the page title): 34px, #222222; link headings stay red */
.single-post .et_pb_text_inner h1, body.page:not(.home) .et_pb_text_inner h1,
.single-post .et_pb_text_inner h1 a, body.page:not(.home) .et_pb_text_inner h1 a {
  font-size: 34px !important; color: #222222 !important; line-height: 1.2em;
}
.single-post .et_pb_text_inner h1 a, body.page:not(.home) .et_pb_text_inner h1 a { color: #990000 !important; }
/* Notes whose number was lost in the source text: shown in the list without a number */
.fsspx-footnotes li.fsspx-fn-unnumbered { list-style: none; margin-left: -1.8em; }
/* H4 headings inside articles and pages: 26px, #222222; link headings stay red */
.single-post .et_pb_text_inner h4, body.page:not(.home) .et_pb_text_inner h4,
.single-post .et_pb_text_inner h4 a, body.page:not(.home) .et_pb_text_inner h4 a {
  font-size: 26px !important; color: #222222 !important; line-height: 1.25em;
}
.single-post .et_pb_text_inner h4 a, body.page:not(.home) .et_pb_text_inner h4 a { color: #990000 !important; }
/* PDF attachment block ("PDF: file.pdf") on book chapters */
.fsspx-pdf { margin: 8px 0 18px; }
.fsspx-pdf strong { color: #222222; }
.fsspx-pdf-link { display: inline-block; padding-left: 24px; margin-top: 4px; color: #990000;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20'><path d='M2 0h9l5 5v13a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z' fill='%23eee' stroke='%23999'/><path d='M11 0v5h5' fill='%23ccc'/><text x='3' y='15' font-size='6' font-family='Arial' fill='%23c00' font-weight='bold'>PDF</text></svg>") no-repeat left center / 16px 18px; }
/* audio pages: cards sit right under the intro line */
.et_pb_section.fsspx-audio-text { padding-bottom: 0 !important; }
.et_pb_section.fsspx-audio-cards { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Divi audio cards (same look everywhere, independent of Divi's per-page generated CSS) */
.et_pb_audio_module { background-color: #F0F0F0 !important; border-radius: 30px; overflow: hidden; }
.et_pb_audio_module .et_pb_module_header,
.et_pb_audio_module .et_pb_module_header a { color: #990000 !important; font-size: 30px; line-height: 1.3em; }
.et_pb_audio_module .et_audio_module_meta,
.et_pb_audio_module .et_audio_module_meta strong { color: #777777 !important; font-size: 14px; line-height: 1.3em; }
@media (max-width: 767px) { .et_pb_audio_module .et_pb_module_header { font-size: 26px; } }
body .et_pb_audio_module .et_pb_audio_module_content h2.et_pb_module_header,
body .et_pb_audio_module .et_pb_audio_module_content h2.et_pb_module_header a { color: #990000 !important; }
.et_pb_audio_module .mejs-time { line-height: 20px !important; height: 20px !important; overflow: visible !important; }
.et_pb_audio_module .mejs-time span { line-height: 20px !important; }
@media (min-width: 981px) {
  .fsspx-audio-cards .et_pb_row { display: flex; flex-wrap: wrap; }
  .fsspx-audio-cards .et_pb_row > .et_pb_column { display: flex; float: none; }
  .fsspx-audio-cards .et_pb_column > .et_pb_audio_module { width: 100%; margin-bottom: 0; }
}

/* search page (/search/node/...) */
.fsspx-search .fsspx-search-panel { border: 1px solid #ddd; border-radius: 4px; margin: 20px 0 30px; max-width: 920px; }
.fsspx-search .fsspx-search-panel-head { background: #f5f5f5; padding: 10px 20px; font-size: 20px; border-bottom: 1px solid #ddd; }
.fsspx-search .fsspx-search-panel-body { padding: 15px 20px 20px; }
.fsspx-search .fsspx-search-panel-body > label { display: block; font-weight: 700; margin: 12px 0 6px; }
.fsspx-search .fsspx-search-panel-body input[type=text] { width: 100%; padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.fsspx-search .fsspx-search-types label { display: block; margin: 6px 0; font-weight: 400; }
.fsspx-search .fsspx-search-types strong { display: block; margin-top: 14px; }
.fsspx-search .fsspx-search-submit { margin-top: 14px; background: #990000; color: #fff; border: 0; border-radius: 4px; padding: 9px 16px; font-size: 16px; cursor: pointer; }
.fsspx-search .fsspx-search-results-title { font-size: 30px; margin: 10px 0 15px; }
.fsspx-search ol.fsspx-search-results { list-style: none; margin: 0; padding: 0; max-width: 920px; }
.fsspx-search ol.fsspx-search-results li { margin: 0 0 22px; padding: 0; }
.fsspx-search ol.fsspx-search-results h3 { font-size: 22px; margin: 0 0 4px; padding: 0; }
.fsspx-search .fsspx-search-snippet { margin: 0 0 4px; padding: 0; }
.fsspx-search .fsspx-search-date { margin: 0; padding: 0; color: #777; font-size: 14px; }
.fsspx-search .fsspx-search-pager { margin: 20px 0 30px; }
.fsspx-search .fsspx-search-pager a, .fsspx-search .fsspx-search-pager span { display: inline-block; padding: 4px 10px; margin-right: 4px; border: 1px solid #ddd; border-radius: 3px; }
.fsspx-search .fsspx-search-pager .current { background: #990000; color: #fff; border-color: #990000; }

/* header stays at the top while scrolling */
/* only the menu section sticks (the article title block of the header template scrolls away) */
header.et-l--header, header.et-l--header > .et_builder_inner_content { display: contents; }
header.et-l--header .et_pb_section--with-menu { position: sticky; top: 0; z-index: 9999; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
body.admin-bar header.et-l--header .et_pb_section--with-menu { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.et-l--header .et_pb_section--with-menu { top: 46px; } }

/* compact header while scrolling (class set by a small script in fsspx-migration.php) */
header.et-l--header .et_pb_image_0_tb_header img { transition: max-height .2s; }
body.fsspx-compact header.et-l--header .et_pb_row_0_tb_header { padding-bottom: 0 !important; align-items: center; }
body.fsspx-compact header.et-l--header .et_pb_column_0_tb_header { width: auto !important; flex: 0 0 auto; margin-right: 24px; }
body.fsspx-compact header.et-l--header .et_pb_column_0_tb_header .et_pb_image_0_tb_header { margin: 6px 0; width: auto; }
body.fsspx-compact header.et-l--header .et_pb_image_0_tb_header img { max-height: 42px; width: auto; }
body.fsspx-compact header.et-l--header .et_pb_column_1_tb_header { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-end; flex: 1 1 auto; width: auto !important; padding-top: 0 !important; margin-right: 0; }
body.fsspx-compact header.et-l--header .et_pb_button_0_tb_header_wrapper { margin: 0 0 0 14px !important; width: auto; }
body.fsspx-compact header.et-l--header .et_pb_column_0_tb_header { width: 150px !important; min-width: 150px; }
body.fsspx-compact header.et-l--header .et_pb_image_0_tb_header { width: auto !important; }
body.fsspx-compact header.et-l--header .et_pb_image_0_tb_header .et_pb_image_wrap { display: block; }
body.fsspx-compact header.et-l--header .et_pb_image_0_tb_header img { height: 42px !important; width: auto !important; max-width: none !important; max-height: none !important; }
body.fsspx-compact header.et-l--header .et_pb_column_1_tb_header { align-self: center; }
body.fsspx-compact header.et-l--header .et_pb_menu_0_tb_header { align-self: center; margin: 0 !important; }


/* "Šiandien" calendar block (homepage, top of the right column) */
.fsspx-today { text-align: center; padding: 6px 0; }
.fsspx-today a { display: block; font-size: 17px; line-height: 1.35; color: #990000; font-weight: 600; }
.fsspx-today .fsspx-today-date { display: block; margin-top: 4px; font-size: 13px; color: #777; }
.fsspx-calendar-nav { margin-top: 30px; overflow: hidden; }
.fsspx-calendar-body { max-width: 750px; }

/* gallery lightbox: the whole photo always fits on screen */
.mfp-img { max-height: calc(100vh - 90px) !important; max-width: 100% !important; width: auto !important; height: auto !important; object-fit: contain; }
.mfp-figure:after { display: none; }
.mfp-gallery .mfp-content { max-height: 100vh; }
/* larger lightbox photo: little space is kept for the caption only */
.mfp-img { max-height: calc(100vh - 52px) !important; }
.mfp-gallery .mfp-container { padding-top: 6px; padding-bottom: 0; }
.mfp-gallery .mfp-close { top: 4px; }

/* H5 headings inside articles and pages: 24px, #222222; link headings stay red */
.single-post .et_pb_text_inner h5, body.page:not(.home) .et_pb_text_inner h5,
.single-post .et_pb_text_inner h5 a, body.page:not(.home) .et_pb_text_inner h5 a {
  font-size: 24px !important; color: #222222 !important; line-height: 1.25em;
}
.single-post .et_pb_text_inner h5 a, body.page:not(.home) .et_pb_text_inner h5 a { color: #990000 !important; }
/* author next to the date in article lists */
.fsspx-article-author { font-size: 13px; margin-left: 4px; color: #777; }
.fsspx-article-author:before { content: "| "; color: #bbb; }
.fsspx-article-author a { color: #777 !important; font-weight: 400; }
.fsspx-article-author a:hover { color: #990000 !important; }
/* anchor jumps (footnotes, back arrows, #links): the sticky menu must not cover the target */
html { scroll-padding-top: 90px; }
body.admin-bar { --fsspx-adminbar: 32px; }
html:has(body.admin-bar) { scroll-padding-top: 122px; }
.fsspx-footnotes li, sup.fsspx-fnref, [id^="fn-"], [id^="fnref-"] { scroll-margin-top: 90px; }
body.admin-bar .fsspx-footnotes li, body.admin-bar sup.fsspx-fnref, body.admin-bar [id^="fn-"], body.admin-bar [id^="fnref-"] { scroll-margin-top: 122px; }
/* homepage slider: a click opens "Apie mus" (not the photo in a lightbox) */
.home .et_pb_gallery_fullwidth .et_pb_gallery_image a { pointer-events: none; }
.home .et_pb_gallery_fullwidth .et-pb-controllers a, .home .et_pb_gallery_fullwidth .et-pb-slider-arrows a { pointer-events: auto; }
/* Visual Builder text settings: the formatting toolbar stays visible while scrolling a long text (like in Drupal) */
.et-fb-option--tiny-mce .mce-tinymce .mce-top-part { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
/* "Susiję straipsniai" below an article */
.fsspx-related { max-width: 1080px; margin: 10px auto 40px; padding: 0; }
.fsspx-related .fsspx-related-title { font-size: 30px !important; color: #222222 !important; margin: 0 0 14px; padding: 0; line-height: 1.25em; text-transform: none; }
.fsspx-related ul { list-style: none; margin: 0; padding: 0; }
.fsspx-related li { margin: 0 0 8px; padding: 0; }
/* tags as boxes below an article */
.fsspx-tags { max-width: 1080px; margin: 6px auto 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fsspx-tags a.fsspx-tag { display: inline-block; padding: 6px 14px; border: 1px solid #555; border-radius: 4px; color: #222 !important; font-size: 16px; line-height: 1.3; text-decoration: none; background: #fff; }
.fsspx-tags a.fsspx-tag:hover { border-color: #990000; color: #990000 !important; }
/* phones: small gap between screen edge and text (rows are full width there) */
@media (max-width: 767px) {
	/* pages (books etc.): Divi's 80 % row leaves ~36 px each side; use the same 16 px gap as articles */
	body.page:not(.home) .et-l--post .et_pb_row { width: calc(100% - 32px) !important; max-width: none; margin-left: auto !important; margin-right: auto !important; }
	body.single-post .et-l--post .et_pb_row { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
	#main-content > .container, #main-content .fsspx-list { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}
/* gallery lightbox, nearly full screen: photo uses the whole height; caption/counter float over its bottom edge */
.mfp-gallery .mfp-container { padding: 0 !important; }
.mfp-gallery .mfp-content { max-height: 100vh; }
.mfp-gallery .mfp-img { max-height: calc(100vh - 8px) !important; max-width: calc(100vw - 8px) !important; padding: 0 !important; }
.mfp-gallery .mfp-figure { margin: 0; }
.mfp-gallery .mfp-bottom-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 6px 10px; background: rgba(0,0,0,.45); }
.mfp-gallery .mfp-title, .mfp-gallery .mfp-counter { color: #fff; }
.mfp-gallery .mfp-close { top: 6px; right: 6px; background: rgba(0,0,0,.45); border-radius: 50%; width: 36px; height: 36px; line-height: 36px; opacity: 1; color: #fff; }
.mfp-gallery .mfp-arrow { opacity: .85; }
/* phone menu: full-width panel under the menu bar that scrolls when the list is longer than the screen */
@media (max-width: 980px) {
	.et_pb_menu .et_mobile_menu {
		position: fixed !important;
		top: var(--fsspx-menu-top, 90px) !important;
		left: 0 !important; right: 0 !important;
		width: 100% !important; box-sizing: border-box;
		max-height: calc(100vh - var(--fsspx-menu-top, 90px));
		overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		z-index: 99999;
	}
	.et_pb_menu .et_mobile_menu li a { white-space: normal; }
}