/* =========================================================
   MOBILE RESPONSIVE
   max-width: 900px
========================================================= */

:root {
  --side-space: 14px;

  --hero-h1-size: 19px;
  --hero-title-box-width: calc(100vw - 28px);
  --hero-title-line-height: 2.08;

  --post-h1-size: clamp(28px, 8.8vw, 36px);
  --post-h2-size: clamp(13px, 4vw, 16px);
  --post-body-size: 10px;
  --post-body-line-height: 1.78;
  --post-date-size: calc(var(--post-body-size) - 1px);
  --post-button-size: 13px;
}

.site-header {
  position: fixed !important;
  top: 13px !important;
  right: 12px !important;
  left: auto !important;
  width: auto !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  padding: 0 !important;
}

.main-nav {
  gap: 6px;
}

.home-link,
.nav-link,
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.1;
  min-height: 22px;
}

.highlight-yellow {
  padding: 3px 5px;
}

.home-link.highlight-yellow,
.nav-link.highlight-yellow,
.nav-icon-link.highlight-yellow {
  padding: 3px 5px;
}

.home-link.highlight-yellow {
  min-height: 22px;
  padding: 2px 5px 4px;
  transform: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  inset: auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding-top: 112px;
  padding-bottom: 78px;
  padding-left: var(--side-space);
  padding-right: var(--side-space);
}

.hero-media {
  position: relative;
  min-height: 0;
}

.hero-picture,
.post-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-text-column {
  width: var(--hero-title-box-width);
  height: auto;
  min-height: 0;
  align-items: flex-end;
}

.hero-title span {
  padding: 4px 6px;
}
  
.hero-mainline {
  font-size: 1.08em;
  line-height: 1.28;
}

.post--left .post-overlay,
.post--right .post-overlay {
  position: relative;
  z-index: 1;
  inset: auto;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 72px;
  padding-bottom: 62px;
  padding-left: var(--side-space);
  padding-right: var(--side-space);
}

.post-media {
  position: relative;
  min-height: 0;
}

.post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.post-text {
  max-width: min(300px, calc(100vw - 72px));
}

.post-title,
.post-lead span,
.post-body span,
.post-date span {
  padding: 3px 6px;
}

.post-title {
  padding: 0.06em 0.12em 0.10em;
}

.post-lead {
  margin-top: 23px;
}

.post-body {
  max-width: min(300px, calc(100vw - 72px));
  margin-top: 10px;
}

.post-date {
  margin-top: 10px;
}

.post-button-wrap {
  margin-top: 10px;
}

.post-button {
  padding: 6px 10px 4px;
}

.entries-container {
  padding-bottom: 0;
}

.site-footer {
  max-height: auto;
  margin-top: 0;
  margin-bottom: 0;
  align-items: center;
}

.search-modal-panel {
  min-height: 360px;
  padding: 32px;
}

.search-modal-text,
.search-modal-input {
  font-size: 30px;
}

.a4-page {
  min-height: auto;
}


/* RIGHT POST MOBILE ALIGNMENT */
.post--right .post-overlay {
  justify-content: flex-end;
  align-items: flex-start;
}

.post--right .post-text {
  margin-left: auto;
  text-align: right;
}

.post--right .post-body {
  margin-left: auto;
}
