/* Gallery + Hall of Fame page */

.gallery-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 48px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 36px 24px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--clan-navy, #1E3C72), var(--clan-blue, #2A5298));
    box-shadow: 0 10px 28px rgba(20, 35, 63, 0.14);
    position: relative;
    overflow: hidden;
}

.gallery-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pattern-stars, none);
    opacity: 0.28;
    pointer-events: none;
}

.gallery-header h1 {
    position: relative;
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--clan-gold, #FFD700);
}

.gallery-header p {
    position: relative;
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.gallery-page .section-title {
    color: var(--clan-navy);
    margin: 36px 0 24px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.gallery-page .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 3px;
    background: linear-gradient(90deg, var(--clan-gold), var(--clan-blue));
    border-radius: 2px;
}

/* Hall of Fame */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.hof-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e4ebf5;
    box-shadow: 0 4px 16px rgba(20, 35, 63, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hof-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 35, 63, 0.14);
}

.hof-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(42, 82, 152, 0.08));
}

.hof-image {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    border: 3px solid rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
    background: #fff;
    padding: 4px;
    transition: transform 0.35s ease;
}

.hof-card:hover .hof-image {
    transform: scale(1.03);
}

.hof-year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(30, 60, 114, 0.92);
    color: var(--clan-gold);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.achievement-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 215, 0, 0.92);
    color: var(--clan-navy);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
}

.hof-content {
    padding: 20px 22px 22px;
}

.hof-name {
    color: var(--clan-navy);
    margin: 0 0 12px;
    font-size: 1.35rem;
    text-align: center;
}

.hof-contribution {
    color: #b8860b;
    line-height: 1.65;
    margin: 0 0 12px;
    padding: 14px 16px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.hof-additional-info {
    font-style: italic;
    color: #5b6b86;
    padding: 14px 16px 14px 28px;
    margin: 0;
    border-top: 1px dashed rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.04);
    line-height: 1.6;
    font-size: 0.92rem;
    position: relative;
}

.hof-additional-info::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 2rem;
    color: var(--clan-gold);
    opacity: 0.35;
    line-height: 1;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #5b6b86;
    padding: 32px 20px;
    background: #fff;
    border: 1px dashed #c9d6ea;
    border-radius: 12px;
}

/* Photo grid */
.gallery-container {
    margin-top: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(20, 35, 63, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 260px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 215, 0, 0.35);
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 35, 63, 0.16);
}

.gallery-img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 60, 114, 0.92), transparent);
    padding: 16px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--clan-gold);
    font-weight: 700;
}

.gallery-desc {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.92;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .gallery-page {
        width: calc(100% - 20px);
    }

    .hof-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hof-image-container {
        height: 240px;
    }

    .gallery-item {
        height: 220px;
    }
}
