

.jednostkiMenu
{
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.mainRow3
{
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}
.mainRow31
{
    margin-top: 50px;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    
}
.DR
{
    width: 400px;
}
.mainRow32
{
    margin-top: 50px;
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    overflow: visible;
    
}

.bgimg {
    position: static;
    min-width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    z-index: 1;
    top: 0;
    right: 0;
    object-fit: cover;
    object-position: 90% 80%;
    transition: 1.5s;
}

.mainProfile
{
    max-width: 420px;
    min-width: 420px;
    background-color: rgb(0, 0, 0);
    height: auto;
    -webkit-box-shadow: 4px 4px 22px -7px rgba(0, 0, 0, 1);
    -moz-box-shadow: 4px 4px 22px -7px rgba(0, 0, 0, 1);
    box-shadow: 4px 4px 22px -7px rgba(0, 0, 0, 1);
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.mainImg
{
    width: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    min-height: 500px;
    max-height: 500px;
    background-size: cover;
    background-position: center;
}
.mainImg img
{
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    transition: 1s all ease;
}
.hrJed
{
    width: 400px;
    float: left;
    height: 4px;
    background-color: rgb(255, 255, 255);
    border: none;
    margin-bottom: 50px;
}
.mainProfile hr
{
    width: 400px;
    height: 2px;
    float: none;
    margin-bottom: 2px;
    background-color: white;
}
.kontaktJ {
    font-size: 20px;
    padding-left: 35px;
    padding-right: 35px;
    box-sizing: border-box;
}
.mainProfile:hover .mainImg img
{
    transform: scale(1.3)
}
.mainProfile:focus .mainImg img
{
    transform: scale(1.3)
}
.mainOpis
{
    font-size: 14px;
    color: white;
}
.mainOpis h1
{
min-height: 60px;
max-height: 60px;
font-size: 24px;
text-align: left;
padding-left: 32px;
padding-right: 32px;
}
.mainOpis h2
{
    font-size: 20px;
    padding-left: 35px;
    padding-right: 35px;
    font-weight: lighter;
}
.mainOpis h3
{
    font-size: 18px;
    padding-left: 35px;
    padding-right: 35px;
    color: rgb(255, 255, 255);
    font-weight: 100;
}
.ogloszenieSection h2
{
    font-size: 24px;
}
.ogloszenieSection h4
{
    font-weight: 100;
    font-size: 24px;
}
#jednostkiGaleriaNumer
{
    position: absolute;
    margin-left: auto;
    background-color: rgba(0, 0, 0, 0.9);
    width: auto;
    border-radius: 10px;
    padding: 5px;
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
    border: 2px solid gray;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 4;
    top: 90px;
    right: 1vh;
    cursor: pointer;
}
#jednostkiGaleriaNumer i
{
    margin-left: 5px;
}
.jednostkiNazwy2
{
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    width: 100%;
    height: 100px;
    margin-top: -90px;
    box-sizing: border-box;
    text-align: justify;
    display: flex;
    flex-direction: row;
    transition: 1.5s;
}
.jednostkiNazwy2 h2
{
    font-size: 26px;
}
.jednostkiBarwy2
{
    height: 70px;
    margin-top: -10px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 4;
    border-bottom: 10px solid black ;
    border-top: 10px solid black ;
}
.jednostkiGaleria
{
    z-index: 10;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:stretch;
    gap: 10px;
    align-content: flex-start;
    padding-top: 50px;
    padding-bottom: 50px;
}
.jednostkiGaleriaZdjecieMenu
{
    max-width: 15%;
    min-width: 15%;
    min-height: 140px;
    max-height: 140px;
    overflow: hidden;
    display: flex;
    object-fit: cover;
    object-position: 90% 80%;
    transition: 1.5s;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}
i
{
    cursor: pointer;
}
.jednostkiGaleriaZdjecie
{
    min-width: 100%;
    max-width: 100%;
    min-height: 140px;
    transition: 0.5s;
    object-fit: cover;
}
#close
{
    position: fixed;
    top: 20px;
    color: white;
    right: 20px;
}
#goBack
{
    display: none;
    position: fixed;
    top: 20px;
    color: white;
    left: 20px;
}
.jednostkiGaleriaZdjecieFull
{
    display: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex-direction: column;
    justify-content: center;
    
}
.jGZFimg
{
    display: flex;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    object-fit: cover;
    flex-direction: column;
    justify-content: center;
}
.jGZFimg img
{
    object-fit:contain;
    min-height: 100%;
    max-height: 100%;
}
.jednostkiGaleriaZdjecieFull
{
    display: none;
    min-width: 100%;
    min-height: 85%;
    max-width: 100%;
    max-height: 85%;
    object-fit: cover;
    flex-direction: column;
    justify-content: center;
}
.jednostkiGaleria p
{
    text-align: center;
    width: 100%;
}
.arrowImg
{
    visibility: visible;
    display: none;
    justify-content: center;
    align-items: center;
    position:absolute;
    height: 50px;
    width: 50px;
    color:white;
    text-align: center;
    font-size: 36px;
    border-radius:10px ;
    border: 2px solid black;
    background-color: black;
    transition: 0.5s;
    top:50vh;
    bottom: 50vh;
}
#leftImg
{
    left: 10px;
    transition: 0.5s;
}
#rightImg
{
    right: 10px;
    transition: 0.5s;
}
.arrowImg:focus,
.arrowImg:hover
{
    background-color: rgb(20, 20, 20);
    cursor: pointer;

}
#leftImg:hover
{
    transform: translate(-5px);
    cursor: pointer;
}
#rightImg:hover
{
    transform: translate(5px);
    cursor: pointer;
}
.jednostkiGaleriaZdjecieMenu:hover img,
.jednostkiGaleriaZdjecieMenu:focus img
{
    transform: scale(1.1);
    opacity: 90%;
}

summary {
    width: 500px;
    background-color: #000;
    color: white;
    font-size: 36px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: 2s;
  }
  
  summary::marker {
    content:none;
  }
  summary p
  {
    max-width: 80%;
    min-width: 80%;
    text-align: center;
  }
  
  summary div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 20%;
    height: 100%;
    
  }
  summary i
  {
    transition: 500ms;
  }


  [open] summary i {
    transform: rotate(90deg);
  }
details
{
    transition: 50ms;
}
@media only screen and (max-width: 1000px) 
{
    summary
    {
        min-width: 100%;
        max-width: 100%;
        font-size: 5vw;
        height: 80px;
    }
    #jednostkiGaleriaNumer
    {
        top: auto;
        right: 1vh;
    }
    .jednostkiNazwy2 h2
    {
        font-size: 18px;
        text-align: left;
    }
    .jednostkiNazwy2
    {
        height: 150px;
        margin-top: -150px;
        box-sizing: border-box;
        text-align: justify;
        display: flex;
        flex-direction: row;
        transition: 1.5s;
    }
    .mainSectionContent h1
    {
        font-size: 6vw;
    }
    .jednostkiNazwy2
    {
        margin-top: 0px;
        min-height: 150px;
        max-height: 150px;
    }
    .jednostkiKontent img
    {
       max-width: 100%;
       height: auto;
    }
    .jednostkiOpis
    {
        margin-top: 5px;
    }
    .jednostkiAktualnosci
    {
        margin-top: 5px;
    }
    .mainProfile
    {
        min-width: 0%;
        width: 100%;
        max-width: 100%;
        background-color: rgb(0, 0, 0);
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    .mainImg
    {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }
    .hrJed
    {
        width: 50%;
    }
    .mainProfile hr
    {
        width: 100%;
        height: 1.5px;
        float: none;
        margin-bottom: 2px;
        background-color: white;
    }
    .mainOpis
    {
        font-size: 14px;
        color: white;
    }
    .mainOpis h1
    {
    padding-left: 5px;
    padding-right: 5px;
    }
    .mainOpis h2
    {
        margin: 1px;
        padding-left: 5px;
        padding-right: 5px;
        font-weight: lighter;
    }
    .mainOpis h3
    {
        padding-left: 5px;
        padding-right: 5px;
        margin: 1px;
        color: rgb(255, 255, 255);
        font-weight: 100;
    }
    .mainRow3
    {
        margin-top: 20px;

    }
    .mainRow31
    {
        margin-top: 20px;
        width: 100%;
    }
    .DR
    {
        width: 400px;
    }
    .mainRow32
    {
        margin-top: 20px;
        width: 100%;
    }
    .ogloszenieSection h4
    {
        font-weight: 100;
        font-size: 18px;
    }
    .bgimg
    {
        position: static;
        min-width: 100%;
        min-height: 200px;
        height: auto;
        max-height: 100%;
        z-index: 1;
        top: 0;
        right: 0;
        object-fit: cover;
        transition: 1.5s;
    }
    .jednostkiGaleria
    {
        justify-content:space-evenly;
    }

    .jednostkiGaleriaZdjecieMenu
    {
        max-width: 31%;
        min-width: 31%;
        min-height: 140px;
        max-height: 140px;
        overflow: hidden;
        display: flex;
        object-fit: cover;
        object-position: 90% 80%;
        transition: 1.5s;
        flex-direction: column;
        justify-content: space-around;
    }

}