/* ============================================
   崖州八大丞相 - 三段式布局样式
   设计哲学：古风转盘，交互体验
   ============================================ */

/* ===== CSS变量定义 ===== */
:root {
  --wheel-size: 380px;
  --wheel-center-size: 180px;
  --wheel-item-size: 65px;
  --wheel-radius: 145px;
  
  /* 颜色系统 - 与全局变量保持一致 */
  --color-primary-900: #3d2314;
  --color-primary-800: #5c3218;
  --color-primary-700: #7a4220;
  --color-primary-600: #8b4513;
  --color-primary-500: #a0522d;
  --color-primary-400: #b87333;
  
  --color-gold-600: #b8860b;
  --color-gold-500: #c9a961;
  --color-gold-400: #d4b896;
  --color-gold-300: #e8d4a8;
  --color-gold-200: #f0e6cc;
  --color-gold-100: #f8f3e6;
  
  --color-paper-900: #2c2416;
  --color-paper-800: #4a4035;
  --color-paper-700: #6b5d4d;
  --color-paper-600: #8b7355;
  --color-paper-500: #a08b6d;
  --color-paper-400: #c4b5a0;
  --color-paper-300: #d9cfc0;
  --color-paper-200: #e8e0d0;
  --color-paper-100: #f0ece3;
  --color-paper-50: #f8f6f1;
  
  --color-teal-600: #2d6a4f;
  --color-teal-500: #40916c;
  --color-teal-400: #52b788;
  
  --shadow-sm: 0 1px 2px rgba(61, 35, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(61, 35, 20, 0.08);
  --shadow-lg: 0 8px 24px rgba(61, 35, 20, 0.12);
  --shadow-xl: 0 16px 48px rgba(61, 35, 20, 0.16);
  --shadow-2xl: 0 24px 64px rgba(61, 35, 20, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
  
  /* 动画 */
  --wheel-rotate-duration: 40s;
}

/* ===== 转盘区块整体布局 ===== */
.officials-wheel-section {
  padding: 60px 5%;
  background: linear-gradient(180deg, var(--color-paper-50) 0%, var(--color-paper-100) 50%, var(--color-paper-200) 100%);
  position: relative;
  overflow: hidden;
}

.officials-wheel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ===== 三段式布局 ===== */
.officials-three-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* ===== 上段：转盘 + 人物信息 ===== */
.layout-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* 左侧：人物转盘 */
.top-left.wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

/* 转盘主体 */
.wheel-wrapper {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 转盘外圈 */
.wheel-outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.05) 100%);
  border: 2px dashed var(--color-gold-300);
  animation: wheel-rotate var(--wheel-rotate-duration) linear infinite;
}

/* 虚线装饰圈 */
.wheel-outer-ring::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.3);
}

/* 转盘内圈背景 */
.wheel-inner-bg {
  position: absolute;
  width: calc(var(--wheel-size) - 60px);
  height: calc(var(--wheel-size) - 60px);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, var(--color-paper-100) 100%);
  box-shadow: inset 0 2px 20px rgba(61, 35, 20, 0.08);
}

/* 转盘旋转动画 */
@keyframes wheel-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 转盘中心人物肖像 */
.wheel-center {
  position: absolute;
  width: var(--wheel-center-size);
  height: var(--wheel-center-size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-600) 50%, var(--color-primary-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(61, 35, 20, 0.3);
  z-index: 100;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.wheel-center:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(61, 35, 20, 0.4);
}

.wheel-center::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.wheel-center-portrait {
  width: calc(var(--wheel-center-size) - 16px);
  height: calc(var(--wheel-center-size) - 16px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: var(--color-paper-100);
  transition: all 0.5s var(--ease-out-expo);
}

/* 转盘人物节点 */
.wheel-items-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: wheel-rotate var(--wheel-rotate-duration) linear infinite;
}

.wheel-item {
  position: absolute;
  width: var(--wheel-item-size);
  height: var(--wheel-item-size);
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-gold-300);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(61, 35, 20, 0.15);
  animation: wheel-counter-rotate var(--wheel-rotate-duration) linear infinite;
  z-index: 50;
}

@keyframes wheel-counter-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.wheel-item:hover {
  transform: scale(1.15);
  border-color: var(--color-primary-500);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
  z-index: 60;
}

.wheel-item.active {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2), 0 6px 20px rgba(139, 69, 19, 0.3);
  transform: scale(1.2);
  z-index: 60;
}

.wheel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wheel-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--color-primary-700);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wheel-item:hover::after,
.wheel-item.active::after {
  opacity: 1;
}

/* 转盘控制按钮 */
.wheel-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.wheel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-primary-700);
}

.wheel-nav-btn:hover {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
  transform: scale(1.1);
}

.wheel-nav-btn svg {
  width: 20px;
  height: 20px;
}

.wheel-indicator {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-paper-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wheel-indicator .current {
  color: var(--color-primary-700);
  font-weight: 700;
  font-size: 1.5rem;
}

/* ===== 右侧：人物信息展示 ===== */
.top-right.info-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.official-info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-paper-200);
  transition: all 0.5s var(--ease-out-expo);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.official-info-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-paper-200);
  position: relative;
}

.official-info-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-300), transparent);
  border-radius: 2px;
}

.official-era-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-600));
  color: white;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.official-era-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold-400);
  border-radius: 50%;
}

.official-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary-900);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.official-title {
  font-size: 1rem;
  color: var(--color-gold-600);
  font-weight: 500;
  margin-bottom: 6px;
}

.official-period {
  font-size: 0.9375rem;
  color: var(--color-paper-500);
  font-family: var(--font-serif);
}

.official-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-paper-800);
  text-align: justify;
  flex: 1;
  overflow-y: auto;
}

/* ===== 下段：整合的贡献展示区 ===== */
.layout-bottom-section {
  width: 100%;
}

.combined-contributions-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-paper-200);
}

.combined-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-paper-200);
}

.combined-header h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary-800);
  font-weight: 600;
}

.combined-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-500);
}

.combined-icon svg {
  width: 24px;
  height: 24px;
}

/* 整合内容区：左右布局 */
.combined-content {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}

/* 左侧：图片展示 */
.combined-image-section {
  position: relative;
}

.combined-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-paper-200);
}

.combined-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.combined-image-wrapper:hover img {
  transform: scale(1.05);
}

.combined-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(45, 35, 25, 0.9) 0%, rgba(45, 35, 25, 0.6) 60%, transparent 100%);
  transition: all 0.4s ease;
  pointer-events: none;
}

.combined-image-wrapper:hover .combined-image-overlay {
  background: linear-gradient(to top, rgba(45, 35, 25, 0.95) 0%, rgba(45, 35, 25, 0.7) 70%, transparent 100%);
}

.combined-image-caption {
  color: white;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 图片占位符 - 优化为文字信息展示 */
.combined-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(201, 169, 97, 0.08) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-paper-200);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.combined-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-300), var(--color-gold-400));
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  color: var(--color-gold-500);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.2);
}

.placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-primary-700);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
}

.placeholder-desc {
  color: var(--color-paper-600);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
}

/* 右侧：贡献列表 */
.combined-list-section {
  max-height: 320px;
  overflow-y: auto;
}

.contributions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contribution-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, var(--color-paper-50) 100%);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border-left: 4px solid var(--color-gold-500);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.contribution-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-primary-600);
}

.contribution-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold-400), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contribution-item:hover::before {
  opacity: 1;
}

.contribution-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-primary-700);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contribution-title::before {
  content: '▸';
  color: var(--color-gold-500);
  font-size: 0.75rem;
  margin-top: 3px;
}

.contribution-details {
  margin-bottom: 10px;
}

.contribution-details p {
  font-size: 0.875rem;
  color: var(--color-paper-700);
  line-height: 1.7;
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.contribution-details p::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--color-gold-400);
}

.contribution-significance {
  font-size: 0.8125rem;
  color: var(--color-teal-600);
  font-style: italic;
  padding: 12px;
  background: linear-gradient(90deg, rgba(45, 106, 79, 0.08), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 2px solid var(--color-teal-400);
  line-height: 1.6;
}

/* ===== 淡入淡出动画 ===== */
.fade-in {
  animation: fadeIn 0.5s var(--ease-out-expo) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 暂停转盘动画（当鼠标悬停时） ===== */
.wheel-wrapper:hover .wheel-outer-ring,
.wheel-wrapper:hover .wheel-items-container {
  animation-play-state: paused;
}

.wheel-wrapper:hover .wheel-item {
  animation-play-state: paused;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .layout-top-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .top-left.wheel-area {
    order: 1;
  }
  
  .top-right.info-area {
    order: 2;
  }
  
  .combined-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .combined-image-wrapper,
  .combined-placeholder {
    height: 240px;
  }
  
  .combined-list-section {
    max-height: none;
  }
  
  .official-info-card,
  .combined-contributions-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .officials-wheel-section {
    padding: 40px 4%;
  }
  
  :root {
    --wheel-size: 320px;
    --wheel-center-size: 150px;
    --wheel-item-size: 55px;
    --wheel-radius: 120px;
  }
  
  .official-name {
    font-size: 1.75rem;
  }
  
  .official-intro {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  
  .combined-image-wrapper,
  .combined-placeholder {
    height: 200px;
  }
  
  .contributions-list {
    gap: 12px;
  }
  
  .contribution-item {
    padding: 15px;
  }
  
  .official-info-card,
  .combined-contributions-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --wheel-size: 280px;
    --wheel-center-size: 130px;
    --wheel-item-size: 48px;
    --wheel-radius: 105px;
  }
  
  .official-name {
    font-size: 1.5rem;
  }
  
  .wheel-controls {
    gap: 15px;
  }
  
  .wheel-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .combined-image-wrapper,
  .combined-placeholder {
    height: 180px;
  }
}

/* ===== 滚动条样式优化 ===== */
.combined-list-section::-webkit-scrollbar,
.official-intro::-webkit-scrollbar {
  width: 6px;
}

.combined-list-section::-webkit-scrollbar-track,
.official-intro::-webkit-scrollbar-track {
  background: transparent;
}

.combined-list-section::-webkit-scrollbar-thumb,
.official-intro::-webkit-scrollbar-thumb {
  background: var(--color-paper-300);
  border-radius: 3px;
}

.combined-list-section::-webkit-scrollbar-thumb:hover,
.official-intro::-webkit-scrollbar-thumb:hover {
  background: var(--color-paper-400);
}

/* ===== 图片放大查看器样式 ===== */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s var(--ease-out-expo);
  padding: 20px;
}

.image-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-viewer-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-out-expo);
}

.image-viewer-overlay.active .image-viewer-container {
  transform: scale(1);
}

.image-viewer-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
  transition: transform 0.3s var(--ease-out-expo);
}

.image-viewer-img:hover {
  transform: scale(1.02);
}

.image-viewer-caption {
  margin-top: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  color: var(--color-primary-800);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.image-viewer-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-700);
  font-size: 1.5rem;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-viewer-close:hover {
  background: var(--color-primary-600);
  color: white;
  transform: rotate(90deg);
}

/* 图片可点击指示 */
.combined-image-wrapper {
  cursor: zoom-in;
}

.combined-image-wrapper::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b4513' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none; /* 让点击穿透指示器 */
  z-index: 10;
}

.combined-image-wrapper:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .image-viewer-overlay {
    padding: 15px;
  }

  .image-viewer-img {
    max-height: 70vh;
  }

  .image-viewer-caption {
    font-size: 0.875rem;
    padding: 10px 16px;
    margin-top: 15px;
  }

  .image-viewer-close {
    top: -45px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .combined-image-wrapper::after {
    width: 32px;
    height: 32px;
    opacity: 1;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .image-viewer-overlay {
    padding: 10px;
  }

  .image-viewer-img {
    max-height: 65vh;
    border-radius: var(--radius-sm);
  }

  .image-viewer-caption {
    font-size: 0.8125rem;
    padding: 8px 12px;
  }
}
