/* aggiunto da liberti per modificare in libertà i css del portale */
html {
  overflow-x: hidden;
}

#videoContainerSwiperInitNEW {
  overflow: unset;
}

.video_carousel_div_img {
  background-color: var(--background-primary-color-video, black);
}

.folder_carousel_div_overlay_text_description,
.folder_carousel_div_overlay_text_title {
  color: var(--main-text-color-video);
}

.video_carousel_img_div:hover .box_description {
  position: absolute;
}

.folder_carousel_div_overlay_text_title {
  white-space: nowrap;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.indexSection {
  overflow-y: visible;
  overflow-x: hidden;
  z-index: -1;
}

#folderAndRelatedFilesContainer .indexSection {
  overflow: unset;
}

.div_tag_value_preview_mouseover {
  font-size: x-small;
  color: var(--main-text-color-video, white);
  /* border: 1px solid; LIB 25/11/2025 non più richiesto il border sui tag*/
  border-radius: 4px;
}

.vodCenterLetLive {
  max-height: unset;
}

.hrLineUnderSubTitle {
  border: 1px solid;
  width: 96%;
  padding: 0;
  color: cornflowerblue;
  margin: 0px 0px 20px 5px;
}

.folder_carousel_div_overlay_text_title p {
  text-overflow: ellipsis;
  width: 100%;
  overflow: hidden;
}

#RowVideoCase .content {
  max-height: unset;
}

#RowVideoCase img,
#rowVideosContainer img {
  width: 100%;
  max-height: unset;
}

#RowVideoCase {
  /* bugfix 7677 aggiunto padding */
  padding-bottom: 30vh;
}

#NewVideosRow img,
#folderAndRelatedFilesContainer img {
  width: 100%;
}

.box_description {
  display: none;
  background-color: var(--background-primary-color-video);
  padding: 5px;
  color: var(--main-text-color-video);
}

.box_description ul {
  width: 100%;
  overflow: auto;
}

.box_description ul::-webkit-scrollbar {
  height: 5px;
}

#overlayFolder {
  overflow: unset;
}

#RowVideoCase .modal_header_no_padding_bottom .row {
  height: 0px;
}

.buttonPlayMouseover {
  cursor: pointer;
}

.box_description .xSmall.marginRight2px {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 30%;
}

.svg_play_preview_mouseover {
  width: 7vw !important;
  max-width: 38px;
}

.buttonPlayMouseover {
  position: absolute;
  left: 85%;
  top: 0;
  background-color: var(--background-primary-color-video, black);
  border-radius: 40px;
  transform: translate(-50%, -50%);
}

.video_carousel_div_img {
  margin: 5px;
  width: auto;
}

.descriptionBox {
  padding: 0;
  color: var(--main-text-color-video, black);
  font-size: 16px;
  display: -webkit-box;
  overflow-wrap: break-word;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: inherit;
  margin-bottom: 5px;
}

#rowVideosContainer {
  padding-bottom: 33vh;
  /* aumentato di un altro pò perche generava errore grafico bug 5829 */
}

/* modifiche per letlive 08-04-2024 */
#subArtistsTagContainerDiv .box_description {
  display: block;
}

/* modifiche per letlive 08-04-2024 */
#folderAndRelatedFilesContainer .box_description {
  display: none;
}

@media screen and (max-width: 991px) and (orientation: landscape) {
  .videoFromLeftList {
    width: 30vw !important;
  }
}

@media (pointer: fine) {
  #RowVideoCase .video_carousel_div_img:hover {
    background-color: unset;
  }

  .hasMouseover:hover {
    overflow: visible;
    z-index: 2;
  }
}

@media (pointer: fine) {
  /* aggiunto min-width poichè il pointer fine non funziona su ipad */
  .video_carousel_div_img:hover .box_image

    /* .vodLetLive_div_img:hover .box_image, */
    /* .artistPageSwiperSlide:hover .box_image     */ {
    border: 1px solid var(--mouseover-border, white) !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0;
  }

  .video_carousel_div_img:hover .box_description,
  .vodLetLive_div_img:hover .box_description,
  .video_carousel_img_div:hover .box_description,
  .artistPageSwiperSlide:hover .box_description {
    border: 1px solid var(--mouseover-border, white) !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px;
    margin-left: 0px;
    width: 100%;
  }

  #subArtistsTagContainerDiv .box_description {
    border: none !important;
  }

  #subArtistsTagContainerDiv .artistPageSwiperSlide:hover {
    border: 1px solid var(--mouseover-border, white) !important;
    border-top: 0 !important;
    border-radius: 10px 10px 10px 10px;
    margin-left: 0px;
    width: 100%;
  }

  .video_carousel_div_img:hover img,
  .vodLetLive_div_img:hover {
    border-radius: 10px 10px 0 0 !important;
  }

  /* .video_carousel_img_div:hover > div > .folder_carousel_div_overlay_text_title {
        display: none;
    } */

  .hasMouseover:hover .box_description .folder_carousel_div_overlay_text_title {
    display: block;
    line-height: initial;
  }

  .videoOverlaySection .video_carousel_div_img:hover {
    height: 20vh;
  }

  .hasMouseover:hover .box_description {
    position: absolute;
  }

  #subvideoInFolderContainerDiv .video_carousel_img_div:hover {
    border-radius: 10px !important;
    padding: 0;
  }

  #subvideoInFolderContainerDiv .video_carousel_img_div:hover img {
    border-radius: 10px 10px 0 0;
  }

  .video_carousel_img_div {
    padding: 0;
    background-color: unset;
  }

  .video_carousel_img_div:hover .box_image,
  .vodLetLive_div_img:hover .box_image {
    border: 1px solid var(--mouseover-border, white);
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0;
  }

  /* LIB tolto mouseover da reel e shorts */
  #ReelsVideosRow .video_carousel_img_div:hover .box_image,
  #ReelsVideosRow .vodLetLive_div_img:hover .box_image,
  #ShortsVideosRow .video_carousel_img_div:hover .box_image,
  #ShortsVideosRow .vodLetLive_div_img:hover .box_image,
  #rowVideoSearchVertical .vodLetLive_div_img:hover .box_image {
    border: none !important;
    border-radius: 0 !important;
  }

  .video_carousel_img_div:hover img,
  .vodLetLive_div_img:hover img {
    border-radius: 10px 10px 0 0;
  }

  .video_carousel_img_div:hover .box_description,
  .vodLetLive_div_img:hover .box_description {
    width: 100%;
    border: 1px solid var(--mouseover-border, white);
    border-radius: 0 0 10px 10px;
    border-top: 0 !important;
    margin-left: 0;
  }

  .video_carousel_img_div:hover,
  .vodLetLive_div_img:hover {
    position: relative;
  }
}

@media (pointer: coarse) {
  #filesContainerNEW > div:first-child {
    height: 100%;
  }

  #NewVideosRow img,
  #folderAndRelatedFilesContainer img {
    max-width: unset;
    width: 100%;
  }

  div.containerOtherVideos.destroyOnCloseOverlay {
    display: grid;
    flex-wrap: wrap;
    place-content: inherit;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    grid-template-columns: repeat(3, calc(100% / 3));
    width: auto;
    overflow-x: clip;
    margin-bottom: 100px;
    grid-gap: 10px;

    aspect-ratio: unset;
    object-fit: unset;
    max-width: unset;
  }

  div.containerOtherVideos.destroyOnCloseOverlay .imgSwiperNetwork {
    width: 100%;
    max-width: unset;
  }
}

@media screen and (max-width: 1440px) {
  #fileOverlayInfoTitle h4 {
    margin: 0;
  }
}

@media screen and (max-width: 991px) {
  .box_description .folder_carousel_div_overlay_text_title p {
    font-size: medium;
  }

  #folderAndRelatedFilesContainer .container_description > p,
  #filesContainerNEW .container_description > p {
    font-size: 14px;
  }

  #folderOverlayInfoTitle > h4 {
    display: block;
    max-width: 45vw;
  }

  div.containerOtherVideos.destroyOnCloseOverlay {
    grid-template-columns: repeat(2, calc(100% / 2));
  }

  .descriptionBox {
    width: unset;
    max-width: unset;
  }
}

@media screen and (max-width: 767px) {
  #fileOverlayInfoTitle h4 {
    margin: 0;
  }

  .imgSwiperNetwork {
    max-width: unset;
    width: 100% !important;
  }

  div.containerOtherVideos.destroyOnCloseOverlay {
    grid-template-columns: repeat(2, calc(100% / 2));
  }
}

@media screen and (max-width: 450px) and (pointer: coarse) {
  #RowVideoCase,
  #rowVideosContainer,
  .imgSwiperNetworkMouseover {
    grid-template-rows: auto;
    grid-auto-rows: auto;
  }
}

/* Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  div.containerOtherVideos.destroyOnCloseOverlay {
    grid-template-columns: repeat(2, calc(100% / 2));
  }
}
