:root {
  --bac-blog-header-ratio: 21 / 6;
  --bac-title-margin: 60px 0 0;
  --bac-decor-top-h: clamp(700px, 93vh, 850px);
  --bac-decor-bottom-h: clamp(775px, 95vh, 950px);
  --bac-header-offset: 20px;
}

/*_Remove padding top*/
body.single-post .container-wrap {
  padding-top: 0;
}

.bac-single-header {
  margin-top: var(--bac-header-offset);
  margin-bottom: 24px;
}

.bac-single-header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bac-single-header__date {
  font-size: 20px;
  line-height: 1;
  color:#70706f;
  text-align: right;
  white-space: nowrap;
}

/*_media - img as bg */
.bac-single-header__media {
  position: relative;
  aspect-ratio: var(--bac-blog-header-ratio);
  overflow: hidden;
  border-radius: 20px;
}

.bac-single-header__media img.bac-single-header__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.main-content .bac-single-header__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center bottom;
}

.bac-single-header__title {
  margin: var(--bac-title-margin);
  color: var(--nectar-accent-color);
  font-size:36px;
}

/*_Decor bg lines*/
body.single-post #ajax-content-wrap .container-wrap {
  position: relative;
  isolation: isolate;
}


/*body.single-post #ajax-content-wrap .container-wrap > * {
  position: relative;
  z-index: 1;
}*/

/*_Top decor*/
body.single-post #ajax-content-wrap .container-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bac-decor-top-h);
  pointer-events: none;
  z-index: 0;
  background-image: url("https://katsoraslaw.com/wp-content/uploads/2026/02/hm-bg-decor-cards.svg");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;

  opacity: .5;
}

body.single-post #ajax-content-wrap .container-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bac-decor-bottom-h);
  pointer-events: none;
  z-index: 0;
  background-image: url("https://katsoraslaw.com/wp-content/uploads/2026/02/about-decor-bg.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;

  opacity: .5;
}

/* Tablet/mobile */
@media only screen and (max-width: 999.98px) {
  :root {
    --bac-blog-header-ratio: 6 / 3;
    --bac-title-margin: 35px 0 0;
	--bac-header-offset: 16px;

    /* responsive decor heights */
    --bac-decor-top-h: clamp(520px, 78vh, 720px);
    --bac-decor-bottom-h: clamp(600px, 85vh, 820px);
  }

  .bac-single-header {
    margin-top: 15px;
  }
	
  .bac-single-header__title {
    font-size:24px;
  }
}

/* Small phones */
@media only screen and (max-width: 450px) {
  :root {
    --bac-blog-header-ratio: 6 / 4;

    /* responsive decor heights */
    --bac-decor-top-h: clamp(420px, 70vh, 600px);
    --bac-decor-bottom-h: clamp(520px, 80vh, 700px);
  }
}