#media{
    width: 100%;
}

.media-mobile-slider {
  display: none;
}

.media-content-container{
	width: fit-content;
}

@media (max-width: 992px) {
  	.media-mobile-slider {
    	display: block;
    	margin-top: 20px;
		margin-bottom: 20px;
		width: 100%;
  	}
	.media-desktop-slider{
		display: none;
	}
}

.swiper-media {
  display: none;
}

.media-category{
    display: flex;
    align-content: center;
    justify-content: center;
	flex-direction: column;
	align-items: center;
}

.category-title-area{
	width: 100%;
	max-width: 1300px;
}

.category-title{
    font-weight: 500;
    font-size: 24px;
    line-height: 40px;
    margin-bottom: 40px;
	@media (max-width: 992px) {
		margin-bottom: 0px;
	}
}

.media-category-text{
    text-transform: uppercase;
    font-weight: 500;
}

.media-image-container{
    overflow: hidden;
}

.media-image-container > img{
	@media (max-width: 992px) {
		width: 100%;
		min-width: 300px;
		height: 100%;
	}
}


.media-card-container{
    cursor: pointer;
	border-radius: 8px 8px 0px 0px;
	overflow: hidden;
}

.media-card-container:hover .attachment-post-thumbnail{
     transform: scale(1.2,1.2);
}

.media-category:nth-child(even) {
  background-color: #F7F7F7; /* grigio chiaro */
}

.media-category:nth-child(odd) {
  background-color: #F0F0F0;
}

.media-category{
	padding-top: 65px;
    padding-right: 20px;
    padding-bottom: 65px;
    padding-left: 20px;
	@media (max-width: 992px) {
		padding-top: 27px;
    	padding-right: 17px;
    	padding-bottom: 27px;
    	padding-left: 17px;
	}
}

.media-category-container{
    max-width: 1300px;
    width: 100%;
}

.media-category-container .attachment-post-thumbnail{
    width: 100% !important;
    height: 100% !important;
    transition: 0.8s;
}

.category-items{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
}

.media-video-container{
    height: 100%;
    justify-content: center;
}

.youtube-embed-container{
    width: 70%;
    aspect-ratio: 16/9;
    position: relative;
}

@media(max-width: 992px){
    .youtube-embed-container{
        width: 100%;
    }
    .swiper-button-prev img, .swiper-button-next img{
        width: 50px !important;
    }
}

.swiper-horizontal .swiper-button-prev{
    left: 5% !important;
}
.swiper-horizontal .swiper-button-next{
    right: 5% !important;
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


//SWIPER

.swiper-media{
    display: none;
}

.swiper-slide{
    display: flex;
    align-content: center;
    justify-content: center;
}

.close-swiper-wrapper{
    z-index: 1000;
    position: fixed;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    
}

.invisible {
  display: none;
}

.swiper-button-prev svg, .swiper-button-next svg{
    width: fit-content !important;
    display: none !important;
}

.visible {
  display: flex !important;
  align-content: center;
  background: #000000cf;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}