.blz-flex-grid-xl,
.blz-flex-grid-lg,
.blz-flex-grid-md {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 10px 20px;
  max-width: 2600px;
  width: 100%;
}

.blz-flex-grid-xl {
  height: 800px;
}

.blz-flex-grid-lg, .blz-flex-grid-md {
  height: 880px;
}

.blz-flex-grid-xl::after,
.blz-flex-grid-xl::before,
.blz-flex-grid-lg::after,
.blz-flex-grid-lg::before,
.blz-flex-grid-md::after,
.blz-flex-grid-md::before {
  content: "";
  order: 1;
  width: 100%;
}

.blz-flex-grid-sm * {
  align-self: center;
  display: flex;
  justify-items: center;
}

.blz-flex-grid-xl *,
.blz-flex-grid-lg *,
.blz-flex-grid-md * {
  align-self: center;
  display: flex;
  flex: 1;
}

.blz-flex-grid-xl > *,
.blz-flex-grid-lg > *,
.blz-flex-grid-md > * {
  position: relative;
  height: 50%;
}

.blz-flex-grid-xl > *:first-child,
.blz-flex-grid-lg > *:first-child,
.blz-flex-grid-md > *:first-child {
  flex: 2.04;
}

.blz-flex-grid-xl > *:nth-child(n+3),
.blz-flex-grid-lg > *:nth-child(n+3),
.blz-flex-grid-md > *:nth-child(n+3) {
  order: 1;
}

.blz-flex-grid-xl > *:nth-child(n+7),
.blz-flex-grid-lg > *:nth-child(n+7),
.blz-flex-grid-md > *:nth-child(n+7) {
  display: none;
}

.blz-flex-grid-lg > *:nth-child(n+6) {
  display: none;
}

.blz-flex-grid-md > *:nth-child(4) {
  flex: 2.04;
}

.blz-flex-grid-md > *:nth-child(n+5) {
  display: none;
}

.blz-flex-grid-sm {
  align-items: center;
  display: flex;
  flex-flow: column wrap;
  gap: 20px;
  height: 750px;
  max-width: 2600px;
  width: 100%;
}

.blz-flex-grid-sm > *:first-child,
.blz-flex-grid-sm > *:nth-child(3) {
  flex: 0 0 calc(50% - 10px);
  width: 39.8%;
}

.blz-flex-grid-sm > *:nth-child(2) {
  flex: 0 0 100%;
  max-height: 100%;
  order: 1;
  width: 59%;
}

.blz-flex-grid-sm > *:nth-child(n+4) {
  display: none;
}

.pdf-viewer--loading * {
  opacity: 0;
}
.pdf-viewer[view-type=scroll] {
  height: calc(100vh - 140px);
  overflow: hidden;
}
.pdf-viewer .pdf-viewer-page-container {
  display: inline-flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.pdf-viewer .pdf-viewer-page-container--bordered {
  border: 1px solid #aaaaaa;
}
.pdf-viewer .pdf-viewer-page-container .zoom-container {
  overflow: hidden;
  margin: 0 10px;
}
.pdf-viewer .pdf-viewer-zoomer-scroll {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-width: 80vh;
  overflow-y: scroll;
}

.pdf-viewer-page {
  width: 50%;
  max-width: 60vh;
  opacity: 1;
  transition: transform 300ms ease, opacity 150ms ease;
}
.pdf-viewer-page#pdf-viewer-mobile {
  width: 100%;
  max-width: 80vw;
}
.pdf-viewer-page--scroll {
  width: 99%;
  max-width: 80vh;
}
.pdf-viewer-page--rendering {
  opacity: 0.3;
}
.pdf-viewer-page--hidden {
  opacity: 0;
}
.pdf-viewer-page--renderprev {
  transform: translateX(100%);
}
.pdf-viewer-page--rendernext {
  transform: translateX(-100%);
}

.page-control {
  position: absolute;
  bottom: -100px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: transparent;
  padding: 0;
  outline: none;
  border: 1px solid #0076D1;
  border-radius: 100px;
  display: flex;
  align-items: center;
  transition: all ease-in-out 0.2s;
}
@media (min-width: 1200px) {
  .page-control {
    top: 50%;
  }
}
.page-control:hover {
  cursor: pointer;
  background: #0076D1;
}
.page-control[disabled] {
  filter: grayscale(1);
  opacity: 0.4;
  pointer-events: none;
}
.page-control blz-icon {
  color: #FFFFFF;
  width: 100%;
  transition: all ease-in-out 0.2s;
}
.page-control.prev-page {
  transform: translateX(-100%) translateY(-50%);
}
@media (min-width: 1200px) {
  .page-control.prev-page {
    left: 0px;
  }
}
.page-control.next-page {
  transform: translateX(100%) translateY(-50%);
}
@media (min-width: 1200px) {
  .page-control.next-page {
    right: 0px;
  }
}

.size-control {
  background-color: transparent;
  border: 1px solid #0076D1;
  border-radius: 5px;
  height: 40px;
  opacity: 1;
  padding: 0;
  position: absolute;
  right: -50px;
  -webkit-transition: opacity 0.15s ease;
  transition: all ease-in-out 0.2s;
  width: 40px;
  display: none;
  text-align: center;
}
.size-control:hover {
  cursor: pointer;
  background: #0076D1;
}
@media (min-width: 1200px) {
  .size-control {
    display: block;
  }
}
.size-control blz-icon {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  transition: all ease-in-out 0.2s;
}
.size-control.zoom-in {
  top: 10px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom: transparent;
}
.size-control.zoom-out {
  top: 50px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
.size-control.zoom-in[disabled], .size-control.zoom-out[disabled] {
  pointer-events: none;
  opacity: 0.5;
}
.size-control.fullscreen {
  top: 100px;
}

#pdf-viewer-left.pdf-viewer-page--solo {
  transform: translateX(50%);
}

#pdf-viewer-right.pdf-viewer-page--solo {
  transform: translateX(-50%);
}

blz-tab-controls .short-story-tab.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.short-story-section {
  text-align: center;
}

.short-story-viewer {
  display: none;
}
.short-story-viewer[toggled] {
  display: flex;
  flex-direction: column;
}
.short-story-viewer#text-viewer {
  padding-top: 0;
}

.short-story-content-excerpt, .short-story-content-body {
  text-align: left;
}
.short-story-content-excerpt p, .short-story-content-body p {
  font-size: var(--global-size-200);
  line-height: 1.5em;
}

.short-story-content-body {
  display: none;
}
.short-story-content-body.visible {
  display: block;
}

.continue-reading-cta {
  margin: 15px auto;
}
.continue-reading-cta.hidden {
  display: none;
}
.continue-reading-cta::part(host-anchor) {
  text-transform: uppercase;
}

/* 
 * Highlights Section Styles
 */
.highlights-section-desktop {
  margin: 0 auto;
}
.highlights-section-desktop blz-card {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 80%), var(--backgroundImg);
  background-size: cover;
  background-position: var(--backgroundPos);
  transition: all ease-in-out 0.3s;
}
.highlights-section-desktop blz-card blz-content-block {
  justify-self: left;
  margin-left: 20px;
  margin-bottom: 20px;
}
.highlights-section-desktop blz-card:hover, .highlights-section-desktop blz-card:focus, .highlights-section-desktop blz-card:active {
  filter: brightness(1.15);
}
.highlights-section-desktop blz-card:focus {
  outline: medium auto currentColor;
  outline: medium auto invert;
  outline: 5px auto -webkit-focus-ring-color;
}
.highlights-section-mobile ::part(bg-video-control) {
  display: none;
}
.highlights-section-mobile blz-tab-control {
  height: 10px;
  width: 60px;
  border-radius: 0;
}
.highlights-section-mobile a {
  width: 100%;
}
.highlights-section-mobile blz-card {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 80%), var(--backgroundImg);
  background-size: cover;
  background-position: var(--backgroundPos);
  height: 650px;
  border-radius: 0;
}
@media (min-width: 720px) {
  .highlights-section-mobile blz-card {
    height: 500px;
  }
}
.highlights-section-mobile blz-content-block {
  justify-self: center;
  margin-bottom: 20px;
}

/* 
 * Gallery Section Styles
 */
.gallery-section {
  text-align: center;
  padding-top: 80px;
}
.gallery-section blz-tab-controls::part(tab-content) {
  flex-wrap: nowrap;
}
.gallery-section blz-tab-control:first-child {
  margin-left: 15px;
}
.gallery-section blz-tab-control:last-child {
  margin-right: 15px;
}
.gallery-section blz-media-gallery {
  display: none;
  --cards-per-row: 1;
}
@media (min-width: 480px) {
  .gallery-section blz-media-gallery {
    --cards-per-row: 2;
  }
}
@media (min-width: 960px) {
  .gallery-section blz-media-gallery {
    --cards-per-row: 3;
  }
}
@media (min-width: 1200px) {
  .gallery-section blz-media-gallery {
    --cards-per-row: 4;
  }
}
.gallery-section blz-media-gallery blz-card {
  transition: all ease-in-out 0.3s;
}
.gallery-section blz-media-gallery blz-card:hover {
  filter: brightness(1.15);
}
.gallery-section blz-media-gallery blz-card blz-image {
  aspect-ratio: 16/9;
}
.gallery-section blz-media-gallery blz-card blz-image.positioned::part(image) {
  object-position: var(--objectPos) !important;
}
.gallery-section blz-media-gallery[toggled] {
  display: initial;
}
.gallery-section blz-media-gallery [slot=gallery-items]:nth-of-type(-n + 20) {
  display: grid;
}
.gallery-section blz-media-gallery [slot=gallery-items]:nth-of-type(n + 21) {
  display: none;
}
.gallery-section blz-media-gallery::part(cta) {
  display: none;
}

/* 
 * Page Header Styles
 */
.media-gallery-page-header {
  --padding-offset: 500px;
}
.media-gallery-page-header [slot=background] {
  background-image: var(--mobileBg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--backgroundPos);
}
@media (min-width: 960px) {
  .media-gallery-page-header [slot=background] {
    background-image: var(--desktopBg);
    background-position: center center;
    background-attachment: fixed;
  }
}
.media-gallery-page-header [slot=background]:after {
  content: "";
  position: absolute;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 60%, rgb(0, 0, 0) 90%);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.media-gallery-page-header [slot=header] {
  margin: 20px auto;
}
.media-gallery-page-header [slot=description].media-metadata {
  margin-top: 0;
}
.media-gallery-page-header [slot=description].media-description {
  margin-top: 24px;
}
.media-gallery-page-header [slot=cta] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media-gallery-page-header [slot=cta] .viewer-tabs {
  margin-bottom: 40px;
}
.media-gallery-page-header::part(section) {
  padding-bottom: 0;
}
.media-gallery-page-header.short-story-page-header, .media-gallery-page-header.short_story-page-header {
  --padding-offset: 600px;
}
.media-gallery-page-header .media-button-group {
  margin: 0px auto 80px;
}
.media-gallery-page-header blz-button-group.book-button-group {
  justify-content: center;
}

.media-section {
  text-align: center;
}

.media-cover .pdf-viewer-page {
  width: 100%;
  max-width: 400px;
}
.media-cover blz-image {
  width: 100%;
  max-width: 400px;
}

.image-frame {
  display: flex;
  justify-content: center;
}
.image-frame blz-image {
  width: 100%;
  max-width: 400px;
}
.image-frame#music blz-image {
  width: 100%;
  max-width: 800px;
}

.pdf-viewer {
  margin: 0 50px;
}

blz-modal#media-purchase-modal blz-button-group.modal-button-group {
  justify-content: center;
}
blz-modal#media-purchase-modal blz-button-group.modal-button-group blz-button {
  flex-basis: 40%;
}

blz-cross-sell.related-content-section {
  --items-in-gallery: 4 !important;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}
blz-cross-sell.related-content-section::part(gallery) {
  padding-bottom: 20px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}
blz-cross-sell.related-content-section [slot=gallery-items] {
  margin-bottom: 10px;
  transition: all ease-in-out 0.3s;
}
blz-cross-sell.related-content-section [slot=gallery-items]:hover, blz-cross-sell.related-content-section [slot=gallery-items]:focus, blz-cross-sell.related-content-section [slot=gallery-items]:active {
  filter: brightness(1.15);
}
blz-cross-sell.related-content-section [slot=gallery-items]:focus {
  outline: medium auto currentColor;
  outline: medium auto invert;
  outline: 5px auto -webkit-focus-ring-color;
}
blz-cross-sell.related-content-section [slot=gallery-items] blz-image {
  aspect-ratio: 16/9;
}
blz-cross-sell.related-content-section [slot=gallery-items] blz-image.positioned::part(image) {
  object-position: var(--objectPos) !important;
}

.media-page {
  background-color: #0E0906;
  /* PDF Viewer custom styles */
}
@media (min-width: 960px) {
  .media-page blz-page-header {
    padding-bottom: 68px;
  }
  .media-page blz-page-header::part(section) {
    min-height: 340px;
  }
}
.media-page [slot=subheading] {
  color: #EBDEC2;
}
.media-page .gallery-background {
  background-image: var(--backgroundImg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.media-page .gallery-background:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(14, 9, 6, 0.5) 60%, rgb(14, 9, 6) 90%);
}
.media-page .media-gallery-page-header [slot=subheading] {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.media-page .media-gallery-page-header [slot=heading] {
  margin-bottom: 24px;
}
.media-page .media-gallery-page-header [slot=description].media-metadata {
  color: #FFFFFF;
}
.media-page .media-gallery-page-header [slot=background]:after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(14, 9, 6, 0.5) 60%, rgb(14, 9, 6) 90%);
}
.media-page .highlights-section blz-card {
  border-radius: 0;
  border: 1px solid #504137;
}
.media-page blz-tab-controls blz-tab-control {
  color: #F8B700;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
}
.media-page blz-tab-controls blz-tab-control:hover, .media-page blz-tab-controls blz-tab-control[active], .media-page blz-tab-controls blz-tab-control:focus {
  background: #F8B700;
  color: black;
}
.media-page blz-tab-controls ::part(tab-control):after {
  display: none;
}
.media-page .gallery-section blz-tab-controls {
  padding-left: 30px;
  padding-right: 50px;
  --mask-image-content: linear-gradient(to right, transparent, #170e09 50px, #170e09 calc(100% - 150px), transparent);
  mask-image: var(--mask-image-content);
  mask-size: 100%;
  mask-position: 0 0, 100% 0;
  mask-repeat: no-repeat, no-repeat;
}
@media (min-width: 960px) {
  .media-page .gallery-section blz-tab-controls {
    mask-image: none;
  }
}
.media-page blz-media-gallery {
  --cards-per-row: 1;
}
@media (min-width: 480px) {
  .media-page blz-media-gallery {
    --cards-per-row: 2;
  }
}
@media (min-width: 960px) {
  .media-page blz-media-gallery {
    --cards-per-row: 3;
  }
}
@media (min-width: 1200px) {
  .media-page blz-media-gallery {
    --cards-per-row: 4;
  }
}
.media-page blz-media-gallery [slot=gallery-items] blz-image, .media-page blz-cross-sell [slot=gallery-items] blz-image {
  border-radius: 0;
  border: 1px solid #504137;
}
.media-page blz-media-gallery [slot=gallery-items] [slot=heading], .media-page blz-cross-sell [slot=gallery-items] [slot=heading] {
  font-size: 16px;
}
.media-page blz-badge {
  background-color: #F8B700;
  color: #000000;
  border-radius: 0;
}
.media-page blz-badge.english-only {
  background-color: #504137;
  color: #FFFFFF;
}
.media-page .page-control, .media-page .size-control {
  border: 1px solid #f8b700;
}
.media-page .page-control:hover, .media-page .size-control:hover {
  background: rgba(248, 183, 0, 0.3);
}
.media-page .page-control:hover blz-icon, .media-page .size-control:hover blz-icon {
  color: #FFFFFF;
}
.media-page .page-control blz-icon, .media-page .size-control blz-icon {
  color: #f8b700;
}
.media-page blz-video {
  border: 1px solid #504137;
}