* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
}

/*----------------------------------------------------REALISATION----------------------------------------------------*/
h1 {
    margin-top: 12%;
    text-align: center;
}

.filter-container {
    margin-top: 3%;
    text-align: center;
}

.filter-button {
    padding: 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    background: #000000;
    color: white;
}

.filter-button:hover {
    background: #313131;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 3%;
}

.gallery-item {
    display: none;
    width: 300px;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.show {
    display: block;
}

.mobile-filter-container {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.mobile-filter-button {
    padding: 10px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100px;
}

.mobile-filter-menu {
    display: none;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
}

.mobile-filter-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
}

.mobile-filter-menu.active {
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.carousel {
    position: relative;
}

.slides img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    text-align: center;
}

.slides img {
    max-width: 100%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.toggle-btn {
    display: none;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/*---------------------- Responsive ----------------------*/
@media screen and (max-width: 768px) {
    .filter-container {
        display: none;
    }

    .mobile-filter-container {
        display: block;
    }

    .mobile-filter-container {
        margin-top: 10%;
    }

    .gallery-item {
        width: 250px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-filter-container {
        margin-top: 15%;
    }

    .gallery-item {
        width: 100%;
        max-width: 300px;
    }
}