/* === GLOBAL RESET & BASICS === */

body {
  background-color: #fff;
  color: #fff;
  margin: 0;
  padding: 0;
}

a:active {
  opacity: 0.7;
}

.page a.active {
  opacity: 0.4;
}
bodycopy.bodycopy {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* === TEXT ELEMENTS === */

i,
em {
  font-style: italic;
}

b,
strong {
  font-weight: bolder;
}

sub,
sup {
  position: relative;
  vertical-align: baseline;
}

sub {
  top: 0.3em;
}

sup {
  top: -0.4em;
}

s {
  text-decoration: line-through;
}

/* === IMAGES === */

img {
  border: 0;
  padding: 0;
}

.content img {
  float: none;
  margin-bottom: 0.5em;
}

/* === LISTS & BLOCKQUOTES === */

ul,
ol {
  margin: 0;
  padding-left: 1em;
}

blockquote {
  margin: 0;
  padding-left: 2em;
}

/* === HORIZONTAL RULE === */

hr {
  background: rgba(127, 127, 127, 0.2);
  border: 0;
  height: 1px;
  display: block;
}
/* === GALLERY CAPTIONS === */
.gallery_image_caption {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(29, 29, 29, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.3;
}

/* === LOADING INDICATOR === */
.loading[data-loading] {
  position: fixed;
  bottom: 8px;
  left: 8px;
}

/* === CUSTOM EDITOR STYLES === */
[data-predefined-style="true"] bodycopy {
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  font-family: "StrangeFictionsFont", Icons;
  font-style: normal;
  line-height: 1.3;
  font-variation-settings: 'slnt' 0, 'SRFF' 1;
}

[data-predefined-style="true"] bodycopy a {
  color: rgb(255, 255, 255);
  padding-bottom: 0.1em;
  border-bottom: 0 solid rgba(127, 127, 127, 0.21);
  text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {
  /* Add hover effect if desired */
}

/* === INLINE IMAGE + ICON LINKS === */
bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
  border-bottom: 0;
  padding-bottom: 0;
}

/* === HEADINGS === */
[data-predefined-style="true"] h1 {
  font-family: "StrangeFictionsFont", Helvetica, sans-serif, "Helvetica Neue Regular", Icons;
  font-style: normal;
  font-weight: normal;
  margin: 0;
  padding: 0;
  font-size: 3rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}

[data-predefined-style="true"] h1 a {
  color: rgba(255, 255, 255, 0.85);
}

[data-predefined-style="true"] h2 {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Regular", Icons;
  font-style: normal;
  font-weight: normal;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: rgb(255, 255, 255);
}

[data-predefined-style="true"] h2 a {
  color: rgb(0, 0, 0);
}

/* === SMALL TEXT === */
[data-predefined-style="true"] small {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1.3;
  font-family: 'StrangeFictionsFont', Icons;
  font-style: normal;
  font-weight: normal;
  color: rgba(183, 183, 183, 1);
}

[data-predefined-style="true"] small a {
  color: rgb(183, 183, 183);
  border-bottom: 0;
}
/* === PAGE BREAKPOINTS & CONTAINER === */
[data-css-preset] .page {
  background-color: initial;
}

.mobile .page,
[data-css-preset].mobile .page {
  position: relative;
  min-height: 10px;
  max-width: 100%;
  width: 100%;
  background-color: transparent;
}

[data-css-preset] .container {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

[data-css-preset] body {
  background-color: rgb(0, 0, 0);
}

[data-css-preset] .container_width {
  width: 100%;
}

[data-css-preset] .content_padding {
  padding: 3.4rem;
}

[data-css-preset] text-limit {
  display: inline-block;
  max-width: 66rem;
}

/* === THUMBNAILS GRID === */
div[thumbnails] {
  justify-content: flex-start;
}

[data-css-preset] .thumbnails {
  background-color: rgba(0, 0, 0, 0);
}

[data-css-preset] .thumbnails_width {
  width: 99%;
}

[data-css-preset] [thumbnails-pad] {
  padding: 0.35rem;
}

[data-css-preset] [thumbnails-gutter] {
  margin: -0.7rem;
}

/* Responsive Layout Adjustments */
[data-css-preset] [responsive-layout] [thumbnails-pad] {
  padding: 1.025rem;
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
  margin: -2.05rem;
}

/* === INDIVIDUAL THUMBNAILS === */
.thumbnails .thumb_image {
  outline: 1px solid rgba(0, 0, 0, 0.12);
  outline-offset: -1px;
}

.thumbnails .title {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.8rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'StrangeFictionsFont', BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, 
    "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.1;
}

.thumbnails .tags {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, 
    "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.2;
}

.thumbnails .tags a {
  border-bottom: 0;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.thumbnails .has_title .tags {
  margin-top: 0;
}

/* === SITE MENU === */
#site_menu {
  font-family: 'StrangeFictionsFont', serif;
  background: transparent;
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  padding: 40px 40px 90px 30px;
  max-width: 500px;
  min-width: 300px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  z-index: 2; /* Ensure it's layered above background elements */
}

body.mobile #site_menu {
  width: 100%;
}

/* Site Menu Button */
body.mobile #site_menu_button {
  margin: .2px;
  font-size: 34px;
}

#site_menu_button.custom_icon {
  width: 200px;
  height: 200px;
}

#site_menu_button.active {
  display: none;
}

/* Site Menu Links */
#site_menu .page-link a,
#site_menu .set-link > a {
  color: rgba(255, 255, 255, 1);
  font-weight: normal;
}

#site_menu a:active,
#site_menu a.active {
  opacity: 1;
}

/* Site Menu Close Button */
#site_menu .close {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  line-height: 0.85em;
  font-size: 45px;
}

body.mobile #site_menu .close {
  display: block;
  font-size: 20px;
  line-height: 2em;
}

/* Menu Spacing */
#site_menu .break {
  height: 28px;
}

#site_menu .indent {
  margin-left: 28px;
}
/* === SHOP BUTTON === */

[data-css-preset] #shop_button {
  color: rgba(0, 0, 0, 0.85);
  background: transparent;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  position: fixed;
  padding: 6px;
  top: 2rem;
  right: 2rem;
  z-index: 3; /* Ensure it's clickable above video */
}

#shop_button.text {
  font-size: 2rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  padding: 0;
  line-height: 1.2;
}

#shop_button.custom_icon {
  width: 40px;
  height: auto;
}

body.mobile #shop_button:not(.text) {
  margin: -6px;
  font-size: 40px;
}

/* === SHOP PRODUCT WIDGET === */

.shop_product {
  width: 100%;
  max-width: 22rem;
  position: relative;
  display: block;
}

.shop_product .price,
.shop_product .dropdown,
.shop_product .button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-size: 1.6rem;
  line-height: 1;
}

/* Price */
.shop_product .price {
  color: rgba(0, 0, 0, 0.85);
  display: block;
  margin-bottom: 1rem;
}

/* Dropdown */
.shop_product .dropdown {
  display: inline-block;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: white url(https://static.cargo.site/assets/images/select-line-arrows.svg)
    no-repeat right;
  margin-bottom: 1rem;
  line-height: 1.2;
  padding: 0.7rem 1rem;
}

/* Button */
.shop_product .button {
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 1);
  flex: 0 0 50%;
  text-align: left;
  display: inline-block;
  padding: 0.8rem 1rem;
}
/* === IMAGE ZOOM === */
.content img.image-zoom:active {
  opacity: 0.7;
}

/* === QUICK VIEW === */
[data-css-preset] .quick-view {
  padding: 2.5rem;
  width: 100%;
  height: 100%;
}

body.mobile .quick-view {
  width: 100%;
  height: 100%;
  margin: 0;
}

[data-css-preset] .quick-view-background {
  background: rgba(255, 255, 255, 0.95);
}

.quick-view-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  transition: 100ms opacity ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 3.5rem 0;
}


/* === QUICK VIEW NAVIGATION === */
.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow,
.quick-view-navigation .close-button {
  width: 36px;
  height: 36px;
}
.quick-view-caption span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.quick-view-navigation .left-arrow {
  left: 10px;
}

.quick-view-navigation .right-arrow {
  right: 10px;
}

.quick-view-navigation .close-button {
  top: 10px;
  right: 10px;
}

.quick-view-navigation .inner-color {
  stroke: rgba(0, 0, 0, 0.85);
  stroke-width: 1.5px;
}

.quick-view-navigation .outer-color {
  stroke: transparent;
  stroke-width: 2.5px;
}

/* === IMAGE GALLERY NAVIGATION ARROWS === */
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
  width: 36px;
  height: 36px;
}

.image-gallery-navigation .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}


/* === WALLPAPER NAVIGATION ARROWS === */
.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
  width: 36px;
  height: 36px;
}

.wallpaper-navigation .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}
.image-gallery-navigation .outer-color {
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 2.5px;
}

.wallpaper-navigation .outer-color {
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 2.5px;
}
/* === FEED === */
.feed .content_container .page {
  border-top: 0px dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
  border-top: 0;
}

/* === AUDIO PLAYER === */
.audio-player {
  max-width: 36rem;
  height: 3.3rem;
  margin: 1px 1px 1em 1px;
  padding: 0;
  background: #fff;
  outline: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.2rem;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  font-weight: 400;
  text-align: left;
}

body.mobile .audio-player {
  max-width: 100%;
}

.audio-player .separator {
  width: 1px;
  background-color: rgba(0, 0, 0, 0.15);
}

.audio-player .button,
.audio-player .icon {
  background: transparent;
  fill: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.audio-player .icon {
  padding: 30%;
  width: 100%;
  margin: auto;
}

.audio-player .buffer {
  background: rgba(0, 0, 0, 0.03);
}

.audio-player .progress {
  background: rgba(0, 0, 0, 0.1);
}

.audio-player .progress-indicator {
  width: 1px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.7);
  right: 0;
  position: absolute;
  cursor: ew-resize;
}

.audio-player .note-icon {
  height: 100%;
  width: 3.8rem;
  padding: 1rem;
  fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
  padding-left: 1rem;
}

.audio-player .total-time {
  padding-right: 1rem;
}

/* === CONTAINER WIDTH + PADDING === */
[data-css-preset] .container_width {
  width: 100%;
}

[data-css-preset] .content_padding {
  padding: 3.7rem;
}
/* === CUSTOM FONT === */
@font-face {
  font-family: 'StrangeFictionsFont';
  src: url('https://files.cargocollective.com/c2982522/StrangeFictions-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* === GLOBAL FONT USAGE === */
h1,
.site-title,
bodycopy,
bodycopy:last-of-type,
bodycopy:last-of-type p,
bodycopy:last-of-type a,
[data-predefined-style="true"] small,
[data-predefined-style="true"] small a,
.thumbnails .title,
.thumbnails .tags,
.thumbnails .tags a {
  font-family: 'StrangeFictionsFont', serif !important;
  color: white !important;
}

/* Fullscreen Video Container */
.homepage-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}



/* Site menu toggle */
#site_menu_button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 3;
}

/* Navigation Links over video */
.link-section {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
}

.link-section .nav-links {
  display: flex;
  justify-content: center;
  gap: 3vw;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 1.8rem;
}

.link-section a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.link-section a:hover {
  opacity: 0.7;
}

/* Footer fixed at the bottom of screen */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 1.2rem;
  padding: 2rem;
  text-align: center;
  z-index: 2;
}
/* === DESKTOP: Vimeo Embed === */
body.homepage .video-desktop iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  border: none;
}

/* === MOBILE: Initially Hidden, Styling Applied in Media Query === */
.video-mobile {
  display: none;
}
@media screen and (max-width: 768px) {
  /* Hide desktop Vimeo */
  body.homepage .video-desktop {
    display: none;
  }
  /* Remove any unexpected background */
  body,
  .homepage-video,
  .video-mobile,
  .video-mobile video {
    background: black !important;
  }
  /* Mobile video container */
  .video-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: black;
    pointer-events: none;
  }

  /* Actual video settings */
  .video-mobile video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
  }
}



/* === HOMEPAGE ONLY === */
body.homepage {
  height: 100vh;
  overflow: hidden;
}

body:not(.homepage) {
  height: auto;
  overflow: auto;
}

/* === HOMEPAGE VIDEO CONTAINER === */
body.homepage .homepage-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* === MAIN CONTENT ABOVE VIDEO === */
.content,
.bodycopy {
  flex: 1 0 auto;
  position: relative;
  z-index: 2;
}

/* === FOOTER === */
footer,
.site-footer,
bodycopy:last-of-type {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* === NAVIGATION LINKS === */
.link-section {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3; /* Above video and footer */
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4vw;
  flex-wrap: wrap;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 1.8rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}


#site_menu {
  background-color: rgba(0, 0, 0, 0.95); /* solid black with slight transparency */
  color: white;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  padding: 30px 30px 90px 30px;
  max-width: 400px;
  min-width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 999; /* sits above background/video */
  position: fixed; /* ensures it overlays video */
  top: 0;
  left: 0;
  height: 100vh;
}


/* Navigation links */
body.homepage .link-section {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
}

body.homepage .nav-links {
  display: flex;
  justify-content: center;
  gap: 3vw;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 1.8rem;
}

body.homepage .nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body.homepage .nav-links a:hover {
  opacity: 0.7;
}

/* Footer — fixed but only on homepage */
body.homepage .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-family: 'StrangeFictionsFont', serif;
  font-size: 1.2rem;
  padding: 1rem;
  text-align: center;
  z-index: 2;
}
/* Hide the homepage video on all non-home pages */
body:not(.homepage) .homepage-video {
  display: none !important;
}
/* === GLOBAL RESET & BASICS === */
body {
  background-color: #fff;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Hide video container on non-home pages */
body:not(.homepage) .homepage-video {
  display: none !important;
}

/* === HOMEPAGE VIDEO STYLING === */
body.homepage .homepage-video {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.homepage .video-desktop iframe,
body.homepage .video-mobile video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  border: none;
}



/* === FIX HOMEPAGE BODY SCROLL === */
body.homepage {
  height: 100vh;
  overflow: hidden;
}

body:not(.homepage) {
  height: auto;
  overflow: auto;
}
