/* ============================================================
   custom.css - Grav migration helpers (Youth theme)
   ============================================================ */

/* works grid on homepage: layout copied from .legendary-gallery
   without the PhotoSwipe JS hook (cards link to project pages) */
.works-grid {
  margin: -25px 0 0 0;
  position: relative;
  z-index: 0;
}
.works-grid figure {
  padding: 20px;
}
@media only screen and (max-width: 880px) {
  .works-grid {
    margin: -20px 15px 0 15px;
  }
  .works-grid img {
    border: 10px solid #fff;
  }
  .works-grid figure {
    padding: 0 0;
  }
}
@media only screen and (max-width: 640px) {
  .works-grid {
    margin: -20px 5px 0 5px;
  }
}

/* responsive video embeds (migrated WordPress YouTube embeds) */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* migrated page content */
.section-content {
  padding-bottom: 40px;
}
.section-content img {
  max-width: 100%;
  height: auto;
}
.services-img img {
  width: 80px;
}
.pdf-embed {
  width: 100%;
  height: 900px;
  border: 0;
}

/* one-page homepage sections */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -25px 0 0 0;
  position: relative;
  z-index: 0;
}
.portfolio-item {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
}
.portfolio-title {
  text-align: center;
  margin: 0 0 12px 0;
  padding: 0;
}
.portfolio-title a,
.portfolio-title a:hover {
  text-decoration: none;
}
.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
@media only screen and (max-width: 880px) {
  .portfolio-grid {
    margin: -20px 15px 0 15px;
  }
  .portfolio-item {
    width: 100%;
    padding: 15px 0;
  }
  .portfolio-item img {
    height: 220px;
  }
}

/* montagesoftware icons */
#montagesoftware .services-img img {
  width: 90px;
}

/* video lightbox (migrated wp-a links) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  width: 80%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}
.lightbox-content iframe,
.lightbox-content video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  color: #fddda5;
}

/* ---------- top navigation row ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0));
  padding: 18px 0;
}
.top-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}
.top-menu a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.top-menu a:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 20px;
  height: 1px;
  background: #fff;
  transition: width 300ms cubic-bezier(0.77, 0, 0.175, 1);
}
.top-menu a:hover {
  color: #fff;
}
.top-menu a:hover:after {
  width: 100%;
}
.home-page .center-container {
  z-index: 2;
}

/* ---------- hero text ---------- */
.home-page .center-block .hero-name {
  color: #fff !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.25em !important;
  text-transform: none !important;
  margin: 0 0 22px 0 !important;
  padding: 0;
}
.home-page .center-block .hero-title {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 84px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
@media only screen and (max-width: 640px) {
  .hero-title { font-size: 52px; }
}

/* ---------- curriculum grid (2 rows: 3 + 2) ---------- */
.curriculum-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 40px;
}
.curriculum-item {
  text-align: center;
  max-width: 280px;
}
.curriculum-item .services-title {
  text-align: center;
}
.curriculum-item .services-title a {
  text-transform: none;
}
.curriculum-text {
  text-align: center;
  margin-top: 10px;
}
.section .row.alt {
  margin-bottom: 55px;
}
.curriculum-item .services-img img {
  width: 110px;
}
.curriculum-text {
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}
@media only screen and (max-width: 880px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- portfolio: title on top of picture ---------- */
.portfolio-link {
  position: relative;
  display: block;
}
.portfolio-title {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
  margin: 0;
  padding: 0 14px;
  pointer-events: none;
}
@media only screen and (max-width: 880px) {
  .portfolio-title { font-size: 30px; }
}
@media only screen and (max-width: 640px) {
  .portfolio-title { font-size: 24px; }
}

/* ---------- over jan ---------- */
.overjan-photo-wrap {
  text-align: center;
  margin-bottom: 30px;
}
.overjan-photo {
  width: 100%;
  max-width: 860px;
  height: auto;
  display: inline-block;
}
.testimonial-author {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 18px;
}
.testimonial {
  max-width: 640px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-style: italic;
}
.testimonial-text {
  color: #fddda5;
  font-size: 17px;
}

/* ---------- contactgegevens map ---------- */
.map-embed {
  position: relative;
  width: 100%;
  height: 320px;
  margin-top: 40px;
  cursor: pointer;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.map-open {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ---------- contactgegevens: 3 columns side by side ---------- */
.section-content .wp-block-columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.section-content .wp-block-column {
  flex: 1 1 220px;
  max-width: 300px;
}
.section-content {
  margin-top: 20px;
}

/* ---------- map (site's own minimalist map image) ---------- */
.map-embed img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* ---------- curriculum pager on service pages ---------- */
.curriculum-pager {
  text-align: center;
  padding: 26px 0 10px 0;
  font-size: 17px;
}
.curriculum-pager-label {
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 12px;
}
.pager-sep {
  color: #999;
}

/* ---------- project page: standout video buttons ---------- */
.section-content h3 a.vp-a,
.section-content a.vp-a {
  position: relative;
  color: #111 !important;
  font-family: 'Dosis', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.section-content h3 a.vp-a:after,
.section-content a.vp-a:after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  left: 0;
  bottom: -6px;
  position: absolute;
  background-color: #111;
  transition: width 300ms cubic-bezier(0.77, 0, 0.175, 1);
}
.section-content h3 a.vp-a:hover:after,
.section-content a.vp-a:hover:after {
  width: 100%;
}

/* ---------- tighter section spacing on homepage ---------- */
#portfolio.section, #werk.section, #over.section, #contact.section {
  padding: 70px 0 40px 0;
}
#portfolio .row.alt, #werk .row.alt, #over .row.alt, #contact .row.alt {
  margin-bottom: 40px;
}

/* bigger text on curriculum + project pages */
.service-content {
  font-size: 18.5px;
  line-height: 1.8;
}

/* over jan: photo next to testimonial, black text */
.overjan-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.overjan-flex .overjan-photo-wrap {
  flex: 0 0 320px;
  margin-bottom: 0;
}
.overjan-flex .overjan-photo {
  width: 320px;
  height: auto;
  border: 6px solid #fff;
}
.overjan-flex .testimonial {
  flex: 0 1 520px;
  margin: 0;
  text-align: left;
}
.overjan .testimonial-text {
  color: #111 !important;
}
.overjan .testimonial-author {
  color: #111 !important;
}

/* contactgegevens: center columns */
.section-contact .wp-block-column {
  text-align: center !important;
}
.section-contact .wp-block-column img {
  display: block;
  margin: 0 auto 12px auto;
}
.section-contact .wp-block-column p {
  text-align: center !important;
}
.wa-link {
  color: #111 !important;
  font-weight: 700;
  text-decoration: none;
}
.wa-link:hover {
  text-decoration: underline;
}

/* map: colored google maps embed */
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  pointer-events: none;
  display: block;
}
.map-embed {
  height: 360px;
}

/* contact column icons (dark gray transparent PNGs) */
.section-contact .wp-block-column img {
  width: 48px;
  max-width: none;
}

/* the template's style.css sets `video { position:absolute; min-width:100%; min-height:100% }`
   for its background videos; undo that inside the lightbox so the player stays centred */
.lightbox-content video {
  position: static;
  min-width: 0;
  min-height: 0;
}
