/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

/* Set global styles */
body {
    font-family:  'Noto Serif JP', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Noto Serif JP', serif;
}

.page-wrapper {
  max-width: 1200px; /* 设置最大宽度 */
  width: 100%; /* 响应式宽度 */
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}


/* Sidebar styles */
.sidebar {
    width: 200px;
    background-color: #f5f1eb;
    color: #333;
    padding: 20px;
    position: fixed;
    height: 100vh;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #ddd;
    transition: transform 0.3s ease; /* Add animation effect */
    z-index: 1000; /* Ensure sidebar is above content */
}

/* Content area styles */
.content {
    margin-left: 220px; /* Ensure content area is next to sidebar */
    padding: 20px;
    flex: 1;
    width: calc(100% - 220px); /* Fill remaining width */
    box-sizing: border-box; /* Calculate width including padding */
    transition: margin-left 0.3s ease, width 0.3s ease;

    justify-content: center; /* Horizontal center */
    align-items: center; /* Vertical center */
    text-align: center; /* If there's text content, center the text */
}

/* Hide on mobile devices */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%); /* Move sidebar out of screen */
    }

    .content {
        margin-left: 0; /* Remove left margin */
        width: 100%; /* Fill screen width */
    }
}

/* 优化 .page-wrapper 的宽度 */
.page-wrapper {
  max-width: 1200px; /* 设置最大宽度 */
  width: 100%; /* 响应式宽度 */
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* 添加更多媒体查询 */
@media screen and (max-width: 1024px) {
  .sidebar {
    width: 180px; /* 缩小侧边栏宽度 */
  }

  .content {
    margin-left: 200px; /* 调整内容区域的左边距 */
  }
}

@media screen and (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%); /* 隐藏侧边栏 */
  }

  .content {
    margin-left: 0; /* 移除左边距 */
    width: 100%; /* 占满屏幕宽度 */
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px; /* 调整字体大小 */
  }

  .sidebar {
    padding: 10px; /* 缩小内边距 */
  }

  .sidebar-title {
    font-size: 1.5em; /* 缩小标题字体大小 */
  }

  .content {
    padding: 10px; /* 缩小内容区域的内边距 */
  }
}

/* Sidebar title styles */
.sidebar-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #640f25;
    text-align: center;
    font-family: 'Noto Serif JP', serif;
}

/* List styles */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    font-family: 'Noto Serif JP', serif;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #fff;
    background-color: #a55f2d;
}

.paper-info,
.paper-citation,
.contact-us {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.8em;
    font-family: 'Noto Serif JP', serif;
}

.video-cell {
    position: relative;
}

.reference_id {
    width: 66%;
    height: 66%;
    /* height: 256px; */
    object-fit: cover;
    position: relative;
    overflow: hidden;
}
  
.prompt-highlight {
    font-weight: bold;
    color: #b94a48; /* You can change this to your preferred color */
}

.prompt-overlay {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0 30px;
box-sizing: border-box; /* 确保 padding 被计算在 width 内 */
margin: auto;
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 8pt;
}

.gallery-item:hover .prompt-overlay {
opacity: 1;
}

.video-frame:hover .prompt-overlay {
opacity: 1;
}


.prompt-overlay-large {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0px;
margin: auto;
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 12pt;
}
.gallery-item:hover .prompt-overlay-large {
    opacity: 1;
}
.video-frame:hover .prompt-overlay-large {
opacity: 1;
}

.paper-info h1{
    font-size: 2.5em;
    font-family: 'Noto Serif JP', serif;
}
.paper-citation h2,
.contact-us h2 {
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Noto Serif JP', serif;
}

.authors {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.authors .author a, .authors .author {
    color: #007acc;
    text-decoration: none;
    font-weight: normal;
}

.authors .author a:hover {
    text-decoration: underline;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.links p {
    margin: 0;
}

.paper-info a {
    color: #007acc;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2em;
}

.paper-info a:hover {
    text-decoration: underline;
}
.affiliations {
    font-size: 1em;
    color: #555;
    
}

.gallery-section {
    margin-bottom: 40px; /* Increase bottom spacing */
    margin-top: 40px; /* Increase top spacing */
}

.gallery-section h2 {
    font-size: 2em; /* Adjust title font size */
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    color: #640f25;
    text-align: center; /* Center text */
}

.gallery-section h3.prompt {
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    color: #161616;
    text-align: left;
    font-weight: normal;
}

.citation-container {
    display: flex;
    justify-content: center;
}
.citation-box {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    max-width: 80%;
}
pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1.5%;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}
.gallery-svd {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 3px;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}
.gallery-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: px;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}

.gallery-32 {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    gap: 10px;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}
.gallery-48 {
    display: grid;
    grid-template-columns: repeat(48, 1fr);
    gap: 10px;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}

.gallery-item-auto-height::before {
    content: none;
}

.gallery-flexible-grid {
    aspect-ratio: unset; 

    grid-template-rows: unset; 

    grid-auto-rows: min-content; 
}

.gallery-60 {
    display: grid;
    grid-template-columns: repeat(60, 1fr);
    grid-auto-rows: 1.5px;
    gap: 10px;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}
.gallery-9 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1.5%;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}

.gallery-8 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5%;
    font-family: 'Noto Serif JP', serif;
    max-width: 1440px;
    margin: 0 auto;
}


.gallery-row {
  display: flex;
  gap: 0px;         
}

.gallery-row .gallery-60 {
  flex: 0 0 50%;       
  max-width: 50%;      
}

.gallery-item {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.gallery-item-none {
    position: relative;
    background-color: #ffffff;
    opacity: 0;
    /* overflow: hidden; */
}

.gallery-item::before {
    content: '';
    display: block;
    padding-bottom: calc(100% / (var(--aspect-ratio)));
}
.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cursor: pointer; */
    transition: transform 0.3s ease-in-out;
}
.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-image-pure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-image-sr {
    position: absolute;
    top: 0;
    left: -40%;
    width: 140%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.3s ease-in-out;
}

.overlay-image-sr {
    position: absolute;
    top: 0;
    left: -40%;
    width: 140%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .overlay-image {
    transform: scale(1.1);
    opacity: 0.7;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .overlay-image-sr {
    transform: scale(1.1);
    opacity: 1.0;
    /* disable box shadow */
    box-shadow: none;
}

.gallery-item:hover .gallery-image-sr {
    transform: scale(1.1);
    opacity: 0.0;
    /* disable box shadow */
    box-shadow: none;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    opacity: 0.3;
}

.text-prompt{
    text-align: left;
    padding: 2%;
    font-size: 1em;
    max-width: 1440px;
    margin: 0 auto;
}

.resolution,
.resolution-svd,
.resolution-sd3,
.resolution-video
.resolution-1-5 {
    position: absolute;
    /* top: 10px;
    left: 10px; */
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    font-size: 1.1em;
    border-radius: 3px;
    font-family: 'Noto Serif JP', serif;
}

.resolution-frames {
    margin-right: 8px;
    /* top: 10px;
    left: 10px; */
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    font-size: 0.8em;
    border-radius: 3px;
    font-family: 'Noto Serif JP', serif;
    float: left;
}

.gallery-text {
  text-align: center;  /* 或者 center/left，看你需要 */
}

.gallery-text p {
  /* background-color: rgba(0, 0, 0, 0.7); */
  /* color: #fff; */
  color: #161616;
  padding: 2px 2px;
  font-size: 1.6em;
  font-weight: 700;
  border-radius: 3px;
  font-family: 'Noto Serif JP', serif;
}

.frame-text {
  text-align: center;  /* 或者 center/left，看你需要 */
}

.frame-text p {
  /* background-color: rgba(0, 0, 0, 0.7); */
  /* color: #fff; */
  color: #161616;
  padding: 2px 2px;
  font-size: 1.0em;
  border-radius: 3px;
  font-family: 'Noto Serif JP', serif;
  font-style: italic;  /* 保留斜体 */
}

/* Different background colors for different classes */
.resolution-svd {
    background-color: rgba(87, 51, 15, 0.7);
}

.resolution-sd3 {
    background-color: rgba(166, 148, 48, 0.7);
}

.resolution-1-5 {
    background-color: rgba(17, 65, 68, 0.7);
}

/* Hide on mobile devices */
@media screen and (max-width: 768px) {
    .resolution,
    .resolution-svd,
    .resolution-sd3,
    .resolution-1-5 {
        display: none;
    }
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(211, 211, 211, 0.5);
    color: #333;
    padding: 5px 10px;
    font-size: 1.2em;
    border-radius: 3px;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: calc(100% - 100px); /* Leave space for thumbnail */
    overflow: auto;
    position: relative;
}

.modal-content {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease; /* Add smooth zoom animation */
    cursor: grab; /* Add grab cursor */
    width: auto; /* Ensure initial width */
    height: auto; /* Ensure initial height */
    max-width: 100%;
    max-height: 100%;
}

.modal-content:active {
    cursor: grabbing; /* Add drag cursor */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.thumbnails {
    position: fixed;
    top: 50%;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80%;
    overflow-y: auto;
    transform: translateY(-50%);
    z-index: 2;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.thumbnails img:hover {
    transform: scale(1.1);
}

.thumbnail-active {
    border: 2px solid #007acc;
}

#mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 69, 0, 0.9); /* Semi-transparent red-orange */
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

#mobile-warning button {
    background-color: white;
    color: rgba(255, 69, 0, 0.9);
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

#mobile-warning button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}



/* 1. 创建一个 Flexbox 容器，用于横向排列 B, C, D 三组 */
.showcase-container {
    display: flex;
    justify-content: space-between; /* 让三组内容均匀分布 */
    gap: 20px; /* 三组之间的间距 */
    align-items: flex-start; /* 所有组都从顶部开始对齐 */
        /* 【新增】设定一个最大宽度，防止无限拉伸 */
    max-width: 100%; 
    /* 【新增】让容器自身在页面中居中 */
    margin: 0 auto; 
}

/* 2. 为每一组 Demo 创建一个独立的 Grid 布局 */
.showcase-item {
    display: grid;
    gap: 10px; /* 网格内部的间距 */
    flex: 1;
}

/* 3. 定义每一组内部的列布局 */
/* B组: Condition(5fr) 和 Video(8fr) */
.showcase-item--b {
    grid-template-columns: 5fr 8fr;
}
/* C组: Condition(6fr) 和 Video(15fr) */
.showcase-item--c {
    grid-template-columns: 6fr 15fr;
}
/* D组: Condition(5fr) 和 Video(11fr) */
.showcase-item--d {
    grid-template-columns: 5fr 11fr;
}

/* 4. 定义网格元素应该放在哪个列 */
.item-condition {
    grid-column: 1; /* Condition 元素永远在第 1 列 */
}
.item-video {
    grid-column: 2; /* Video 元素永远在第 2 列 */
}

/* 5. 确保图片和视频填满容器 */
.showcase-item img,
.showcase-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.video-container-standalone {
    /* 1. 设定一个最大宽度，防止在4K屏幕上过宽，同时保持响应式 */
    max-width: 960px; /* 你可以根据喜好调整这个值 */
    width: 90%; /* 在小屏幕上，宽度为父容器的90% */

    /* 2. 经典的水平居中技巧 */
    margin-left: auto;
    margin-right: auto;

    /* 3. 增加一些垂直间距，让它有呼吸感 */
    margin-top: 40px;
    margin-bottom: 40px;

    /* 4. 加上和 gallery-item 类似的阴影和圆角，保持风格统一 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden; /* 确保视频的圆角生效 */
}

/* 确保容器内的视频是响应式的 */
.video-container-standalone video {
    width: 100%;
    height: auto; /* 关键！让高度自动调整以保持原始宽高比 */
    display: block; /* 消除视频下方的微小间隙 */
}



.supergrid-container {
    display: grid;
    /* 1. 创建一个12列的、更简洁的网格系统 */
    grid-template-columns: repeat(12, 1fr); 
    gap: 20px; /* 设置列之间的间距 */
    align-items: start; /* 顶部对齐 */
    
    /* 2. 增加一些垂直外边距 */
    margin-top: 20px;
    margin-bottom: 40px;
}








/* 行容器：每行固定 2 个 case，自动换行 */
.new-gallery-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(560px,1fr));
  column-gap:48px;
  row-gap:40px;
  width:100%;
}
@media (max-width:1199px){ .new-gallery-row{ grid-template-columns:1fr; }}

/* case = 标题 + 主体 */
.case{ display:grid; grid-template-rows:auto auto; gap:12px; }

/* 标题：左右两列 */
.case-head{
  display:grid;
  grid-template-columns:1fr 2.5fr;
  gap:20px;
  align-items:baseline;
}
/* .case-title{ font-weight:700; text-align:center; } */
.case-title {
  font-size: clamp(14px, 1.2vw, 20px); /* 原来是 18~28，现在控制在 14~20 之间 */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2px;
  margin-block: 2px 8px;
}


/* 主体：左图栈/右视频 —— 让“行高由视频决定”，禁止拉伸 */
.case-body{
  display:grid;
  grid-template-columns:1fr 2.5fr;   /* 左 / 右 */
  gap:20px;
  align-items:start;                 /* ★ 不把较矮一方拉伸 */
  min-width:0;
}
.case-body > *{ min-width:0; min-height:0; }

/* 右：视频容器 —— 用 16:9 定高，自己也不参与拉伸 */
.video-frame{
  /* aspect-ratio:16/9;                 ★ 视频给出标准高度 */
  width:100%;
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#000;
  align-self:start;                  /* ★ 不被行高拉伸 */
}
/* 清空旧项目对 .gallery-video 的绝对定位/cover 等 */
.case .video-frame > video,
.case .video-frame > .gallery-video{
  all:unset;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;                /* 容器与视频同为 16:9 → 不会出现黑边 */
  object-position:center;
}

/* 左：四图栈 —— 允许“随视频高度收缩”，并等分、居中 */
.stack4{
  /* 关键：让左列高度跟随行高，内部用 flex 平均分摊压缩 */
  min-height:0;                      /* ★ 允许低于内容自然高度 */
  display:flex;
  flex-direction:column;
  gap:12px;
  align-self:stretch;                /* 占满分配到的网格高度 */
}
.slot{
  min-height:0;                      /* ★ 子项也允许收缩 */
  display:flex;
  flex-direction:column;             /* label 在上，图片区在下 */
  flex:1 1 0;                        /* ★ 四格等分总高度，并可压缩 */
  gap:6px;
}
.slot .label{
  flex:0 0 auto;                     /* 文本占自身高度 */
  font-style:italic;
  text-align:center;
  line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.slot .imgbox{
  /* 图像区吃掉剩余高度，宽度不够时居中“小放” */
  flex:1 1 0;
  min-height:0;                      /* ★ 允许收缩 */
  display:flex; align-items:center; justify-content:center;
  padding:6px 18px;
  border-radius:8px;
  background:#f0f0f0;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.slot .imgbox img{
  max-width:100%;
  max-height:100%;
  width:auto; height:auto;
  object-fit:contain;                /* 等比，不拉伸 */
  display:block;
}

/* 窄屏：上下排时左列恢复自然高度 */
@media (max-width:992px){
  .case-head{ grid-template-columns:1fr; gap:6px; }
  .case-body{ grid-template-columns:1fr; }
}



/* 给 slot 加 .slot--side 即启用侧边标签布局 */
.slot.slot--side{
  display: grid;
  grid-template-columns: 70px 1fr;   /* 左 64px 给 label，右侧全部给图片 */
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
}

/* 侧边标签样式（你也可以竖排：writing-mode: vertical-rl） */
.slot.slot--side .label{
  text-align: center;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 图片区域吃满整格高度 */
.slot.slot--side .imgbox{
  height: 100%;
  padding: 4px 8px;        /* 更小的内边距 */
}

/* 图片以高度贴满；宽度不足居中 */
.slot.slot--side .imgbox img{
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


