/* All gallery rules are scoped. Shared theme header/footer styles stay untouched. */
.pv-page {
  --pv-blue: #005eae;
  --pv-ink: #15314d;
  --pv-muted: #697b8c;
  --pv-line: #e0e8ef;
  color: var(--pv-ink);
  background: #fff;
  font-family: Tahoma, Arial, sans-serif;
  padding: 0 0 68px;
}
.pv-page *,
.pv-page *::before,
.pv-page *::after {
  box-sizing: border-box;
}
.pv-page [hidden] {
  display: none !important;
}
/* Default content width for desktop and tablet. */
.pv-page .pv-container {
  width: 80%;
  margin: 0 auto;
}
.pv-page .pv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pv-muted);
}
.pv-page .pv-breadcrumb a {
  color: var(--pv-muted);
  text-decoration: none;
}
.pv-page .pv-breadcrumb a:hover {
  color: var(--pv-blue);
}
.pv-page .pv-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0 30px;
  border-bottom: 1px solid var(--pv-line);
}
.pv-page h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--pv-blue);
}
.pv-page .pv-tabs {
  display: flex;
  align-self: flex-end;
  gap: 6px;
  padding: 4px;
  background: #f0f5fa;
  border: 1px solid #dbe5ef;
  border-radius: 5px;
}
.pv-page .pv-tab {
  display: block;
  padding: 12px 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--pv-blue);
  font:
    14px/1.5 Tahoma,
    Arial,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.pv-page .pv-tab:hover {
  background: #e1edf7;
}
.pv-page .pv-tab[aria-selected="true"] {
  background: var(--pv-blue);
  color: #fff;
}
.pv-page .pv-section {
  padding-top: 34px;
  scroll-margin-top: 130px;
}
.pv-page .pv-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.pv-page h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  line-height: 1.3;
  color: var(--pv-blue);
  font-weight: 700;
  margin: 0;
}
.pv-page .pv-format-icon {
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.pv-page .pv-format-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.pv-page .pv-format-wide {
  width: 26px;
  height: 18px;
}
.pv-page .pv-format-tall {
  width: 18px;
  height: 26px;
}
.pv-page .pv-format-label {
  color: var(--pv-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.pv-page .pv-grid {
  display: grid;
  align-items: start;
  gap: 32px 24px;
}
.pv-page .pv-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pv-page .pv-grid-shorts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pv-page .pv-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.pv-page .pv-cover {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e8eff5;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  text-align: left;
}
.pv-page .pv-cover:disabled {
  cursor: default;
  opacity: 1;
}
.pv-page .pv-card-short .pv-cover {
  aspect-ratio: 9/16;
}
.pv-page .pv-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #12202c;
  transition: transform 0.25s;
}
.pv-page .pv-cover:not(:disabled):hover img {
  transform: scale(1.025);
}
.pv-page .pv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 60px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.64);
  box-shadow: 0 2px 16px #0002;
}
.pv-page .pv-play::after {
  content: "";
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.pv-page .pv-cover:not(:disabled):hover .pv-play {
  background: #e62117;
}
.pv-page h3 {
  margin: 13px 0 8px;
  font-size: 18px;
  line-height: 1.48;
  color: var(--pv-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pv-page .pv-title-button {
  font: inherit;
  color: inherit;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.pv-page .pv-title-button:hover {
  color: var(--pv-blue);
}
.pv-page .pv-card-short h3 {
  font-size: 16px;
  line-height: 1.5;
}
.pv-page .pv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 0;
  color: var(--pv-muted);
  font-size: 13px;
  line-height: 1.7;
}
.pv-page .pv-meta-separator {
  color: #aebbc6;
}
.pv-page .pv-scroll-loader {
  height: 1px;
  margin-top: 24px;
}
.pv-page .pv-empty {
  padding: 28px 0;
  font-size: 15px;
  color: var(--pv-muted);
  line-height: 1.6;
}
.pv-page .pv-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.pv-page :is(a, button):focus-visible {
  outline: 3px solid #f3b624;
  outline-offset: 5px;
}
.pv-page .pv-preview-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 3px;
  color: #fff;
  background: #163a57e8;
  font:
    11px/1.4 Tahoma,
    Arial,
    sans-serif;
}
.pv-page .pv-cover.pv-placeholder img {
  object-fit: cover;
}
.pv-page .pv-player {
  position: fixed;
  inset: 0;
  width: min(1080px, 94vw);
  max-width: none;
  max-height: 94dvh;
  height: fit-content;
  padding: 18px;
  margin: auto;
  border: 0;
  border-radius: 8px;
  background: #101b27;
  color: #fff;
  overflow: auto;
}
.pv-page .pv-player::backdrop {
  background: rgba(3, 12, 22, 0.86);
}
.pv-page .pv-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pv-page .pv-player h2 {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}
.pv-page .pv-close {
  flex: 0 0 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  background: #ffffff15;
  color: #fff;
  font:
    28px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.pv-page .pv-player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.pv-page .pv-player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pv-page .pv-player.pv-player-short {
  width: min(440px, 94vw);
}
.pv-page .pv-player-short .pv-player-frame {
  aspect-ratio: 9/16;
  max-height: 72dvh;
}
.pv-page .pv-youtube-link {
  display: inline-block;
  color: #d6eaff;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 14px;
  text-decoration: underline;
}
@media (min-width: 1600px) {
  .pv-page .pv-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pv-page .pv-grid-shorts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 2200px) {
  .pv-page h3 {
    font-size: 21px;
  }
  .pv-page .pv-card-short h3 {
    font-size: 19px;
  }
  .pv-page .pv-meta {
    font-size: 15px;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .pv-page .pv-grid-shorts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .pv-page {
    padding-bottom: 44px;
  }
  .pv-page .pv-container {
    width: 87%;
  }
  /* Keep breadcrumb markup in HTML; hide it visually on phones only. */
  .pv-page .pv-breadcrumb {
    display: none;
  }
  .pv-page .pv-heading {
    display: block;
    padding: 24px 0;
  }
  .pv-page h1 {
    font-size: 34px;
  }
  .pv-page .pv-tabs {
    display: inline-flex;
    max-width: 100%;
    margin-top: 20px;
    gap: 4px;
  }
  .pv-page .pv-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  .pv-page .pv-section {
    padding-top: 26px;
    scroll-margin-top: 110px;
  }
  .pv-page h2 {
    font-size: 24px;
  }
  .pv-page .pv-section-heading {
    margin-bottom: 18px;
  }
  .pv-page .pv-grid-wide,
  .pv-page .pv-grid-shorts {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
  }
  .pv-page h3,
  .pv-page .pv-card-short h3 {
    font-size: 17px;
    line-height: 1.55;
  }
  .pv-page .pv-meta {
    font-size: 13px;
  }
  .pv-page .pv-player {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pv-page .pv-cover img {
    transition: none;
  }
}
