/* =========================
   GALERIE / REFERENCE
   centrovaný moderní vzhled
========================= */

.gallery {
    max-width: 1180px;
    margin: 45px auto 0;
    padding: 0 24px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.gallery a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.gallery img {
    border: none;
}

/* =========================
   DETAIL GALERIE - jednotlivé fotografie
========================= */

.gallery-image {
    display: block;
    width: 280px;
    height: 175px;

    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;

    box-shadow:
        0 10px 26px rgba(15, 45, 75, 0.10),
        0 3px 8px rgba(15, 45, 75, 0.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.gallery-image:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 38px rgba(15, 45, 75, 0.16),
        0 6px 14px rgba(15, 45, 75, 0.08);
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 18px;
    filter: none;

    transition: transform .35s ease;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* NADPIS */
h3 {
    width: 100%;
    text-align: center;
    color: #2d89d8;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* =========================
   SEZNAM GALERIÍ - reference / karty
========================= */

.reference {
    width: auto;
    margin: 0;
}

.img {
    width: 450px;
    min-height: 266px;

    display: flex;
    float: none;
    margin: 0;

    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;

    box-shadow:
        0 10px 26px rgba(15, 45, 75, 0.10),
        0 3px 8px rgba(15, 45, 75, 0.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.img:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 38px rgba(15, 45, 75, 0.16),
        0 6px 14px rgba(15, 45, 75, 0.08);
}

/* =========================
   OBRÁZEK V KARTĚ
========================= */

.img-thumb {
    width: 223px;
    min-height: 266px;
    overflow: hidden;
    flex-shrink: 0;
}

.img-thumb img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 20px 0 0 20px;

    transition: transform .35s ease;
}

.img:hover .img-thumb img {
    transform: scale(1.05);
}

/* =========================
   TEXT V KARTĚ
========================= */

.img-text {
    width: 227px;
    background: #ffffff;

    display: flex;
    flex-direction: column;
}

.img-text-title {
    padding: 16px 14px 0;
}

.img-text-title p {
    font-weight: 700;
    margin: 0;

    font-size: 22px;
    line-height: 1.4;
    color: #111827;
}

.img-text-comment {
    flex: 1;
    padding: 10px 14px 0;
}

.img-text-comment p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

/* =========================
   BUTTON V KARTĚ
========================= */

.img-text-button {
    margin: auto 11px 14px;
    border-radius: 12px;

    background: linear-gradient(135deg, #4da3ea, #2d89d8);

    box-shadow: 0 6px 14px rgba(45, 137, 216, 0.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

    position: relative;
    overflow: hidden;
}

.img-text-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(45, 137, 216, 0.30);
}

.img-text-button p {
    margin: 0;
    text-align: center;
}

.img-text-button a {
    display: block;
    padding: 14px 18px;

    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: .04em;
    text-decoration: none;
}

.img-text-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;

    width: 50%;
    height: 100%;

    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.img-text-button:hover::after {
    left: 125%;
}

/* =========================
   NAVIGACE GALERIE
========================= */

.gallery .pagenavigation {
    flex-basis: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.gallery .prevpage a,
.gallery .prevpage em {
    display: block;
    width: 50px;
    height: 39px;
    float: none;
    margin: 0;
    text-indent: -1000px;
    background: url(../../images/previous.png) transparent no-repeat 0 0;
    overflow: hidden;
}

.gallery .nextpage a,
.gallery .nextpage em {
    display: block;
    width: 50px;
    height: 39px;
    float: none;
    margin: 0;
    text-indent: -1000px;
    background: url(../../images/next.png) transparent no-repeat 0 0;
    overflow: hidden;
}

.gallery .parentlink a {
    display: block;
    width: 50px;
    height: 39px;
    float: none;
    text-indent: -1000px;
    background: url(../../images/uppage.png) transparent no-repeat 0 0;
    overflow: hidden;
}

.gallery .pagenavigation a:hover {
    background-position: 0 -40px;
}

.gallery .prevpage em,
.gallery .nextpage em {
    background-position: 0 -80px;
}

.gallery .pagelinks {
    float: none;
    border-right: 2px solid #666;
}

.gallery .pagelinks a,
.gallery .pagelinks em {
    margin-top: 6px;
    padding: 0 6px;
    border-left: 2px solid #666;
    text-align: center;
    font: bold 11px verdana;
    color: #666;
}

.gallery .pagelinks em {
    color: #000;
}

.galleryclear {
    flex-basis: 100%;
    clear: both;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1151px) {

    .gallery {
        max-width: 760px;
        margin-top: 30px;
        padding: 0 18px;
        gap: 22px;
    }

    .img {
        width: 350px;
        min-height: auto;
        flex-direction: column;
        border-radius: 18px;
    }

    .img-thumb {
        width: 100%;
        height: 240px;
        min-height: 240px;
    }

    .img-thumb img {
        border-radius: 18px 18px 0 0;
    }

    .img-text {
        width: 100%;
        padding-bottom: 8px;
    }

    .img-text-title p {
        font-size: 20px;
    }

    .img-text-comment {
        padding-bottom: 10px;
    }

    .img-text-button {
        margin: 0 11px 14px;
    }
}

@media (max-width: 768px) {

    h3 {
        font-size: 34px;
    }

    .gallery {
        padding: 0 16px;
        gap: 18px;
    }

    .gallery-image {
        width: 100%;
        max-width: 360px;
        height: 220px;
    }

    .img {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 420px) {

    .gallery-image {
        max-width: 100%;
        height: 200px;
    }

    .img {
        max-width: 100%;
    }
}


/* LIGHTBOX  -  version 2.8.2 */

/* Preload images */
body:after {
  content: url(../lightbox/images/close.png) url(../lightbox/images/loading.gif) url(../lightbox/images/prev.png) url(../lightbox/images/next.png);
  display: none;
}

body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  opacity: 0.8;
  display: none;
}

.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  border-radius: 3px;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 4px;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
  padding: 4px;
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../lightbox/images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url(../lightbox/images/prev.png) left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0;
  float: right;
  background: url(../lightbox/images/next.png) right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  *zoom: 1;
  width: 100%;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999999;
}

.lb-data .lb-close {
  display: block;
  float: right;
  width: 30px;
  height: 30px;
  background: url(../lightbox/images/close.png) top right no-repeat;
  text-align: right;
  outline: none;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}
/* =================================
   OPRAVA CENTROVÁNÍ GALERIE
================================= */

.gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 24px !important;
}

.gallery-image {
    float: none !important;
    margin: 0 !important;
    display: block !important;
}

.galleryclear {
    display: none;
}
.gallery {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:24px;
}

.gallery-item {
    flex: 0 0 auto;
}