/* Ustawienie sekcji galerii na pełną wysokość ekranu */
#galeria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto; /* STAŁA WYSOKOŚĆ */
    background: rgb(0, 0, 0);
    padding: 0;
    margin: 0;
    overflow: hidden; /* Zapobiega powiększaniu */
}

/* Napis "GALERIA" na samej górze */
.galeria-title-new {
    font-size: auto;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.825);
    position: absolute;
    width: 100%;
    min-height: 7%;
    display: flex;
    align-items: center; /* Wycentrowanie w pionie */
    justify-content: center;
    font-family: bebas;
    letter-spacing: 0.2em;
    padding: 0;
    margin: 0;
    z-index: 10;
}

/* Kontener galerii */
.galeria-container-new {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Boks zawierający galerię */
.galeria-box-new {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

/* Właściwa zawartość galerii */
.galeria-content-new {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Ustawienie iframe na pełną szerokość i wysokość sekcji */
.galeria-iframe-new {
    display: block;
    width: 100vw;
    height: 100vh;
    min-height: 500px; /* Zapobiega zbyt małej wysokości */
    min-width: 500px; /* Zapobiega zbyt małej wysokości */
    border: none;
    object-fit: cover; /* Zapewnia dopasowanie */
    overflow: hidden;
}

/* Ukrycie domyślnego scrolla */
.iframe-container {
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Ukrywa scrollbar iframe */
    position: relative;
}

/* Osadzenie iframe */
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Własny scrollbar dla kontenera */
.iframe-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: red transparent; /* Firefox */
}

/* Styl scrolla dla WebKit (Chrome, Edge, Safari) */
.iframe-scroll-wrapper::-webkit-scrollbar {
    width: 10px;
}

.iframe-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.iframe-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 10px;
}

.iframe-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}



/* 🔹 Przezroczysta warstwa nad iframe */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.7); /* Półprzezroczysty szary */
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: bebas;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
}

/* 🔹 Efekt zanikania po kliknięciu */
.iframe-container.clicked .iframe-overlay {
    opacity: 0;
    pointer-events: none;
}

