/* ================================
   SHOW GALLERY
   ================================ */

.show-gallery-page {
    --cricket-green: #28af48;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.show-gallery-title {
    margin-bottom: 1rem;
}

.show-gallery-intro {
    margin-bottom: 2rem;
}

/* ================================
   FILTERS
   ================================ */

.show-gallery-filters {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.show-gallery-filters h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.show-gallery-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.show-gallery-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 220px;
}

.show-gallery-filter label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.show-gallery-filter select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.show-gallery-filter select:focus {
    border-color: var(--cricket-green);
    outline: 2px solid var(--cricket-green);
    outline-offset: 1px;
}

.show-gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.show-gallery-button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--cricket-green);
    border-radius: 4px;
    background: #fff;
    color: var(--cricket-green);
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.5;
}

.show-gallery-button:hover,
.show-gallery-button:focus {
    background: var(--cricket-green);
    color: #fff;
}

/* ================================
   GRID - 3 columns desktop
   ================================ */

.show-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.show-gallery-card {
    margin: 0;
}

.show-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background: #eee;
    cursor: zoom-in;
}

.show-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.show-gallery-item:hover img,
.show-gallery-item:focus img {
    transform: scale(1.05);
}

.show-gallery-item:focus-visible {
    outline: 3px solid var(--cricket-green);
    outline-offset: 2px;
}

.show-gallery-card figcaption {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.show-gallery-show {
    font-weight: 600;
    color: #333;
}

.show-gallery-empty {
    padding: 2rem 0;
    color: #555;
}

.show-gallery-empty a {
    color: var(--cricket-green);
}

/* ================================
   PAGINATION
   ================================ */

.show-gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
}

.show-gallery-pagination .page-numbers {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.show-gallery-pagination .page-numbers.current,
.show-gallery-pagination a.page-numbers:hover {
    background: var(--cricket-green);
    border-color: var(--cricket-green);
    color: #fff;
}

/* ================================
   TABLET - 2 columns
   ================================ */

@media ( max-width: 1024px ) {
    .show-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   MOBILE - 1 column, stacked filters
   ================================ */

@media ( max-width: 768px ) {
    .show-gallery-grid {
        grid-template-columns: 1fr;
    }

    .show-gallery-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .show-gallery-filter {
        flex-basis: auto;
    }

    .show-gallery-actions .show-gallery-button {
        flex: 1;
        text-align: center;
    }
}
