/* ================= Testimonials – FB screenshots gallery ================= */

.tGallery {
    --gap: var(--sp-14, 14px);
    column-gap: var(--gap);

    /* Masonry columns (best for mixed-height screenshots) */
    column-count: 3;
}

@media (max-width: 1024px) {
    .tGallery {
        column-count: 2;
    }
}

@media (max-width: 680px) {
    .tGallery {
        column-count: 1;
    }
}

.tGallery__item {
    /* must be inline-block for columns */
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--gap);
    break-inside: avoid;

    cursor: pointer;
    border: 0;
    padding: 10px;
    text-align: inherit;
    background: rgba(255, 255, 255, 0.7);

    border-radius: 18px;

    /* thin gold outline (around the photo card) */
    border: 1px solid var(--c-gold-500);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease,
        border-color 0.22s ease;
}

/* the image: fully visible, no cropping */
.tGallery__img {
    display: block;
    width: 100%;
    height: auto; /* IMPORTANT: shows full image */
    border-radius: 14px;
    background: #fff;

    /* subtle inner “frame” */
    box-shadow: inset 0 0 0 1px rgba(214, 177, 91, 0.22);
}

/* Creative non-uniformity (subtle) */
@media (min-width: 900px) {
    .tGallery__item:nth-child(3n + 1) {
        transform: rotate(-0.35deg);
    }
    .tGallery__item:nth-child(3n + 2) {
        transform: rotate(0.25deg);
    }
    .tGallery__item:nth-child(3n) {
        transform: rotate(-0.15deg);
    }
}

.tGallery__item:hover {
    transform: translateY(-2px) rotate(0deg);
    border-color: rgba(214, 177, 91, 0.55);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.tGallery__item:focus-visible {
    outline: 3px solid rgba(214, 177, 91, 0.55);
    outline-offset: 3px;
}

/* ================= Lightbox (same idea, tuned to your style) ================= */

.tLightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.tLightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
}

.tLightbox__panel {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    margin: 14px auto;

    border-radius: 22px;
    overflow: hidden;
    background: #fff;

    border: 1px solid rgba(214, 177, 91, 0.28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.tLightbox__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 28px);
    display: block;
    object-fit: contain;
    background: #fff;
}

.tLightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 44px;
    height: 44px;
    border-radius: 999px;

    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;

    display: grid;
    place-items: center;
}

.tLightbox__close:focus-visible {
    outline: 3px solid rgba(214, 177, 91, 0.55);
    outline-offset: 2px;
}
