

/* =========================================
   STYLY PRO GALERII (TABS & OBRÁZKY)
========================================= */

/* Přepínací tlačítka (Tabs) */
.gallery-tab-btn {
    background-color: var(--light-concrete) !important; /* Výchozí šedá */
    color: white !important;
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.gallery-tab-btn:hover {
    background-color: var(--dark-concrete) !important;
    transform: translateY(-2px);
}

/* Aktivní tlačítko záložky */
.nav-pills .nav-link.active.gallery-tab-btn {
    background-color: var(--army-green-darker) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    /*transform: translateY(-2px);*/
}

/* Karta (obal) pro obrázek v galerii */
.gallery-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.375rem; /* Odpovídá bootstrap .rounded */
}

/*!* Efekt mírného zvětšení fotky při najetí myši *!*/
/*.gallery-card img {*/
/*    transition: transform 0.4s ease, filter 0.4s ease;*/
/*    width: 100%;*/
/*    display: block;*/
/*}*/
/* Efekt mírného zvětšení fotky při najetí myši + SJEDNOCENÍ VELIKOSTI */
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Vynutí stejný poměr stran pro všechny náhledy */
    object-fit: cover;   /* Vyplní rámeček a nedeformuje fotku (přebývající okraje se skryjí) */
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Volitelný efekt pro staré fotky z archivu (lehká sépie/čb) - stačí přidat třídu .grayscale-img k obalu */
.grayscale-img img {
    filter: sepia(0.3) contrast(1.1);
}

.grayscale-img:hover img {
    filter: sepia(0) contrast(1); /* Po najetí se zbarví */
}

/* Ikona lupy, která se zobrazí přes fotku při najetí */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(75, 83, 32, 0.6); /* Vaše Army Green zprůhledněná */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-overlay i {
    transform: scale(1);
}



/* =========================================
   NATIVNÍ LIGHTBOX (PŘEKRYVNÉ OKNO) - ZÁKLAD
========================================= */

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Nastavení zvětšené fotky */
.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    border: 4px solid var(--dark-concrete);
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

/* Nastavení křížku pro zavření */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1060;
}

.lightbox-close:hover {
    color: var(--army-green);
}

/* Nastavení popisku pod fotkou */
.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 95%;
    text-align: center;
}

/* Navigační šipky v lightboxu */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem; /* Velikost šipek */
    cursor: pointer;
    z-index: 1060;
    padding: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none; /* Zabrání označení textu při rychlém klikání */
}

.lightbox-arrow:hover {
    color: var(--army-green);
    transform: translateY(-50%) scale(1.1); /* Efekt mírného zvětšení */
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Vylepšení šipek pro mobilní telefony */
@media (max-width: 768px) {
    .lightbox-arrow {
        font-size: 2rem;
        padding: 10px;
    }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
}