﻿/*------------------------------- GALERY -----------------------------*/
.galery {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 15px;
    padding: 30px;
}

.galery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.filter-button-container {
    display: flex;
    border-radius: 30px;
    background-color: var(--second-color);
    overflow: hidden;
}

.filter-button {
    background-color: transparent;
    border: none;
    padding: 12px 25px;
    margin: 0;
    cursor: pointer;
    font-size: var(--m-p-font);
    font-weight: 500;
    text-align: center;
    color: var(--other-color);
    border-right: 1px solid var(--other-color);
    transition: all 0.3s ease;
}

    .filter-button:last-child {
        border-right: none;
    }

    .filter-button:hover {
        background-color: var(--main-color);
        color: white;
        transform: translateY(-2px);
    }

    .filter-button.active {
        background-color: var(--main-color);
        color: white;
    }

.galery-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
}

.galery-item {
    display: flex;
    flex-direction: column;
    width: 32%;
    transition: transform 1s ease, box-shadow 0.3s ease;
    position: relative; 
}

    .galery-item img,
    .galery-item iframe {
        width: 100%;
        aspect-ratio: 16/9; 
        object-fit: cover; 
        padding-bottom: 15px;
        border-radius: 5px;
        transition: transform 0.5s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

        .galery-item img:hover,
        .galery-item iframe:hover {
            transform: scale(1.04);
        }

#popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#popup-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    color: var(--second-color);
    cursor: pointer;
}

@media only screen and (max-width: 1000px) {
    .galery-box {
        flex-direction: column;
        align-items: center;
    }

    .galery-item {
        width: 100%;
    }
}
