﻿/* ***********  FOTOGALERIE KRÉTA - POČÍTAČOVÁ VERZE *********** */

.bg-galerie {
    position: relative;
    background: url(dimages/foto/bg-galerie.jpg) top center no-repeat;
    background-size: 988px;
    background-repeat: no-repeat !important;
    width: 988px; 
    height: 740px;  
    border-top: 2px solid #2266AA;
    border-right: 2px solid #2266AA;
    border-bottom: 2.5px solid #FF6600;
    border-left: 2.5px solid #FF6600;
    border-radius: 0 25px 0 0;
    margin-top: 4px;
}

/* Textová nápověda na pozadí galerie pod velkým obrázkem */
.bg-galerie::after {
    content: "Pro zvětšení klikni na obrázek";
    
    /* Vzhled nápovědy (sladěný s tvým webem): */
    font-family: 'font1', Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 28px;
    color: #2266AA;
    text-shadow: 1px -1px 1px #FFFFFF;
    
    /* Pozice přesně v mezeře mezi velkou fotkou (546px) a náhledy (600px): */
    position: absolute;
    top: 6px;  /* ** 556px pod hlavním obrázkem ** */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10; /* Pod zvětšenou fotkou (která má z-index: 9999), takže ji po zvětšení nezakryje */
    pointer-events: none;
}

/** NASTAVENÍ POZICE TLAČÍTEK S NÁHLEDY **/
#gallery {
    position: relative;
    padding-top: 600px; 
}

/* levé tlačítko */
#gallery img.left {
    width: 110px;
    height: 90px;
    background: transparent;
    position: absolute;
    top: 60%;
    left: 67px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    /*z-index: 1 !important;*/   /*z-index: 9999 - tlačítka přes obrázek*/
    pointer-events: auto !important;
}

/* pravé tlačítko */
#gallery img.right {
    width: 110px;
    height: 90px;
    background: transparent;
    float: right;
    position: absolute;
    top: 60%; 
    left: 920px; 
    transform: translate(-50%, -50%);
    cursor: pointer;
    /*z-index: 1 !important;*/    /*z-index: 9999 - tlačítka přes obrázek*/
    pointer-events: auto !important;
}

/* pozadí ikony */
#gallery ul {
    width: 900px;
    height: 140px;
    text-align: center;
    padding: 20px 0 0 42px;
    margin: -30px 0 50px 54px;
}

/* rozměry ikon */
#gallery ul li {
    width: 100px;
    height: 75px;
    float: left;
    margin: 20px 8px;
    border-top: 1.5px solid #2266AA;
    border-right: 1.5px solid #2266A9;
    border-bottom: 1px solid #FF6600;
    border-left: .1px solid #FF6600;
    border-radius: 0 9px 0 0;
    display: inline;
    cursor: pointer;
}

/* aktuální ikona */
#gallery ul li.chosen {
    width: 110px;
    height: 82px;
    border-top: 2px solid #2266AA;
    border-right: 2px solid #2266A9;
    border-bottom: 1px solid #FF6600;
    border-left: .1px solid #FF6600;
    border-radius: 0 10px 0 0;
    box-shadow: 3px -3px 3px #2266AA; 
    cursor: default;
    margin: 3px 3px;
}

#gallery ul li.hide {
    display: none;
}

#gallery ul li img {
    visibility: hidden;
    display: block;
    width: 100px;
    height: 75px;
}

/* velikost pozadí obrázku */
#gallery ul li.chosen div {
    position: absolute;
    left: 164px;             /* Vycentrováno na střed (988 - 660) / 2 = 164px */
    top: 50px;               /** 25px **/
    width: 660px;          /* Přesná šířka obrázku včetně jeho ohraničení */
    height: 496px;        /* Přesná výška obrázku včetně jeho ohraničení */
    background: transparent;   /* #555 šedý - podklad přesně pod fotkou - pro test */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none !important;
}

#gallery ul li.chosen div span {
    align-items: center;
}

/* velikost a formát obrázku */
#gallery ul li.chosen div span img {
    visibility: visible;
    margin: 0 !important;      /* Zruší jakýkoli zděděný posun z globálního CSS pro img */
    padding: 0 !important;    /* Zruší jakékoli vnitřní odsazení */
    width: 658px;
    height: 493px;
    border-top: 1px solid #2266AA;
    border-right: 1px solid #2266AA;
    border-bottom: 1.5px solid #FF6600;
    border-left: 1.5px solid #FF6600;
    border-radius: 0 10px 0 0;
    cursor: pointer;
    pointer-events: auto !important;
}

#gallery ul li.chosen div span img.zvetseno {
    position: relative;
    display: flex;
    top: 70px;
    left: -2px;
    background-size: 100%;  
    transform: scale(1.5);
    border-top: 1.5px solid #2266AA;
    border-right: 1.5px solid #2266AA;
    border-bottom: 2px solid #FF6600;
    border-left: 2px solid #FF6600;
    border-radius: 0 17px 0 0;
    z-index: 9999; /* Zajistí, že zvětšená fotka překryje šipky i okolí */
}




/* ** 
#gallery ul li.chosen div span img:hover {
    position: relative;
    display: flex;
    top: 70px;
    left: -2px;
    background-size: 100%;  
    transform: scale(1.5);
    border-top: 1.5px solid #2266AA;
    border-right: 1.5px solid #2266AA;
    border-bottom: 2px solid #FF6600;
    border-left: 2px solid #FF6600;
    border-radius: 0 17px 0 0;
}  ** */      /** margin-top: 0;   -150px -335px **/
