section.start {
    height: max-content;
    min-height: 550px;
}
section.start .background {
    filter: blur(2px);
    -webkit-filter: blur(2px);
}
.background picture, .background .pic {
    width: calc(100vw - var(--scrollbar) + 6px);
    margin-left: -2px;
    height: auto;
    min-height: 550px;
}
section.start h1::after {
    display: none;
}

/* section.soc-med-cta {
    background-color: #fff;
} */

/* --------- REALIZACJE MAIN --------*/

section.realizacje-main, .realizacje-main .wrapper {
    padding: 0;
}
section.realizacje-main > * {
    padding: 0 var(--m-spacing);
}
.realizacje-main .wrapper > *:not(:last-child) {
    margin-bottom: var(--s-spacing);
}
.realizacje-main h2 {
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: calc(var(--l-spacing) + 1.63rem);
}
.realizacje-main h2::after, .realizacje-main h3::after {
    display: none;
}
.realizacje-main h3 {
    margin: var(--m-spacing) 0 !important;
}
.realizacje-main h3:first-child {
    margin-top: 0 !important;
}
.realizacje-main p {
    max-width: 800px;
    margin-top: calc(-1 * (var(--m-spacing) - 1rem));
    margin-bottom: var(--m-spacing) !important;
}
.realizacje-main .container, .realizacje-main .container .wrapper {
    padding-bottom: 0;
}
.realizacje-main .container {
    padding: var(--xl-spacing) 0;
    max-width: none;
}

.realizacje-flex {
    justify-content: stretch;
    flex-wrap: wrap;
    overflow: hidden;
    align-items: flex-start;
    gap: 0;
}
.realizacje-col {
    flex-basis: 100%;
    position: relative;
}
.realizacje-col .thumb {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}
.realizacje-col img {
    aspect-ratio: 3/2;
    display: block;
}

.realizacje-main .second {
    background-color: var(--light-grey);
}
.realizacje-main h3 .icon {
    width: 0.8rem;
}

@media screen and (min-width: 600px){
    .realizacje-flex {
        flex-direction: row !important;
    }
}
@media screen and (min-width: 600px) and (max-width: 999px) {
    .realizacje-col {
        flex-basis: calc(50%);
    }
}
@media screen and (min-width: 1000px) {
    .realizacje-col {
        flex-basis: calc(33.33%);
    }
    .realizacje-main h3 .icon {
        height: 1.3rem;
        margin: auto 0.2rem;
    }
}
@media screen and (min-width: 1366px) {
    section.realizacje-main > * {
        padding: 0 var(--xl-spacing);
    }
}


/*-------------- Image preview popup ----------------*/

.popup-container {
    background-color: var(--transparent-dark-blue);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
}
.popup-container .flex {
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: row !important;
}
.popup-container .hidden {
    pointer-events: none;
    opacity: 0;
}
.popup-container .flex#popup {
    pointer-events: none;
    opacity: 0;
    transform: scale(90%);
}
.popup-container .flex#popup.visible {
    opacity: 1;
    transform: scale(100%);
    transition: all 200ms ease;
    pointer-events: all;
}
.popup-container.visible {
    opacity: 1;
    transition: all 300ms ease;
    pointer-events: all;
}
.popup-container.hidden .flex .flex{ 
    transform: scale(75%);
}
.popup-container .flex > * {
    box-sizing: border-box;
}
.popup-container .flex .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    width: max-content;
    height: max-content;
    max-height: 85vh;
}

.popup-container button {
    position: fixed;
    z-index: 20;
}
.popup-container button:hover {
    filter: saturate(40%) brightness(150%);
    transition: var(--transition);
    transform: translateY(-50%) scale(110%);
}
.popup-container button.close-icon-popup:hover {
    transform: scale(110%);
}
.popup-container button > img {
    height: 5rem;
    width: auto;
    background-color: var(--sky-blue);
    padding: 1rem; 
    text-align: center;
}
.popup-container .arrow-left, .popup-container .arrow-right {
    margin: 0;
    top: 85%;
    transform: translateY(-50%);
}
.popup-container .arrow-left {
    left: 0;
}
.popup-container .arrow-right {
    text-align: right;
    right: 0;
}
.popup-container .close-icon-popup {
    right: 0;
    top: 0;
    padding: 1rem;
}

.enlarged-image {
    position: relative;
}
.enlarged-image img{
    object-fit: contain;
    margin-bottom: -4px;
    box-shadow: #000 0px 0px 10px;
    max-height: 85vh;
    max-width: 100%;
}

@media screen and (min-width: 900px) {
    .popup-container .arrow-left, .popup-container .arrow-right {
        margin: var(--s-spacing);
        top: 50%;
    }
    .popup-container .close-icon-popup {
        right: var(--s-spacing);
        top: var(--s-spacing);
    }
}