.projects-page .projects-layout { display: block; }
.projects-content { margin: 0; }
.project-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 40px; }
.project-row + .project-row { margin-top: 60px; }
.project-gallery { position: relative; width: 100%; min-width: 0; overflow: hidden; }
.project-gallery a, .project-gallery img { display: block; width: 100%; }
.project-gallery img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.project-gallery a { cursor: zoom-in; }
.project-description h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.project-description p { line-height: 1.7; }
.project-description p:last-child { margin-bottom: 0; }
.project-arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 50px; padding: 0; border: 0; background: rgb(0 0 0 / 30%); color: #fff; font-family: Arial, sans-serif; font-size: 42px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.project-arrow:hover, .project-arrow:focus-visible { background: rgb(0 0 0 / 65%); color: #fff; }
.project-prev, .project-lightbox-prev { left: 10px; }
.project-next, .project-lightbox-next { right: 10px; }
.project-lightbox { position: fixed; inset: 0; width: min(1200px, 96vw); max-width: 96vw; max-height: 94vh; margin: auto; padding: 50px 60px 20px; border: 0; background: #111; color: #fff; }
.project-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.project-lightbox .project-arrow[hidden] { display: none; }
.project-lightbox figure { margin: 0; }
.project-lightbox img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.project-lightbox figcaption { margin-top: 15px; text-align: center; }
.project-lightbox-close { position: absolute; top: 5px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 32px; cursor: pointer; }
body:has(.project-lightbox[open]) { overflow: hidden; }
@media (max-width: 767px) {
    .project-row { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .project-row + .project-row { margin-top: 40px; }
    .project-description h2 { font-size: 21px; }
    .project-lightbox { padding-inline: 12px; }
}
