/*
  Mobile press page content and article preview mode.
  Shared mobile chrome stays in site_global.css and collections_mobile.css.
*/

@font-face {
  font-family: "Press Mobile Gotham Light";
  src:
    url("../fonts/Gotham-Light.woff2") format("woff2"),
    url("../fonts/Gotham-Light.woff") format("woff"),
    url("../fonts/Gotham-Light.ttf") format("truetype"),
    url("../fonts/Gotham-Light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

.press-mobile-section {
  position: relative;
  min-height: 20px;
}

.press-mobile-list-view,
.press-mobile-preview {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease-out,
    visibility 0s;
}

.press-mobile-list-view.is-fading-out,
.press-mobile-preview.is-fading-out,
.press-mobile-preview[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.press-mobile-preview[hidden] {
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
}

.press-mobile-list-view[hidden] {
  display: none;
}

.press-mobile-article-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-mobile-article-list__item {
  margin: 0;
  padding: 0;
}

.press-mobile-article-trigger,
.press-mobile-preview__title,
.press-mobile-preview__publisher,
.press-mobile-preview__separator {
  font-family: "Press Mobile Gotham Light", var(--site-font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: none;
}

.press-mobile-article-trigger {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.press-mobile-article-trigger:hover,
.press-mobile-article-trigger:focus-visible {
  color: #c9a875;
}

.press-mobile-article-trigger:focus-visible,
.press-mobile-preview__close:focus-visible {
  outline: 1px solid #c9a875;
  outline-offset: 6px;
}

.press-mobile-article-trigger__title,
.press-mobile-preview__title {
  color: currentColor;
}

.press-mobile-article-trigger__publisher,
.press-mobile-article-trigger__separator,
.press-mobile-preview__publisher,
.press-mobile-preview__separator {
  color: #c9a875;
}

.press-mobile-article-trigger__separator,
.press-mobile-preview__separator {
  margin: 0 10px;
}

.press-mobile-article-trigger__fallback {
  display: inline-block;
  width: 120px;
  height: 22px;
}

.press-mobile-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.press-mobile-preview__heading {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  line-height: 22px;
  text-align: left;
}

.press-mobile-preview__close {
  flex: 0 0 var(--site-menu-size);
  width: var(--site-menu-size);
  height: var(--site-menu-size);
  margin-left: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transform: translateY(6px);
  -webkit-tap-highlight-color: transparent;
}

.press-mobile-preview__close-icon {
  display: block;
  width: var(--site-menu-size);
  height: var(--site-menu-size);
}

.press-mobile-preview__close-line {
  stroke: currentColor;
  stroke-linecap: butt;
  stroke-width: 0.996218px;
}

.press-mobile-preview__images {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px calc(var(--site-mobile-side-gap-right) * -1) 0 calc(var(--site-mobile-side-gap) * -1);
  padding-bottom: max(160px, calc(160px + env(safe-area-inset-bottom, 0px)));
}

.press-mobile-preview__image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

body.is-press-mobile-preview-open .mobile-footer {
  display: none;
}

body.is-press-mobile-preview-open .page-shell {
  min-height: 0;
}

body.is-press-mobile-preview-open .mobile-content {
  flex: 0 0 auto;
}

body.is-press-mobile-preview-open .press-mobile-section {
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .press-mobile-list-view,
  .press-mobile-preview,
  .press-mobile-article-trigger {
    transition: none;
  }
}
