/* =========================================
   DAN BELEIU — CARGO GLOBAL STYLE
   ========================================= */


/* ---------- GLOBAL ---------- */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

a:hover {
  opacity: 0.5;
}

img,
video,
iframe {
  max-width: 100%;
  border: 0;
}


/* ---------- MAIN CONTENT WIDTH ---------- */

page,
.page,
.content,
.site-content,
main,
[data-view="page"] {
  width: calc(100% - 60px);
  max-width: 1100px;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ---------- MENU ---------- */

.beleiu-nav {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;

  width: calc(100% - 60px);
  max-width: 1100px;

  margin: 0 auto 18px auto !important;
  padding-top: 20px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  color: #000;
}

.beleiu-logo {
  font-size: 11px;
  font-weight: 400;

  color: #000;
  text-decoration: none;

  white-space: nowrap;
}

.beleiu-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.beleiu-menu a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;

  color: #000;
  text-decoration: none;

  white-space: nowrap;
}

.beleiu-logo:hover,
.beleiu-menu a:hover {
  opacity: 0.45;
}


/* ---------- REMOVE EXTRA SPACE AFTER MENU ---------- */

.beleiu-nav + *,
.beleiu-nav + .page,
.beleiu-nav + .content,
.beleiu-nav + main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ---------- CARGO PAGE TOP SPACING ---------- */

.page,
.content,
.site-content,
main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ---------- HEADINGS ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
  font-weight: 400;
  margin-top: 0;
}

h1 {
  font-size: 11px;
  line-height: 1.35;
}

h2 {
  font-size: 9px;
  line-height: 1.35;
}

h3 {
  font-size: 11px;
  line-height: 1.35;
}


/* ---------- TEXT ---------- */

p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
  color: #000;
  margin-top: 0;
}


/* ---------- SECONDARY TEXT ---------- */

small,
.meta,
.credit,
.project-meta {
  font-size: 9px;
  line-height: 1.4;
  color: #000;
  opacity: 0.55;
}


/* ---------- DIVIDERS ---------- */

hr {
  border: 0;
  border-top: 1px solid #d8d8d8;
  margin: 20px 0;
}


/* =========================================
   CARGO PHOTO PAGES
   ========================================= */


/* Center Cargo image containers */

media-item {
  display: block;
  max-width: 100%;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: center;
}


/* Center photographs */

media-item img {
  display: block;

  width: auto !important;
  max-width: 100% !important;
  height: auto !important;

  margin-left: auto !important;
  margin-right: auto !important;

  object-fit: contain;
}


/* Normal images */

img {
  display: block;

  max-width: 100%;
  height: auto;

  margin-left: auto;
  margin-right: auto;
}


/* Galleries */

gallery-component {
  display: block;

  width: 100%;
  max-width: 1100px;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* ---------- PROJECT TITLES ---------- */

.project-title,
.thumbnail-title,
.caption,
.project-caption {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;

  color: #000;
}


/* =========================================
   PHOTO PROJECT NAVIGATION
   ========================================= */


/* Hide Cargo's original bottom navigation */

.pagination,
.page-navigation,
.project-navigation,
.next-page,
.previous-page,
.index-link {
  display: none !important;
}


/* Custom PREVIOUS / NEXT */

.photo-project-prev,
.photo-project-next {
  position: fixed;

  bottom: 22px;

  z-index: 99999;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;

  letter-spacing: 0;

  color: #000 !important;
  background: transparent;

  text-decoration: none !important;

  cursor: pointer;

  transition: opacity 0.15s ease;
}


/* PREVIOUS — LOWER LEFT */

.photo-project-prev {
  left: 30px;
  text-align: left;
}


/* NEXT — LOWER RIGHT */

.photo-project-next {
  right: 30px;
  text-align: right;
}


.photo-project-prev:hover,
.photo-project-next:hover {
  opacity: 0.45;
}


/* ---------- ABOUT / CONTACT / FILM WIDTH ---------- */

.about-page,
.contact-page,
.film-page,
.home-film {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 11px;
  line-height: 1.35;

  color: #000;

  width: calc(100% - 60px);
  max-width: 1100px;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* ---------- SECTION TITLES ---------- */

.about-title,
.contact-title,
.film-title,
.home-film-title {
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 40px;
}


/* ---------- ABOUT ---------- */

.about-grid,
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  width: 100%;
}

.about-heading,
.contact-heading {
  font-size: 9px;
  font-weight: 400;
  margin-bottom: 14px;
}

.about-list,
.contact-entry,
.about-entry {
  border-top: 1px solid #d8d8d8;
}

.about-list,
.contact-entry {
  padding-top: 8px;
}

.about-entry {
  padding: 8px 0 9px 0;
}

.about-entry span,
.contact-entry span {
  display: block;

  font-size: 9px;
  line-height: 1.4;

  margin-top: 3px;

  opacity: 0.55;
}


/* ---------- FILM GRID ---------- */

.film-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 55px 20px;

  width: 100%;
}

.film-item {
  width: 100%;
  min-width: 0;
}

.film-link {
  display: block;

  width: 100%;

  color: #000;
  text-decoration: none;
}

.film-video {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #000;
}

.film-video iframe {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

.film-name {
  margin-top: 8px;

  font-size: 11px;
  line-height: 1.3;
}


/* ---------- HOMEPAGE FEATURED FILM ---------- */

.home-film {
  margin-top: 45px;
  margin-bottom: 70px;
}

.home-film-header {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.home-film-title,
.home-film-viewall {
  font-size: 11px;
  font-weight: 400;
}

.home-film-viewall {
  color: #000;
  text-decoration: none;
}

.home-film-scroll {
  display: flex;

  gap: 20px;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 12px;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.home-film-scroll::-webkit-scrollbar {
  display: none;
}

.home-film-item {
  flex: 0 0 calc((100% - 20px) / 2);
}


/* ---------- REMOVE ROUNDED UI ---------- */

button,
input,
textarea,
select,
img,
video,
iframe {
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* ---------- FORMS ---------- */

button,
input,
textarea,
select {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 11px;

  color: #000;
}

input,
textarea,
select {
  border: 1px solid #d8d8d8;

  background: #fff;

  padding: 8px;
}


/* =========================================
   DESKTOP PHOTO SIZE
   ========================================= */

@media (min-width: 701px) {

  media-item img {
    width: auto !important;

    max-width: 100% !important;
    max-height: 82vh !important;

    height: auto !important;

    margin-left: auto !important;
    margin-right: auto !important;

    object-fit: contain;
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {


  /* CENTER PROJECT TEXT ON MOBILE ONLY */

  .project-title,
  .thumbnail-title,
  .caption,
  .project-caption,
  .project-meta {
    text-align: center !important;
  }


  page,
  .page,
  .content,
  .site-content,
  main,
  [data-view="page"],
  .about-page,
  .contact-page,
  .film-page,
  .home-film,
  .beleiu-nav {

    width: calc(100% - 36px);

    margin-left: auto !important;
    margin-right: auto !important;
  }


  .beleiu-nav {
    padding-top: 16px;

    margin-bottom: 16px !important;
  }


  .beleiu-menu {
    gap: 12px;

    flex-wrap: wrap;
    justify-content: flex-end;
  }


  .beleiu-logo,
  .beleiu-menu a {
    font-size: 10px;
  }


  .about-grid,
  .contact-content,
  .film-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }


  .about-title,
  .contact-title,
  .film-title,
  .home-film-title {
    margin-bottom: 32px;
  }


  .home-film-item {
    flex: 0 0 82%;
  }


  /* PHOTO PAGES */

  media-item {
    width: 100%;
    max-width: 100%;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  media-item img {
    display: block;

    width: auto !important;

    max-width: 100% !important;
    max-height: none !important;

    height: auto !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* PROJECT NAVIGATION */

  .photo-project-prev,
  .photo-project-next {
    bottom: 18px;

    font-size: 10px;
  }

  .photo-project-prev {
    left: 18px;
  }

  .photo-project-next {
    right: 18px;
  }

}