@font-face {
  font-family: 'fontello';
  src: url('/source/font/fontello.woff2') format('woff2');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}


/**
*  ____            _   _               _____
* / ___|  ___  ___| |_(_) ___  _ __   |___ /
* \___ \ / _ \/ __| __| |/ _ \| '_ \    |_ \
*  ___) |  __/ (__| |_| | (_) | | | |  ___) |
* |____/ \___|\___|\__|_|\___/|_| |_| |____/
*/
/* SECTION 3 */

#p_item_section3 {
  display: flex;
  justify-content: center;
  /* z-index: 1; */
  position: relative;
  background-color: white;
}

.p_item_s3_crop_out {
  width: 1400px;
  justify-items: anchor-center;
}

.p_item_s3_crop_in {
  align-items: center;
}


.gallery,
.gallery_5col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Základné zobrazenie */
    gap: 20px;
    padding: 5px;
    margin-bottom: 100px;
}

.gallery img,
.gallery_5col img{
    width: 100%;
    height: auto;
    /* aspect-ratio: 1 / 1; */
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}


.gallery img:hover,
.gallery_5col img:hover{
    transform: scale(1.05);
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 3;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    transition: opacity 0.3s;
    display: block;
    cursor: pointer;
}

#lightbox-img.show {
    opacity: 1;
}

/* Arrows (skryté predvolene) */
.arrow {
    font-family: 'fontello';
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 5px 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    user-select: none;
    z-index: 3;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);

}

#lightbox.active .arrow {
    display: block;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

.icon-right-open-big:before { content: '\e800'; } /* '' */
.icon-left-open-big:before { content: '\e801'; } /* '' */
.icon-cancel:before { content: '\e802'; } /* '' */
.icon-plus:before { content: '\e803'; } /* '' */

/* .arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
} */

#lightbox-caption {
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    color: white;
    font-size: 18px;
}

#lightbox-desc {
    text-align: left;
}

#lightbox-counter {
    text-align: right;
    opacity: 0.8;
    /* font-size: 14px; */
}

#lightbox-close {
    position: absolute;
    top: -30px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transition: color 0.2s;
}

#lightbox-close:hover {
    color: #ccc;
}

#ar-button {
  display:none;
  position:absolute;
  z-index: 10;
  top: -48px;
  right: 0px;
}

/* Tablet - 2 stĺpce */
@media (min-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #ar-button {
      display:block;
    }
}

/* Desktop - 3 stĺpce */
@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery_5col {
        grid-template-columns: repeat(5, 1fr);
    }

    #ar-button {
      display:block;
    }
}
