/*
 * Heroes site — стилі теми.
 * Перенесено зі старої теми (asset/style.css) без зміни вигляду:
 * прибрано дублікати, биті правила й префікси; додано стилі для h1, лайтбокса.
 */

body {
  min-height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  background: #f5f5f5;
  color: #000;
}

section.search {
  margin: 50px 0;
}

/* ---- Шапка ---- */

header.hero_header {
  display: flex;
  align-items: center;
  min-height: 500px;
  position: relative;
  background-color: hsl(186, 33%, 94%);
  background-image: url("../img/head10.jpg");
  background-image: image-set(url("../img/head10.webp") type("image/webp"), url("../img/head10.jpg") type("image/jpeg"));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

header.hero_header::after {
  content: " ";
  width: 100%;
  height: 100%;
  background: #2196f336;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

header.hero_header::before {
  content: " ";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0) 0%,
    rgb(255 235 59 / 58%) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.col_hero_hello {
  display: flex;
  justify-content: center;
}

span.hello_bold {
  font-weight: 600;
  color: #000;
}

.hero_logo_top {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.hero_logo_top img {
  width: 80px;
  opacity: 0.6;
  transition: all 0.5s ease;
  padding: 0 0 10px 0;
}

.hero_logo_top img:hover {
  width: 85px;
  opacity: 1;
  padding: 0 0 5px 0;
}

.hellohome_con {
  margin-top: 20vh;
  margin-bottom: 20px;
  position: relative;
  z-index: 100;
}

.container.herohead {
  z-index: 100;
}

.hero_hello {
  text-align: start;
  color: #31373a;
  font-size: 14px;
  background: #ffcc01d4;
  padding: 8px 10px 8px 10px;
  border-radius: 5px;
}

/* Згорнута шапка на внутрішніх сторінках */

.col-12.col_hero_hello.hellotach,
.row.hellotach {
  height: 0;
  opacity: 0;
  transition: all 1s ease;
  overflow: hidden;
}

.col-12.col_hero_hello.hellotach.hellotach_active,
.row.hellotach.hellotach_active {
  height: auto;
  opacity: 1;
}

header.hero_header.hellotach {
  min-height: 200px;
  position: relative;
  transition: all 1s ease;
  overflow: hidden;
}

header.hero_header.hellotach.hellotach_active {
  min-height: 550px;
}

header.hero_header.hellotach::after {
  background: #014462c9;
}

.hello__link {
  position: relative;
  text-align: center;
  margin-top: 5px;
  padding: 0 0 15px 0;
}

/* ---- Меню ---- */

nav#hero_nav {
  margin: 0 0 35px 0;
}

ul#hero_nav_main {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 25px;
}

#hero_nav_main li {
  font-size: 18px;
  font-weight: 600;
  background: #ffffffb5;
  padding: 1px;
  border-radius: 5px;
  border-bottom: 0;
}

#hero_nav_main li a {
  padding: 5px;
  color: #585d61;
}

#hero_nav_main li a:hover {
  color: black;
}

#hero_nav_main li.current-menu-item {
  background: #ffffff00;
  padding: 0;
  border-radius: 0;
  border: none;
}

#hero_nav_main li.current-menu-item a,
#hero_nav_main li.current-menu-parent a {
  background: white;
  padding: 5px 5px;
  border-radius: 5px;
  border: none;
}

#hero_nav_main li.current-menu-item a:hover,
#hero_nav_main li.current-menu-parent a:hover {
  border-bottom: 1px solid #00000045;
  color: black;
}

/* ---- Пошук ---- */

label.hero_search__label {
  width: 100%;
}

input.search-field {
  width: 100%;
  padding: 6px 10px;
  border-inline: none;
  border-radius: 15px;
}

input.search-field:focus {
  box-shadow: 0 0 3px 1px #0000000f;
}

form.search-form {
  display: flex;
  width: 80%;
  margin: 25px 0 0 0;
}

.hero_search {
  display: flex;
  justify-content: center;
}

button.search-submit {
  white-space: nowrap;
  border-radius: 15px;
  margin: 0 0 0 10px;
  background: #9e9e9ea1;
}

span.error-message {
  position: absolute;
  margin: -19px 0 0 10px;
  font-size: 12px;
  color: red;
}

.hero_toptag {
  padding: 5px 0 0 0;
}

.hero_toptag ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 10px 0 0 0;
  width: 95%;
}

.hero_toptag li {
  font-size: 12px;
  color: #9c9c9c;
  transition: all 0.3s ease;
  opacity: 0.5;
  background: #fff;
  padding: 2px 5px 2px 5px;
  border-radius: 5px;
}

.hero_toptag li:hover {
  opacity: 1;
}

.hero_toptag li a {
  color: #666666;
}

.herosearch__message {
  width: 80%;
  background: #adf1af;
  margin: 0 auto 20px auto;
  padding: 15px 15px;
  border-radius: 5px;
}

/* ---- Картка Героя (сітка) ---- */

.hero_items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 20px 0;
}

.hero_items_img {
  overflow: hidden;
  height: 350px;
  border-radius: 10px;
  position: relative;
}

.hero_items_img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  transition: all 1s ease;
}

.hero_items:hover .hero_items_img img {
  object-position: center center;
  width: 200%;
  height: 480px;
}

.hero_items_tags {
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0;
  transition: all 0.5s ease;
  transform: translate3d(-50px, 0, 0);
}

.hero_items:hover .hero_items_tags {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero_items_tags ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero_items_tags li {
  font-size: 12px;
  background: #ffffff80;
  margin: 5px 0 0 0;
  padding: 2px 5px 2px 5px;
  border-radius: 5px;
}

.hero_items_dates {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 20%;
  opacity: 0;
  transition: all 1s ease;
  color: #fff;
  text-align: center;
}

.hero_items:hover .hero_items_dates {
  opacity: 1;
  transform: translate3d(0, 50px, 0);
}

.hero_items_title {
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  margin: 5px 0 20px 0;
}

/* ---- Рядок публікації (новини, спогади) ---- */

.hero_cont_items {
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 15px 15px 25px 20px;
  margin: 15px 0 10px 0;
  border-bottom: 1px solid #efefef;
  transition: all 0.6s ease;
}

.hero_cont_items:hover {
  box-shadow: 0 0 7px rgb(0 0 0 / 4%);
  background: #fff;
  border-radius: 10px;
}

.hero_cont_items__img {
  width: 120px;
  height: 80px;
}

.hero_cont_items__img img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.hero_cont_items_two {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero_cont_items__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
}

.hero_cont_items__title a {
  text-decoration: none;
  color: #000;
}

.hero_cont_items__meta {
  font-size: 12px;
}

.hero_cont_items__meta a {
  text-decoration: none;
}

span.cont-hero-date {
  color: #8b8b8b;
}

span.cont-hero-tags {
  color: #617d8b;
  font-size: 10px;
}

span.cont-hero-tags a {
  background: #8dacbb;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  transition: all 0.5s ease;
}

span.cont-hero-tags a:hover {
  background: #0d72a3;
}

.hero_cont_items__heroes_items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 10px;
}

.hero_cont_items__heroes_item {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 22px;
  gap: 2px;
  opacity: 0.5;
  transition: all 0.5s ease;
}

.hero_cont_items__heroes_item:hover {
  opacity: 1;
}

.hero_cont_items__heroes_item_img {
  align-self: center;
}

.hero_cont_items__heroes_item_img img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.hero_cont_items__heroes_item_title {
  font-size: 12px;
  align-self: center;
  padding: 3px 0 0 0;
}

.hero_cont_items__heroes_item_title a {
  text-decoration: none;
  color: #4f4f4f;
}

.hero_cont_items__title_categories {
  display: flex;
}

.hero_cont_items__title_categories_item {
  background: #00c0ae;
  padding: 2px 7px;
  font-size: 10px;
  border-radius: 5px;
  color: #f5f5f5;
}

.hero_cont_items__title_categories_item.slim {
  font-size: 8px;
  margin: 0 0 3px 0;
}

/* ---- Сторінка Героя ---- */

section.hero_item {
  padding: 35px 0;
}

.col-lg-8.hero_item__content {
  border-radius: 8px;
  background: #fff;
  padding: 0 20px 15px 30px;
}

.herosam_img {
  padding: 0;
  border-radius: 10px;
  margin: -20px 0 20px 0;
}

.herosam_img img {
  height: auto;
  object-fit: cover;
  max-width: 460px;
  box-shadow: 0 0 35px 11px rgb(183 199 225 / 42%);
  border-radius: 7px;
}

.hero_item_title {
  margin: 0 0 10px 0;
}

/* Раніше ім'я було h2 — зберігаємо той самий розмір, але вже як h1 */
.hero_item_title h1 {
  margin: 0 0 0.5rem;
  font-size: calc(1.325rem + 0.9vw);
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .hero_item_title h1 {
    font-size: 2rem;
  }
}

.hero_item_dates {
  font-size: 12px;
  padding: 5px 0;
  color: #7d7d7d;
}

.hero_name_content {
  padding: 0 20px 0 20px;
  margin: 15px 0 0 0;
}

.hero_name_content_off {
  background: #f5e5e5;
  padding: 30px;
  margin: 30px 30px;
  border-radius: 8px;
}

.hero_name_content_off__text {
  font-size: 14px;
  color: #3f3f3f;
}

.forma_hero {
  padding: 20px 0 0 0;
}

.forma_hero_item {
  display: flex;
  border-top: 1px solid #ddd;
  background: #10a610db;
  padding: 10px 20px 10px 20px;
  border-radius: 8px;
  color: #fff;
  gap: 15px;
  transition: all 0.6s ease;
  justify-content: center;
}

.forma_hero_item:hover {
  background: #047f04;
}

.forma_hero_item a {
  color: #fff;
  border-bottom: 1px solid #dddddd5e;
}

.forma_hero_item p {
  margin: 0;
  padding: 0;
}

section.hero_rel {
  background: #fff;
  padding: 40px 0;
}

section.hero_rel h3 {
  font-size: large;
  font-weight: 600;
  padding: 0 0 15px 0;
}

/* ---- Бокові списки ---- */

.heroelationship__items {
  position: relative;
  padding: 20px;
  background: #fff;
  margin: 0 0 25px 0;
  border-radius: 10px;
}

.heroelationship__items h3 {
  font-size: large;
  font-weight: 600;
  padding: 0 0 15px 0;
}

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

.heroelationship__items li {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0 0 15px 0;
}

.heroelationship__thumbnail {
  width: 80px;
}

.heroelationship__thumbnail img {
  max-width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.heroelationship__category {
  font-size: 10px;
}

.heroelationship__category a {
  background: #e1eaee;
  padding: 1px 4px 2px 3px;
  border-radius: 4px;
  color: #767676;
}

.heroelationship__date {
  font-size: 10px;
  color: #cbcbcb;
}

.heroelationship__details {
  padding: 5px 0 0 0;
}

.heroelationship__details__title {
  font-size: 14px;
  line-height: 16px;
}

.heroelationship__details__meta {
  display: flex;
  gap: 6px;
  padding: 7px 0 5px 0;
}

.heroelationship__items.other_news {
  background: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 10px 10px 10px 10px;
}

.heroelationship__items_news {
  padding: 10px;
}

.heroelationship__items_news h3 {
  font-size: larger;
  font-weight: 600;
}

.heroelationship__date.other_news {
  padding: 5px 0 0 0;
}

.heroinpost {
  padding: 15px;
}

.heroinpost h3 {
  font-size: large;
  font-weight: 600;
  padding: 0 0 15px 0;
}

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

.heroinpost li {
  display: flex;
  gap: 15px;
  margin: 0 0 20px 0;
}

.heroinpost__img {
  width: 100px;
  height: 100%;
  text-align: center;
}

.heroinpost__img img {
  max-width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(1);
}

.heroinpost__title {
  font-weight: 600;
  font-size: 20px;
}

/* ---- Публікація ---- */

section.hero_genpost__sec {
  margin: 5px 0 50px 0;
}

.hero_genpost {
  background: #fff;
  padding: 25px;
  margin: -20px 0 0 0;
  border-radius: 10px;
  position: relative;
  z-index: 100;
}

.herosamcon_item__title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 32px;
}

.herosamcon_item__metatop {
  display: flex;
  font-size: 12px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  color: #767676;
  padding: 10px 0 10px 0;
}

.herosamcon_item__metatop__date {
  padding: 1px 0 0 0;
}

.herosamcon_item__metatop__cat {
  background: #e1eaee;
  padding: 1px 4px 2px 3px;
  border-radius: 4px;
}

.herosamcon_item__metatop__link {
  background: #bff0ff;
  padding: 1px 4px 2px 3px;
  border-radius: 4px;
}

.herosamcon_item__metatop__link:hover {
  background: #bff0ffb3;
}

.herosamcon_item__img {
  width: 100%;
  height: 460px;
}

.herosamcon_item__img img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.herosamcon_item__content {
  padding: 30px 30px 20px 30px;
  font-size: 18px;
}

.herosamcon_item__metafooter {
  border-top: 1px solid #ddd;
  padding: 5px 0 0 0;
}

.herosamcon_item__metafooter a {
  font-size: 12px;
  background: #e1eaee;
  padding: 3px 5px 3px 5px;
  border-radius: 3px;
}

.herosamcon_item__metafooter a:hover {
  background: #f0f4f5;
}

/* ---- Контент редактора ---- */

figcaption.wp-element-caption {
  font-size: small;
  color: #707070;
  padding: 0 15px 0 7px;
  border-left: 3px solid #ddd;
}

figure.wp-block-image.size-full {
  margin: 20px -20px 20px -20px;
}

figure.wp-block-image.size-full.is-resized img {
  object-fit: cover;
}

figure.wp-block-gallery.has-background {
  padding: 15px;
  margin: 10px -15px;
}

blockquote.wp-block-quote {
  background: #ffface;
  margin: 25px -10px 20px -10px;
  padding: 25px 25px 20px 25px;
  border-radius: 5px;
}

p.has-background {
  padding: 20px;
  border-radius: 10px;
}

/* ---- Сторінка ---- */

section.hero_content {
  min-height: 65vh;
  margin: 60px 0;
}

.post-thumbnail {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.post-thumbnail img {
  max-width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
}

.hero_content__page__img {
  margin: 0 0 30px 0;
}

.hero_content__page_title {
  margin: 0 0 30px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.hero_content__page_content {
  padding: 0 50px;
}

/* ---- Архіви, пошук, теги, 404 ---- */

section.hero_archive {
  min-height: 80vh;
  padding: 50px 0;
}

section.article_hero {
  min-height: 75vh;
  padding: 50px 0;
}

section.search_hero_page {
  min-height: 65vh;
  padding: 50px 0;
}

.container.resultat_heroes {
  margin-top: 30px;
}

section.page_tag {
  min-height: 80vh;
  padding: 0 0 50px 0;
}

.page_tag__name {
  display: flex;
  margin: -15px 0 30px 0;
  position: relative;
  z-index: 100;
}

.page_tag__name_title {
  margin: 0;
  background: #ffeb3b;
  padding: 5px 10px 5px 10px;
  font-size: 24px;
  font-weight: inherit;
  line-height: 1.5;
  border-radius: 7px;
}

section.hero_page404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 30px;
}

p.hero_page404__text_bold {
  font-weight: 600;
}

.wp-pagenavi,
.navigation.pagination .nav-links {
  clear: both;
  margin: 40px 0 0 0;
  display: flex;
  justify-content: center;
}

.wp-pagenavi a,
.wp-pagenavi span,
.navigation.pagination .page-numbers {
  text-decoration: none;
  margin: 2px;
  font-size: 14px;
  color: #bebebe;
  padding: 3px 10px 3px 10px;
}

.wp-pagenavi span.current,
.navigation.pagination .page-numbers.current {
  font-weight: bold;
  color: #191919;
  background: #fff;
  border-radius: 4px;
}

a.page.larger,
.navigation.pagination a.page-numbers {
  color: black;
}

a.page.larger:hover,
.navigation.pagination a.page-numbers:hover {
  background: #fff;
  border-radius: 4px;
}

/* ---- Головна ---- */

section.home_date_birth {
  background: #fff;
  padding: 50px 0;
}

section.home_date_death {
  background: #2b2b2b;
  padding: 50px 0;
  color: #fff;
}

section.home_date_death a {
  color: #fff;
}

section.home_feed {
  padding: 50px 0;
}

.home_date h3 {
  font-size: 22px;
  font-weight: 600;
  padding-top: 15px;
  padding-bottom: 10px;
}

.col-12.home_feed_title {
  border-top: 2px solid #ddd;
  margin: 35px 0 0 0;
}

.home_feed__bt {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.home_feed__bt_text {
  background: #04a6ef;
  padding: 5px 15px 5px 15px;
  border-radius: 7px;
  font-size: 14px;
  margin-top: 25px;
  transition: all 1s ease;
}

.home_feed__bt_text:hover {
  background: #006390;
}

.home_feed__bt_text a {
  color: #fff;
}

/* ---- Календар ---- */

.link_calendar {
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

a.show-all,
a.show-deaths,
a.show-birthdays {
  padding: 0 0 5px 0;
  color: #ddd;
  outline: none;
}

a.show-all {
  border-bottom: 1px dashed #cacaca;
}

a.show-deaths {
  border-bottom: 1px dashed #414141;
}

a.show-birthdays {
  border-bottom: 1px dashed #2196f3;
}

a.show-birthdays.active,
a.show-deaths.active,
a.show-all.active {
  color: #000;
  border-bottom: 0;
}

.archive-calendar {
  display: grid;
}

.calendar-month {
  gap: 10px;
  margin: 15px 10px 0 0;
  background: #e8e8e8;
  align-items: start;
  padding: 10px 10px 10px 10px;
}

.calendar-month.current_month {
  grid-column-start: 1;
  grid-row-start: 1;
  z-index: 1;
  grid-row-end: 2;
  grid-column-end: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 20px;
  gap: 10px;
  background: #fff;
}

.month_name {
  align-self: center;
  text-align: center;
}

.month_name h4,
.month_name .h4 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  font-size: 14px;
  background: #ffffffb5;
  border-radius: 5px;
  padding: 3px 0;
}

.calendar-day {
  border: 1px solid #ddd;
}

.calendar-day.current_day {
  border: 1px solid #ffc107;
  background: #fff4d3;
}

span.day-number {
  font-size: 14px;
  background: #f7f3ce;
  padding: 2px 5px 4px 2px;
}

.calendar-event {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 10px;
  opacity: 1;
  transition: all 0.6s ease;
}

.calendar-event:hover {
  background: #fff8be;
}

.calendar-event.date_death {
  border-left: 3px solid #636363;
}

.calendar-event.date_birth {
  border-left: 3px solid #03a9f4;
}

.calendar-event.off_o {
  opacity: 0.2;
}

.calendar-event.current_month {
  padding: 5px 10px 5px 10px;
  display: flex;
  gap: 10px;
}

.calendar-event.current_month img {
  width: 100%;
  border-radius: 50%;
}

.hero-thumbnail-container img {
  width: 40px;
  border-radius: 50%;
}

.current_month .hero-thumbnail-container {
  width: 20%;
}

.current_month .hero__name_archivs {
  width: 80%;
}

.hero-link-title {
  font-size: 12px;
  line-height: 12px;
}

.current_month .hero-link-title {
  font-size: 12px;
}

.hero-info {
  font-size: 10px;
  color: #ababab;
}

.current_month .hero-info {
  font-size: 10px;
  color: #8d8d8d;
}

/* ---- Інфоблок і підвал ---- */

section.infofoot {
  padding: 25px 0 10px 0;
}

.infofoot_text {
  font-size: 12px;
  padding: 25px 30px 5px 30px;
  background: #fffaeb;
  border-radius: 10px;
  margin: 0 0 15px 0;
}

p.infofoot_text_bold {
  font-weight: 600;
}

span.infofoot_text_mail {
  background: #ffebac;
}

.infofoot_text a {
  background: #ffebac;
  border-bottom: 1px solid #ddd;
  padding: 0 0 2px 0;
}

footer {
  background: #000;
  color: #fff;
  padding: 50px 0;
}

.foot_name {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.foot_name__logo img {
  width: 100px;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.foot_name__logo img:hover {
  opacity: 1;
}

.foot_name__text {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0 0 0;
}

.foot_copi {
  font-size: 12px;
  padding: 15px 0 0 0;
}

.foot_mdtk {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.foot_web {
  font-size: 10px;
  color: #9c9c9c;
  text-align: end;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 5px;
}

.foot_web a {
  color: #ffffffbd;
  border-bottom: 1px solid #ffffff80;
  padding-bottom: 1px;
}

.foot_web a:hover {
  border-bottom: 1px solid #ffffff;
  color: #fff;
}

.admin_edit {
  position: absolute;
  display: flex;
  gap: 10px;
  top: 100vh;
  right: 20px;
  font-size: 10px;
  opacity: 0.3;
  z-index: 1000;
  background: red;
  padding: 2px 10px;
}

/* ---- Лайтбокс для фото в матеріалах ---- */

.hs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(30 30 30 / 92%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hs-lightbox.is-open {
  opacity: 1;
}

.hs-lightbox__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hs-lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 30px rgb(0 0 0 / 50%);
}

.hs-lightbox__caption {
  color: #eee;
  font-size: 14px;
  padding: 10px 0 0;
  text-align: center;
}

.hs-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.hs-lightbox__btn:hover,
.hs-lightbox__btn:focus-visible {
  opacity: 1;
  background: rgb(0 0 0 / 70%);
}

.hs-lightbox__close { top: 15px; right: 15px; }
.hs-lightbox__prev { left: 15px; top: 50%; transform: translateY(-50%); }
.hs-lightbox__next { right: 15px; top: 50%; transform: translateY(-50%); }

.hs-lightbox__counter {
  position: absolute;
  top: 25px;
  left: 20px;
  color: #ccc;
  font-size: 13px;
}

body.hs-no-scroll {
  overflow: hidden;
}

/* ---- Мобільні ---- */

@media (max-width: 575.98px) {
  .herosam_img {
    margin: -35px -20px 20px -20px;
  }

  .hellohome_con {
    margin-top: 10vh;
    margin-bottom: 20px;
  }

  .herosamcon_item__img {
    width: auto;
    height: 380px;
    margin: 10px -20px 20px -20px;
  }

  .herosam_img img {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  .col-lg-8.hero_item__content {
    border-radius: 0;
    padding: 0 20px 15px 20px;
  }

  .hero_cont_items__title {
    font-size: 14px;
    line-height: 16px;
  }

  form.search-form {
    width: 95%;
  }

  .foot_copi {
    padding: 15px 20px 5px 25px;
    opacity: 0.8;
  }

  .herosamcon_item__title {
    font-size: 22px;
    line-height: 24px;
  }

  .herosamcon_item__content {
    padding: 0;
  }

  .hero_toptag {
    margin: 10px 0 30px 0;
  }

  .calendar-month.current_month {
    grid-template-columns: 1fr;
  }

  .archive-calendar {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  header.hero_header {
    min-height: auto;
  }

  .hero_logo_top {
    margin: 45px 0 15px 0;
  }

  button.search-submit {
    font-size: 12px;
    font-weight: 700;
  }

  ul#hero_nav_main {
    gap: 10px;
    justify-content: flex-start;
  }

  nav#hero_nav {
    margin: 0 0 10px 0;
  }

  .hs-lightbox__prev,
  .hs-lightbox__next {
    top: auto;
    bottom: 15px;
    transform: none;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .calendar-month.current_month {
    grid-template-columns: repeat(2, 1fr);
    grid-column-end: 2;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .calendar-month.current_month {
    grid-template-columns: repeat(3, 1fr);
    grid-column-end: 3;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .calendar-month.current_month {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero_items_img img,
  .hero_items_tags,
  .hero_items_dates {
    transition: none;
  }
}
