.entertainment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}
.entertainment-page-image,
.entertainment-page-video{
    width: 100%; 
    height: 700px; 
    margin-bottom: 20px; 
	position: relative;
} 
.entertainment-page-image img,
.entertainment-page-video video{ 
    width: 100%!important; 
    height: 100%!important; 
    object-fit: cover; 
    object-position: center; 
    display: block; 
}
.entertainment-page-image:after,
.entertainment-page-video:after{
	background-image: url(/wp-content/uploads/2024/06/border-top-r.png);
    position: absolute;
    content: "";
    bottom: -31px;
    right: 0;
    height: 86px;
    width: 87%;
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 100%;
    background-position: left center;
}
.entertainment-page-content {
    max-width: 1600px;
    margin: 4em auto;
    padding-bottom: 4em;
    text-align: center;
	padding: 20px;
}

.entertainment-page-title {
    font-size: 50px;
    color: #f5e0a0;
    margin-bottom: 15px;
    padding-bottom: 5px;
	font-family: 'Ryhmes Display';
    letter-spacing: 1px;
}

.entertainment-page-description {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Ryhmes Display';
}

.entertainment-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
    display: none !important;
}

/* Layout predefinito: 3 colonne (video + content + gallery) */
.entertainment-video {
    flex: 1 1 18%;
    max-width: 18%;
    height: 468px;
}

.entertainment-video iframe,
.entertainment-video video {
    width: 100%;
    height: 100%;
	object-fit: cover;
    object-position: center;
}

.entertainment-content {
    flex: 1 1 63%;  
    max-width: 63%;
    min-width: 0;
    height: 468px;
    display: flex;
    flex-direction: column;
    font-family: 'Ryhmes Display';
}

.entertainment-gallery {
    flex: 1 1 20%;
    max-width: 20%;
    height: 468px;
}
.entertainment-video video::-webkit-media-controls-fullscreen-button {
    display: none;
}
/* Layout con solo content e gallery (manca video) */
.entertainment-item.no-video .entertainment-content {
    flex: 1 1 80%;
    max-width: 80%;
}

.entertainment-item.no-video .entertainment-gallery {
    flex: 1 1 20%;
    max-width: 20%;
}

/* Layout con solo video e content (manca gallery) */
.entertainment-item.no-gallery .entertainment-video {
    flex: 1 1 18%;
    max-width: 18%;
}

.entertainment-item.no-gallery .entertainment-content {
    flex: 1 1 83%;
    max-width: 83%;
}

/* Layout con solo content (mancano video e gallery) */
.entertainment-item.content-only .entertainment-content {
    flex: 1 1 100%;
    max-width: 100%;
	height: initial;
}

.entertainment-title {
    font-size: 28px;
    color: #ffffff; 
    margin-bottom: 15px;
    text-transform: none; 
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    font-family: 'Swiss 721';
    flex-shrink: 0;
}

.entertainment-description-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.entertainment-description-wrapper.has-overflow:not(.expanded) .entertainment-description {
    max-height: calc(468px - 100px); 
    overflow: hidden;
    position: relative;
}

.entertainment-description {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc; 
    text-transform: none;
    overflow-y: auto;
    padding-right: 10px;
}

.entertainment-description-wrapper.expanded .entertainment-description {
    max-height: none !important;
}

.read-more-btn {
	margin-left: auto;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: transparent;
    color: #ffffff;
    border: 0px solid #ffffff;
    cursor: pointer;
    font-family: 'Swiss 721';
    font-size: 12px;
    /* text-transform: uppercase; */
    transition: all 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
}

.read-more-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.entertainment-gallery .swiper {
    width: 100%;
    height: 100%;
}

.entertainment-gallery .swiper-slide img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
}

.entertainment-description::-webkit-scrollbar {
    width: 6px;
}

.entertainment-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.entertainment-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.entertainment-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .entertainment-item,
    .entertainment-item.no-video,
    .entertainment-item.no-gallery,
    .entertainment-item.content-only {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .entertainment-video {
        position: relative;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        overflow: hidden;
        height: auto;
    }
    
    .entertainment-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    .entertainment-content,
    .entertainment-gallery,
    .entertainment-item.no-video .entertainment-content,
    .entertainment-item.no-video .entertainment-gallery,
    .entertainment-item.no-gallery .entertainment-video,
    .entertainment-item.no-gallery .entertainment-content,
    .entertainment-item.content-only .entertainment-content {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
    }
    .entertainment-page-title {
    	font-size: 35px;
	}
    .entertainment-content {
        min-height: auto;
    }
    
    .entertainment-description-wrapper.has-overflow:not(.expanded) .entertainment-description {
        max-height: 200px;
    }
    
    .entertainment-video {
        margin-bottom: 20px;
    }
    
    .entertainment-title {
        font-size: 22px;
    }
    
    .entertainment-description {
        font-size: 15px;
    }
    
    .entertainment-gallery {
        height: 300px;
    }
}