#project-gallery {
  margin-top: 0;
}

body:not(.nuopan-home-ui) #project-gallery {
  --main-color: var(--indust-accent, #ff5c00);
  --white-color: #fff;
  margin: 2rem 0;
}

/* Keep the gallery's template overlap clear of the adjacent homepage sections. */
:is(#home-dealers, #home-inquiry, #home-articles) + link[rel="stylesheet"] + #project-gallery {
  margin-top: 0;
}

body:not(.nuopan-home-ui) #project-gallery .auto-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 15px;
}

#project-gallery .project-block_two-image {
  display: block;
}

#project-gallery .project-block_two-image img {
  height: auto;
}

#project-gallery .project-block_two-plus {
  font: 700 28px/1 system-ui, sans-serif;
  transition: opacity 300ms ease;
}

#project-gallery .project-block_two-image:focus-visible::before {
  opacity: 1;
  height: 90%;
}

#project-gallery .project-block_two-image:focus-visible .project-block_two-plus {
  opacity: 1;
}

#project-gallery .project-block_two-image:focus-visible::after {
  position: absolute;
  content: "";
  inset: 3px;
  z-index: 11;
  border: 2px solid #fff;
  pointer-events: none;
}

.project-gallery-popup .mfp-figure figure {
  margin: 0;
}

.project-gallery-popup .mfp-title {
  padding-right: 3.5rem;
  overflow-wrap: anywhere;
}

.project-gallery-popup .mfp-title a {
  color: #fff;
  text-decoration: underline;
}
