.cms-section { padding: 32px 24px 48px; max-width: 1280px; margin: 0 auto; }
.cms-section-head h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.cms-home-hero { min-height: 420px; }
.pdesc { font-size: 13px; color: var(--g5); margin-top: 6px; line-height: 1.7; }
.pgrid .pdesc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cms-cat-link { display: block; padding: 8px 0; color: var(--g6); text-decoration: none; font-size: 14px; }
.cms-cat-link.on, .cms-cat-link:hover { color: var(--a2); font-weight: 700; }
.cms-empty, .cms-empty-page { padding: 48px 24px; text-align: center; color: var(--g5); }

.cms-article {
  max-width: min(1080px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 32px) 48px;
  box-sizing: border-box;
}

.vpb-internal-content .cms-article {
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.cms-article-head {
  margin-bottom: 24px;
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  overflow: visible;
}

.cms-article-head h1 {
  font-size: 2vw;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

@media (max-width: 640px) {
  .cms-article-head h1 {
    font-size: clamp(22px, 6vw, 28px);
  }
}

.cms-article-summary {
  font-size: 16px;
  color: var(--g5);
  line-height: 1.9;
  margin-bottom: 0;
}

.cms-article-flow::after {
  content: '';
  display: table;
  clear: both;
}

.cms-article-media {
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .cms-article-media {
    float: inline-start;
    width: min(44%, 420px);
    margin-inline-end: 28px;
    margin-block-end: 16px;
  }
}

.cms-article-body--reading {
  font-size: 16px;
  line-height: 2;
  color: var(--g7);
  text-align: justify;
}

.cms-article-body--reading p { margin-bottom: 16px; }
.cms-article-body--reading img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.cms-item-carousel {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--g1, #f8f8f8);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.cms-item-carousel-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: clamp(220px, 34vh, 360px);
  background: var(--g2, #f0f0f0);
}

.cms-item-carousel-track { height: 100%; }

.cms-item-carousel-slide {
  display: none;
  height: 100%;
}

.cms-item-carousel-slide.is-active { display: block; }

.cms-item-carousel-zoom,
.cms-album-mosaic-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.cms-item-carousel-zoom { min-height: 100%; }

.cms-album-mosaic-zoom {
  min-height: 0;
  max-height: none;
}

.cms-item-carousel-zoom img,
.cms-album-mosaic-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease, filter .35s ease;
}

.cms-item-carousel-zoom:hover img,
.cms-album-mosaic-zoom:hover img {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.05);
}

.cms-zoomable-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .28);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.cms-zoomable:hover .cms-zoomable-hint { opacity: 1; }

.cms-item-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--w, #fff);
  border-top: 1px solid var(--border);
}

.cms-item-carousel-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--w, #fff);
  color: var(--dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.cms-item-carousel-btn:hover {
  background: var(--g1);
  border-color: var(--g4);
}

.cms-item-carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cms-item-carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: var(--g4);
  padding: 0;
  cursor: pointer;
  transition: width .2s, background .2s;
}

.cms-item-carousel-dot.is-active {
  width: 22px;
  background: var(--a1, #d97f4a);
}

.cms-albums-embedded {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 40px;
  clear: both;
}

.cms-albums-embedded.cms-albums-page {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.cms-album-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cms-album-block-heading {
  flex: 1 1 260px;
  min-width: 0;
}

.cms-album-block-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 6px 0 0;
  letter-spacing: -0.5px;
}

.cms-album-block-desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--g6);
  width: 100%;
  max-width: none;
  text-align: justify;
}

.cms-album-block-link {
  white-space: nowrap;
  margin-top: 4px;
}

.cms-albums-embedded .cms-album-mosaic,
.cms-albums-embedded .cms-album-grid {
  display: grid;
  gap: 6px;
  width: 100%;
}

.cms-albums-embedded .cms-album-mosaic--magazine {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(76px, 10.5vw);
}

.cms-albums-embedded .cms-album-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(68px, 9.5vw);
  grid-auto-flow: dense;
}

.cms-albums-embedded .cms-album-mosaic-cell {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background: var(--g2);
  border: none;
}

.cms-albums-embedded .cms-album-mosaic-cell .cms-album-mosaic-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  display: block;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.cms-albums-embedded .cms-album-mosaic-zoom img,
.cms-albums-embedded .cms-album-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
}

.cms-albums-embedded .cms-album-mosaic-cell--video .cms-album-mosaic-zoom {
  cursor: pointer;
}

.cms-albums-embedded .cms-album-video-thumb {
  pointer-events: none;
  background: #0f172a;
}

.cms-albums-embedded .cms-album-video-play-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .35);
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  pointer-events: none;
  transition: background .25s ease, transform .25s ease;
}

.cms-albums-embedded .cms-album-mosaic-cell--video .cms-album-mosaic-zoom:hover .cms-album-video-play-badge {
  background: rgba(15, 23, 42, .5);
}

.cms-albums-embedded .cms-album-mosaic-cell figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 12px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}

.cms-albums-embedded .cms-album-mosaic-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  border-radius: 10px;
  border: 1.5px dashed var(--border);
  background: var(--g1);
  color: var(--g6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s, color .2s, background .2s;
  grid-column: span 2;
  grid-row: span 2;
}

.cms-album-mosaic-more:hover {
  border-color: var(--a1);
  color: var(--a2);
  background: var(--w);
}

.cms-album-mosaic-more-count {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}

.cms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.cms-lightbox[hidden] { display: none !important; }

body.cms-lightbox-open { overflow: hidden; }

.cms-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(8, 12, 20, .82);
  cursor: pointer;
}

.cms-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1080px);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.cms-lightbox-img,
.cms-lightbox-video {
  max-width: 100%;
  max-height: calc(92vh - 56px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background: #111;
}

.cms-lightbox-img {
  object-fit: contain;
}

.cms-lightbox-video {
  width: min(96vw, 1080px);
  display: block;
}

.cms-lightbox-img[hidden],
.cms-lightbox-video[hidden] {
  display: none !important;
}

.cms-lightbox-caption {
  margin: 0;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  max-width: 720px;
}

.cms-lightbox-close {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.cms-article--album .cms-album-page-head { margin-bottom: 28px; }

.cms-album-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cms-album-page-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--g1);
}

.cms-album-page-item img,
.cms-album-page-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--g2);
}

.cms-album-page-item video { aspect-ratio: 16 / 9; }

.cms-album-page-item figcaption {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--g6);
  display: grid;
  gap: 4px;
}

.cms-album-page-item figcaption strong {
  color: var(--dark);
  font-size: 14px;
}

@media (max-width: 760px) {
  .cms-article-media {
    float: none;
    width: 100%;
    margin-inline-end: 0;
  }

  .cms-albums-embedded .cms-album-mosaic--magazine,
  .cms-albums-embedded .cms-album-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none !important;
    grid-auto-rows: minmax(96px, 28vw);
  }

  .cms-albums-embedded .cms-album-mosaic-cell {
    grid-area: auto !important;
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .cms-albums-embedded .cms-album-cell--portrait {
    grid-row: span 2 !important;
  }

  .cms-albums-embedded .cms-album-mosaic-more {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }

  .cms-item-carousel-viewport {
    max-height: clamp(200px, 52vw, 280px);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .cms-albums-embedded .cms-album-grid--6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
