.azw-project + .azw-project {
    margin-block-start: 2.5rem;
}
.azw-project > h2 {
    margin-block: 0 1rem;
}
.azw-gallery {
    --azw-columns: 3;
    display: grid;
    grid-template-columns: repeat(var(--azw-columns), minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
    max-width: calc(var(--azw-columns) * 1080px + (var(--azw-columns) - 1) * 1rem);
}
.azw-gallery.azw-columns-1 { --azw-columns: 1; }
.azw-gallery.azw-columns-2 { --azw-columns: 2; }
.azw-gallery.azw-columns-4 { --azw-columns: 4; }
.azw-gallery a,
.azw-gallery img {
    display: block;
}
.azw-gallery a {
    aspect-ratio: 1;
    overflow: hidden;
}
.azw-portfolio .azw-gallery img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: right top;
}
.azw-gallery a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
@media (max-width: 760px) {
    .azw-gallery.azw-columns-4,
    .azw-gallery.azw-columns-3 { --azw-columns: 2; }
}
@media (max-width: 480px) {
    .azw-gallery[class*="azw-columns-"] { --azw-columns: 1; }
}
.azw-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-block-end: 1.5rem;
}
.azw-portfolio .azw-filters a,
.azw-portfolio .azw-filters a:visited,
.azw-portfolio .azw-filters a:hover,
.azw-portfolio .azw-filters a:focus {
    color: #000;
    padding: 0.35rem 0.85rem;
    border: 1px solid currentColor;
    border-radius: 0.25rem;
}
.azw-filters a[aria-current="true"] {
    font-weight: 700;
    box-shadow: inset 0 0 0 1px currentColor;
}
.azw-category-prompt {
    text-align: center;
    margin-block: 0 1.25rem;
}
.azw-category-grid + .azw-project {
    margin-block-start: 2.5rem;
}
.azw-gallery .azw-category-card,
.azw-gallery .azw-category-photo {
    position: relative;
    background: #252525;
    text-decoration: none;
}
.azw-category-label {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 86%;
    width: max-content;
    padding: .35em .65em;
    background: #000;
    border-radius: .2em;
    pointer-events: none;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}
.azw-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: calc(100vw - 3rem);
    max-height: calc(100dvh - 4rem);
    padding: 0;
    border: 0;
    background: #171717;
    overflow: visible;
}
.azw-lightbox::backdrop {
    background: rgba(0, 0, 0, .83);
}
.azw-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
}
.azw-lightbox button {
    position: absolute;
    top: .5rem;
    right: .5rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: white;
    font: 24px/1 sans-serif;
    cursor: pointer;
}
