* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* =========================================================
   Photography
   ========================================================= */
#photography {
  padding-top: 0;
}

/* ---------------------------------------------------------
   Masonry grid
   --------------------------------------------------------- */
#photography #photo-grid.row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 4px;
}

#photography #photo-grid > .column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

/* ---------------------------------------------------------
   Interactive tile
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  background: transparent;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  touch-action: pan-y;
  transform: rotateX(var(--tile-rotate-x, 0deg))
    rotateY(var(--tile-rotate-y, 0deg));
  transform-origin: center center;
  transition: transform 160ms ease;
}

@media screen and (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  #photography #photo-grid .photo-tile.photo-reveal {
    opacity: 0;
    translate: var(--reveal-x, 0px) 34px;
    transition:
      opacity 520ms ease,
      translate 700ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 160ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  #photography #photo-grid .photo-tile.photo-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------------------------------------------------------
   Current image / video
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile > .tile-media {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 260ms ease;
  will-change: transform, opacity;
}

/* ---------------------------------------------------------
   Incoming image
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile > .incoming-media {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: 0;
}

#photography #photo-grid .photo-tile > .incoming-media.from-right {
  transform: translateX(6%);
}

#photography #photo-grid .photo-tile > .incoming-media.from-left {
  transform: translateX(-6%);
}

#photography #photo-grid .photo-tile > .incoming-media.is-entering {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------------------------------------------------
   Outgoing image
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile > .current-media.exit-left {
  opacity: 0;
  transform: translateX(-6%);
}

#photography #photo-grid .photo-tile > .current-media.exit-right {
  opacity: 0;
  transform: translateX(6%);
}

/* ---------------------------------------------------------
   Photography overlay
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile > .overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  background-color: hsl(0 0% 100% / 0.5);
  transition: opacity 220ms ease;
  pointer-events: none;
}

/*
    Overlay belonging to the next photo remains
    hidden while the image transition occurs.
*/
#photography #photo-grid .photo-tile > .incoming-overlay {
  z-index: 6;
  opacity: 0 !important;
}

#photography #photo-grid .photo-tile > .overlay.is-exiting {
  opacity: 0 !important;
}

/*
    Desktop hover:
    reveal only the currently active description.
*/
@media (hover: hover) and (pointer: fine) {
  #photography
    #photo-grid
    .photo-tile:hover
    > .overlay:not(.incoming-overlay):not(.is-exiting) {
    opacity: 1;
  }
}

@media (hover: none) and (pointer: coarse) {
  #photography #photo-grid .photo-tile > .overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #photography
    #photo-grid
    .photo-tile.show-overlay
    > .overlay:not(.incoming-overlay):not(.is-exiting) {
    opacity: 1;
  }

  #photography #photo-grid .photo-tile {
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
  }
}

/* ---------------------------------------------------------
   Photography text
   --------------------------------------------------------- */
#photography #photo-grid .photo-tile .text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--samurai-blue);
  line-height: 1;
}

#photography #photo-grid .photo-tile .photo-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
}

#photography #photo-grid .photo-tile .photo-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 2px;
  font-size: clamp(0.7rem, 1vw, 1.1rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
}

#photography #photo-grid .photo-tile .photo-location,
#photography #photo-grid .photo-tile .photo-date {
  display: block;
  width: 100%;
}

/* ---------------------------------------------------------
   1 / N counter
   --------------------------------------------------------- */
#photography #photo-grid .photo-stack-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: block;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

#photography #photo-grid .photo-stack-counter[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #photography #photo-grid .photo-tile:hover .photo-stack-counter {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  padding: 20px 30px;
  background-color: #f1f1f1;
}

.nav a {
  float: left;
  padding: 12px;
  border-radius: 4px;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
}

.nav a.logo {
  font-size: 25px;
  font-weight: 700;
  color: var(--samurai-blue);
  transition: color var(--transition-fast) ease;
}

.nav a.logo:hover {
  background: transparent;
  color: var(--lavender);
}

.nav .creative-toggle span {
  background: var(--samurai-blue);
  transition:
    transform var(--transition-fast) ease,
    top var(--transition-fast) ease,
    opacity var(--transition-fast) ease,
    background-color var(--transition-fast) ease;
}

.nav .creative-toggle:hover span {
  background: var(--lavender);
}

.nav .creative-toggle {
  display: none;
}

.header-right {
  float: right;
  display: block;
}

.nav .tablink {
  float: left;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 18px;
  line-height: 25px;
  cursor: pointer;
}

.nav .tablink.active-page-tab {
  background-color: var(--samurai-blue);
  color: #fff;
}

.nav .tablink:hover {
  background-color: hsla(216, 82%, 66%, 0.75);
  transition: background-color 0.7s;
}

@media screen and (min-width: 701px) {
  .creative-nav {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 2fr) minmax(
        180px,
        1fr
      );
    align-items: center;
    height: 72px;
    min-height: 72px;
    padding: 7px 18px;
    overflow: visible;
  }

  .creative-nav > .logo {
    display: none;
  }

  .creative-nav-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
    transform: none;
  }

  .creative-current-section {
    color: #777;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .creative-nav .creative-author {
    float: none;
    margin-top: 0;
    padding: 0;
    color: var(--samurai-blue);
    font-family: inherit;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.025em;
    opacity: 1;
    text-decoration: none;
    transition:
      color 180ms ease,
      opacity 180ms ease;
  }

  .creative-author:hover {
    background: transparent;
    color: var(--lavender);
  }

  .creative-section-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
  }

  .creative-section-menu-toggle {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .creative-section-line:hover .creative-section-menu-toggle,
  .creative-section-menu-toggle:hover,
  .creative-section-menu-toggle:focus-visible,
  .creative-section-menu-toggle[aria-expanded="true"] {
    opacity: 0.55;
  }

  .creative-chevron {
    position: absolute;
    top: 9px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--samurai-blue);
    border-bottom: 1.5px solid var(--samurai-blue);
    transform: rotate(45deg);
    transition:
      transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
      top 220ms ease;
  }

  .creative-section-menu-toggle[aria-expanded="true"] .creative-chevron {
    top: 12px;
    transform: rotate(-135deg);
  }

  .creative-nav-edge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--samurai-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.42;
    cursor: pointer;
    transition:
      opacity 180ms ease,
      transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .creative-nav-prev {
    grid-column: 1;
    justify-self: start;
  }

  .creative-nav-next {
    grid-column: 3;
    justify-self: end;
  }

  .creative-nav-edge:hover {
    opacity: 1;
  }

  .creative-nav-prev:hover {
    transform: translateX(-5px);
  }

  .creative-nav-next:hover {
    transform: translateX(5px);
  }

  .creative-nav-arrow {
    font-size: 19px;
    font-weight: 300;
  }

  .creative-nav .header-right {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    float: none;
    display: flex;
    width: 230px;
    flex-direction: column;
    padding: 3px 8px 8px;
    border-radius: 0 0 7px 7px;
    background: rgba(241, 241, 241, 0.75);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -7px);
    transition:
      opacity 160ms ease,
      transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 160ms;
  }

  .creative-nav .header-right.desktop-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .creative-nav .header-right a,
  .creative-nav .header-right .tablink {
    float: none;
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
  }

  .creative-nav .header-right a:hover,
  .creative-nav .header-right .tablink:hover,
  .creative-nav .header-right a:focus-visible,
  .creative-nav .header-right .tablink:focus-visible {
    background: transparent;
    color: var(--lavender);
  }

  .creative-nav .header-right .tablink.active-page-tab {
    background: rgba(43, 42, 76, 0.08);
    color: var(--samurai-blue);
  }

  .creative-nav
    .header-right:has(
      a:hover,
      .tablink:hover,
      a:focus-visible,
      .tablink:focus-visible
    )
    .tablink.active-page-tab {
    background: transparent;
  }

  .creative-nav .header-right a:hover,
  .creative-nav .header-right .tablink:hover,
  .creative-nav .header-right a:focus-visible,
  .creative-nav .header-right .tablink:focus-visible {
    background: rgba(43, 42, 76, 0.14);
  }

  .creative-nav ~ .tabcontent {
    padding-top: 72px;
  }

  .creative-nav ~ .tabcontent > .ttl {
    display: none;
  }

  #photography #photo-grid > .column > .photo-tile:first-child {
    margin-top: 8px;
  }
}

/* =========================================================
   Page titles
   ========================================================= */
.ttl {
  position: relative;
  margin: 0;
  padding-top: 100px;
  color: var(--samurai-blue);
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
}

/* =========================================================
   Short Stories
   ========================================================= */
#shortstory {
  position: relative;
  width: 100%;
  min-height: 60rem;
  height: auto;
  padding-bottom: 40px;
  background-color: #a8dadc;
  color: #fff;
  font-family: "Source Serif Pro", serif;
}

#shortstory .headabout {
  position: relative;
  margin-left: 3%;
  color: #fff;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 600;
}

#shortstory .synopsis {
  height: 100%;
  margin-left: 3%;
  margin-right: 3%;
  overflow-wrap: break-word;
}

#shortstory .row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

#shortstory .tab-titles {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 8vw, 90px);
  flex-wrap: nowrap;
}

#shortstory .tab-links {
  position: relative;
  flex: 0 0 auto;
  margin: 20px 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

#shortstory .tab-links::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--samurai-blue);
  transform: translateX(-50%);
  transition: width 0.5s;
}

#shortstory .tab-links.active-link::after {
  width: 40px;
}

#shortstory .tab-contents {
  display: none;
}

#shortstory .tab-contents.active-tab {
  position: relative;
  left: 0;
  display: block;
  width: 100%;
  margin-right: 100px;
}

#shortstory .book {
  position: relative;
  width: 528px;
  height: 656px;
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 3px;
}

#shortstory .book::-webkit-scrollbar {
  width: 10px;
}

#shortstory .book::-webkit-scrollbar-track {
  background: rgba(2, 3, 1, 0.1);
}

#shortstory .book::-webkit-scrollbar-thumb {
  background: #020301;
}

#shortstory .book::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 3, 1, 0.8);
}

/* =========================================================
   Shared Book Styles
   ========================================================= */
.book .page {
  position: relative;
  width: 525px;
  padding: 25px;
}

.book .page h1,
.book .page h2,
.book .page p {
  margin: 0;
}

.book .page h3 {
  color: #000;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.book .page p {
  display: block;
  margin-bottom: 1rem;
  color: #000;
  font-size: 1rem;
  line-height: 2rem;
}

.book .page p:nth-child(2)::first-letter {
  font-size: 1.5rem;
  font-weight: 600;
}

/* =========================================================
   Short Story Pages
   ========================================================= */
#shortstory .book .page {
  background-color: #fff;
}

#shortstory .book .page.frontcover {
  display: flex;
  height: 606px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f1faee;
  background-size: 140%;
  background-position: 50% 4%;
  background-blend-mode: overlay;
  color: #020301;
}

#shortstory .book .page.frontcover > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#shortstory .book .page.frontcover > div h1 {
  position: relative;
  margin-bottom: 30px;
  color: #000;
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.5rem;
  text-align: center;
}

#shortstory .book .page.frontcover > div h2 {
  position: relative;
  font-size: 1.7rem;
  font-weight: 400;
  text-align: center;
}

#shortstory .book .page.frontcover > div h2::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -10%;
  right: -10%;
  height: 1px;
  background-color: rgba(2, 3, 1, 0.3);
}

/* =========================================================
   Poetry
   ========================================================= */
.poetry {
  position: relative;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.poetry .container {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
}

.poetry img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.poetry .overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.poemheading {
  position: relative;
  width: 100%;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
}

.poetry pre {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.poetry .book {
  position: relative;
  width: min(528px, 100%);
  height: 656px;
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 3px;
  color: #fff;
}

.poetry .book::-webkit-scrollbar-track {
  background: rgba(2, 3, 1, 0.1);
}

.poetry .book::-webkit-scrollbar-thumb {
  background: rgba(2, 3, 1, 0.4);
}

.poetry .book::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 3, 1, 0.6);
}

.poetry .book .page {
  background-color: transparent;
}

.poetry .book .page h3 {
  color: #fff;
}

.poetry .book .page p {
  color: #fff;
}

/* =========================================================
   Keyboard Accessibility
   ========================================================= */
.nav a:focus-visible,
.nav button:focus-visible,
#shortstory .tab-links:focus-visible {
  outline: 3px solid var(--samurai-blue);
  outline-offset: 4px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative;
  clear: both;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 16px;
  background: #f1f1f1;
  color: var(--samurai-blue);
  text-align: center;
  font-size: 13px;
  border-radius: 0;
  z-index: 1;
}

.footer p {
  margin: 0;
}

/* =========================================================
   Tablet Photography
   ========================================================= */
@media screen and (max-width: 800px) {
  #photography #photo-grid > .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* =========================================================
   Mobile Photography
   ========================================================= */
@media screen and (max-width: 700px) {
  #photography #photo-grid > .column {
    flex: 100%;
    max-width: 100%;
  }

  #photography #photo-grid .photo-stack-counter {
    opacity: 0.65;
    transform: none;
  }
}

/* =========================================================
   General Mobile
   ========================================================= */
@media screen and (max-width: 700px) {
  .nav.creative-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    min-height: 72px;
    padding: 6px 14px;
    overflow: visible;
    background: #f1f1f1;
  }

  .creative-nav-edge {
    display: none;
  }

  .creative-nav > a.logo {
    display: none;
  }

  .creative-nav-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: max-content;
    max-width: calc(100% - 120px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .creative-nav .creative-author {
    float: none;
    margin: 0;
    padding: 0;
    color: var(--samurai-blue);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    opacity: 1;
    text-decoration: none;
  }

  .creative-section-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
  }

  .creative-current-section {
    color: #777;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .creative-section-menu-toggle {
    display: none;
  }

  .nav .creative-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    display: block;
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
    transform: translateY(-50%);
  }

  .nav .creative-toggle span {
    left: 7px;
    width: 34px;
    height: 3px;
  }

  .nav .creative-toggle span:nth-child(1) {
    top: 12px;
  }

  .nav .creative-toggle span:nth-child(2) {
    top: 22px;
  }

  .nav .creative-toggle span:nth-child(3) {
    top: 32px;
  }

  .nav .creative-toggle.active span:nth-child(1),
  .nav .creative-toggle.active span:nth-child(3) {
    top: 22px;
  }

  .creative-nav ~ .tabcontent {
    padding-top: 72px;
  }

  .creative-nav ~ .tabcontent > .ttl {
    display: none;
  }

  .ttl {
    width: 100%;
    padding-top: 120px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 1.1;
    text-align: center;
  }

  #photography {
    padding-top: 0;
  }

  .nav.creative-nav .header-right {
    position: absolute;

    top: calc(100% - 1px);
    right: 0;

    width: min(62vw, 260px);

    display: none;

    padding: 2px 10px 8px;
    background: rgba(241, 241, 241, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  }

  .nav.creative-nav .header-right.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav.creative-nav .header-right a,
  .nav.creative-nav .header-right .tablink {
    float: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .nav.creative-nav .header-right > :first-child {
    padding-top: 4px;
  }

  .nav.creative-nav .header-right a:hover,
  .nav.creative-nav .header-right .tablink:hover,
  .nav.creative-nav .header-right a:active,
  .nav.creative-nav .header-right .tablink:active,
  .nav.creative-nav .header-right a:focus-visible,
  .nav.creative-nav .header-right .tablink:focus-visible {
    background: transparent;
    color: var(--lavender);
  }

  .nav.creative-nav .header-right .tablink.active-page-tab {
    background: rgba(43, 42, 76, 0.08);
    color: var(--samurai-blue);
    font-family: inherit;
    font-weight: 400;
  }

  .nav.creative-nav
    .header-right:has(
      a:hover,
      .tablink:hover,
      a:active,
      .tablink:active,
      a:focus-visible,
      .tablink:focus-visible
    )
    .tablink.active-page-tab {
    background: transparent;
  }

  .nav.creative-nav .header-right a:hover,
  .nav.creative-nav .header-right .tablink:hover,
  .nav.creative-nav .header-right a:active,
  .nav.creative-nav .header-right .tablink:active,
  .nav.creative-nav .header-right a:focus-visible,
  .nav.creative-nav .header-right .tablink:focus-visible {
    background: rgba(43, 42, 76, 0.14);
  }

  #shortstory .synopsis {
    width: auto;
    margin-left: 7%;
    margin-right: 7%;
  }

  #shortstory .book {
    width: calc(100vw - 32px);
    height: 656px;
    margin-left: auto;
    margin-right: auto;
  }

  #shortstory .book .page {
    width: 100%;
    padding: 20px;
  }

  #shortstory .tab-contents.active-tab {
    width: 100%;
    margin-right: 0;
  }

  #shortstory .tab-titles {
    justify-content: space-evenly;
    gap: 0;
  }

  #shortstory .tab-links {
    font-size: 18px;
  }

  /* ---------------------------------------------------------
       Poetry mobile
       --------------------------------------------------------- */
  .poetry {
    width: 100%;
    margin-top: 0;
  }

  .poetry .container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .poetry img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .poetry .overlay {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    padding-bottom: 40px;
  }

  .poetry .book {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 24px;
    overflow: visible;
  }

  .poetry .book .page {
    width: 100%;
    padding: 20px 0;
  }

  .poetry pre {
    width: 100%;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 15px;
    line-height: 1.55;
  }

  .poemheading {
    width: 100%;
    margin: 0;
    padding: 28px 20px 12px;
    transform: none;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.15;
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  #photography #photo-grid .photo-tile,
  #photography #photo-grid .tile-media,
  #photography #photo-grid .overlay,
  #photography #photo-grid .photo-stack-counter {
    transition: none !important;
  }
}

/* =========================================================
   Mobile full-screen photography viewer
   ========================================================= */
.mobile-photo-viewer {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  body.mobile-viewer-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  .mobile-photo-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .mobile-photo-viewer.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-viewer-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  .mobile-viewer-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transform-origin: center center;
    /*
        Critical:
        pinch and pan must follow the fingers
        directly rather than easing toward them.
    */
    transition: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /*
    Only deliberate double-tap zoom/reset
    receives an animation.
*/
  .mobile-viewer-media.zoom-settling {
    transition: transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  body.mobile-viewer-open,
  .mobile-viewer-stage {
    overscroll-behavior: none;
  }

  .mobile-viewer-close {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 34px;
    font-weight: 300;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .mobile-viewer-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 80px 24px max(28px, calc(18px + env(safe-area-inset-bottom)));
    color: white;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-photo-viewer.show-info .mobile-viewer-info {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-viewer-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .mobile-viewer-location {
    margin-top: 6px;
    font-size: 0.95rem;
    font-style: italic;
  }

  .mobile-viewer-date {
    margin-top: 2px;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
  }

  .mobile-viewer-counter {
    position: absolute;
    top: max(30px, calc(env(safe-area-inset-top) + 12px));
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
  }
}
