*,
*:before,
*:after {
    box-sizing: border-box;
}

/* Mobile Bar */
.mobile-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #101111;
    height: 90px;
}

.left-column, .right-column {
    display: flex;
    align-items: center;
}

.icon-filters, .icon-grid, .icon-single {
    font-size: 24px;
    margin: 0 10px;
    cursor: pointer;
}

/* Filters Dropdown for Mobile */
.filters-dropdown {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #000000;
    color: #EDEDED;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

    .filters-dropdown.active {
        max-height: 250px;
        padding: 10px;
        border-bottom: 1px solid #868686;
    }

.icon-filters,
.icon-grid,
.icon-single {
    width: 25px;
    vertical-align: middle;
}

/* Klasy dla różnych szerokości kolumn */
.portfolio-gallery.grid-view .portfolio-item {
    width: 50%;
}

.portfolio-gallery.single-view .portfolio-item {
    width: 100%;
}

.filters-dropdown .version-filters, .filters-dropdown .filter-bar {
    margin-bottom: 10px;
}

    .filters-dropdown .filter-bar button {
        margin-right: 5px;
    }

/* Font styles */
.mobile-bar, .filters-dropdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

/* Panel for Tablets and Larger Screens */
/* Stylizacja dla portfolio-filters-wrapper */
.portfolio-filters-wrapper {
    width: 100%;
    border-top: 1px solid #8B8B8B;
    border-bottom: 1px solid #8B8B8B;
    display: flex;
    justify-content: center;
}

/* Stylizacja dla portfolio-filters */
.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    height: 62px;
}

.sessions-separator {
    margin-right: 10px;
}

.left-column, .right-column {
    display: flex;
    align-items: center;
}

.portfolio-filters .separator {
    height: 61px;
    display: inline-block;
    border-left: 1px solid #8B8B8B;
    margin: 0 30px;
}

.portfolio-filters .separator-text {
    margin: 0 10px;
    font-size: 14px;
    color: #8B8B8B;
}

.portfolio-filters input[type="checkbox"],
.portfolio-filters input[type="radio"] {
    display: none;
}

.portfolio-filters label {
    position: relative;
    padding-left: 25px;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #EDEDED;
}

    .portfolio-filters label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 15px;
        height: 15px;
        border: 1px solid #D9D9D9;
        border-radius: 0;
    }

.portfolio-filters input[type="checkbox"]:checked + label:after,
.portfolio-filters input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 7px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.portfolio-filters input[type="checkbox"]:checked + label,
.portfolio-filters input[type="radio"]:checked + label {
    text-shadow: 0px 0px 4px #FFF;
}

/*.dropbtn {
    cursor: pointer;
}*/

.arrow-icon {
    cursor: pointer;
}

    .arrow-icon.rotate {
        transform: rotate(180deg);
    }

/* Stylizacja dla rozwijanego mega menu */
.dropdown-content {
    display: flex;
    position: relative;
    left: 0;
    top: 100%;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    color: #EDEDED;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 63px 0 173px;
}

    .dropdown-content.show {
        width: 100%;
        max-height: 100%;
        padding: 38px 63px 57px 173px;
    }

    .dropdown-content .column {
        float: left;
        width: 33.33%;
        padding: 10px;
        box-sizing: border-box;
        border-right: 1px solid #EDEDED;
    }

        .dropdown-content .column:nth-child(1) {
            padding-left: 0;
            padding-right: 70px;
        }

        .dropdown-content .column:nth-child(2) {
            padding-left: 64px;
            padding-right: 70px;
        }

        .dropdown-content .column:nth-child(3) {
            padding-left: 64px;
            padding-right: 0;
        }


        .dropdown-content .column:last-child {
            border-right: none;
        }

        .dropdown-content .column a {
            color: #EDEDED;
            padding: 8px 16px 8px 16px;
            text-decoration: none;
            display: block;
            font-size: 14px;
        }

            .dropdown-content .column a:hover {
                text-shadow: 0px 0px 4px #FFF;
            }

    /* Clearfix */
    .dropdown-content::after {
        content: "";
        clear: both;
        display: table;
    }

/* Popup styles */
#category-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #151618;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    height: 90px;
    border-bottom: 1px rgba(134, 134, 134, 0.50);
    background: linear-gradient(0deg, #101111 0%, #101111 100%), #151618;
}

.left-column {
    display: flex;
    align-items: center;
}

.back-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #EDEDED;
}

    .back-btn img {
        margin-right: 10px;
    }

.right-column {
    display: flex;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 28px;
    color: #EDEDED;
}

.popup-body .column a {
    box-shadow: none;
    text-decoration: none;
    color: #EDEDED !important;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 19.6px;
    margin-bottom: 20px;
}

.close-btn {
    cursor: pointer;
    font-size: 28px;
}

.popup-body {
    padding: 20px 57px;
    display: flex;
    flex-direction: column;
    background: #151618;
}

.version-filters, .filter-bar {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 150px;
    justify-content: center;
}

.filters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.separator-text {
    margin: 0 10px;
}

.arrow-icon-mobile {
    transform: rotate(-90deg);
}

.column {
    display: flex;
    flex-direction: column;
}

.button-back-to-specific:hover {
    cursor: pointer;    
}

/* Button styles */
.popupbtn {
    border: 1px solid #AEAEAE;
    padding: 10px 20px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--main-tekst-color, #EDEDED);
    text-align: center;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 25.2px */
    height: 43px;
}

    .popupbtn img {
        margin-left: 10px;
    }

    .popupbtn:focus, .popupbtn:hover {
        background-color: inherit;
        text-decoration: none;
        text-shadow: 0px 0px 4px #FFF;
    }

/* Checkbox and Radio styles */
.version-filters label,
.filter-bar label {
    position: relative;
    padding-left: 25px;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #EDEDED;
}

    .version-filters label:before,
    .filter-bar label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 15px;
        height: 15px;
        border: 1px solid #D9D9D9;
        border-radius: 0;
    }

.version-filters input[type="checkbox"]:checked + label:after,
.version-filters input[type="radio"]:checked + label:after,
.filter-bar input[type="checkbox"]:checked + label:after,
.filter-bar input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 7px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.version-filters input[type="checkbox"]:checked + label,
.version-filters input[type="radio"]:checked + label,
.filter-bar input[type="checkbox"]:checked + label,
.filter-bar input[type="radio"]:checked + label {
    text-shadow: 0px 0px 4px #FFF;
}

/* Full width for span elements */
.full-width {
    width: 100%;
    text-align: center;
    margin-bottom: 27px;
}

.version-filters input[type="checkbox"],
.version-filters input[type="radio"],
.filter-bar input[type="checkbox"],
.filter-bar input[type="radio"] {
    display: none;
}


.portfolio-gallery-load {
    width: 100%;
    text-align: center;
}

    .portfolio-gallery-load > button,
    .portfolio-gallery-load > button:focus {
        margin: 35px 0;
        font-size: 18px;
        padding: 7px 50px;
        background: transparent;
        color: #fff;
        font-weight: 600;
        border: 1px solid #fff;
    }

        .portfolio-gallery-load > button:hover {
            background: #fff;
            color: #000;
        }

/* Media query for very narrow screens */
@media (max-width: 600px) {
    .version-filters {
        flex-direction: column;
        width: auto;
    }

        .version-filters label {
            width: auto;
            margin: 5px auto;
            text-align: center;
        }
}

.gallery-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-item {
    width: 50%;
    padding: 2px;
    box-sizing: border-box;
    clear: both;
}

.portfolio-item-inner {
    padding: 2px;
}

.grid-sizer {
    width: 50%;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.portfolio-image a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 600px) {
    .portfolio-item, .grid-sizer {
        width: 50%;
    }
}

@media (min-width: 900px) {
    .portfolio-item, .grid-sizer {
        width: 33.33%;
    }
}

@media (min-width: 1200px) {
    .portfolio-item, .grid-sizer {
        width: 25%;
    }
}
/* 
@media (min-width: 1500px) {
    .portfolio-item, .grid-sizer {
        width: 20%;
    }
}
@media (min-width: 1800px) {
    .portfolio-item, .grid-sizer {
        width: 20%;
    }
}


@media (min-width: 2100px) {
    .portfolio-item, .grid-sizer {
        width: 16.66%;
    }
} */


/* Animacja pojawiających się zdjęć */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .fade-in.visible {
        opacity: 1;
    }

/* Media Queries */
@media (max-width: 767px) {
    .mobile-bar {
        display: flex;
    }

    .portfolio-filters {
        display: none;
    }

    .button-back-to-specific {
        color: #EDEDED;
        border: solid, 1px, #EDEDED;
        background-color: transparent;
    }

    .button-back-to-specific:active {
        background-color: transparent;
    }

    .button-back-to-specific:hover {
        background-color: transparent;
    }
}

@media (min-width: 767px) {
    .mobile-bar {
        display: none;
    }

    .filters-dropdown {
        border: 0;
    }
}
