<style>
  /* review.twig */
  #file-input {
    display: none;
   }
   
   #custom-file-button {
    /* 自定义按钮样式 */
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 30px;    
}

  #custom-file-button:hover {
    background-color: #0056b3;
}


/* review_list.twig */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        padding-top: 100px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        padding: 1px;
        width: 40%; 
        height: 70%;
        max-width: 100vw;  /*图片最大宽度 */
        max-height: 100vh;  /*图片最大高度 */
         
        /*  max-width: 100%; 确保图像在容器内自适应 */
        object-fit: contain;  /*保持图片比例 */
    }


   .close_img {
        color: white;
        position: absolute;
        top: 15px;
        right: 35px;
        font-size: 40px;
        font-weight: bold;
    }

    .prev_re, .next_re {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 16px;
       
        margin-top: -50px;
        color: white;
        font-weight: bold;
        font-size: 36px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
    }

    .next_re {
        right: 0;
        border-radius: 3px 0 0 3px;
    }
    
    .prev_re {
        left: 0;
        border-radius: 3px 0 0 3px;
    }
    
    


    .prev_re:hover, .next_re:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    #modalCaption1 {
        color: white;
        text-align: center;
        margin-top: 10px;
    }
    




  .review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .review-images img {
    flex: 1 1 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    cursor: pointer; /* 鼠标指针变化 */
  }



  @media (max-width: 600px) {
    .review-images {
      justify-content: center;
    }
    .review-images img {
      flex: 1 1 80px; /* 在小屏幕上调整图片大小 */
      max-width: 80px;
      max-height: 80px;
    }
    
  }
  

/* 媒体查询 - 针对手机端 */
@media (max-width: 600px) {
    .modal-content {
        width: 90%; 
        height: 96%;
        max-width: 96vw; /* 手机端图片最大宽度 */
        max-height: 50vh; /* 手机端图片最大高度 */
    }
}

/* 媒体查询 - 针对平板设备 */
@media (min-width: 600px) and (max-width: 1024px) {
    .modal-content {
        width: 90%; 
        height: 96%;
        max-width: 80vw; /* 调整为平板设备上的最大宽度 */
        max-height: 70vh; /* 调整为平板设备上的最大高度 */
    }
}
 



/* 媒体查询 - 针对手机端的样式 */
@media (max-width: 600px) {
    .prev_re, .next_re {
        font-size: 12px; /* 调整字体大小 */
        padding: 2px;   /* 调整内边距 */
        margin-top: -16px; /* 调整垂直居中的位置 */
    }
    
}

/* product.twig */

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

 
.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    /* max-width: 1000px; 最大宽度 */
    /*max-height: 600px;  最大高度 */
    
    width: 50%; /* 默认宽度 */
    height: 60%; /* 默认高度 */
    max-width: 100vw;  /*最大宽度 */
    max-height: 98vh;  /*最大高度 */
    
    overflow: hidden; /* 溢出处理 */
}


/* 媒体查询，针对小屏幕设备 */
@media screen and (max-width: 600px) {
    .video-modal-content {
        width: 98%; /* 调整模态框宽度 */
        height: 40%; /* 调整模态框高度 */
        max-width: none; /* 取消最大宽度限制 */
        max-height: none; /* 取消最大高度限制 */
    }
}


.close{
    position: absolute;
    top: -5px;
    right: -5px;

    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: blue;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
 
}


</style>