.kerama-gallery-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(72, 202, 228, .2), transparent 32%),
    linear-gradient(145deg, #021827 0%, #032f48 58%, #053c55 100%);
}
.kerama-gallery-heading { display: block; margin-bottom: 34px; }
.kerama-gallery-heading .cb-sec-label,
.kerama-gallery-heading .cb-sec-title { margin-bottom: 0; }
.kerama-gallery-heading > p {
  margin: 0 0 4px;
  color: rgba(255,255,255,.67);
  font-size: 14px;
  line-height: 1.9;
}
.kerama-gallery-shell {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 35px 90px rgba(0,9,18,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.kerama-gallery-launch {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 27px;
  background: #031420;
  color: #fff;
  cursor: zoom-in;
}
.kerama-gallery-preview-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .85s cubic-bezier(.22,.7,.25,1);
  will-change: transform;
}
.kerama-gallery-preview { flex: 0 0 100%; width: 100%; }
.kerama-gallery-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 5s linear;
}
.kerama-gallery-shell.is-running .kerama-gallery-preview.is-current img { transform: scale(1.075); }
.kerama-gallery-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,12,22,.42), transparent 30%),
    linear-gradient(0deg, rgba(0,13,24,.82), transparent 48%);
}
.kerama-gallery-topline,
.kerama-gallery-bottomline {
  position: absolute;
  z-index: 1;
  right: clamp(20px,4vw,48px);
  left: clamp(20px,4vw,48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.kerama-gallery-topline { top: clamp(20px,4vw,42px); }
.kerama-gallery-bottomline { bottom: clamp(24px,5vw,52px); justify-content: flex-end; }
.kerama-gallery-eyebrow,
.kerama-gallery-preview-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(2,22,35,.38);
  backdrop-filter: blur(14px);
  font: 700 11px/1 'DM Sans', sans-serif;
  letter-spacing: .12em;
}
.kerama-gallery-eyebrow i { margin-right: 8px; color: #67e8f9; font-size: 6px; filter: drop-shadow(0 0 5px #67e8f9); }
.kerama-gallery-bottomline strong {
  display: block;
  max-width: 720px;
  font-size: clamp(24px,4vw,48px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-shadow: 0 4px 28px rgba(0,0,0,.4);
}
.kerama-gallery-bottomline small {
  display: block;
  margin-top: 9px;
  color: rgba(255,255,255,.66);
  font: 600 11px/1 'DM Sans', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.kerama-gallery-open {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, background .25s ease;
}
.kerama-gallery-launch:hover .kerama-gallery-open { transform: rotate(8deg) scale(1.06); background: rgba(103,232,249,.28); }
.kerama-gallery-launch:focus-visible { outline: 3px solid #67e8f9; outline-offset: 5px; }
.kerama-gallery-progress {
  position: absolute;
  z-index: 2;
  right: clamp(20px,4vw,48px);
  bottom: 0;
  left: clamp(20px,4vw,48px);
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
  pointer-events: none;
}
.kerama-gallery-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #67e8f9, #fff);
  transform: scaleX(0);
  transform-origin: left;
}
.kerama-gallery-shell.is-running .kerama-gallery-progress span { animation: keramaProgress 5s linear forwards; }
.kerama-gallery-autoplay {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: -48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  background: rgba(2,24,39,.75);
  backdrop-filter: blur(12px);
  font: 700 10px/1 'DM Sans', sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
}
.kerama-gallery-autoplay:hover,
.kerama-gallery-autoplay:focus-visible { color: #fff; border-color: rgba(103,232,249,.55); outline: none; }
@keyframes keramaProgress { to { transform: scaleX(1); } }

.kerama-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px,3vw,34px);
  background: rgba(1,10,18,.88);
  backdrop-filter: blur(22px) saturate(.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.kerama-gallery-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.kerama-gallery-dialog { position: relative; width: min(1180px,100%); }
.kerama-gallery-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(2,16,27,.86);
  box-shadow: 0 40px 120px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
  touch-action: pan-y;
}
.kerama-gallery-track {
  display: flex;
  width: 100%;
  transition: transform .7s cubic-bezier(.22,.7,.25,1);
  will-change: transform;
}
.kerama-gallery-slide {
  display: grid;
  place-items: center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.kerama-gallery-slide img { width: 100%; height: min(76vh,760px); display: block; object-fit: contain; }
.kerama-gallery-close,
.kerama-gallery-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(3,25,40,.58);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.kerama-gallery-close { top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font: 300 27px/1 sans-serif; }
.kerama-gallery-nav { top: 50%; width: 48px; height: 72px; transform: translateY(-50%); border-radius: 999px; }
.kerama-gallery-prev { left: 18px; }
.kerama-gallery-next { right: 18px; }
.kerama-gallery-close:hover,
.kerama-gallery-close:focus-visible,
.kerama-gallery-nav:hover,
.kerama-gallery-nav:focus-visible { background: rgba(103,232,249,.24); border-color: rgba(103,232,249,.7); outline: none; }
.kerama-gallery-nav:hover { transform: translateY(-50%) scale(1.05); }
.kerama-gallery-meta { display: flex; justify-content: flex-end; margin: 14px 4px 0; color: #fff; font-weight: 700; line-height: 1.5; }
.kerama-gallery-count { color: #67e8f9; font: 700 12px/1.5 'DM Sans',sans-serif; letter-spacing: .12em; }
.kerama-gallery-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.kerama-gallery-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .25s ease, background .25s ease; }
.kerama-gallery-dot.is-active { width: 28px; background: #67e8f9; }
@media (max-width: 720px) {
  .kerama-gallery-heading { display: block; margin-bottom: 34px; }
  .kerama-gallery-launch { aspect-ratio: 4 / 5; }
  .kerama-gallery-topline { top: 18px; right: 16px; left: 16px; }
  .kerama-gallery-bottomline { right: 18px; bottom: 30px; left: 18px; }
  .kerama-gallery-bottomline strong { font-size: 25px; }
  .kerama-gallery-open { flex-basis: 46px; width: 46px; height: 46px; }
  .kerama-gallery-autoplay { right: 4px; bottom: -44px; }
  .kerama-gallery-modal { padding: 8px; }
  .kerama-gallery-frame { border-radius: 18px; }
  .kerama-gallery-slide img { height: min(72vh,600px); }
  .kerama-gallery-close { top: 12px; right: 12px; }
  .kerama-gallery-nav { width: 40px; height: 58px; }
  .kerama-gallery-prev { left: 8px; }
  .kerama-gallery-next { right: 8px; }
  .kerama-gallery-meta { margin-inline: 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .kerama-gallery-preview-track,
  .kerama-gallery-track,
  .kerama-gallery-preview img { transition: none; }
  .kerama-gallery-progress span { animation: none !important; }
}