/* Flex boxes  */
html:has(dialog:open ) {
  overflow: hidden;
}
.flex-twocol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.flex-twocol > div {
  width: 50%;
}
@media (min-width: 1200px) {
  dialog .popup-holder{
    display: block;
    height: 100%;
    padding: unset;
    display: block;
    width: 100%;
    overflow: auto;
  }
  dialog .popup-holder .container {
    padding: unset;
    width: 100%;
  }
}

@media (max-width:880px) {
  .flex-twocol > div {
    width: 100%;
  }
  dialog .popup-holder{
    display: block;
    height: 100%;
    padding: unset;
    display: block;
    width: 100%;
  }
  dialog .popup-holder .container {
    padding: unset;
    width: 100%;
  }
}
.jcf-select-jcf-hidden + span{
  display: none !important;
}
.contacts-form button{
  width: 100% !important;
}
.form-label{
  width: 100% !important;
}

.main-hstack{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.stack-card {
  height: -webkit-fill-available;
  width: 200px;
}

.disabled *{
  -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    opacity: 0.5 !important;
}
input:disabled {
  border: none;
  pointer-events: none;
  background-color: var(--lightgrey);
  color: var(--darkgrey);
}
button:disabled {
  border: none;
  pointer-events: none;
  background-color: var(--lightgrey);
  color: var(--darkgrey);
}
textarea:disabled {
  border: none;
  pointer-events: none;
  background-color: var(--lightgrey);
  color: var(--darkgrey);
}
select:disabled {
  border: none;
  pointer-events: none;
  background-color: var(--lightgrey);
  color: var(--darkgrey);
}

.galleries .no-touch .services-card:hover .photo:after {
    opacity: unset !important; 
}
.plainslider:after{
  background-color: unset !important;
}

.video-popup-holder{
  display: grid;
  justify-content: center;
}

.popup-holder .video-popup-holder {
    width: 100%;
    position: relative;
    z-index: 20;
    aspect-ratio: 16 / 9;
    overflow: auto;
    height: 90vh;
    justify-content: center;
    align-content: center;
}

/* Gallery */
.card-gallery *{
  font-family: Nunito, sans-serif;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
}

.card-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.card-gallery img {
  display: unset;
  vertical-align: unset;
  max-width: unset;
  height: unset;
  cursor: pointer;
  object-fit: cover;
}

.card-gallery img:hover {
  transform: scale(1.02);
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
  transition-delay: 0s;
  transition-property: all;
}

.card-gallery .hdImg {
  display: none;
}

.card-gallery .btn-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.card-gallery .image-card:hover .btn-box {
  display: block;
}

.card-gallery .card-container {
/*  width: 1000px;*/
/*  margin-top: 100px;*/
  margin-right: auto;
  margin-bottom: 50px;
  margin-left: auto;
}

.card-gallery .cards {
  background-image: initial;
  background-position-x: initial;
  background-position-y: initial;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.card-gallery .image-card {
  position: relative;
  background-image: initial;
  background-position-x: initial;
  background-position-y: initial;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
}

.card-gallery .overlay-inner .hdImgs {
  width: fit-content;
  height: calc(80% - 55px);
  display: flex;
}

/*.card-gallery .overlay-inner img {
  max-height: 100%;
  max-width: 100%;
  transform: none;
}
*/
.card-gallery .bigImg {
  width: 665px;
  height: 440px;
  margin-top: 0px;
  margin-right: 10px;
/*  margin-bottom: 10px;*/
  margin-left: 0px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

.card-gallery .image-card-image {
  height: 215px;
  width: 215px;
  margin-top: 0px;
  margin-right: 10px;
/*  margin-bottom: 10px;*/
  margin-left: 0px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

.card-gallery .above {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.card-gallery .bottom {
  display: flex;
  align-content: baseline;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 1170px) {
  .card-gallery .image-card-image {
    width: 165px;
    height: 165px;
  }
  .card-gallery .card-container {
    width: 690px;
    margin-top: 80px;
    margin-right: auto;
    margin-bottom: 50px;
    margin-left: auto;
  }
  .card-gallery .bigImg {
    width: 515px;
    height: 340px;
  }
}

@media (max-width: 900px) {
  .card-gallery .image-card {
    width: 220px;
    display: inline-block;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
  }
  .card-gallery .image-card-first {
    width: 450px;
  }
  .card-gallery .above {
    flex-direction: column;
  }
  .card-gallery .cards {
    justify-content: flex-start;
  }
  .card-gallery .card-container {
    width: 450px;
  }
  .card-gallery .bigImg {
    width: 450px;
  }
  .card-gallery .image-card-image {
    width: 220px;
    height: 200px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    display: inline-block;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
  }
  .card-gallery .side {
    display: flex;
    width: 450px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .card-gallery .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
  }
  .card-gallery .image-card-image.last {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 5px;
  }
  .card-gallery .image-card-image.last {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
  }
}

@media only screen and (max-width: 500px) {
  .card-gallery .bigImg {
    width: 250px !important;
    height: 200px !important;
  }
  .card-gallery .image-card {
    width: 110px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
  }
  .card-gallery .card-container {
    width: 250px;
    margin-top: 80px;
    margin-right: auto;
    margin-bottom: 50px;
    margin-left: auto;
  }
  .card-gallery .image-card-image {
    width: 110px;
    height: 110px;
  }
  .card-gallery .side {
    flex-direction: row;
    width: 250px;
  }
  .card-gallery .image-card-image.last {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
  }
  .card-gallery .image-card.last-image-card {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 30px;
  }
  .card-gallery .image-card-first {
    width: 250px;
  }
  .card-gallery .overlay-inner {
    max-width: 90%;
  }
}



/** Mobile **/

/* Standard framework min size */
@media (max-width: 1200px) {
  .container-d{
        justify-content: center;
    text-align: center;
  }
  .main-hstack{
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .main-hstack{
    justify-content: center;
    text-align: center;
  }
  .stack-card{
    align-content: center;
  }
}

dialog{
  display: none;
}

dialog[open]{
  display: block;
  border: unset;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

dialog .close{
  /*position: absolute;*/
  /*right: 20px;*/
}

dialog .popup-holder .popup-close{
  left: unset !important;
  top: 32px !important;
}
@media (min-width: 2000px) {
  .container {
    max-width: 1832px;
  }
}
@media (min-width: 1800px) {
  .container {
    max-width: 1632px;
  }
  .footer-nav-holder > ul {
      grid-template-columns: 405px 296px 150px;
  }
}

@media (min-width: 1600px) {
  .container{
    max-width: 1432px;
  }
}

@media (min-width: 1440px) {
  .footer-nav-holder > ul {
      grid-template-columns: 432px 322px 150px;
  }
}
@media (min-width: 1280px) {
  .footer-nav-holder > ul {
      grid-template-columns: 423px 311px 150px;
  }
}
