.mmh-photoswipe-gallery a.mmh-photoswipe-link {
    display: block;
    text-decoration: none;
    max-width: 20rem;
}

.mmh-photoswipe-gallery a.mmh-photoswipe-link img {
    display: block;
    width: 100%; 
    height: auto;
}

.item-gallery {
    margin: 0 0 1.5rem;
}

.item-gallery__thumb {
    margin: 0;
}

.item-gallery__thumb .mmh-photoswipe-link {
    max-width: none;
}

.item-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 0.33fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.item-gallery__thumb img {
    object-fit: contain;
    object-position: center;
}

.item-gallery__caption {
    display: none;
}

.pswp__button--zoom {
    display: none !important;
}

.pswp__dynamic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: min(420px, calc(100% - 2rem));
    padding: 0.75rem 1rem;
    background: rgba(17, 17, 17, 0.88);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.45;
    box-sizing: border-box;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.pswp__dynamic-caption a {
    color: inherit;
    text-decoration: underline;
}

.pswp__dynamic-caption--faded {
    opacity: 0;
}

.pswp__dynamic-caption--below {
    width: auto;
    max-width: none;
}

.pswp__dynamic-caption--aside {
    margin-left: 1rem;
}

.pswp__dynamic-caption--mobile {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
}
