/**
 * Fonts
 */
@font-face {
    font-family: 'IBMPlexSansArabic';
    font-weight: normal;
    font-style: normal;
    src: url('https://files.cargocollective.com/c398194/IBMPlexSansArabic-Regular.woff') format('woff');
}

@font-face {
    font-family: 'IBMPlexSansArabic';
    font-weight: bold;
    font-style: normal;
    src: url('https://files.cargocollective.com/c398194/IBMPlexSansArabic-SemiBold.woff') format('woff');
}

/**
 * Base
 */

* {
    box-sizing: border-box;
}

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

a {
    color: #111111;
    text-decoration: none;
}

a:hover {
    opacity: 0.5;
}

a:active {
    opacity: 0.4;
}

i, em { font-style: italic; }
b, strong { font-weight: bolder; }
img { border: 0; padding: 0; display: block; }
ul, ol { margin: 0; padding: 0 0 0 1em; }
blockquote { margin: 0; padding: 0 0 0 2em; }
hr { background: rgba(0,0,0,0.1); border: 0; height: 1px; display: block; }

/**
 * Fixed Header
 */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.2rem 0.8rem 1.2rem;
    font-family: "IBM Plex Mono", monospace, Icons;
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

#header-left {
    flex-shrink: 0;
    margin-right: 2rem;
    min-width: 130px;
}

#header-name {
    font-weight: 500;
    font-size: 0.82rem;
    color: #111111;
    margin-bottom: 0.15rem;
}

#header-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#header-nav a {
    color: #111111;
    font-size: 0.82rem;
    line-height: 1.5;
    display: block;
}

#header-nav a:hover {
    opacity: 0.4;
}

#header-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.8rem;
    padding-top: 0;
    flex: 1;
}

#header-years span {
    font-size: 0.82rem;
    color: #111111;
    line-height: 1.5;
    white-space: nowrap;
}

/**
 * Hide Cargo's default nav elements
 */

#site_menu_button,
#site_menu {
    display: none !important;
}

[data-css-preset] #shop_button {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-size: 0.82rem;
    color: #111111;
    background: transparent;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    position: fixed;
    padding: 0;
    top: 1rem;
    right: 1.2rem;
    letter-spacing: -0.01em;
}

#shop_button.text {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-size: 0.82rem;
    padding: 0;
    line-height: 1.5;
    font-style: normal;
    font-weight: 400;
}

/**
 * Page layout — push content below fixed header
 */

[data-css-preset] body {
    background-color: #ffffff;
}

[data-css-preset] .page {
    background-color: transparent;
}

.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: auto;
    margin-right: auto;
    text-align: left;
}

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

[data-css-preset] .content_padding {
    padding-top: 6rem;
    padding-bottom: 4rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

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

/**
 * Thumbnails
 */

div[thumbnails] {
    justify-content: flex-start;
}

[data-css-preset] .thumbnails {
    background-color: transparent;
}

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

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

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

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.15rem;
}

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

.thumbnails .thumb_image {
    outline: none;
    position: relative;
}

.thumbnails .thumb_image:hover {
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

/* Tiny captions below each image */
.thumbnails .title {
    margin-top: 0.3rem;
    margin-bottom: 0.7rem;
    font-size: 0.89rem;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.5);
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: transparent;
    padding: 0;
    display: block;
    opacity: 1;
}

.thumbnails .thumbnail .title {
    background: transparent;
    color: rgba(17, 17, 17, 0.5);
    padding-top: 0;
    display: block;
    z-index: 9;
    opacity: 1;
}

.thumbnails .thumbnail:hover .title {
    opacity: 1;
}

.thumbnails .tags {
    display: none;
}

.gallery_image_caption {
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    line-height: 1.3;
    font-family: "IBMPlexSansArabic", "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: normal;
    color: rgba(17, 17, 17, 0.45);
}

/**
 * Typography
 */

[data-predefined-style="true"] bodycopy {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.8);
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

[data-predefined-style="true"] bodycopy a {
    color: #111111;
    padding-bottom: 0.1em;
    border-bottom: 1px solid rgba(17, 17, 17, 0.3);
    text-decoration: none;
}

[data-predefined-style="true"] h1 {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: 400;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #111111;
    letter-spacing: -0.02em;
}

[data-predefined-style="true"] h1 a {
    color: #111111;
    border-bottom: 0;
}

[data-predefined-style="true"] h2 {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: 400;
    padding: 0;
    margin: 0;
    color: #111111;
    line-height: 1;
}

[data-predefined-style="true"] small {
    display: inline-block;
    font-size: 1.00rem;
    line-height: 1.4;
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.45);
}

/**
 * Loading
 */

.loading[data-loading] {
    position: fixed;
    bottom: 8px;
    left: 8px;
}

/**
 * Content images
 */

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

.content img.image-zoom:active {
    opacity: 0.7;
}

/**
 * Quick view
 */

[data-css-preset] .quick-view {
    padding: 2rem;
    height: 100%;
    width: 100%;
}

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

.quick-view-caption {
    font-family: "IBM Plex Mono", monospace, Icons;
    transition: 100ms opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(17,17,17,0.6);
}

.quick-view-caption span {
    padding: 0.2rem 0.6rem;
    display: inline-block;
    background: rgba(255,255,255,0.8);
    color: rgba(17,17,17,0.6);
}

/**
 * Quick view navigation
 */

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

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
    height: 36px;
    width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
    stroke: #111;
    stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
    stroke: rgba(255,255,255,0.8);
    stroke-width: 2px;
    opacity: 0.8;
}

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

.quick-view-navigation .close-button .inner-color {
    stroke: #111;
    stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
    stroke: rgba(255,255,255,0.8);
    stroke-width: 2px;
    opacity: 0.8;
}

/**
 * Image gallery
 */

.slideshow {
    text-align: left;
    float: left;
    margin-bottom: 20px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
    stroke: #111111;
    stroke-width: 1.5px;
}

.image-gallery-navigation .outer-color {
    fill: transparent;
    opacity: 1.0;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
    stroke: rgba(255,255,255,0.6);
    stroke-width: 2px;
}

/**
 * Shop product
 */

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

.shop_product .price {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1;
    color: #111111;
    display: block;
    margin-bottom: 0.8rem;
}

.shop_product .dropdown {
    font-family: "IBM Plex Mono", monospace, Icons;
    color: #111111;
    font-size: 0.85rem;
    display: inline-block;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.15);
    background: white url(https://static.cargo.site/assets/images/select-arrows.svg) no-repeat right;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    padding: 0.5rem 0.8rem;
}

.shop_product .button {
    font-family: "IBM Plex Mono", monospace, Icons;
    font-size: 0.78rem;
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0,0,0,0.2);
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
    line-height: 1;
    padding: 0.4rem 0.5rem;
    font-style: normal;
    font-weight: 400;
}

.shop_product .button:hover {
    background: rgba(0,0,0,0.04);
}

/**
 * Audio player
 */

.audio-player {
    max-width: 34rem;
    height: 3rem;
    outline: 1px solid rgba(0,0,0,0.1);
    color: rgba(17,17,17,0.6);
    background: #fafafa;
    font-size: 0.85rem;
    line-height: 1.3;
    font-family: "IBM Plex Mono", monospace, Icons;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin: 1px 1px 1em 1px;
}

.audio-player .button {
    background: transparent;
    cursor: pointer;
    fill: rgba(17,17,17,0.7);
}

.audio-player .icon {
    fill: rgba(17,17,17,0.7);
    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.08); }

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

.audio-player .note-icon {
    height: 100%;
    width: 3.5rem;
    padding: 1rem;
    fill: rgba(17,17,17,0.4);
}

.audio-player .separator { width: 1px; background-color: rgba(0,0,0,0.1); }
.audio-player .current-time { padding-left: 1rem; }
.audio-player .total-time { padding-right: 1rem; }

/**
 * Feed
 */

.feed .content_container .page {
    border-top: 0px dashed rgba(0,0,0,0.1);
}

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

/**
 * Mobile
 */

body.mobile #site-header {
    flex-wrap: wrap;
    padding: 0.8rem;
}

body.mobile #header-years {
    display: none;
}

body.mobile [data-css-preset] .content_padding {
    padding-top: 5rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}
