/* Feature detail rows, screenshot thumbnails and lightbox (homepage and ad pages) */
/* Feature detail section */
#feature-details {
  background-color: #f5f7fa;
  padding: 120px 0 40px;
}
#feature-details .feature-detail-row {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  scroll-margin-top: 100px;
}
#feature-details h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  scroll-margin-top: 90px;
}
#feature-details p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
/* Background-image screenshot column */
.feature-screenshot-col {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 400px;
  cursor: zoom-in;
  position: relative;
}
@media (max-width: 991.98px) {
  .feature-screenshot-col .thumb-overlay {
      opacity: 1 !important;
  }
}
.feature-screenshot-col .thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
  font-size: 2rem;
}
.feature-screenshot-col:hover .thumb-overlay {
  opacity: 1;
}
/* Lightbox modal */
#feature-lightbox .modal-content {
  background: #454d55;
}
.lightbox-img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
  border-radius: .3rem;
  transition: width 0.25s ease;
  border: 1px solid #000;
}
.lightbox-img.lightbox-zoomed {
  max-width: none;
  width: 180%;
  cursor: zoom-out;
}
/* Hero screenshot that opens the lightbox (ad and feature pages) */
.lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.lightbox-trigger .zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 20px;
  pointer-events: none;
}
/* Bootstrap 5.1 smooth-scrolls every in-page link. The homepage is very long, so "Learn more" took seconds to arrive
   (and loaded every screenshot it passed); jump straight to the section instead. */
:root {
  scroll-behavior: auto !important;
}

/* Interactive demo modal */
#feature-demo-modal .modal-content {
  background: #454d55;
  color: #fff;
}
#feature-demo-modal .modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
#feature-demo-modal .modal-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
#feature-demo-modal .modal-title {
  color: #fff;
  margin: 0;
}
#feature-demo-modal small {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
#feature-demo-modal small a {
  color: #8fb4e3;
  font-weight: 600;
}
#feature-demo-body {
  position: relative;
  height: 72vh;
  background: #343a40;
}
.demo-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.demo-loading p {
  margin: 0;
  color: #fff;
  font-size: 16px;
}
#feature-demo-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767.98px) {
  #feature-demo-body {
    height: calc(100vh - 150px);
  }
}

/* Hero screenshot (ad and feature pages): the corner chip plus a hover overlay like the homepage rows */
.lightbox-trigger {
  border-radius: 12px;
  overflow: hidden;
}
.lightbox-trigger .hero-hover {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.lightbox-trigger .hero-hover .lni {
  font-size: 2rem;
}
@media (hover: hover) {
  .lightbox-trigger .hero-hover {
    display: flex;
  }
  .lightbox-trigger:hover .hero-hover,
  .lightbox-trigger:focus-visible .hero-hover {
    opacity: 1;
  }
}

/* scroll-in animations: shorter, and no stagger on the feature cards and FAQ items, so they appear as soon as they are scrolled to */
.wow.fadeInUp {
  animation-duration: 0.5s !important;
}
.ud-features .wow.fadeInUp,
.ud-faq .wow.fadeInUp {
  animation-delay: 0s !important;
}
