/* Gris para página individual de mio */
.project-single.mio {
  color: #333 !important;
}
/* Gris para página individual de destination germany */
.project-single.destination-germany {
  color: #333 !important;
}
/* Site override: force Arial family */
html, body, .font-sans, .font-serif, .heading, h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Optional: make cursive heading use Arial fallback */
.heading {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Projects list: make the item title larger and ensure headings inside
   the excerpt are smaller so the list title stands out. */
.py-2 .font-serif.font-medium > a {
  font-size: 1.4rem !important;
  line-height: 1.1 !important;
}
.project-excerpt h1,
.project-excerpt h2,
.project-excerpt h3 {
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin: 0.25rem 0 !important;
}

/* Space images that appear inside project excerpts on the projects list page */
.project-excerpt img {
  display: block;
  margin: 1.5rem 0; /* vertical space roughly equivalent to two <br> */
  max-width: 100%;
  height: auto;
}

/* Cambia el color de la descripción de los proyectos a gris más oscuro */
.project-excerpt {
  color: #333 !important;
  font-weight: 400;
  font-size: 1rem;
}

/* Ensure site title/name uses the same size everywhere (match About page) */
.heading.font-cursive.icon {
  font-size: 1.875rem !important; /* base size matching h1 */
  line-height: 2.25rem !important;
}
@media (min-width:1024px) {
  .heading.font-cursive.icon {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
  }
}

/* Mío subtitle rule (kept minimal) */
.mio-subtitle {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  margin: 0.25rem 0 1rem 0 !important;
  color: inherit !important;
}

/* Simple Mio gallery slider styles */
.mio-gallery {
  position: relative;
  max-width: 1000px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
}
.mio-slides {
  flex: 1 1 auto;
  overflow: hidden;
}
.mio-slide {
  width: 700px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: none;
  max-width: 100%;
  border-radius: 10px;
}

/* Responsive adjustments: make slides fluid on small screens */
@media (max-width: 768px) {
  .mio-gallery { max-width: 100%; margin: 1rem 0; }
  .mio-slides { overflow: visible; }
  .mio-slide {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  .mio-arrow { padding: 0.4rem 0.7rem; font-size: 1.4rem; }
}

/* Lightbox / fullscreen image for mobile */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  z-index: 10000;
}
/* Navigation buttons (prev/next) — vertically centered */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  z-index: 10000;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
/* Lightbox enabled on all screen sizes */
.mio-slide.active { display: block; }
.mio-arrow {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  margin: 0 0.5rem;
}
.mio-arrow:focus { outline: 2px solid #fff; }

/* Themed back button for project single pages */
.project-back { text-align: center; margin-top: 2rem; }
.project-back .btn-back {
  display: inline-block;
  background: #1f2937; /* dark gray like theme */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.project-back .btn-back:hover { background: #111827; }

/* Project top bar: place related project link at same vertical level as title */
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.project-title { margin: 0; }
.project-title-placeholder { min-height: 2.25rem; }
.project-related .related-link {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}
.project-related .related-link:hover { text-decoration: underline; }

/* Image credit styling */
.img-credit {
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7280; /* gray-500 */
  text-align: right;
  margin-top: 0.25rem;
}
.mio-figure { display: block; }
.mio-figure img { display: block; max-width: 100%; height: auto; }

/* Wrapper for slides when we need overlays (credits) */
.mio-slide-wrap {
  position: relative;
  display: inline-block;
}
.mio-slide-wrap .mio-credit {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

/* Make any element with width attribute responsive: override fixed pixel widths */
img[width], video[width], img[height], video[height] {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Ensure rich-text images are fluid */
.c-rich-text img { max-width: 100%; height: auto; }

/* About page: make main image half size */
.about-image img {
  width: 40.5% !important;
  max-width: 40.5% !important;
  height: auto !important;
  display: block;
  margin: 0 0 1rem 0; /* image block with bottom margin so text appears below */
}

@media (max-width: 768px) {
  .about-image img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0;
  }
}

