/* Lock body to prevent scrolling */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body.single-project .sections {
  background-color: #000 !important;
}

/* Container - takes up most of viewport */
.jw-project-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88vh;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

/* Credits Section - takes remaining space */
.credits-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 1.5rem 2rem;
  text-align: center;
  height: 12vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Video Player */
#jwplayer-container,
#jwplayer-container .jw-wrapper {
  width: min(65vw, calc(75vh * 16 / 9)) !important;
  max-width: 65vw !important;
  aspect-ratio: 16 / 9 !important;
  background: #000;
  margin-bottom: 0;
}

.project-close {
  position: fixed;
  display: inline-block;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: #000; /* default background */
  color: #fff; /* default text color */
  cursor: pointer;
  z-index: 10001;
  font-family: "amador", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1;
  box-sizing: border-box;
}

.project-close:link,
.project-close:visited,
.project-close:active {
  color: #fff;
  background: #000;
}

.project-close:hover {
  background: #fff;
  color: #000 !important;
}

/* Custom Controls */
.custom-controls {
  width: min(65vw, calc(75vh * 16 / 9)); /* Same as video */
  max-width: 65vw; /* Same as video */
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.progress-container {
  width: 100%;
  height: 2px;
  background: #333;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #666666;
  transition: none;
}

.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* PLAY PAUSE BTNS */

.play-pause-btn {
  background: none;
  border: none;
  padding: 0.5rem 0rem;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
}

.play-pause-btn .mask-container {
  overflow: hidden;
  height: 40px;
  padding: 0 0.5rem; /* Add horizontal padding inside the mask */
  display: inline-block;
  position: relative;
  margin: 0 -0.4rem; /* Negative margin to pull it back to alignment */
}

.play-pause-btn span {
  font-family: "amador", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  transform: scaleX(1.2);
  display: block;
  line-height: 1;
  color: #fff;
  transition: color 0.3s ease; /* Only transition color, not transform */
  position: relative;
}

.play-pause-btn:hover span {
  color: #999;
}

/* Slide up animation */
.mask-container.slide-up span {
  transform: scaleX(1.2) translateY(-100%);
  transition: transform 0.4s ease; /* Add transition only when sliding up */
}

/* Slide in from bottom */
.mask-container.slide-in span {
  transform: scaleX(1.2) translateY(100%);
  animation: slideInFromBottom 0.4s ease forwards;
  transition: none; /* Disable transition during animation */
}

@keyframes slideInFromBottom {
  to {
    transform: scaleX(1.2) translateY(0);
  }
}

/* TIME */
.time-display {
font-family: 'DomiRegular', sans-serif;
font-weight: 300;
  font-size: 0.7rem;
  padding: 0.5rem 0rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  align-self: flex-start; /* Align to TOP instead of center */
}

/* Project Title */
.project-title {
  font-family: "amador", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 2.4rem !important;
  color: #f2f2f2 !important;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* Credit Roles */
.credit-role {
font-family: 'DomiRegular', sans-serif;
font-weight: 300;
  font-size: 0.7rem;
  color: #777777;
  text-transform: lowercase;
  letter-spacing: 0.2em;
}

/* Credit Names */
.credit-name {
font-family: 'DomiRegular', sans-serif;
font-weight: 300;
  font-size: 0.9rem;
  color: #ababab;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.credit-item {
  white-space: nowrap;
}

/* Separator styling */
.separator {
  padding: 0 0.5em; /* Adjust the value to increase/decrease spacing */
  color: #333333; /* Optional: match the separator color to credit names */
}

/* Hide Semplice navigation menu */
smp-nav-content[data-module="menu"] {
  display: none !important;
}