/* CSS per il Resto del Layout */
.videogallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 50px;
    justify-content: space-between;
}

.videogallery-item {
    position: relative;
    width: 310px;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
}
.videogallery-item:hover {
    transform: scale(1.03);
    transition: ease 0.3s;
}

.videogallery-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.videogallery-category:hover {
    transform: scale(1.1);
    transition: ease 0.3s;
}
.videogallery-category img {
    width: 40px;
    height: 40px;
}

.videogallery-play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: translateX(3px);
}

.videogallery-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: solid 1px #28806E;
    height: 120px;
    margin-bottom: 60px;
}

.videogallery-filters .filter {
    display: flex;
    align-items: center;
    width: 32%;
    justify-content: center;
}

.videogallery-filters .filter button {
    background: none;
    border: none;
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0px;
    font-size: 18px;
    font-weight: 500;
}

.videogallery-filters .filter button img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s;
    margin-bottom: 0px;
}

.videogallery-filters .filter button.active img {
    transform: scale(1.2);
}

.videogallery-filters .filter button.active:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0px;
    height: 1px;
    width: 100%;
    border-bottom: solid 3px #28806E;
}

.videogallery-filters .filter select {
    background-color: #00897b;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 5px 10px;
    cursor: pointer;
    appearance: none;
    height: 40px;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 0px;
    max-width: 90%;
    padding-left: 20px;
}

.videogallery-filters .filter input {
    background-color: #fff;
    border: 1px solid #28806E;
    border-radius: 30px;
    padding: 5px 10px;
    height: 40px;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 0px;
    max-width: 90%;
    padding-left: 20px;
}

.videogallery-loader {
    display: none; 
    position: absolute; 
    z-index: 999;
    left: 50%; 
    bottom: -60px;
    transform: translateX(-50%);
}

.videogallery-loader:after {
    content: " ";
    display: block;
    width: 40px;
    height: 40px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #008779 ;
    border-color: #008779  transparent #008779  transparent;
    animation: videogallery-loader 1.2s linear infinite;
}

@keyframes videogallery-loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*****MOBILE******/

@media only screen and (max-width: 48em) {
    .videogallery-filters .filter {
        width: 100%;
    }
    .videogallery-filters {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }
    .videogallery-filters .filter button.active:after {
        bottom: -10px;
    }
    .videogallery-filters {
        padding: 24px 10px;
    }
}