/* Project cards use the existing WPBakery row and column order. */
.gpz-project-card {
    width: 100%; max-width: 19rem; margin: .6rem auto 1.65rem;
    border: 1px solid #ddd; background: #fff;
}
.gpz-project-photo { display: block; cursor: zoom-in; }
.gpz-project-card img {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
    object-fit: contain; background: #efeeee;
}
.gpz-project-caption { padding: .8rem .9rem .95rem; }
.gpz-project-caption h2 { margin: 0; font: inherit; font-weight: 650; line-height: 1.3; }
.gpz-project-caption p { margin: .3rem 0 0; color: #525252; font-size: .9em; }
.gpz-project-photo:focus-visible, .gpz-project-viewer :focus-visible { outline: 2px solid #426a69; outline-offset: 2px; }
.gpz-project-viewer {
    box-sizing: border-box; width: min(calc(100% - 1.5rem), 56rem); max-height: calc(100% - 1.5rem);
    border: 0; padding: 1rem; overflow: auto; color: #232323; background: #fff;
}
.gpz-project-viewer::backdrop { background: rgb(0 0 0 / .8); }
.gpz-viewer-top, .gpz-viewer-actions { display: flex; align-items: center; gap: .65rem; }
.gpz-viewer-top { justify-content: space-between; margin-bottom: .65rem; }
.gpz-viewer-top h2 { margin: 0; font-size: clamp(1rem, 2.4vw, 1.35rem); }
.gpz-viewer-location { margin: .15rem 0 0; color: #555; }
.gpz-viewer-image { display: grid; place-items: center; background: #efeeee; }
.gpz-viewer-image img { width: auto; max-width: 100%; max-height: 67vh; height: auto; object-fit: contain; }
.gpz-project-viewer [hidden] { display: none; }
.gpz-viewer-actions { margin-top: .75rem; flex-wrap: wrap; }
.gpz-viewer-actions a { margin-inline-start: auto; }
.gpz-project-viewer button {
    flex: 0 0 auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid #999; color: #252525; background: #fff; font-size: 1.55rem; cursor: pointer;
}
