/* =========================================================
   HEADER / FOOTER
========================================================= */
.site-header,
.site-footer {
  background: #330066;
	font-size: 1.2rem;
  background: var(--color-header-footer-bg);
  color: #ffffff;
  color: var(--color-text-inverse);
}

.site-header a,
.site-footer a {
  color: #ffffff;
  color: var(--color-text-inverse);
}

.site-header {
  /* padding: 1rem 0;
   padding: var(--padding-header) 0;*/
}

table.align-right {
    width: auto;
    margin-left: auto;
    margin-right: 0;
}



.site-title {
  margin: 0;
}

.site-subtitle {
  margin: 0.5rem 0 0;
}



.header-bar {
    margin-top:0px;  /*  1rem; */
	margin-bottom:0px;
	 border-radius: var(--border-radius-main);
}

.header-bar-fill {
  display: grid;
  grid-template-columns: var(--nav-column-width) minmax(0, 1fr);
  align-items: center;

  height: 2.8rem;
  background: #ff9900;
  background: var(--color-header-bar-bg);
  border-radius: var(--border-radius-main);
}

/* Логото на SuperHosting се центрира
   точно спрямо лявата навигационна колона. */
.header-bar-fill > a {
  justify-self: center;
  line-height: 0;
}

.site-footer {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.site-footer a.link-highlight {
  color: red;
  color: var(--color-red);
  text-shadow: 1px 1px 0 #444;
}

.header-bar-fill > a img {
  display: block;
  width: 280px;
  max-width: calc(100% - 1rem);
  height: auto;
}

img.text-left {
    float: left;
    margin: 5px;
}

img.text-right {
    float: right;
    margin: 5px;
}

/* Таблица в благодарствени и официални адреси */
table.letter-header,
table.letter-header th,
table.letter-header td {
  border: none;
}


.page-title {
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}



/* Лупата остава в десния край на втората колона. */
.header-bar-fill .desktop-search-trigger {
  position: static;
  top: auto;
  right: auto;
  left: auto;

  justify-self: end;
  margin-right: 0.5rem;
}

.site-footer {
  /* Резервни стойности, оставени изключени:
     padding: 0.5rem 0;
     padding: var(--padding-footer-y) 0;
     font-size: 0.9375rem;
  */
  font-size: 1.2rem;
  font-size: var(--font-size-footer);

}

/* =========================================================
   CONTAINER
========================================================= */
.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-left: var(--padding-layout);
  padding-right: var(--padding-layout);
}

/* =========================================================
   LAYOUT
========================================================= */
.layout {
  display: block;
  position: relative;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* =========================================================
   NAV
========================================================= */
.site-nav {
  background: #9999ff;
  background: var(--color-nav-bg);
  padding: 0;
    border-radius: var(--border-radius-main);
  overflow: hidden;
  /* margin-bottom: var(--space-md); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.08);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid var(--color-nav-divider);
  border-radius:5%;
}

.site-nav a,
.site-nav .current,
.site-nav span {
  display: block;
  padding: 0.75rem 0.875rem;
  padding: var(--padding-nav-link-y) var(--padding-nav-link-x);
  color: #000000;
  color: var(--color-text-black);
  text-decoration: none;
  font-weight: bold;
  text-align: left;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #ffcc00;
  background: var(--color-nav-hover-bg);
  color: #000000;
  color: var(--color-text-black);
  text-decoration: underline;
}

.site-nav a.current,
.site-nav a[aria-current="page"] {
  background: #ffcc00;
  background: var(--color-nav-hover-bg);
  color: #000000;
  color: var(--color-text-black);
  text-decoration: underline;
}

/* =========================================================
   MAIN
========================================================= */
main {
  display: block;
  background: #ffffff;
  background: var(--color-surface);
  color: #1f1f1f;
  color: var(--color-text);
  padding: 1.5rem;
  padding: var(--padding-main);
  border: 1px solid #d7ddea;
  border: 1px solid var(--color-border-main);
  border-radius: 0.5rem;
  border-radius: var(--border-radius-main);
  max-width: 100%;
  overflow-wrap: break-word;
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.back-to-menu {
  margin-top: var(--space-xl);
  margin-bottom: 0;
}

.back-to-menu a {
  font-weight: bold;
}

.news-meta {
  margin-bottom: var(--space-md);
  color: var(--color-text-black);
  font-size: var(--font-size-caption);
   font-weight: 600;
}

.document-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.document-list li + li {
  margin-top: var(--space-sm);
}

.document-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-main);
  border-radius: var(--border-radius-main);
  padding: 1rem;
}

.document-title {
  margin: 0 0 var(--space-xs);
}

.document-meta {
  margin: 0;
  color: var(--color-text-black);
  font-size: var(--font-size-caption);
}

/* Текстът на новината започва под датата */
#main-content ul.news-list > li > p {
    margin-inline-start: 2rem;
}

/* Допълнителен отстъп на първия ред */
#main-content ul.news-list > li > p.first-indent {
    text-indent: 1.5em;
}


/* =========================================
   СПИСЪЦИ В ОСНОВНОТО СЪДЪРЖАНИЕ
   ========================================= */

#main-content ol,
#main-content ul {
    margin-block: 0.75em 1em;
    margin-inline: 0;
    padding-inline-start: calc(5% + 2em);
    list-style-position: outside;
}

/* Разстояние между елементите */
#main-content li {
    margin-block-end: 0.4em;
}

/* Вложени списъци */
#main-content li > ol,
#main-content li > ul {
    margin-block: 0.4em;
    padding-inline-start: 2em;
}

/* =========================================
   СПИСЪК С НОВИНИ – адаптивни отстъпи
   ========================================= */

/* Стандартните булети се заменят с декоративно календарче. */
/*
#main-content ul.news-list {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
}
*/
/* new 29.10.2026 */
#main-content ul.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-content ul.news-list > li {
    margin-bottom: 1.5rem;
}

#main-content ul.news-list > li > h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

#main-content ul.news-list > li > h2::before {
    content: "🗓️";
    flex: 0 0 auto;
    line-height: 1;
    font-size: 0.95em;
}


/*
 * 3% запазва компактния десктоп изглед.
 * Минимум 2rem осигурява място за иконката при тесен екран
 * и при увеличение на браузъра.
 */
#main-content ul.news-list > li {
    position: relative;
    margin: 0 0 2rem;
    /* padding-inline-start: max(3%, 2rem); */
}
/*
#main-content ul.news-list > li::before {
    content: "🗓️";
    position: absolute;
    inset-inline-start: 0.5%;
    top: 0.15em;
    font-size: 1rem;
    line-height: 1;
}
*/
#main-content ul.news-list > li > h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Само първият ред на абзаца се отмества, не целият абзац. */
.first-indent {
    text-indent: 1.5em;
}

/* =========================================================
   GALLERY TEMPLATE HELPERS
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  background: rgba(255, 255, 255, 0.1);
}

.gallery-item a {
  display: block;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
}

.gallery-item-title {
  margin-top: var(--space-xs);
  font-size: var(--font-size-caption);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (min-width: 800px) {
  .layout {
    display: grid;
    grid-template-columns: var(--nav-column-width) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
  }

  .site-nav {
    margin-bottom: 0;
    height: 100%;
  }

  main {
    height: 100%;
  }
}

@media (max-width: 799px) {
  body {
    font-size: 1rem;
    font-size: var(--font-size-base-mobile);
  }

  .container {
    padding-left: var(--padding-main-mobile);
    padding-right: var(--padding-main-mobile);
  }

  main {
    padding: var(--padding-main-mobile);
  }

  h1 {
    font-size: 1.75rem;
    font-size: var(--font-size-h1-mobile);
  }

  h2 {
    font-size: 1.4375rem;
    font-size: var(--font-size-h2-mobile);
  }

  h3 {
    font-size: 1.25rem;
    font-size: var(--font-size-h3-mobile);
  }

  /* В мобилен изглед менюто е зад hamburger бутона,
     затова този скок към скритото меню не е нужен. */
  .assistive-jump-link {
    display: none !important;
  }
}
/* =========================================================
   BREADCRUMB
========================================================= */
.breadcrumb {
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  font-size: var(--font-size-caption);
  white-space: normal;
  overflow-wrap: anywhere;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.5rem;
  font-weight: bold;
  color: var(--color-text-black);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-link);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-weight: bold;
  color: var(--color-text);
}
/* =========================================================
   MOBILE NAVIGATION AND SEARCH
========================================================= */


  /* ==========================================================================
     ДЕКСТОП ИЗГЛЕД (800px и нагоре) - Тук нищо не разбутваме
    ========================================================================== */

  /* Скриваме напълно мобилната лента на компютър */
  .mobile-nav-trigger {
    display: none !important;
  }

/* 23.09.2026 */
.hamburger-icon {
    justify-self: start;
}

.mobile-logo {
    display: block;
    justify-self: center;
    line-height: 0;
    text-decoration: none;
    border-radius: 50%;
}

.mobile-logo img {
    display: block;
    width: auto;
    height: 52px;
}

.search-trigger-icon {
    justify-self: end;
}
/*  */



  /* Стил за вашата десктоп лупичка, която сложихте в оригиналната лента */
  .desktop-search-trigger {
    float: right; /* Праща лупичката в десния край на вашата лента */
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000; /* Черен цвят, за да се вижда добре на оранжево */
    padding: 10px 20px;
    line-height: 1;
  }

/* .desktop-search-trigger:hover,
.desktop-search-trigger:focus {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}
*/
    
    .desktop-search-trigger:hover,
.desktop-search-trigger:focus {
    opacity: 1;
    background-color: #ffcc00;
    border-radius: 0.35rem;
}

  /* Падащият панел за търсене на ДЕСКТОП (пада под вашата лента) */
  .mobile-search-dropdown {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    border-bottom: 2px solid #ff9900;
    z-index: 99999;
  }

  .mobile-search-dropdown.active {
    display: block !important;
  }

  /* Контейнер за текстовото поле и бутона "Търси" */
  .search-box-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .search-box-wrapper input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    color: #000000;
  }

  .search-box-wrapper button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #000066; /* Тъмносин бутон */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .search-box-wrapper button:hover {
    background-color: #ff9900;
    color: #000000;
  }

  /* ==========================================================================
     МОБИЛЕН ИЗГЛЕД (екран до 790px)
     ========================================================================== */
@media (max-width: 799px) {
/* @media (max-width: 1023px) { */

    /* Скриваме десктоп заглавния банер и десктоп лупичката */
    .header-image, .site-header img, .desktop-search-trigger {
      display: none !important;
    }

.header-image,
.header-bar {
    display: none !important;
}

    /* Активираме мобилната фиксирана оранжева лента най-отгоре на телефона */
 /* 23.09.2026 - 2 */
.mobile-nav-trigger {
    display: grid !important;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;

    position: fixed;
    top: 0;
    left: var(--padding-layout);
    right: var(--padding-layout);
    width: auto;
    height: 62px;
    background: #ff9900;
    border-radius: var(--border-radius-main);

    z-index: 100000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
/*   --- */ 

    .hamburger-icon {
      display: block !important;
      font-size: 34px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 15px;
      line-height: 1;
      color: #000000;
    }

    .search-trigger-icon {
      font-size: 26px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 20px;
      line-height: 1;
      color: #000000;
    }

    /* Падащият панел за търсене на мобилни става фиксиран под лентата */
   .mobile-search-dropdown {
  position: fixed;
  top: 62px;
  left: var(--padding-layout);
  right: var(--padding-layout);
  width: auto;
}

    /* Избутваме текстовете надолу само на мобилни устройства */
    .layout {
      display: block !important;
      position: relative;
    }

    #main-content {
      width: 100% !important;
      float: none !important;
      padding: 15px;
      padding-top: 80px !important;
    }

    /* Падащото мобилно вертикално меню */
    .site-nav {
      display: none;
      position: fixed;
      top: 62px;
      left: 0;
      width: 100%;
      background: #9999ff;
      box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
      z-index: 99999;
      max-height: calc(100vh - 62px);
      overflow-y: auto;
    }

    .site-nav.active {
      display: block !important;
    }

    .site-nav ul {
      display: flex;
      flex-direction: column;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .site-nav ul li a {
      display: block;
      padding: 14px 20px;
      text-decoration: none;
      color: #000000;
      font-family: sans-serif;
      font-size: 1.125rem;
      font-weight: bold;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      background-color: #9999ff;
    }

    .site-nav ul li a:hover,
    .site-nav ul li a.current {
      background-color: #ff9900 !important;
      color: #000000 !important;
      font-weight: bold;
    }
  }
  
  /* =========================================================
   Accessibility: Reflow / high zoom
   WCAG 1.4.10
   ========================================================= */

/* Не позволяваме основното съдържание да разширява viewport-а */
html,
body {
    max-width: 100%;
}

/* Медията се свива според наличната ширина */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Важно за деца на flex/grid контейнери */
main,
article,
section,
aside,
header,
footer,
nav {
    min-width: 0;
}

/* Дълги URL-и и непрекъснати низове да не разширяват страницата */
main p,
main li,
main a,
main td,
main th {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

video {
    display: block;
    margin-inline: auto;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   Accessibility widget - mobile optimisation
   ========================================================= */

@media (max-width: 600px) {

    /* Панелът използва почти цялата налична ширина */
    #cocoon-a11y-panel {
        left: 8px;
        right: 8px;
        width: auto;
        bottom: 76px;
        max-height: calc(100vh - 90px);
    }

    /* Заглавна лента на панела */
    #cocoon-a11y-panel .a11y-hdr {
        padding: 10px 14px;
    }

    #cocoon-a11y-panel .a11y-hdr h3 {
        font-size: 1rem;
    }

    /* ЗРЕНИЕ, ЧЕТЕНЕ, НАВИГАЦИЯ... */
    #cocoon-a11y-panel .a11y-sec {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 9px 12px 5px;
        letter-spacing: 0.04em;
    }

    /* Двете колони */
    #cocoon-a11y-panel .a11y-g {
        gap: 6px;
        padding: 6px 10px;
    }

    /* Трите колони, където се използват */
    #cocoon-a11y-panel .a11y-g3 {
        gap: 5px;
        padding: 6px 10px;
    }

    /* Основните бутони */
    #cocoon-a11y-panel .a11y-i {
        padding: 8px 5px;
        min-height: 64px;

        font-size: 1rem;
        line-height: 1.25;
        font-weight: 600;
    }

    /* Иконата над текста */
    #cocoon-a11y-panel .a11y-i .ic {
        font-size: 1.35rem;
        line-height: 1;
        margin-bottom: 4px;
    }

    /* Бутони за прочитане на глас */
    #cocoon-a11y-panel .a11y-vb {
        gap: 5px;
        padding: 4px 10px 7px;
    }

    #cocoon-a11y-panel .a11y-vb button {
        padding: 8px 4px;
        font-size: 0.95rem;
        line-height: 1.25;
    }

    /* Помощните обяснения */
    #cocoon-a11y-panel .a11y-hint {
        padding: 2px 10px 8px;
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

/* A11y widget creates its own skip link.
   NASGB already has .skip-link in head.php. */

#a11y-skip {
    display: none !important;
}

 /* =========================================================
   OBITUARY / MEMORIAL NOTICE
========================================================= */
/*
.obituary {
    width: 100%;
    max-width: 767px;
    margin: 0 auto;
}
  */  
  

.obituary {
    width: 100%;
    max-width: none;
    margin: 0;
}


    .obituary-frame1 {
    width: 100%;
    min-height: 1112px;

    border: 28px solid transparent;

border-image-source: url("../../Images/ramka-condolence.gif");

    border-image-slice: 40;
    border-image-width: 28px;
    border-image-repeat: stretch;

    box-sizing: border-box;

    padding: 80px 60px;

    font-size: 1.3em;
    text-align: center;
}


    
    .obituary-frame {
    width: 100%;
    min-height: 1112px;

    border: 28px solid transparent;

    border-image-source:
        url("../../Images/Ramka_nekrolog.gif");

    border-image-slice: 40;
    border-image-width: 28px;
    border-image-repeat: stretch;

    box-sizing: border-box;

    padding: 80px 60px;

    font-size: 1.3em;
    text-align: center;
}
    
    /*   */
    
    /*- */


.obituary-date {
    margin: 0;
    text-align: left;
    color: var(--color-text-black);
    font-size: var(--font-size-caption);
    font-weight: 600;
}

.obituary-content {
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 45px;
}

.obituary-title {
    margin-top: 0;
    text-align: center;
}

.obituary-name {
    font-size: 1.1em;
    font-weight: bold;
}

.obituary-text {
    text-align: left;
    text-indent: 5%;
}

.obituary-memory {
    margin-top: var(--space-lg);
    text-align: center;
}

.obituary-signature {
    margin-top: var(--space-lg);
    text-align: right;
}
    
.obituary-back-link {
    
     margin-top: 2rem;
}

@media (max-width: 799px) {

    .obituary {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .obituary-frame {
        min-height: 0;

        border-width: 18px;
        border-image-width: 18px;

        padding: 2rem 1.5rem;

        font-size: 1em;
    }

    .obituary-text {
        text-indent: 0;
    }
}



/* ПУБЛИКУВАНА КОРЕСПОНДЕНЦИЯ — добавете в края на layout.css */
.correspondence { min-width: 0; overflow-wrap: anywhere; }
.correspondence-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.correspondence-logo {
  display: block;
  width: auto;
  max-width: 81px;
  height: auto;
}
.correspondence-sender { min-width: 0; }
.correspondence-sender p { margin: 0; text-align: left; text-indent: 0; }
.correspondence-reference { margin-bottom: 1rem; }
.correspondence-subject { text-align: left; text-indent: 2em; }
.correspondence-body p { text-align: left; text-indent: 2em; }
.correspondence-signature { margin-top: 1.5rem; }
.correspondence-signature p { text-align: left; text-indent: 0; }
@media (max-width: 35rem) {
  .correspondence-header { grid-template-columns: minmax(0, 1fr); }
}

.correspondence-header {
  /* Запази останалите свойства */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* ==================================================
   Съболезнователен адрес
   ================================================== */

.condolence-address {
    width: min(100%, 64rem);
    margin: 1.5rem auto;

    background: transparent;

    border: 32px solid transparent;

    border-image-source:
        url("../../Images/ramka-condolence.gif");

    border-image-slice: 68;
    border-image-width: 32px;
    border-image-repeat: stretch;

    box-sizing: border-box;

    box-shadow:
        0 0.25rem 1rem rgb(0 0 0 / 12%);
}


.condolence-inner {
    background: #fff;

    padding: 1.5rem 2.25rem 1.75rem;
}


/* ==================================================
   Горна част: лого + име на организацията
   ================================================== */

.condolence-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    margin-bottom: 2.5rem;
}

.condolence-logo {
    flex: 0 0 auto;
}

.condolence-logo img {
    display: block;

    width: 3.6rem;
    height: auto;

    object-fit: contain;
}

.condolence-organisation {
    flex: 1;
    min-width: 0;

    font-size: clamp(0.95rem, 1.7vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;

    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.15em;

    white-space: normal;
}


/* ==================================================
   Получател
   ================================================== */

.condolence-recipient {
    width: fit-content;
    max-width: 100%;

    margin: 0 0 2.5rem auto;

    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}


/* ==================================================
   Заглавие
   ================================================== */

.condolence-address h1 {
    margin: 0 0 2.25rem;

    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
    text-align: center;
}


/* ==================================================
   Обръщение
   ================================================== */

.condolence-salutation {
    margin: 0 0 1.5rem;

    font-size: 1.1rem;
    line-height: 1.6;
}


/* ==================================================
   Основен текст
   ================================================== */

.condolence-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.condolence-text p {
    margin: 0 0 1.25rem;
}


/* ==================================================
   Заключение
   ================================================== */

.condolence-closing {
    margin-top: 1.75rem;

    font-size: 1.1rem;
    line-height: 1.6;
}

.condolence-closing p {
    margin: 0.25rem 0;
}


/* ==================================================
   Дата и подпис
   ================================================== */

.condolence-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;

    margin-top: 2.75rem;

    line-height: 1.45;
}

.condolence-date,
.condolence-signature {
    min-width: 0;
}

.condolence-signature {
    text-align: left;
}


/* ==================================================
   Съболезнователен адрес - мобилен изглед
   ================================================== */

@media (max-width: 600px) {

    .condolence-address {
        width: 100%;
        margin: 1rem auto;

        border-width: 18px;
        border-image-width: 18px;

        box-shadow: none;
    }

    .condolence-inner {
        padding: 1rem;
    }

    .condolence-heading {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .condolence-logo img {
        width: 3.1rem;
    }

    .condolence-organisation {
        font-size: 0.95rem;
        line-height: 1.25;

        white-space: normal;
    }

    .condolence-recipient {
        margin-bottom: 2rem;

        font-size: 0.95rem;
    }

    .condolence-address h1 {
        margin-bottom: 2rem;

        font-size: 1.4rem;
    }

    .condolence-text,
    .condolence-salutation,
    .condolence-closing {
        font-size: 1rem;
    }

    .condolence-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;

        margin-top: 2.25rem;
    }
}


/* ==================================================
   Печат
   ================================================== */

@media print {

    .condolence-address {
        width: 100%;
        margin: 0;

        border: 2px solid #000;
        border-image: none;

        box-shadow: none;
    }

    .condolence-inner {
        padding: 2cm;
    }
}

/* =========================================================
   VIDEO PLAYER — нормален поток, без обтичане
   Поддържа id="video-container" и class="video-container".
========================================================= */
#video-container,
.video-container {
  display: block;
  float: none;
  clear: both;
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: 800px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 1.5rem auto;
  padding: 0;
  box-sizing: border-box;
 /* background: #000; */
}

#video-container #video,
#video-container video,
.video-container video {
  display: block;
  float: none;
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  background: #000;
}

#video-container #video-controls,
.video-container #video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  float: none;
  clear: both;
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0.5rem;
  box-sizing: border-box;
  background: #007da8;
  color: #fff;
  text-indent: 0;
}

#video-container #seek-bar,
.video-container #seek-bar {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 100%;
}

#video-container #volume-bar,
.video-container #volume-bar {
  flex: 0 1 5rem;
  min-width: 0;
  max-width: 100%;
}

#video-container #video-controls button,
.video-container #video-controls button {
  max-width: 100%;
  white-space: normal;
}

/* Цял екран, ако скриптът разпъва целия контейнер. */
#video-container:fullscreen,
.video-container:fullscreen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

#video-container:fullscreen video,
.video-container:fullscreen video {
  height: 100%;
  min-height: 0;
}

/* Благодарствени адреси */

.thanks-address {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    color: #000;
}

.thanks-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.thanks-logo {
    width: 75px;
    height: auto;
    flex-shrink: 0;
}

.thanks-organization {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 1.15rem;
}

.thanks-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
}

.thanks-recipient {
    max-width: 55%;
    margin: 0 0 2rem auto;
    text-align: left;
    line-height: 1.5;
}

.thanks-content {
    font-size: 1.15rem;
    line-height: 1.6;
}

.thanks-content p {
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .thanks-address {
        padding: 1rem;
    }

    .thanks-header {
        gap: 0.75rem;
    }

    .thanks-logo {
        width: 55px;
    }

    .thanks-organization {
        font-size: 0.9rem;
    }

    .thanks-title {
        font-size: 1.5rem;
    }

    .thanks-recipient {
        max-width: 100%;
    }
}


/* Благодарствени адреси */

.thanks-address-header {
    margin: 1.5rem 0 2rem;
}

.thanks-address-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.thanks-address-logo {
    width: 81px;
    height: auto;
    flex-shrink: 0;
}

.thanks-address-organization {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.thanks-address-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
}

.thanks-address-recipient {
    width: 55%;
    margin: 0 0 2rem auto;
    line-height: 1.5;
}

.thanks-address-recipient p {
    margin: 0 0 0.5rem;
}

@media (max-width: 600px) {

    .thanks-address-top {
        gap: 0.75rem;
    }

    .thanks-address-logo {
        width: 55px;
    }

    .thanks-address-organization {
        font-size: 0.9rem;
    }

    .thanks-address-title {
        font-size: 1.5rem;
    }

    .thanks-address-recipient {
        width: 100%;
        max-width: 100%;
    }
}

/********************/

/* =====================================
   БЛАГОДАРСТВЕНИ АДРЕСИ
   ===================================== */

.thanks-address {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    color: #000;
}

.thanks-address-header {
    margin: 1.5rem 0 2rem;
}

.thanks-address-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.thanks-address-logo {
    width: 81px;
    height: auto;
    flex: 0 0 auto;
}

.thanks-address-organization {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.thanks-address-recipient {
    max-width: 55%;
    margin: -4rem 0 3rem auto;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.thanks-address-title {
    margin: 2rem 0;
    text-align: center;
    font-size: 2rem;
    line-height: 1.3;
}

.thanks-address-content {
    line-height: 1.6;
}

.thanks-address-content p {
    margin-bottom: 1rem;
}

.thanks-address-signature {
    margin-top: 1.5rem;
}

.thanks-address-signature p {
    margin-bottom: 0.5rem;
}

/* Мобилни устройства */

@media (max-width: 600px) {

    .thanks-address-header {
        margin-top: 1rem;
    }

    .thanks-address-top {
        gap: 0.75rem;
    }

    .thanks-address-logo {
        width: 55px;
    }

    .thanks-address-organization {
        font-size: 0.9rem;
    }

    .thanks-address-recipient {
        max-width: 100%;
        margin: 1.5rem 0 2rem;
    }

    .thanks-address-title {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
}
/* Възстановяване на отстъпите на навигационната пътека */
#main-content nav.breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content nav.breadcrumb li {
    margin: 0;
    padding: 0;
}

