/* StepTurnMoveDynamic-1.1: public_html/css/custom.css */
/* This file contains custom styles for the frontend of the StepTurnMove website. */
/* MODIFIED to set the global font to Inconsolata. */

/* --- General Body and Typography --- */
body {
    /* MODIFIED: Changed font-family to Inconsolata with a generic monospace fallback */
    font-family: 'Inconsolata', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #626262;
}

/* --- Shared Header and Section Styling --- */
header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #0073e6;
}

h2,h3 {
    color: #0073e6;
}

section {
    margin-bottom: 20px;
}

/* --- Language Switcher Styling --- */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 60px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    /* REMOVED: font-family rule to allow inheritance from body */
    align-items: center;
    padding: 5px;
}

.language-switcher .lang-option {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    font-size: 0.9em;
}

.language-switcher .lang-option:hover,
.language-switcher .lang-option.active {
    color: #0073e6;
    border-color: #0073e6;
    background-color: rgba(0, 123, 255, 0.1);
}

/* --- Responsive Adjustments for Language Switcher --- */
@media (max-width: 768px) {
    .language-switcher {
        top: 5px;
        right: 50px;
        font-size: 0.8em;
    }
}

/* --- NEW HEADER-RELATED CSS --- */
.burger .menu-line {
  display: block;
  width: 30px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.burger .menu-line:last-child {
    margin-bottom: 0;
}

.full-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.ham-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ham-menu ul {
  list-style: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.ham-menu ul li {
  margin-bottom: 15px;
}

.ham-menu ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.ham-menu ul li a:hover {
  background-color: #e0e0e0;
}

#ham-menu:checked ~ .full-page-overlay {
  opacity: 1;
  visibility: visible;
}

#ham-menu:checked ~ .ham-menu {
  transform: translateX(0);
}

#ham-menu {
  display: none;
}

#ArtistPlaceholder,
#ProductionsPlaceholder,
#ProductionPlaceholder,
#OtherProductionsPlaceholder,
#tourDatesPlaceholder
{
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #ArtistsPlaceholder img,
    #ProductionsPlaceholder img {
        width: 100%;
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto 1rem auto;
    }
}

/* --- Common rich-text editor styles --- */
.toolbar button {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 3px;
}
.toolbar button:hover {
  background: #e2e6ea;
}
.rich-text-editor {
  border: 1px solid #ced4da;
  padding: 10px;
  border-radius: 4px;
  min-height: 150px;
  overflow-y: auto;
  background-color: #fff;
}


/*
 * UPDATED: Styles for Production Media Page to ensure side-by-side layout with equal height.
 */

/* Main container for the side-by-side layout */
.media-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 1.5rem;      
  align-items: stretch; 
}

/* Each item (video or image) inside the container */
.media-item {
  flex: 1 1 350px; 
  display: flex;
  flex-direction: column; /* Ensure content inside stacks vertically */
  min-width: 300px;
}

/* NEW: The video wrapper needs to fill the height of its flex container */
.video-wrapper {
  width: 100%;
  height: 100%;
  /* Override the inline styles from the JS to make it work with flexbox */
  position: relative !important;
  padding-bottom: 0 !important; 
  height: 100% !important;
}

.video-wrapper iframe {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Styling for the image in its container */
.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 4px; 
}

/* Layout for pages where there is only an image and no video */
.media-container.single-image {
  display: block; 
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.media-container.single-image .media-display {
  width: 100%;
  height: auto;
  max-height: 500px; 
  object-fit: cover;
  border-radius: 4px;
}

/* Responsive Breakpoint: Stack the items on medium screens and below */
@media (max-width: 768px) {
  .media-container {
    flex-direction: column; 
  }
}

/* --- Styles for Extra Images Gallery --- */
.extra-images-container {
    margin-top: 20px;
}
.extra-images-container h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.extra-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.extra-images-list img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
}
.modal-credits {
    font-size: 1rem;
    padding: 10px;
    text-align: left;
    color: #555;
}
#backButton {
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 9999;
    color: #0073e6;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
@media (max-width: 768px) {
    #backButton {
        bottom: 20px;
        right: 20px;
    }
}

/* Limit size of pop-up on production_media.php */
.modal-image-constrained {
  max-height: 75vh;
  object-fit: contain; 
}

/* --- Finale styling voor de Foto Pop-up (Lightbox Effect) --- */

#imageModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

#imageModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageModal .modal-footer {
  border: none;
}

#imageModal .btn[data-bs-dismiss="modal"] {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#imageModal #prevBtn,
#imageModal #nextBtn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 28px;
  width: 48px;
  height: 60px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#imageModal #prevBtn {
  left: 5vw; 
  border-radius: 0 8px 8px 0;
}

#imageModal #nextBtn {
  right: 5vw; 
  border-radius: 8px 0 0 8px;
}

#modalCredits {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  text-align: center;
}

#imageModal #prevBtn:hover,
#imageModal #nextBtn:hover,
#imageModal .btn[data-bs-dismiss="modal"]:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Voor Safari compatibiliteit */
}

#artistFilter,
#productionFilter {
  font-size: 1.1rem; 
}
