.section.section-header.sub .section-header.ref-header {
    min-height: 70rem;
}

.item-reference .image {
    overflow: hidden
}

.item-reference .image a {
    display: block
}

.item-reference .image img {
    display: block;
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    transition: all 0.4s
}

@media (max-width: 1100px) {
    .item-reference .image img {
        min-height:30rem
    }
}

.item-reference .image:hover img {
    transform: scale(1.06, 1.06);
    opacity: 0.8
}

.item-reference-2 {
    display: flex;
    justify-content: space-between
}

@media (max-width: 600px) {
    .item-reference-2 {
        display:block
    }
}

.item-reference-2 .image {
    flex-basis: 60%;
    overflow: hidden
}

.item-reference-2 .image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50rem;
    -o-object-fit: cover;
    object-fit: cover;
    transition: all 0.4s
}

.item-reference-2 .image:hover img {
    transform: scale(1.05, 1.05);
    opacity: 0.8
}

.item-reference-2 .content {
    flex-basis: 40%;
    box-sizing: border-box;
    padding: 0 4rem;
    display: flex;
    align-items: center
}

@media (max-width: 600px) {
    .item-reference-2 .content {
        padding:3rem 0 0 0
    }
}

.item-reference-2 .content .inner {
    max-width: 25rem;
    margin: 0 auto
}

@media (max-width: 600px) {
    .item-reference-2 .content .inner {
        max-width:none;
        margin: 0
    }
}

.item-reference-2 .content .inner .date {
    padding-bottom: 1rem
}

.item-reference-2 .content .inner .more {
    padding-top: 2.8rem
}

.list-references-2 li:nth-child(even) .item-reference-2 .image {
    order: 2
}

.list-references-2 li:nth-child(even) .item-reference-2 .content {
    order: 1
}

.popup-gallery {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0,0,0,0.9);
    height: 0;
    opacity: 0;
    transition: height 0ms 300ms, opacity 300ms 0ms;
    z-index: 10000
}

.popup-gallery.open {
    height: 100%;
    opacity: 1;
    transition: height 0ms 0ms, opacity 300ms 0ms
}

.popup-gallery .loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    color: #c8c8c8
}

.popup-gallery.ready .loading {
    display: none
}

.popup-gallery .loading:before {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -8px;
    content: 'Načítavam...';
    font-size: 14px;
    line-height: 18px
}

.button-close {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 350;
  top: 9vh;
  right: 15vw;
  margin-left: auto;
}

.button-close:before,.button-close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: '';
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-align: center;
    cursor: pointer
}

.button-close:before {
    transform: translate(-50%, -50%) rotate(45deg)
}

.button-close:after {
    transform: translate(-50%, -50%) rotate(-45deg)
}

.popup-gallery .button-close:before,.popup-gallery .button-close:after {
    width: 40px;
    height: 2px;
    opacity: 1;
    background-color: #fff;
}

.popup-gallery .slider {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    right: 0;
    transform: translateY(-50%)
}

.popup-gallery.ready .slider {
    display: block
}

.popup-gallery .slider img {
    display: block;
    vertical-align: middle;
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.popup-gallery .slick-arrow {
    position: absolute;
    top: 0;
    margin-top: -6vh;
    width: 50px;
    height: 80px;
    cursor: pointer;
    border: 0;
    background: none;
    z-index: 350;
    color: transparent
}

.popup-gallery .slick-arrow.slick-prev {
    left: 13vw;
}

.popup-gallery .slick-arrow.slick-next {
    left: calc(13vw + 13rem);
}

.popup-gallery .slick-arrow:before {
    width: 8.2rem;
    height: 2.4rem;
    border: 0;
    cursor: pointer;
    background: url(/wp-content/themes/promont/assets/img/icons/arrow-thin.svg);
    background-size: 5.2rem auto;
  background-repeat: no-repeat;
    transform-origin: 0 100%;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 60%;
    display: block;
    opacity: 0.71;
    content: '';
    box-sizing: border-box;
  filter: invert(1);
}

.popup-gallery .slick-arrow:after {
  display: none;
}

.popup-gallery .slick-arrow.slick-next {
    transform: scaleX(-1)
}

.popup-gallery .slick-arrow:hover:before {
    opacity: 1
}

.popup-gallery .slick-track {
    display: flex
}

.popup-gallery .slick-track .slick-slide {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: center
}


.section-number.invert.ref-header,
.categories-filter {
    margin-top: 5rem !important;
}

.categories-filter li a {
    color: #fff;
}

.categories-filter li.active a {
    color: #fff;
    font-weight: bold;
}

.section.section-header.sub .section-header {
    color: #fff;
    min-height: 75rem;
    padding-top: 9rem;
    width: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

section.section-references-2 {
    margin-top: -25rem;
    display: block;
    position: relative;
    z-index: 2;
  margin-bottom: 100px;
}

.section.section-header.sub {
    z-index: 1;
}

.references {
   width: 55vw;
    position: relative;
    z-index: 2;
    margin-right: 10vw;
    margin-left: auto;
}

.references ul {
width: 55vw;
display: block;
}

.references ul li {
  margin: 0 10px;
  background: #fff;
}

.references ul li img {
height: 300px !important;
}

.references ul li:nth-child(8n+3) img,
.references ul li:nth-child(8n+7) img {
height: 660px !important;
}

.references ul li:nth-child(8n+1) { 
 display: inline-block;
    width: calc(50% - 20px);
    float: left;
}

.references ul li:nth-child(8n+2) { 
 display: inline-block;
    width: calc(50% - 20px);
    float: left; 
}

.references ul li:nth-child(8n+3) { 
   display: inline-block;
    width: calc(50% - 20px);
    float: left;
}

.references ul li:nth-child(8n+4) {
  display: inline-block;
    width: calc(50% - 20px);
    float: left;
}

.references ul li:nth-child(8n+5) { 
  display: inline-block;
    width: calc(50% - 20px);
    float: left;
}

.references ul li:nth-child(8n+6) { 
  display: inline-block;
    width: calc(50% - 20px);
    float: left; 
}

.references ul li:nth-child(8n+7) { 
   display: inline-block;
   width: calc(50% - 20px);
    float: right !important;
}

.references ul li:nth-child(8n+8) { 
  display: inline-block;
    width: calc(50% - 20px);
    float: left; 
}

.item-reference .content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 15px 0px 15px;
  height: 60px;
}

.item-reference .content h3 {
  font-size: 18px;
  margin: 0;
}

.item-reference .content .value.lokalita {
  font-size: 16px;
  padding-left: 20px;
}

.popup-gallery .slider figure {
    max-width: 70vw;
    max-height: 70vh;
}

.popup-gallery .slider img {
    width: 100%;
    height: 100%
}


.categories-filter li {
    position: relative;
    padding-bottom: 15px;
}

.categories-filter li a {
    color: #fff;
    position: relative;
    padding-left: 30px;
}

.categories-filter li a:before {
    content: '';
    width: 15px;
    height: 15px;
    background: #fff;
    position: absolute;
    top: 4px;
    left: 0;
    border-radius: 3px;
    opacity: 0.4;
    transition: all 0.4s
}

.categories-filter li a:after {
    content: '';
    width: 15px;
    height: 15px;
    background: url(/wp-content/uploads/2022/04/icon-check.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 5px;
    left: 0;
    border-radius: 3px;
    opacity: 0;
    transition: all 0.4s
}

.categories-filter li.current-menu-item a:before,
.categories-filter li:hover a:before {
    background: #1c8eff;
}

.categories-filter li.current-menu-item a:after,
.categories-filter li:hover a:after {
    opacity: 1;
}