

.largecaptions :first-child {
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-grid--smaller {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
}

.pswp-gallery__item {
    display: block;
}

.pswp-gallery__item a {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    border-radius: var(--nm-radius);
    overflow: hidden;
    border: 1px solid var(--nm-border);
    background: var(--nm-surface-strong);
    cursor: zoom-in;
}

.pswp-gallery__item .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pswp-gallery__item a:hover .img-responsive {
    transform: scale(1.05);
}

.gallery-zoom-hint {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(5, 8, 22, 0.6);
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.gallery-zoom-hint svg {
    width: 15px;
    height: 15px;
}

.pswp-gallery__item a:hover .gallery-zoom-hint {
    opacity: 1;
    background: var(--nm-red);
    transform: scale(1.1);
}

.pswp-gallery__item .hidden-caption-content {
    display: none;
}

.pswp__custom-caption {
    background: var(--nm-red);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: 90%;
    border-radius: var(--nm-radius);
    text-align: center;
   font-family: "sirenia", sans-serif;
}
