
/* =========================================================
   OBLEČENÍ – všechny fotky zarovnat stejně a vždy ukázat
   celou postavu včetně bot.
   Platí pro veřejné Oblečení a výstroj, PJ, DD, OD,
   instruktory i Interní evidenci.
   ========================================================= */

#page-about-obleceni .pj-clothing-visual,
#pj-tab-obleceni .pj-clothing-visual,
#dd-tab-obleceni .pj-clothing-visual,
#od-tab-obleceni .pj-clothing-visual,
#instr-tab-obleceni .pj-clothing-visual,
#internal-panel-obleceni .pj-clothing-visual,
.uniform-managed-visual{
    height:430px !important;
    min-height:430px !important;
    padding:14px 14px 4px !important;
    overflow:hidden !important;
    align-items:stretch !important;
    justify-content:center !important;
    background:linear-gradient(180deg,#f6f8fa,#edf2f5) !important;
}

/* Jedna i dvě fotky – vždy se zmenší dovnitř boxu, nikdy se neoříznou. */
#page-about-obleceni .pj-clothing-visual img,
#pj-tab-obleceni .pj-clothing-visual img,
#dd-tab-obleceni .pj-clothing-visual img,
#od-tab-obleceni .pj-clothing-visual img,
#instr-tab-obleceni .pj-clothing-visual img,
#internal-panel-obleceni .pj-clothing-visual img,
.uniform-managed-image-slot img,
.clothing-view .pj-clothing-image{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center bottom !important;
    transform:none !important;
    scale:1 !important;
    margin:0 auto !important;
}

/* Slot drží stejnou výšku a boty jsou vždy u stejné spodní hrany. */
.uniform-managed-image-slot,
.clothing-view{
    min-height:0 !important;
    height:100% !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    overflow:hidden !important;
}

/* Karty ve stejné sekci končí ve stejné výšce obrázku. */
#page-about-obleceni .pj-clothing-card,
#pj-tab-obleceni .pj-clothing-card,
#dd-tab-obleceni .pj-clothing-card,
#od-tab-obleceni .pj-clothing-card,
#instr-tab-obleceni .pj-clothing-card,
#internal-panel-obleceni .pj-clothing-card{
    align-self:start !important;
}

/* Když jsou v jedné uniformě 2 fotky, obě mají stejnou plochu. */
.uniform-managed-visual.has-two-images,
.clothing-dual-view{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
}

@media(max-width:900px){
    #page-about-obleceni .pj-clothing-visual,
    #pj-tab-obleceni .pj-clothing-visual,
    #dd-tab-obleceni .pj-clothing-visual,
    #od-tab-obleceni .pj-clothing-visual,
    #instr-tab-obleceni .pj-clothing-visual,
    #internal-panel-obleceni .pj-clothing-visual,
    .uniform-managed-visual{
        height:390px !important;
        min-height:390px !important;
    }
}

@media(max-width:650px){
    #page-about-obleceni .pj-clothing-visual,
    #pj-tab-obleceni .pj-clothing-visual,
    #dd-tab-obleceni .pj-clothing-visual,
    #od-tab-obleceni .pj-clothing-visual,
    #instr-tab-obleceni .pj-clothing-visual,
    #internal-panel-obleceni .pj-clothing-visual,
    .uniform-managed-visual{
        height:350px !important;
        min-height:350px !important;
    }

    .uniform-managed-visual.has-two-images,
    .clothing-dual-view{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
