﻿/* ==============================
   Galleries page (listing cards)
   BodyClass: page-galleries
   ============================== */

.page-galleries .gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    justify-items: center;
    margin-top: 20px;
}

.page-galleries .gallery-card {
    background: #111;
    padding: 12px;
    border-radius: 8px;
    width: 260px;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .page-galleries .gallery-card:hover {
        transform: scale(1.03);
    }

    .page-galleries .gallery-card a {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .page-galleries .gallery-card h3 {
        min-height: 2.4em; /* ~two lines */
        line-height: 1.2;
    }

    /* Thumbnail “viewport” box */
    .page-galleries .gallery-card .thumb-wrap {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        border-radius: 6px;
        overflow: hidden;
        box-sizing: border-box;
        padding: 6px;
    }

        .page-galleries .gallery-card .thumb-wrap img {
            height: 100%;
            width: auto;
            object-fit: contain;
            display: block;
            max-width: 100%;
        }

    .page-galleries .gallery-card h3 {
        margin: 0;
        color: var(--color-text);
    }
