/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gallery-body {
    display: flex;
    justify-content: center;
    align-items: center;
   /*  min-height: 100vh; */
    width: 100%; /* Zapewnienie, że kontener zajmuje całą szerokość */
}

body {
  /*   font-family: Helvetica, sans-serif; */
    height: 100dvh;
    /* background-color: rgb(30, 30, 30); */
}
img {
    display: block;
    user-select: none;
}

/* Styl galerii */
#galeria {
    columns: 6;
    column-gap: 8px;
    padding: 32px;
}
#galeria > img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: .2s;
    cursor: pointer;
}
#galeria > img:hover {
    scale: 1.1;
    z-index: 1000;
}

/* Styl wyskakującego okienka */
#imgPopover {
    height: 80dvh;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    border: 0;
    overflow: unset;
    background-color: transparent;
    transition: height .2s ease-in-out;
}
#imgPopover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100dvh;
    width: 100dvw;
    z-index: -1;
}
#imgPopover > img {
    max-height: 100%;
    min-height: 100%;
    max-width: 95dvw;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
}

/* Styl panelu z przyciskami */
#clickPanel {
    position: absolute;
    bottom: 16px;
    left: 50%;
    translate: -50% 0;
    background-color: rgb(240, 240, 240);
    padding: 12px;
    border-radius: 1000px;
    user-select: none;
    width: max-content;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4), 0 0 5px rgba(0, 0, 0, 0.5);
    transition: .2s;
    opacity: 0.5;
    scale: 0.8;
}
#clickPanel:hover {
    opacity: 1;
    scale: 1;
}

#clickPanel p {
    opacity: 0;
    border-radius: 1000px;
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    text-align: center;
    color: black;
    width: max-content;
    font-weight: bold;
    margin-bottom: 16px;
    background-color: rgb(240, 240, 240);
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2), 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 16px;
    transition: .2s;
    pointer-events: none;
    z-index: -1;
}
#clickPanel:hover p {
    opacity: 1;
    bottom: 100%;
}
#clickPanel p:empty {
    display: none;
}

#clickPanel > div {
    text-align: center;
}

#clickPanel button {
    background-color: rgb(230, 230, 230);
    color: black;
    width: 40px;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 50%;
    margin-inline: 4px;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: .2s;
}
#clickPanel button:hover {
    scale: 1.15;
    background-color: rgb(255, 255, 255);
}
#clickPanel button:active {
    scale: .9;
}
#clickPanel button i {
    font-size: 1.4rem;
}

@media screen and (max-width: 550px){
    #imgPopover {
        height: 95dvh !important;
    }
    #resizeBtn {
        display: none;
    }
}