.admin-section {
    padding-top: 20px;
    padding-bottom: 20px;
    border: 1px solid red;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content strong {
    font-weight: 800;
}




.img-frames-container{
    aborder:1px solid red;
    atext-align:left;
    display:block;
    aborder:0px solid red;
    margin-top: 50px;
    height: 120px;
    apadding-left: 40px;
}


.img-frames-container span.frame{
    position: absolute;
    atop: -300px;
    aleft: 200px;
    opacity: 1;
    width: 340px;
    height: 340px;
    display: inline-block;
    zoom: 0.15;
    z-index: 9999;
    transform: translate(200px, -300px);
    -aamoz-transform:scale(0.15);
    -aamoz-transform-origin: 0 0;
}

.img-frames-container img{
    width: 400px;
}

.touch-thing {
    -webkit-animation: touchedthingmv 0.3s; /* Safari 4.0 - 8.0 */
    animation: touchedthingmv 0.3s;
    animation-iteration-count: 1;
}

table.data-table tr td, table.data-table tr th {
    border: 1px solid black;
    padding: 10px;
}

table.nested-data-table tr td, table.nested-data-table tr th {
    border: 1px solid lightgray;
    padding: 5px;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes touchedthingmv {
    0%   {line-height: 100%;}
    40%  {line-height: 150%}
    60%  {line-height: 125%}
    75%  {line-height: 200%}
    100% {line-height: 100%}
}

/* Standard syntax */
@keyframes touchedthingmv {
    0%   {line-height: 100%;}
    40%  {line-height: 150%}
    60%  {line-height: 125%}
    75%  {line-height: 200%}
    100% {line-height: 100%}
}

/* mods */
.breadcrumb-menu li:last-child a {
    opacity: 1.0;
    pointer-events: all;
}

.clamp-5
{
    -webkit-line-clamp: 5
}

.section {
    padding-top: 40px;
    padding-bottom: 40px;
}

figure {
    display: table;
}

figcaption {
    display: table-caption;
    caption-side: bottom ;
}

article figcaption {
    margin-top: 5px !important;
    padding: 5px !important;
    background-color: #f8f9fc !important;
    font-size: 80% !important;
    text-align: left !important;
    font-style: italic !important;
    color: #555 !important;
}

.rounded-7{
    border-radius:.7rem!important
}

.rounded-10{
    border-radius:1rem!important
}
.rounded-15{
    border-radius:1.5rem!important
}

.reset {
    all: revert;
}

div.toc {
    padding-top: 0.2rem;
    padding-bottom: 1rem;
}

div.toc ul, div.toc ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    align-items: center;
    padding-left: 0rem;
    padding-right: 0rem;
    margin-top: 0.5rem;
}

div.toc ul > li, div.toc ol > li{
    margin-right: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 0rem;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
}

div.toc ol > li::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: currentColor;
  opacity: 0.75;
  margin-left: 0.6rem;
}

/* remove separator on last item */
div.toc ol > li:last-child::after {
  content: none;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

.w-100px { width: 100px!important; }
.w-200px { width: 200px!important; }
.w-300px { width: 300px!important; }
.w-400px { width: 400px!important; }
.w-500px { width: 500px!important; }
.w-600px { width: 600px!important; }
.w-700px { width: 700px!important; }
.w-800px { width: 800px!important; }
.w-900px { width: 900px!important; }
.w-1000px { width: 1000px!important; }

.min-w-100 { min-width: 100px!important; }
.min-w-200 { min-width: 200px!important; }
.min-w-300 { min-width: 300px!important; }
.min-w-400 { min-width: 400px!important; }
.min-w-500 { min-width: 500px!important; }
.min-w-600 { min-width: 600px!important; }
.min-w-700 { min-width: 700px!important; }
.min-w-800 { min-width: 800px!important; }
.min-w-900 { min-width: 900px!important; }
.min-w-1000 { min-width: 1000px!important; }

.max-w-100 { max-width: 100px!important; }
.max-w-200 { max-width: 200px!important; }
.max-w-300 { max-width: 300px!important; }
.max-w-400 { max-width: 400px!important; }
.max-w-500 { max-width: 500px!important; }
.max-w-600 { max-width: 600px!important; }
.max-w-700 { max-width: 700px!important; }
.max-w-800 { max-width: 800px!important; }
.max-w-900 { max-width: 900px!important; }
.max-w-1000 { max-width: 1000px!important; }

.wp-10 { width: 10%!important; }
.wp-20 { width: 20%!important; }
.wp-30 { width: 30%!important; }
.wp-40 { width: 40%!important; }
.wp-50 { width: 50%!important; }
.wp-60 { width: 60%!important; }
.wp-70 { width: 70%!important; }
.wp-80 { width: 80%!important; }
.wp-90 { width: 90%!important; }
.wp-100 { width: 100%!important; }

.min-wp-10 { min-width: 10%!important; }
.min-wp-20 { min-width: 20%!important; }
.min-wp-30 { min-width: 30%!important; }
.min-wp-40 { min-width: 40%!important; }
.min-wp-50 { min-width: 50%!important; }
.min-wp-60 { min-width: 60%!important; }
.min-wp-70 { min-width: 70%!important; }
.min-wp-80 { min-width: 80%!important; }
.min-wp-90 { min-width: 90%!important; }
.min-wp-100 { min-width: 100%!important; }

.max-wp-10 { max-width: 10%!important; }
.max-wp-20 { max-width: 20%!important; }
.max-wp-30 { max-width: 30%!important; }
.max-wp-40 { max-width: 40%!important; }
.max-wp-50 { max-width: 50%!important; }
.max-wp-60 { max-width: 60%!important; }
.max-wp-70 { max-width: 70%!important; }
.max-wp-80 { max-width: 80%!important; }
.max-wp-90 { max-width: 90%!important; }
.max-wp-100 { max-width: 100%!important; }

.w-100p { width: 100%!important; }


/* Magazine Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  rem-grid-template-rows: 100% 50% 50%;
  gap: 1rem;
  padding: 2rem 0;
}
.hero-item { position: relative; overflow: hidden; border-radius: 8px; background: #000; color: #fff; text-decoration: none; }
.hero-item img { width: 100%; height: 230px; object-fit: cover; opacity: 0.7; transition: 0.3s; }
.hero-item:hover img { opacity: 0.9; transform: scale(1.03); }
.hero-content { position: absolute; bottom: 0; padding: 1.5rem; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.main-feature { grid-row: span 2; } /* Голямата новина вляво */
.hero-content h2, .hero-content h3 { color: #fff; }
/* Department Blocks (Dense Layout) */
.dept-section { padding: 3rem 0; border-top: 1px solid var(--c-muted); }
.dept-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.dept-header h2 { font-size: 1.75rem; font-weight: 900; border-bottom: 4px solid var(--c-brand); }
.main-feature img {height: 500px}

.dense-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mini-card { text-decoration: none; color: inherit; }
.mini-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.mini-card h3 { font-size: 1rem; margin-top: 0.5rem; line-height: 1.2; }
.tag { font-size: 0.7rem; font-weight: bold; color: var(--c-brand); text-transform: uppercase; }

/* Trending Sidebar Layout */
.main-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 3rem; }
.sidebar { background: var(--c-muted); padding: 1.5rem; border-radius: 8px; height: fit-content; }
.sidebar h4 { margin-bottom: 1rem; border-bottom: 2px solid var(--c-text); padding-bottom: 0.5rem; }
.trend-item { margin-bottom: 1rem; display: flex; gap: 1rem; font-size: 0.9rem; text-decoration: none; color: inherit; }
.trend-item b { font-size: 1.5rem; color: var(--c-brand); opacity: 0.3; }

@media (max-width: 992px) {
  .hero-grid, .dense-grid, .main-layout { grid-template-columns: 1fr; }
}

.gradient-1 {
    background: linear-gradient(transparent, rgb(48, 49, 46, 0.1));
    background-color: initial;
}

.gradient-2 {
    background: linear-gradient(to bottom, #fff, #f2f3e8 50%, #fff);
}

.gradient-3 {
    background: linear-gradient(to bottom, #f2f3e8, #fff 50%, #f2f3e8);
}

.idx-page-box {
    border: 1px solid #f2f3e8;
    border-radius:.7rem;
}

.index-section * .post-image {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f2f3e8;
}

.section-title .title {
    background-image: none;
    padding-left: 10px;
}


article.as-span {
  all: unset;
  display: inline;
  margin: 0;
  padding: 0;
  border: 1px solid red;
  background: none;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  position: static;
  float: none;
  clear: none;
  overflow: visible;
  box-sizing: content-box;
  vertical-align: baseline;
  white-space: normal;
}

@media (min-width:576px) {
    .navbar-brand img {
        max-width: 250px!important;
        margin-top: -29px;
        margin-bottom: -29px;
        height: 100px;
        display: inline;
    }
}

@media (max-width:576px) {
    .navbar-brand img {
        max-width: 250px!important;
        max-height: 60px!important;
        margin-top: -20px;
        margin-bottom: -20px;
        height: 100px!important;
    }
}