/* Gallery light — minimal grid + PhotoSwipe */

.gallery-light .gallery-light-filters {
    border-radius: 0.75rem;
}

.gallery-light-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .gallery-light-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (min-width: 992px) {
    .gallery-light-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.gallery-light-cell {
    position: relative;
}

.gallery-light-item {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ececec;
    line-height: 0;
}

.gallery-light-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* PhotoSwipe — download / share μέσα στο top bar (ορατά και στο mobile) */
.pswp__top-bar .pswp__gallery-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.25rem;
    margin-left: auto;
    pointer-events: auto;
    flex-shrink: 0;
}

.pswp__gallery-action-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.pswp__gallery-action-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.pswp__gallery-action-btn:hover,
.pswp__gallery-action-btn:focus-visible {
    background: #fff;
}

/* PhotoSwipe top bar: κουμπιά δίπλα στο X */
.pswp__top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pswp__top-bar .pswp__button--close {
    position: relative;
    margin-left: 0;
}


.gallery-light-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 0.4rem 0 0;
    padding: 0 0.15rem;
    text-align: center;
    line-height: 1.25;
}

.gallery-light-uploader {
    width: 100%;
    font-weight: 600;
    font-size: 0.82rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-light-category {
    width: 100%;
    font-size: 0.72rem;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-light-category .bi {
    font-size: 0.68rem;
    margin-right: 0.1rem;
}

.gallery-light-cell .gallery-light-like-form {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    margin: 0;
}

.gallery-light-like {
    border: 0;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    background: #fff;
    color: #333;
    font-size: 0.8125rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 1.625rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    -webkit-appearance: none;
    appearance: none;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

.gallery-light-like .bi {
    font-size: 0.875rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.gallery-light-like-count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
    -webkit-text-size-adjust: 100%;
}

.gallery-light-like .bi-heart-fill.text-danger {
    color: #dc3545 !important;
}

.gallery-light-like .bi-heart-fill.text-muted {
    color: #6c757d !important;
}

.gallery-light-preview-note {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 1.25rem;
}

.gallery-light-preview-note a {
    color: var(--main-color, #c97f63);
    font-weight: 600;
}
