/*
Theme Name: Protocast 2.0
Theme URI: http://example.com
Author: Martin Haspl
Author URI: http://example.com
Description: Simple WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: protocast-2
*/

@font-face {
    font-family: "Graphie";
    src: url("./fonts/Graphie-Regular.woff2") format("woff2"),
         url("./fonts/Graphie-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Graphie-SemiBold";
    src: url("./fonts/Graphie-SemiBold.woff2") format("woff2"),
         url("./fonts/Graphie-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Graphie-Bold";
    src: url("./fonts/Graphie-Bold.woff2") format("woff2"),
         url("./fonts/Graphie-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Graphie-ExtraBold";
    src: url("./fonts/Graphie-ExtraBold.woff2") format("woff2"),
         url("./fonts/Graphie-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
  --proto-bluish: #4350CD;
  --proto-dark: #2E2B43;
  --whitish-light: #F6F6FB;
  --ground: #A49D66;
  --metal: #666C89;
  --whitish: #D5D2E5;
  --wood: #FFBF43;
  --white: #FFFFFF;
  --black: #000000;
  --text-strong: #222222;
  --accent-soft: #ffcc66;
  --border-white-33: rgba(255,255,255,.33);
  --overlay-black-10: rgba(0, 0, 0, 0.1);
  --overlay-black-55: rgba(8,10,20,0.55);
  --border-black-06: rgba(0,0,0,0.06);
  --border-black-04: rgba(0,0,0,0.04);
  --divider-black-12: rgba(0,0,0,.12);
  --shadow-10: rgba(0, 0, 0, 0.1);
  --shadow-25: rgba(0, 0, 0, 0.25);
  --proto-dark-00: #2E2B4300;
  --proto-dark-26: #2e2b4343;
  --proto-dark-09: #2e2b4316;
  --banner-dark-00: #36334600;
  --banner-dark-100: #363346;
  --transparent: #0000;
  --white-00: #ffffff00;
  --mask-opaque: rgba(0,0,0,1);
  --mask-clear: rgba(0,0,0,0);
  --wp--preset--font-size--x-large: 90px;
  --content-max: 1440px;
  --content-offset: calc((100vw - var(--content-max)) / 2);
}

html {
  height: 100%;
}

body {
    font-family: "Graphie";
    margin: 0;
    padding: 0;
    background: var(--whitish-light);
    color: var(--proto-dark);
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
}

footer {
  background: var(--proto-dark);
  color: var(--white);
  text-align: left;
  padding: 3em 10em 1rem;
}

.header-wrapper {
  width:100%;
  z-index:3;
  display:flex;
  justify-content:center;
}

.header-wrapper .header-overlap {
  width: calc(90% + 20px);
  position: absolute;
  height: 188px;
  max-width: 1640px;
  margin: 0 auto;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: transparent;
  transition: background-color ease .5s;
}

.site-cover {
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  background: var(--overlay-black-10);     /* semi-transparent */
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity ease .5s, visibility ease .5s;
  pointer-events: none;
}

header {
  width:90%;
  max-width:1500px;
  height:auto;
  background-color:var(--white);
  z-index:3;
  padding:28px 28px 10px 28px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  box-shadow:0 5px 5px var(--proto-dark);
  color: var(--proto-dark);
  text-align: center;
}

header .first-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .second-row {
    /*margin-top: 20px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
}

header .second-row .wrapper-left {
    display: flex;
    gap: 34px;
    align-items: center;
}

header .second-row .wrapper-left .menu-materialy-container > ul > li > .sub-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    background-color: var(--proto-dark);
    padding: 4rem 4rem;
    min-width: 250px;
    z-index: 1;
    border-radius: 0 0 4px 4px;
    width: calc(90% + 20px);
    max-width: 1640px;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, 0);
    min-height: 100%;
    gap: 70px;              /* spacing between columns */
    align-items: normal;
    transition: opacity ease .5s, visibility ease .5s;
    pointer-events: none;
    top: 188px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
}

/* additional menus side-by-side */
header .second-row .wrapper-left .sub-menu li {
  display: block;
}

/* show each subsequent submenu */
header .second-row .wrapper-left .sub-menu .sub-menu {
  display: block;
  position: relative;
  width: initial;
  display: block;
  padding: 1rem 0;
}

header .second-row .wrapper-left .sub-menu ul.sub-menu li {
  display: block;
  text-align: left;
  padding: 7.5px 25px;
  background: url('icons/icon_arrow_right.svg') no-repeat left center;
  background-size: auto;
  background-size: 15px 15px;
}

header .second-row .wrapper-left .sub-menu ul.sub-menu li a {
  padding: 0;
  text-transform: none;
}


/* Submenu items */
header .second-row .wrapper-left .sub-menu li a {
  display: block;
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
  transition: all ease .5s;
  font-family: "Graphie";
}

header .second-row .wrapper-left .sub-menu li a:hover {
  box-shadow: none;
  color: var(--wood);
}

header .second-row .wrapper-left .sub-menu ul.sub-menu li:hover, header .second-row .wrapper-left .menu-materialy-container > ul > li > .sub-menu > li > a:hover {
  background: url('icons/icon_arrow_right_y.svg') no-repeat left center;
}

/* categories */
header .second-row .wrapper-left .menu-materialy-container > ul > li > .sub-menu > li > a {
  width: 250px;
  border-bottom: 1px solid var(--border-white-33);
  padding: 7.5px 25px;
  background: url('icons/icon_arrow_right.svg') no-repeat left center;
  background-size: auto;
  background-size: 15px 15px;
}

/* Show submenu on hover */
header .second-row .wrapper-left .menu-materialy-container > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header .second-row .wrapper-left .menu-materialy-container > ul > li.menu-item-has-children::after {
  content: '';
  background: url('icons/icon_arrow_up.svg') no-repeat left center;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  margin-top: 16px;
  margin-left: 10px;
}

header .second-row .wrapper-left .menu-materialy-container > ul > li.menu-item-has-children:hover::after {
  transform: translateY(-50%) rotate(180deg);
}

header .second-row .wrapper-left .menu-materialy-container > ul > li {
  margin-right: 25px;
}

/* keep submenu open while hovering */
header .second-row .wrapper-left .menu-materialy-container > ul > li > a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  height: 50px;
  width: 100%;
  background: transparent;
}

body:has(header .second-row .wrapper-left .menu-materialy-container > ul > li.menu-item-has-children:hover) .header-wrapper .header-overlap  {
  background-color: var(--proto-dark);
}

body:has(header .second-row .wrapper-left .menu-materialy-container > ul > li.menu-item-has-children:hover) .site-cover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header .wrapper-right {
    display: flex;
    gap: 34px;
    justify-content: flex-end;
    align-items: center;
}

header .wrapper-right .wrapper-left {
    display: flex;
    gap: 34px;
    align-items: center;
}

header .wrapper-right .wrapper-right {
    display: flex;
    gap: 34px;
    align-items: center;
    justify-content: flex-end;
}

header ul {
    list-style-type: none;
    display: flex;
    gap: 34px;
    justify-content: flex-end;
    align-items: center;
}

header ul li {
    display: inline-flex;
}

header ul li a, header .phone-a {
    text-decoration: none;
    display: flex;
    gap: 34px;
    justify-content: flex-end;
    align-items: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
    letter-spacing: .54px;
    position: relative;
}

header .phone-a {
  color: var(--proto-bluish);
}

header ul li a {
  color: var(--proto-dark);
}

header ul li a:hover, header .phone-a:hover, header .second-row .wrapper-left .menu-materialy-container > ul > li:hover {
    color: var(--proto-bluish);
    box-shadow: inset 0 -2px var(--proto-bluish);
}

header .phone-a .phone-wrapper {
    align-items: center;
    display: flex;
}

.mobile-extras {
  text-transform: uppercase;
}

header .yellow, .mobile-extras .yellow {
    background-color: var(--wood);
    color: var(--proto-bluish);
    transition: background-color .1s ease-out,transform .1s ease-out;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 10px 15px;
}

header .yellow:hover, .mobile-extras .yellow:hover {
    background-color: var(--proto-bluish);
    color: var(--white);
}

header .logo, footer .logo {
    display: block;
    width: auto;
    height:2rem;
    flex-shrink:0;
    transition:transform .3s ease-out 80ms
}

header a:hover .logo,
footer a:hover .logo {
  transform: scale(1.02);
}

header .split-div {
    padding-top: 10px;
}

header .split-div hr {
  color: var(--whitish)
}

.video-wrapper {
    width: 100%;
    height: 110vh;
    position: absolute;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

.video-wrapper video {
  /** Simulating background-size: cover */
  object-fit: cover;
  height: 100%;
  width: 100%;

  position: absolute;
  top: 0;
  left: 0;
}

.video-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, var(--banner-dark-00), var(--banner-dark-100)),linear-gradient(180deg, var(--transparent), var(--proto-dark));
    z-index: 1;
}

article {
  font-size: 20px;
}

article h2 {
  font-size: 40px;
  font-family: Graphie-Bold;
  line-height: 100%;
}

.max-width-80 {
  max-width: 80%;
}

.hero-lines {
  position: relative;
  text-align: center;
  padding: 20px 0 120px;
}

.hero-lines > * {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lines h2 {
  margin-bottom: 0;
}

.hero-kettle, .hero-bubble {
  position: relative;
  text-align: center;
  
  background-repeat: no-repeat, no-repeat;
  
  background-size: auto;   
}

.hero-kettle > *, .hero-bubble > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-kettle p, .hero-bubble p {
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.hero-kettle {
  background-image: url('/wp-content/uploads/2025/11/kettle_1.png'),
                    url('/wp-content/uploads/2025/11/kettle_2.png');
  padding: 20px 0 120px;
  background-position: left 20%, right 20%;
}

.hero-bubble {
  background-image: url('/wp-content/uploads/2026/04/Group-78.png'),
                    url('/wp-content/uploads/2026/04/path531.png');
  padding: 20px 0 350px;
  background-position: 20% 20%, 80% 20%;
}

.wp-singular article {
    background: var(--white);
    padding: 1rem;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding-left: var(--content-offset);
    padding-right: var(--content-offset);
}

.wp-singular article .full-width,
.wp-singular article .full-width-map {
  width: 100vw;
}

.wp-block-column img {
  max-width: 100%;
  height: auto;
}

.banner-over-map {
  margin-top: -130px;
  position: relative;
  z-index: 2;
}

/* overflow for large screens */
@media (min-width: 1440px) {
  .wp-singular article .full-width, .wp-singular article .full-width-map {
    margin-left: calc(-1 * var(--content-offset));
  }

  .header-wrapper {
    position:relative;
  }

  :is(body.blog, body.archive) .top-level {
    padding-left: var(--content-offset);
    padding-right: var(--content-offset);
  }

  .laser-grid-fixed-size .wp-block-group {
    width: 550px;
    height: 490px;
  }

  .hero-lines {
    position: relative;
    text-align: center;
    padding: 20px 0 120px;
    background-repeat: no-repeat, no-repeat;
    background-image: url('/wp-content/uploads/2025/11/Group-70.png'),
                      url('/wp-content/uploads/2025/11/Group-71.png');
    background-position: left 65%, right 0%;
    background-size: auto;   
  }

  .hide-on-large-screens {
    display: none;
  }

  /* height fix */
  .wp-block-columns.technologie .wp-block-group {
    height: 100%;
  }

  .wp-singular article .full-width {
    padding-left: var(--content-offset);
    padding-right: var(--content-offset);
  }
  .wp-block-columns.technologie .wp-block-column .wp-block-buttons {
    position: absolute;
    bottom: 46px;
  }

  .wp-singular article .overflow-left {
    margin-left: calc(-1 * var(--content-offset));
  }

  .wp-singular article .overflow-right {
    margin-right: calc(-1 * var(--content-offset));
  }

  .frontpage-overflow {
    margin-left: var(--content-offset);
    margin-right: var(--content-offset);
  }

  body.home.wp-singular article .overflow-left {
    grid-template-columns: 57.5% 1fr; /* 57.5% column + the rest */
  }

  .wp-block-group.tiles.is-layout-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tiles .wp-block-cover:first-child {
    margin-left: 0;
  }

  .tiles .wp-block-cover:last-child {
    margin-right: 0;
  }
}

.mobile-toggle, #mobile-nav { display: none; }

/* small screens */
@media (max-width: 1440px) {
  .wp-singular article {
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .carousel-container h1 {
    font-size: 45px !important;
  }

  .carousel-container p {
    top: 50% !important;
    width: auto !important;
  }

  .home .reference .carousel-container {
    padding: 25px !important;
  }

  .home .reference .carousel-container .slide-content {
    left: 10% !important;
    width: 90% !important;
  }

  .vlastnosti-materialu, .vlastnosti-materialu table thead tr th {
    font-size: 15px;
  }

  /* banner fix on small screens */
  .wp-block-group.banner .head-xfade, .wp-block-group.banner .head-xfade .wp-block-group__inner-container {
    height: 280px !important;
  }

  .wp-singular article .banner h2 {
    font-size: 25px !important;
  }

  .wp-singular article .banner .wp-block-button__link.wp-element-button {
    font-size: 14px;
  }

  /* end of banner fix on small screens */

  :is(body.blog, body.archive) .top-level {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wp-singular article .full-width-map {
    margin-left: -16px;
    /*margin-right: -16px;*/
  }

  /* change grid to block on small screens */
  body .is-layout-grid.printing-grid  {
    display: block;
  }

  body .is-layout-grid.zigzag {
    display: flex;
    flex-direction: column;
  }

  body .is-layout-grid.zigzag > :nth-last-child(2) {
    order: 3;
  }

  body .is-layout-grid.zigzag > :last-child {
    order: 2;
  }

  body .is-layout-grid .hide-on-small-screens {
    display: none;
  }

  body .printing-grid .hide-on-large-screens {
    padding: 20px 0 0 0;
    text-align: center;
    width: 100%;
  }

  .grid-fixed-size .wp-block-group {
    width: unset !important;
  }

  /* cancel article padding 16px */
  .wp-singular article .full-width {
    margin: 0 -16px;
  }

  .wp-singular article .full-width.reference {
    padding: 16px;
  }

  /* padding for technologie block, but keep image 0 */
  .wp-block-columns.technologie .wp-block-column:nth-child(2) {
    padding: 0 15px;
  }

  .wp-block-columns.technologie .wp-block-column .wp-block-buttons {
    position: relative;
    bottom: unset;
  }

  /* overflow fixes */
  body.home.wp-singular article .overflow-left {
    grid-template-columns: 100%;
  }

  body.home.wp-singular article .overflow-left .wp-block-cover.pojekty-popis {
    display: none;
  }

  .wp-block-group.tiles.is-layout-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .tiles .wp-block-cover .wp-block-cover__inner-container {
    transform: translateY(0) !important;
  }

  .wp-block-group.banner {
    margin: 20px;
  }

  #blog-banner .wp-block-group.banner {
    margin: 0;
    height: 100%;
  }

  .logo-carousel-free {
    margin: 20px;
  }
  /* end overflow fixes */

  /* begin fix of scaling */
  .tiles .wp-block-cover {
    height: unset !important;
    width: unset !important;
  }

  .wp-block-group.banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-group.banner .banner-text {
    grid-column: unset !important;
  }

  .wp-block-group.banner .banner-text p {
    display: none;
  }

  .home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
    padding: 15px;
    margin: 0;
    gap: 16px;
  }

  .home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li {
    width: unset !important;
    height: unset !important;
    /*grid-column: 1 / -1;*/
    box-sizing: border-box;
  }
  
  .home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(1), .home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(3) {
    margin: 0 !important;
  }

  /* home page "More projects" button */
  .home .wp-block-buttons.is-content-justification-right {
    justify-content: flex-start;
    margin-left: 15px;
  }

  footer {
    padding-top: 1em;
    padding-left: 2em;
    padding-right: 2em;
  }
  /* end fix of scaling */
}

/* header + mobile navigation */
@media (max-width: 1200px) {
  .header-wrapper .header-overlap {
    height: auto !important;
  }

  .header-wrapper {
    position: fixed;
    top: 0;
    width: 100vw;
  }

  /* space for fixed header */
  body {
    margin-top: 80px;
  }

  /* hide desktop menu pieces */
  .menu-hlavni-menu-container,
  .phone-a,
  .split-div,
  .second-row .wrapper-left,
  .second-row .wrapper-right .yellow {
    display: none !important;
  }

  header {
    flex-direction: row; /* keep rows side-by-side */
    align-items: center;
    width: 100vw;
    padding: 20px;
  }

  header .first-row {
    flex: 1 1 auto;
  }

  header .second-row {
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* show burger menu */
  .mobile-toggle {
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 8px;
    align-items: center;
    cursor: pointer;
  }

  /* mobile nav overlay (panel + overlay) */
  #mobile-nav {
    position: fixed;
    inset: 80px 0 0 0;
    z-index: 1400;
    overflow: hidden;
    opacity: 0;
    transition: all ease .5s;
    display: none;
  }

  #mobile-nav.is-open {
    opacity: 1;
    display: block;
  }

  #mobile-nav .menu-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-black-55);
    transition: opacity .25s ease;
    opacity: 1;
  }

  #mobile-nav .panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background: var(--white);
    transform: translateY(-100%);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .28s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px;
    box-sizing: border-box;
  }

  #mobile-nav.is-open .panel {
    transform: translateY(0);
    opacity: 1;
  }

  /* submenu: animated accordion using max-height transitions */
  .mobile-nav .submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .32s ease;
    padding-left: 12px;
  }

  .mobile-nav .submenu.open {
    max-height: 800px;
  }

  .mobile-nav .submenu[hidden] {
    display: none;
  }

  /* submenu toggle caret rotation */
  .submenu-toggle .caret {
    display: inline-block;
    transition: transform .24s ease;
  }
  .submenu-toggle[aria-expanded="true"] .caret {
    transform: rotate(90deg);
  }

  /* close button */
  .mobile-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
  }

  /* branding */
  .mobile-nav .brand {
    display:flex;
    align-items:center;
    gap:12px;
    padding-bottom:8px;
    border-bottom:1px solid var(--border-black-06);
  }

  /* menu list */
  .mobile-nav .menu {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
  }

  .mobile-nav .menu > li { border-bottom: 1px solid var(--border-black-04); }
  .mobile-nav a, .mobile-nav .submenu-toggle {
    display:block;
    padding: 12px 6px;
    font-size: 16px;
    text-decoration: none;
    color: var(--text-strong);
  }

  #mobile-nav nav ul#menu-materialy > li button.submenu-toggle {
      position: absolute;
      right: 12px;
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      cursor: pointer;
      top: 15px;
  }

  #mobile-nav nav ul#menu-materialy > li .sub-menu button.submenu-toggle {
    top: 5px;
  }

  #mobile-nav nav ul#menu-materialy > li button.submenu-toggle {
    transform: rotate(-90deg);
    transition: all .5s ease;
  }

  #mobile-nav nav ul#menu-materialy > li button.submenu-toggle::after {
    content: ">";
    font-size: 32px;
    line-height: 32px;
    color: var(--proto-bluish);
  }

  #mobile-nav nav ul#menu-materialy > li > ul > li button.submenu-toggle::after {
    color: var(--proto-dark);
  }

  #mobile-nav nav ul#menu-materialy > li button.submenu-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
  }

  #mobile-nav nav ul li {
    display: block;
    margin: 0;
    position: relative;
  }

  #mobile-nav nav ul#menu-hlavni-menu li {
    padding: 10px 0;
  }

  #mobile-nav nav > div > ul > li > ul > li {
    border-bottom: 1px solid var(--whitish);
  }

  #mobile-nav nav > div > ul > li > ul > li:last-child {
    border-bottom: none;
  }

  #mobile-nav nav ul#menu-materialy {
    margin-bottom: 20px;
  }

  #mobile-nav nav ul#menu-materialy > li {
    border-bottom: 1px solid black;
    font-size: 15px;
    line-height: 100%;
    font-family: Graphie-SemiBold;
    font-weight: 600;
    position: relative;
  }

  #mobile-nav nav ul#menu-materialy li {
    padding: 15px 0;
  }

  #mobile-nav nav ul#menu-materialy > li button, #mobile-nav nav ul#menu-materialy > li > a {
    color: var(--proto-dark);
    text-transform: uppercase;
    font-size: 15px;
    line-height: 100%;
    font-family: Graphie-SemiBold;
    font-weight: 600;
    width: calc(100% - 50px);
    text-align: left;
    position: relative;
    padding-left: 0;
  }

  #mobile-nav nav ul#menu-materialy > li > a {
    padding: 15px 0;
  }

  #mobile-nav nav ul#menu-materialy > li > ul {
    padding-left: 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobile-nav nav ul#menu-materialy > li > ul.expanded {
    max-height: 1000px; /* large value to allow full expansion */
    overflow: visible;
  }

  #mobile-nav nav ul#menu-materialy > li > ul > li button {
    text-transform: uppercase;
    color: var(--metal);
    font-size: 13px;
    line-height: 100%;
    font-family: Graphie-SemiBold;
    font-weight: 600;
  }

  #mobile-nav nav ul#menu-materialy > li > ul > li > ul {
    padding-left: 20px;
    padding-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobile-nav nav ul#menu-materialy > li > ul > li > ul.expanded {
    max-height: 1000px; /* large value to allow full expansion */
    overflow: visible;
  }

  #mobile-nav nav ul#menu-materialy > li > ul > li > ul > li {
    text-transform: none;
    font-size: 13px;
    line-height: 150%;
    font-family: Graphie-Bold;
    font-weight: 400;
    color: var(--proto-dark);
    padding: 5px;
  }

  #mobile-nav nav ul li a {
    color: var(--proto-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  #mobile-nav nav ul#menu-materialy li:not('.menu-item-has-children') a::after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28' fill='currentColor'%3E%3Cpath d='M16.653 5.91159L22.9753 13.0296L1.86575 13.0296C1.33035 13.0296 0.896484 13.4642 0.896484 14C0.896484 14.5358 1.33035 14.9704 1.86575 14.9704L22.9753 14.9704L16.653 22.0884C16.2973 22.4892 16.3338 23.1025 16.7343 23.4586C17.1348 23.8143 17.7476 23.7777 18.1034 23.3768L25.8593 14.6442C26.1849 14.2768 26.1849 13.7232 25.8593 13.3558L18.1034 4.62316C17.7476 4.22235 17.1348 4.18575 16.7343 4.54143C16.3338 4.89747 16.2973 5.51078 16.653 5.91159Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }

  /* hamburger lines */
  .hamburger {
    display:inline-block;
    width:26px;
    height:24px;
    position:relative;
  }

  .close .hamburger .middle-segs {
    transform: rotate(45deg);
  }

  .close .hamburger::before {
    opacity: 0;
  }

  .close .hamburger::after {
    transform: rotate(-45deg);
    top: 50%;
  }

  /* Top and bottom full lines */
  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wood);
    display: block;
    border-radius: 4px;
  }

  .hamburger::before {
    top: 0;
    transition: all ease .5s;
  }

  .hamburger::after {
    bottom: 0;
    transition: all ease .5s;
  }

  /* Middle is two short segments implemented with two pseudo-elements */
  .hamburger .middle-segs {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    pointer-events: none; /* purely decorative */
    transition: all ease .5s;
  }

  .hamburger .middle-segs::before,
  .hamburger .middle-segs::after {
    content: "";
    position: absolute;
    height: 4px;
    background: var(--wood);
    border-radius: 4px;
  }

  .hamburger .middle-segs::before {
    left: 0;
    width: 24%;
  }

  .hamburger .middle-segs::after {
    right: 0;
    width: 70%;
  }

  /* tap targets a11y */
  .mobile-nav a, .mobile-nav button {
    min-height: 44px;
  }

  /* lock body scroll when open */
  body.mobile-nav-open {
    overflow: hidden;
  }

  .hero-lines,
  .hero-kettle,
  .hero-bubble {
    background-image: none !important;
  }

  .surfaces {
    width: 100%;
    height: auto;
  }

  .contact-page-columns .margin-left-150 {
    margin-left: 20px !important;
    text-align: center;
  }

  .contact-page-columns .margin-right-150 {
    margin-right: 20px !important;
  }

  .surfaces-group {
    margin: 5px !important;
  }

  .surfaces > figure.wp-block-image.size-full {
    width: 100%;
    height: auto;
    aspect-ratio: 482 / 416;
  }

  .surfaces > figure.wp-block-image.size-full img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* custom 7-block reorder on mobile */
  .reorder-7-block {
    display: flex !important;
    flex-direction: column;
  }

  /* Flatten Gutenberg columns so reorder-* items become flex items of .reorder-7-block */
  .reorder-7-block > .wp-block-column {
    display: contents;
  }

  .reorder-7-block > .wp-block-column > * {
    width: 100%;
  }

  .reorder-7-block .reorder-1 { order: 2; }
  .reorder-7-block .reorder-2 { order: 6; }
  .reorder-7-block .reorder-3 { order: 5; }
  .reorder-7-block .reorder-4 { order: 1; }
  .reorder-7-block .reorder-5 { order: 3; }
  .reorder-7-block .reorder-6 { order: 7; }
  .reorder-7-block .reorder-7 { order: 4; }
  .reorder-7-block .reorder-8 { order: 8; }
}

/* tablet and larger */
@media (min-width: 640px) {
  /**.carousel-container {
    height: 65vh;
  }*/
}

/* phones */
@media (max-width: 640px) {
  /*.carousel-container {
    height: 326px;
  }*/
}

/* WP changes flex to 100% at this point, we need to fix align */
@media (max-width: 781px) {
  .reference .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    text-align: center;
  }

  .materialy > .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow:nth-child(1),
  .has-border-right {
    border-right: none !important;
  }

  .bottom-0.hoblina-1 {
    position: relative;
    bottom: unset;
  }

  .hoblina-1::before, .hoblina-2::before, .hoblina-2::after, .hoblina-3::before, .hoblina-4::before, .hoblina-4::after, .hoblina-5::before {
      display: none;
  }
}

body.home.wp-singular article .overflow-left {
  gap: 0;
}

@media (max-width: 700px) {
  body.home.wp-singular article .overflow-left { grid-template-columns: 1fr; } /* mobile fix */
}

.wp-singular article .overflow-all {
  margin-left: calc(-1 * var(--content-offset));
  margin-right: calc(-1 * var(--content-offset));
}

.wp-singular article .overflow-all.team {
  height: 586px;
  margin-top: 4em;
  padding: 0 var(--content-offset);
}

.wp-singular article .full-width.specialista {
  margin-top: 100px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.wp-singular article .full-width.specialista p {
  max-width: 600px;
}

.wp-singular article .full-width.specialista img {
  max-width: 330px;
}

.wp-singular article .full-width.specialista .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow:nth-child(1) {
  flex-basis: 330px !important;
}

.materialy > .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow:nth-child(1), .has-border-right {
  border-right: 1px solid var(--whitish);
}

.wp-singular article .overflow-allga.team h2 {
  font-size: 50px;
  line-height: 105%;
}

.wp-singular article .overflow-all.team h2 strong {
  font-family: Graphie-Bold;
}

.wp-singular article .overflow-all.team p {
  max-width: 50%;
  font-size: 20px;
}

.home article {
  padding-top: 0;
}

.wp-singular article > div > h1, article > div > p {
  padding: 0 10px;
}

.wp-singular article > div > h2, .home .reference h2 {
  padding: 2em 10px 0 10px;
  font-size: 50px;
}

.wp-singular article .banner h2 {
  font-size: 40px;
}

.page:not(.home) article {
  margin-top: 1em;
  /*padding-bottom: 5em;*/ /*
  tohle mozna rozbije nejaky stylovani...radsi zatim takhle
  */
  padding-bottom: 0;
  padding-top: 55px;
}

.page h2.odsazeni {
  margin-top: 2em;
}

.uvod {
  margin-bottom: 4em;
  font-size: 20px;
  line-height: 150%;
  max-width: 90%;
  letter-spacing: 0%;
}

.frontpage-overflow {
    height: 50px;
    background: var(--white);
    z-index: 1000;
    position: relative;
}

.home .reference .carousel-container {
  color: var(--black);
  margin-bottom: 50px;
  height: 45vh;
}

.home .reference .carousel-container::before {
  height: 90%;
}

.home .reference .carousel-container .slide-content {
  left: 50%;
  width: 50%;
  position: absolute;
}

.home .reference .carousel-container .slide-content p {
  position: relative;
  top: 0;
}

.home .reference .carousel-container .slide-content h3 {
  font-size: 15px;
  color: var(--metal);
  display: flow-root;
  line-height: 1.35;
  padding-top: 20px;
}

.home .reference .carousel-container .slide-content h3 img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  float: left;
  object-fit: cover; 
  margin-right: 15px;
  margin-bottom: 5px;
  margin-top: -15px;
}

.home .reference .carousel-container .dot.active {
  background-color: var(--proto-bluish);
}

.home .reference .carousel-container .nav {
  right: initial;
  left: 50%;
}

.home .reference .carousel-container::after {
  width: calc(65% - 260px);
}

.home .reference .carousel-container::after, .home .reference .carousel-container::before {
  background-color: var(--white);
}

.logo-carousel-free {
  margin-bottom: 80px;
}

.logo-carousel-free .sp-lc-button-prev {
  top: 100px;
  left: 0;
  background: url(/wp-content/uploads/2025/10/ICON-ARROW-Left.png) !important;
  border: none !important;
}

.logo-carousel-free .sp-lc-button-prev i {
  display: none;
}

.logo-carousel-free .sp-lc-button-next {
  top: 100px;
  right: 0;
  background: url(/wp-content/uploads/2025/10/ICON-ARROW-Right.png) !important;
  border: none !important;
}

.logo-carousel-free .sp-lc-button-next i {
  display: none;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 1fr;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li {
  width: 320px;
  /*height: 445px;*/
  border: 1px solid var(--whitish);
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(1) {
  margin: 0 30px 30px 30px;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(2), .home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(4) {
  margin: 0;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:nth-child(3) {
  margin: 0 30px 0 30px;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-title {
  line-height: 1.15;
  min-height: calc(1.15em * 4);
  max-height: calc(1.15em * 4);
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-excerpt {
  line-height: 1.5;
  min-height: calc(1.5em * 8);
  max-height: calc(1.5em * 8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.home ul.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-excerpt {
  min-height: calc((1.5em * 8) + 320px);
  max-height: calc((1.5em * 8) + 320px);
}

.home .pojekty-popis > div {
  width: 350px;
}

.home .vice-projektu-tlacitko {
  padding-top: 40px;
}

h1, h2 {
    margin-top: 0;
}

#post-title,
.wp-singular article > div > h2,
.home .reference h2,
.wp-singular article .banner h2,
body.single div.full-width h2 {
  font-family: Graphie-Bold;
  font-weight: 700;
}

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

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 600px) {
    /*main {
        padding: 1rem 0;
    }*/

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    header, footer {
        text-align: center;
    }
}


.post-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-thumbnail::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(0deg, var(--transparent), var(--proto-dark)),linear-gradient(180deg, var(--banner-dark-00), var(--banner-dark-100));
  inset: 0;
}

.post-thumbnail .thumbnail-overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
}

/* nadpis stranky */
#post-header {
  margin: 0px auto;
  overflow: hidden;
  padding: 40px;
  max-width: var(--content-max);
  box-sizing: border-box;
}

#post-title {
  color: var(--wood);
  font-size: 65px;
  margin-bottom: 0;
}

p.page-subtitle {
  margin-top: 0;
  color: var(--white);
  font-family: Graphie-Bold;
  font-size: 40px;
}

/* drobeckova navigace */
.breadcrumb-light {
  color: var(--white);
  display: inline-block;
  border-bottom: 1px var(--white) solid;
  border-left: 1px var(--white) solid;
  padding: 10px 0 15px 20px;
}

.breadcrumb-light a {
  color: var(--white);
  font-size: 15px;
  font-family: Graphie-Bold;
  letter-spacing: 5%;
}

.breadcrumb-light .sipka {
  padding: 0 10px;
}

.carousel-container {
  padding: 40px;
  position: relative;
  color: var(--white);
  z-index: 2;
  width: 90%;
  margin: 80px auto 10vh auto;
  overflow: hidden;
  padding: 40px;
  box-sizing: border-box;
  max-width: var(--content-max);
  display: grid;
  height: 65vh;
}

.carousel-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 45%;
  background-color: var(--white);
}

.carousel-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 260px);
  height: 1px;
  background-color: var(--white);
}

.carousel-container p {
  position: absolute;
  top: 55%;
  width: 40em;
  margin-top: 0;
  font-size: 20px;
  line-height: 150%;
}


.reference .carousel-container p {
  width: unset;
}

.carousel-container h1 {
  /*font-size: 2.5em;
  line-height: 1.2;*/
  font-size: 65px;
  line-height: 100%;
  letter-spacing: 0%;
  margin: 0 0 20px -40px;
  /*width: min-content;
  display: table-caption;*/
  font-family: Graphie-Bold;
  font-weight: 700;
  max-width: 800px;
}

.orange {
  color: var(--wood);
}

.slide {
  opacity: 0;
  transform: translateY(20px);
  grid-area: 1 / 1;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

.nav {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse; /* Button on the right */
  bottom: 0;
  position: absolute;
  right: 0;
}

.next-btn {
  background: none;
  border: none;
  color: var(--wood);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 0; /* Square corners */
  transition: color 0.3s;
}

.next-btn:hover {
  color: var(--accent-soft);
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 48px;
  height: 7px;
  background-color: var(--white);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background-color: var(--wood);
}

button {
  background: none;
  border: none;
  color: var(--wood);
  font-size: 20px;
  cursor: pointer;
}

.tiles .wp-block-cover {
	margin: 15px;
  height: 566px;
  width: 330px;
  padding: 40px;
  cursor: pointer;
}

.tiles .wp-block-cover .wp-block-cover__inner-container {
  transform: translateY(calc(100% - var(--y-offset)));
  transition: transform 0.4s ease;
}

.tiles .wp-block-cover .wp-block-cover__inner-container h2 {
  transition: color 0.4s ease;
  line-height: var(--wp--preset--font-size--large) !important;
}

.tiles .wp-block-cover .wp-block-cover__background {
  transition: background-color 0.4s ease;
  transition: opacity 0.4s ease;
}

.tiles .wp-block-cover:hover .wp-block-cover__inner-container {
  transform: translateY(0);
}

.tiles .wp-block-cover:hover .wp-block-cover__inner-container h2 {
  color: var(--wood);
}

.tiles .wp-block-cover:hover .wp-block-cover__background {
  background-color: var(--proto-dark) !important;
  opacity: .7;
}

.tiles .btn-card-line {
  display: block;
  height: 1px;
  background: var(--white);
  margin-top: 50px;
  margin-left: -40px;
  width: calc(100% + 20px);
  width: 100%;
  position: absolute;
}

.wp-block-group.banner {
  position:relative;
	margin-top: 15px;
	background: radial-gradient(circle 42rem at 20% 50%, var(--white-00) 20%, var(--white-00) 100%),
  url(/wp-content/uploads/2025/08/vector_transparent.png) no-repeat,
            radial-gradient(circle 42rem at 20% 50%, var(--proto-bluish) 0%,var(--proto-dark) 100%) !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: cover, cover, cover !important;
  background-position: center, center, center !important;
  transition: .75s ease background;
}

/* text in banner above hover effect */
.wp-singular article .banner h2,
.wp-block-group.banner .banner-text p,
.wp-block-group.banner .wp-block-buttons,
:is(body.blog, body.archive) #blog-banner div.banner-text h2 {
  z-index: 50;
}

.wp-block-group.banner .banner-text {
	grid-column: span 2; /* roztazeni textu v baneru na 2 sloupce ze 3 */
	
	/* center alignment */
	display: flex;
	justify-content: center;
	text-align: left;
}

.wp-block-group.banner .banner-text p {
	max-width: 75%;
	margin: 10px 0;
}

.wp-block-group.banner figure {
	display: flex;
  justify-content: right;
  padding: 40px 20px 0 0;
}

.wp-block-group.banner .head-xfade {
  position: relative;
  aspect-ratio: 518 / 553;
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.wp-block-group.banner .head-xfade .wp-block-group__inner-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.wp-block-group.banner .head-xfade .wp-block-group__inner-container .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transition: opacity .5s ease;        /* smooth fade */
  will-change: opacity, transform;
  padding: 0;
}

.wp-block-group.banner .head-xfade .layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.wp-block-group.banner .head-xfade .wp-block-group__inner-container .model{ opacity: 1; }
.wp-block-group.banner .head-xfade .wp-block-group__inner-container .photo{
  opacity: 0;
  pointer-events: none;
}

.wp-block-group.banner::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle 42rem at 20% 50%, var(--proto-bluish) 20%, var(--proto-dark) 100%),
    url(/wp-content/uploads/2025/08/vector_transparent.png) no-repeat,
    radial-gradient(circle 42rem at 20% 50%, var(--proto-bluish) 0%, var(--proto-dark) 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-position: center, center, center;

  /* soft fade: approx 1/3 of the banner */
  mask-image: linear-gradient(
    to right,
    var(--mask-opaque) 0%,
    var(--mask-opaque) 30%,
    var(--mask-clear) 45%
  );

  -webkit-mask-image: linear-gradient(
    to right,
    var(--mask-opaque) 0%,
    var(--mask-opaque) 30%,
    var(--mask-clear) 45%
  );

  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.wp-block-group.banner:hover::before,
.wp-block-group.banner:focus-within::before {
  opacity: 1;
}

.wp-block-group.banner:hover .head-xfade .photo,
.wp-block-group.banner:focus-within .head-xfade .photo{ opacity: .9; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .wp-block-group.banner .head-xfade .photo{ transition: none; }
}


.wp-block-button__link.wp-element-button, .wp-block-buttons.post-nav__next .wp-block-button a {
  background-color: var(--wood);
  border-radius: 0;
  color: var(--proto-bluish);
  font-family: Graphie-SemiBold;
  font-weight: 600;
  letter-spacing: 3%;
  display: inline-flex;
  align-items: center;  /* align text and arrow vertically */
  gap: 0.5em;            /* spacing between text and arrow */
  transition: .3s ease all;
  font-size: 18px;
  text-transform: uppercase;
}

/* post navigation fix */
.wp-block-buttons.post-nav__next .wp-block-button a {
  box-shadow: none;
  text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
  text-transform: uppercase;
}

.wp-block-button__link.wp-element-button:hover, .wp-block-buttons.post-nav__next .wp-block-button a:hover {
  background-color: var(--proto-bluish);
  color: var(--white);
}

.wp-block-button__link.wp-element-button:active, .wp-block-buttons.post-nav__next .wp-block-button a:active {
  background-color: var(--proto-dark);
  color: var(--white);
}

.wp-block-button__link.wp-element-button svg {
    display: block;        /* remove inline SVG baseline gap */
  width: 1em;            /* same scale as text */
  height: 1em;
}

/* material color samples */
.material-colors {
  margin: 30px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 35px;
}

.material-colors .wp-block-button__link.wp-element-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: default;
  font-size: 0;
  transition: transform 0.3s ease;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: transparent;
  position: relative;
}

/* outer ring */
.material-colors .wp-block-button:not(.no-ring) .wp-block-button__link.wp-element-button::after,
#povrchy .wp-block-image:not(.no-ring)::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--whitish);
  background: transparent;
  pointer-events: none;
  box-sizing: border-box;
}

/* Gutenberg opt-out for ring decoration */
.material-colors .wp-block-button.no-ring .wp-block-button__link.wp-element-button::after,
#povrchy .wp-block-image.no-ring::after {
  content: none;
}

/* hide arrows in color samples */
.material-colors .wp-block-button__link.wp-element-button svg {
  display: none;
}

.is-style-outline .wp-block-button__link.wp-element-button {
  background-color: unset;
  color: var(--wood);
  border: 0;
  padding-left: 0;
  font-weight: 400;
}

/* material blocks */

.wp-block-columns.technologie {
  border: 1px solid var(--whitish);
  margin: 2em 0;
  min-height: 385px;
}

.wp-block-columns.technologie,
.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li,
:is(body.blog, body.archive) .posts-grid article,
:is(body.blog, body.archive) #blog-banner {
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}


.wp-block-columns.technologie:hover,
.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li:hover,
:is(body.blog, body.archive) .posts-grid article:hover,
:is(body.blog, body.archive) #blog-banner:hover {
  box-shadow: 0 4px 8px var(--shadow-10);
}

.wp-block-columns.technologie > .wp-block-column:first-child {
  display: flex;
}

.wp-block-columns.technologie > .wp-block-column:first-child .wp-block-image {
  margin: 0;
  flex: 1;
  display: flex;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wp-block-columns.technologie > .wp-block-column:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill column height, crop overflow */
  display: block;
  object-position: center;
}

.wp-block-columns.technologie .wp-block-column {
  position: relative;
}

.wp-block-columns.technologie .wp-block-group .wp-block-columns {
  height: calc(100% - 89px);
  width: 100%;
}

.wp-block-columns.technologie .wp-block-group .wp-block-columns .wp-block-column {
  width: 50%;
}

.wp-block-columns.technologie .wp-block-group .wp-block-columns .wp-block-column p {
  line-height: 150%;
}

.wp-block-group.technologie > div {
  padding: 2em;
  position: relative;
}

.wp-block-group.technologie > div > h2 {
  font-size: 40px;
  padding-bottom: 20px;
  font-weight: 700;
}

.wp-block-group.technologie > div > p {
  font-size: 20px;
}

.wp-block-group.technologie > div .wp-block-buttons {
  bottom: 2em;
  position: absolute;
}

.box-text .features {
  width: 100%;
}

.wp-block-columns.technologie .wp-block-list, .wp-block-list.laser-list, .wp-block-list.contact-list, .wp-block-list.material-vhodny, .wp-block-list.design {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  padding-left: 0; /* was 1.5em */
  color: var(--ground);
  letter-spacing: 5%;
  text-transform: uppercase;
  font-size: 15px;
}

.wp-block-columns.technologie .wp-block-list li, .wp-block-list.laser-list li, .wp-block-list.contact-list li, .wp-block-list.material-vhodny li, .wp-block-list.design li {
  padding-bottom: 15px;
}

.wp-block-columns.technologie .wp-block-list li::before, .wp-block-list.laser-list li::before, .wp-block-list.contact-list li::before, .wp-block-list.material-vhodny li::before, .wp-block-list.design li::before {
  content: "✔"; /* or "\2713" */
  margin-right: 0.5em;
}

/* surfaces on material page */
#povrchy .wp-block-image {
  width: 133px;
  margin: 0 auto;
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
}

#povrchy .wp-block-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

#povrchy .wp-block-image.enlarged {
  width: 180px;
  height: 180px;
}

#povrchy .wp-block-image:hover {
  transform: scale(2); 
}

/* material properties table styling */
.vlastnosti-materialu.wp-block-table td, .vlastnosti-materialu.wp-block-table th {
  border: none;
  padding: .5em 1em;
}

.specifikace-vytisku.wp-block-table td {
  border: none;
}

.vlastnosti-materialu.wp-block-table th:nth-child(1), .vlastnosti-materialu.wp-block-table td:nth-child(1) {
  width: 30%;
  text-transform: uppercase;
}

.specifikace-vytisku.wp-block-table td:nth-child(1) {
  text-transform: uppercase;
  width: 50%;
}

.vlastnosti-materialu.wp-block-table td:nth-child(n+2), .specifikace-vytisku.wp-block-table td:nth-child(n+2) {
  color: var(--proto-bluish);
  font-family: Graphie-Bold;
  text-align: right;
}

.vlastnosti-materialu.wp-block-table th:nth-child(n+2), .specifikace-vytisku.wp-block-table th:nth-child(n+2) {
  text-align: right;
}

.vlastnosti-materialu.wp-block-table tbody tr, .specifikace-vytisku.wp-block-table tbody tr {
  border-bottom: 1px solid var(--whitish);
}

.vlastnosti-materialu table thead {
  text-align: left;
  border: none;
  background: var(--whitish-light);
  height: 100px;
  font-family: Graphie-Bold;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 700;
}


/* suitable materials list - material page */
.wp-block-list.material-vhodny {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  letter-spacing: 5%;
  text-transform: uppercase;
}

.wp-block-list.material-vhodny li {
  padding-bottom: 25px;
  font-size: 20px;
}

/* surfaces on technology page */
.surfaces-group {
  margin: 0 100px 0 20px;
}

.surfaces {
  height: 416px;
  margin-top: -45px;
}

.surfaces > figure.wp-block-image.size-full {
  margin: 0;
  width: 482px;
  height: 416px;
  aspect-ratio: 482 / 416;
  max-width: 100%;
  overflow: hidden;
}

.surfaces > figure.wp-block-image.size-full img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.surfaces:first-child {
  margin-top: 0;
}

.surfaces p {
  padding-left: 20px;
}

.surfaces p strong {
  font-family: Graphie-Bold;
}

.surfaces:nth-of-type(2n) > p {
  margin-left: auto;
}

.surfaces:nth-of-type(2n) > figure {
  padding-left: 20px;
}

.materials-sidebar .wp-block-columns {
  height: 100px;
  border-bottom: 1px solid var(--whitish);
  align-items: center;
  width: 100%;
  column-gap: 16px;
}

.materials-sidebar .wp-block-columns:last-child {
  border-bottom: none;
}

.materials-sidebar .wp-block-columns .material-thumb {
  flex: 0 0 90px !important;
}

.materials-sidebar .material-thumb .wp-block-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--whitish);
  display: flex;
  align-items: center;
  justify-content: center;
}

.materials-sidebar .material-thumb .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.materials-sidebar .wp-block-column.material-name {
  flex: 1 1 0 !important;
  flex-basis: 0 !important;
  flex-grow: 1 !important;
  min-width: 0;
}

.materials-sidebar .wp-block-column.material-name p {
  margin: 0;
  line-height: 75px;
}

.materials-sidebar .wp-block-column.material-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 40px !important;
  flex-basis: 40px !important;
  flex-grow: 0 !important;
  width: 40px;
  max-width: 40px;
}

.materials-sidebar .wp-block-column.material-arrow img {
  display: block;
}

.materials-sidebar .wp-block-columns {
  cursor: pointer;
}

.video-group {
  position: relative;
  padding-top: 130px;
  padding-bottom: 100px;
}

.video-group .wp-block-video.technologie-video video {
  height: 494px;
  width: 100%;
  display: block;
}

  .video-group .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  cursor: pointer;
  font-size: 50px;
}

.video-group .video-overlay::after {
  content: var(--proto-play-video-label);
  font-size: 20px;
  margin-top: 10px;
  background-image: url("/wp-content/uploads/2026/01/play.png");
  background-size: contain;
  background-repeat: no-repeat;
  padding-left: 36px;
  text-decoration: underline;
}

/* posts list on individual pages (exclude home page custom layout) */
body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid li {
  display: block;
  text-align: left;
  border: 1px solid var(--whitish);
  margin-right: 0 !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__featured-image img,
:is(body.blog, body.archive) .posts-grid article img.wp-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;   /* square */
  object-fit: cover;     /* image fills box, crops overflow */
  display: block;
}

.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-title,
:is(body.blog, body.archive) .posts-grid article h2 {
  color: var(--proto-dark);
  font-family: Graphie-Bold;
  text-decoration: none;
  font-size: 22px;
  display: block;
  margin: 20px 15px 12px;
  padding: 0;
}
/*
.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-excerpt {
  text-transform: uppercase;
}*/

.wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-excerpt,
:is(body.blog, body.archive) .posts-grid article div,
:is(body.blog, body.archive) .posts-grid article .readmore {
  color: var(--metal);
  font-family: Graphie;
  font-size: 15px;
  margin: 15px;
}

/* latest posts list */
.wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li {
  text-align: left;
  border: 1px solid var(--whitish);
  width: 350px;
  margin-bottom: 50px;
}

.wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li .wp-block-latest-posts__featured-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li .wp-block-latest-posts__post-title {
  color: var(--proto-dark);
  font-family: Graphie-Bold;
  text-decoration: none;
  font-size: 30px;
  display: block;
  margin: 20px;
}

.wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li .wp-block-latest-posts__post-excerpt {
  text-transform: uppercase;
}

.wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li .wp-block-latest-posts__post-excerpt {
  color: var(--metal);
  font-family: Graphie;
  font-size: 15px;
  margin: 20px;
}

:is(body.blog, body.archive) .top-level {
  background: var(--white);
  margin-top: 1em;
  padding-bottom: 5em;
  padding-top: 50px;
  font-size: 20px;
}

/* blog posts list */
:is(body.blog, body.archive) .posts-grid {
  display: grid;
  gap: 24px;
  margin-top: 50px;
  padding-bottom: 5em;
  justify-items: center;
  align-items: center;
}

:is(body.blog, body.archive) .posts-grid article,
:is(body.blog, body.archive) #blog-banner {
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border: 1px solid var(--whitish);
  opacity: 1;
  transform: none;
  width: 100%;
  max-width: 320px;
  height: 642px;
  position: relative;
}


:is(body.blog, body.archive) .posts-grid article.will-fade-in {
  transition: opacity .75s ease, transform .75s ease;
}

:is(body.blog, body.archive) .posts-grid article.is-new {
  opacity: 0;
  transform: translateY(50px);
}

:is(body.blog, body.archive) .posts-grid article img.wp-post-image {
  width: 100%;
  height: 250px;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

:is(body.blog, body.archive) .posts-grid article h2 {
  line-height: 1.15;
  min-height: calc(1.15em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(body.blog, body.archive) .posts-grid article .post-card__meta {
  margin: 0 20px 12px;
}

:is(body.blog, body.archive) .posts-grid article > div:not(.post-card__meta) {
  margin: 0 20px;
}

:is(body.blog, body.archive) .posts-grid article > div:not(.post-card__meta) p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(body.blog, body.archive) .posts-grid article .readmore {
  padding: 0;
  text-decoration: none;
  text-transform: none;
  position: static;
  margin: 16px 20px 20px;
  margin-top: auto;
  display: inline-block;
  font-size: 18px;
  font-weight: 350;
}

/* wrapper + links */
.wp-block-pullquote{
  position:relative;
  margin:40px 0;
  padding:28px 0;
  text-align:center;
  border:0;
}
.wp-block-pullquote::before,
.wp-block-pullquote::after{
  content:"";
  position:absolute; left:30%; right:30%;
  height:1px; background:var(--divider-black-12);
}
.wp-block-pullquote::before{ top:0; }
.wp-block-pullquote::after { bottom:0; }

/* quote text */
.wp-block-pullquote blockquote{
  margin:16px auto; max-width:900px;
}
.wp-block-pullquote blockquote p{
  position:relative;
  padding:0 56px;                 /* spacing for quotation marks */
  font-style:italic;
  font-size:clamp(18px,2.1vw,20px);
  line-height:1.7;
  color:var(--metal);
}

.wp-block-pullquote blockquote p:before {
  content: open-quote;
  padding-right: 10px;
}

.wp-block-pullquote blockquote p:after {
  content: close-quote;
  padding-left: 10px;
}

.wp-block-pullquote blockquote p:before, .wp-block-pullquote blockquote p:after {
  font-size:40px;
  line-height: .4;
  font-weight: bold;
  color: var(--wood);
}

/* author in <cite> (name + role on next line) */
.wp-block-pullquote cite{
  display:block; margin-top:14px; font-style:normal;
  font-weight:400; text-transform:uppercase; letter-spacing:.06em;
  color:var(--metal);
  font-size: 15px;
}

/* mobile */
@media (max-width:680px){
  .wp-block-pullquote blockquote p{ padding:0 40px; }
}
@media (prefers-reduced-motion: reduce){
  .wp-block-pullquote *{ transition:none !important; }
}

/* YouTube embed responsive */
.wp-block-embed-youtube.wp-embed-aspect-16-9 iframe {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  aspect-ratio: 16 / 9;
}


body.single div.full-width h2 {
  padding: 2em 10px 0 10px;
  font-size: 40px;
}

body.single div.full-width figure.wp-block-gallery {
  margin: 50px 0 60px 0;
}

.author-box {
  display: flex;
  margin: 68px 0;
}

.author-box .avatar img {
  border-radius: 50%;
  width: 141px;
  height: 141px;
}

.author-box .author-info .bio p {
  margin: 0;
  max-width: 700px;
}

.author-box .author-info {
  margin-left: 24px;
}

.author-box .author-info .name {
  margin: 25px 0 0 0;
}

.author-box .author-info .nick {
  margin: 0;
}

.author-box .author-info .name, .author-box .author-info .nick {
  font-weight: 400;
  font-size: 15px;
  color: var(--metal);
}

.link-all-posts {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--proto-bluish);
  position: relative;
  font-size: 15px;
  line-height: 62px;
  margin-left: 40px;
}

/* icon */
.link-all-posts svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  transition: transform .2s ease, opacity .2s ease;
  opacity: .9;
}

.post-navigation {
  display: flex;
  margin: 68px 0 0;
}

body.wp-singular.single-post article {
  padding-bottom: 90px;
}

body.wp-singular.single-post article div.wp-block-column:last-child {
  border-left: 1px solid var(--whitish);
  padding-left: 50px;
}

/* load more posts button */
.load-more-wrap {
  text-align: center;
}

:is(body.blog, body.archive) .blog-pagination {
  margin: 0 auto 24px;
  text-align: center;
}

:is(body.blog, body.archive) .blog-pagination > ul.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--whitish);
  border-radius: 999px;
  margin: 0;
  padding: 8px 12px;
}

:is(body.blog, body.archive) .blog-pagination > ul.page-numbers li {
  display: inline-flex;
  margin: 0;
}

:is(body.blog, body.archive) .blog-pagination .page-numbers a,
:is(body.blog, body.archive) .blog-pagination .page-numbers span {
  color: var(--proto-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  text-decoration: none;
}

:is(body.blog, body.archive) .blog-pagination .page-numbers.current {
  background: var(--proto-bluish);
  border-radius: 999px;
  color: var(--white);
}

/* banner on blog page */
:is(body.blog, body.archive) .wp-block-group.banner {
  margin-top: 0;
}

:is(body.blog, body.archive) #blog-banner {
  width: 100%;
  max-width: 320px;
}

:is(body.blog, body.archive) #blog-banner div.banner-text {
  font-size: 15px;
  margin: 0 10px 30px 30px;
}

:is(body.blog, body.archive) #blog-banner div.banner-text h2 {
  font-size: 40px;
  font-weight: 400;
  font-family: Graphie-Bold;
}

:is(body.blog, body.archive) .wp-block-group.banner .head-xfade {
  height: 270px;
  margin: 0;
  width: 100%;
}

/*body.blog #blog-banner .wp-block-group.banner figure {
  padding: 25px 20px 0 0;
}*/

:is(body.blog, body.archive) #blog-banner img {
  /*width: 124px;*/
  object-fit: contain;
  display: block;
  max-height: 250px;
  margin: 0;
  object-position: left center;
  width: 100%;
}

:is(body.blog, body.archive) .wp-block-group.banner .head-xfade .wp-block-group__inner-container {
  height: 280px;
}

:is(body.blog, body.archive) #blog-banner .wp-block-group.banner .banner-text p {
  margin: 8px;
}

:is(body.blog, body.archive) .posts-grid article .post-card__meta {
  margin: 0 20px;
}

:is(body.blog, body.archive) .posts-grid article > div > p {
  padding: 0;
  margin-top: 0;
}

.meta-reading-time{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-size: 15px;
  color: var(--proto-bluish);
  font-family: Graphie-Bold;
}

.height-100 {
  height: 100% !important;
}

.margin-bottom-35 {
  margin-bottom: 35px !important;
}

.margin-bottom-50 {
  margin-bottom: 50px !important;
}

.margin-bottom-80 {
  margin-bottom: 80px !important;
}

.margin-bottom-90 {
  margin-bottom: 90px !important;
}

.margin-bottom-115 {
  margin-bottom: 115px !important;
}

.margin-bottom-150 {
  margin-bottom: 150px !important;
}

.margin-bottom-220 {
  margin-bottom: 220px !important;
}

.padding-bottom-100 {
  padding-bottom: 100px !important;
}

.padding-bottom-190 {
  padding-bottom: 190px !important;
}

.padding-left-40 {
  padding-left: 40px !important;
}

.no-bottom-margin {
  margin-bottom: 0 !important;
}

.position-relative {
  position: relative;
}

.bottom-0 {
  bottom: 0;
  position: absolute;
  margin-bottom: 0 !important;
}

.margin-top-30 {
  margin-top: 30px !important;
}

.margin-top-50 {
  margin-top: 50px !important;
}

.margin-top-75 {
  margin-top: 75px !important;
}

.margin-top-95 {
  margin-top: 95px !important;
}

.margin-left-150 {
  margin-left: 150px !important;
}

.margin-right-150 {
  margin-right: 150px !important;
}

.contact-page-columns .margin-left-150 {
  margin-left: 150px;
}

.contact-page-columns .margin-right-150 {
  margin-right: 150px;
}

.padding-top-50 {
  padding-top: 50px !important;
}

.grid-gap-0 {
  gap: 0;
}

/* CNC shavings */

.hoblina-2, .hoblina-3, .hoblina-4, .hoblina-5 {
  position: relative;
}

.hoblina-2 {
  z-index: 1;
}

.hoblina-1::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/Untitled-2-1.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: -250px;
}

.hoblina-2::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/AdobeStock_67616431-2.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: -55px;
  left: 25%;
}

.hoblina-2::after {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/AdobeStock_67616431-1.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 25;
  top: 85%;
  right: 5%;
}

.hoblina-3::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/AdobeStock_67616431-3.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: 350px;
  left: 200px;
}

.hoblina-4::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/02.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 150px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: 25px;
  right: -12%;
}

.hoblina-4::after {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/02.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 110px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: -125px;
  left: 25%;
}
/*
.hoblina-5::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/0e8196366e63ba12dec8c2adcd587a9dac6fe1d6.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 50px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  top: -175px;
  left: 30%;
  transform: rotate(-45deg);
  transform-origin: center center;
}*/

.grid-fixed-size .wp-block-group {
  width: 550px;
  /*height: 336px;*/
  justify-content: center;
}

.laser-label {
  background: var(--ground);
  color: var(--white);
  font-family: Graphie-ExtraBold;
  line-height: 110%;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 25px !important;
}

.wp-block-list.laser-list {
  margin-top: 20px;
}

.laser-number {
  font-size: 90px;
  font-family: Graphie-Bold;;
}

.laser-image, .contact-image {
  position: relative;
  overflow: hidden;
}

.laser-image img, .contact-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laser-image::after, .contact-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--proto-dark-00) 0%, var(--proto-dark-26) 100%), var(--proto-dark-09);
  pointer-events: none;
}

.page .printing-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.page .printing-intro > div {
  display: flex;
}

.page .printing-intro .printing-intro-text {
  flex: 1 1 50%;
}

.page .printing-intro .printer {
  flex: 0 1 40%;
  margin-bottom: -170px;
  margin-left: auto;
  z-index: 99;
}

.page .printing-intro .printing-intro-text p {
  margin-bottom: 40px;
}

.wp-block-image.size-large.imac {
  width: 80%;
  margin: 65px auto 0 auto;
}

.thinner-block {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.wp-singular article .full-width.thinner {
  padding-left: calc((100vw - 1100px) / 2);
  padding-right: calc((100vw - 1100px) / 2);
}

/* 3D printer on CNC */
.mazak {
  display: block;
  width: 140%;
  max-width: none;
  transform: translateX(-15%);
  filter: drop-shadow(0 30px 45px var(--shadow-25));
}

.mazak-box > figure {
  position: relative;
  overflow: visible;
  margin-top: -60px;
}

.box-text {
  padding: 40px;
}

.laser-grid-fixed-size .box-text, .contact-grid-fixed-size .box-text {
  padding-right: 35px;
}

.laser-grid-fixed-size .box-text.small-padding, .contact-grid-fixed-size .box-text.small-padding {
  padding-left: 5px;
  padding-right: 5px;
}

footer .footer-logos {
  display: flex;
  align-items: center;
}

footer .social-media-link {
  margin-left: auto;       /* push social icons to the right */
  display: flex;
  gap: 16px;               /* spacing between FB and IG */
}

footer .social-media-link svg {
  height: 64px;
  width: auto;
  color: var(--white);
}

.vyrobni-technologie.uvod, .vyroba-title {
  font-size: 25px;
  line-height: 150%;
  margin-left: 50px;
  max-width: 80%;
}

.vyrobni-technologie.uvod::before, .vyroba-title::before {
  content: "";
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/ICON-Settings.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  aspect-ratio: 1 / 4;
  pointer-events: none;
  z-index: 0;
  margin-top: 5px;
  margin-left: -60px;
}

.medailonek.wp-block-cover .wp-block-cover__inner-container p {
  max-width: 800px;
}

.hidden {
  display: none !important;
}

/* manufacturing header h2 */
.technology-header {
  font-size: 48px;
}

.wp-block-separator {
  border-top: 1px solid var(--whitish);
}

div.wpforms-container-full {
  width: 100%;
  padding-right: 20px;
}

/* blog layout */
@media (min-width: 1440px) {
  :is(body.blog, body.archive) .posts-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1440px) and (min-width: 1000px) {
  :is(body.blog, body.archive) .posts-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) and (min-width: 650px) {
  :is(body.blog, body.archive) .posts-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  :is(body.blog, body.archive) .posts-grid {
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
  body:not(.home) .wp-block-latest-posts.wp-block-latest-posts__list.is-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .wp-block-latest-posts.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-title,
  .wp-block-latest-posts.wp-block-latest-posts__list:not(.is-grid) li .wp-block-latest-posts__post-title,
  :is(body.blog, body.archive) .posts-grid article h2 {
    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #post-title {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 50px;
  }
}
