* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.header-content > div {
    text-align: center;
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.text-mask {
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    font-size: 4rem;
    text-align: center;
    width: 100%;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.75rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .subtitle {
        font-size: 0.85rem;
    }
}

nav {
    background-color: #2a5298;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

@media (max-width: 1024px) {
    nav ul li {
        margin: 0 0.5rem;
    }
    nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    nav ul li {
        margin: 0.25rem 0.5rem;
    }
    nav ul li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    nav ul li {
        margin: 0;
        width: 100%;
    }
    nav ul li a {
        padding: 0.5rem;
        text-align: center;
        width: 100%;
    }
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

main {
    padding: 2rem 0;
}

.section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2a5298;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.result-details {
    margin-top: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    border-bottom: none;
}

.position {
    font-weight: bold;
    color: #2a5298;
}

/* Kolory medali dla pierwszych trzech miejsc */
.result-item:nth-child(1) span:last-child {
    color: #FFD700;
    font-weight: bold;
}

.result-item:nth-child(2) span:last-child {
    color: #C0C0C0;
    font-weight: bold;
}

.result-item:nth-child(3) span:last-child {
    color: #CD7F32;
    font-weight: bold;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

.news-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt--full {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.news-pdf {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-pdf iframe {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
}

.news-pdf-link {
    margin-top: 0.75rem;
}

.news-card.expanded .news-excerpt {
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2a5298;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #1e3c72;
}

footer {
    background-color: #1e3c72;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 0.4rem;
    }
    .filter-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2a5298;
    color: white;
    border-color: #2a5298;
}

.filter-btn-hidden {
    display: none;
}

.filter-btn-other {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn-other:hover,
.filter-btn-other.active {
    background-color: #2a5298;
    color: white;
    border-color: #2a5298;
}

.filter-btn-other.expanded {
    background-color: #2a5298;
    color: white;
    border-color: #2a5298;
}

/* Dropdown Menu Styles */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn-dropdown {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn-dropdown:hover {
    background-color: #2a5298;
    color: white;
    border-color: #2a5298;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.filter-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 2px solid #2a5298;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    margin-top: 5px;
}

.filter-dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #e9ecef;
    color: #2a5298;
}

.dropdown-item.active {
    background-color: #2a5298;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@media (max-width: 1024px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #1e3c72;
}

.modal-title {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a5298;
}

.tournament-table {
    width: max-content;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
}

.tournament-table th:nth-child(2),
.tournament-table td:nth-child(2) {
    padding-right: 1cm;
}

.tournament-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tournament-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.tournament-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.tournament-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tournament-table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    .tournament-table th,
    .tournament-table td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .tournament-table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    .tournament-table th,
    .tournament-table td {
        padding: 0.4rem 0.5rem;
    }
}

.tournament-table tbody tr:hover {
    background-color: #f8f9fa;
}

.tournament-table tbody tr:nth-child(1) {
    background-color: #fff9e6;
    font-weight: bold;
}

.tournament-table tbody tr:nth-child(2) {
    background-color: #f5f5f5;
}

.tournament-table tbody tr:nth-child(3) {
    background-color: #ffe6cc;
}

.medal {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.medal.gold {
    background-color: #ffd700;
}

.medal.silver {
    background-color: #c0c0c0;
}

.medal.bronze {
    background-color: #cd7f32;
}

.matches-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #dee2e6;
    transform: scale(0.7);
    transform-origin: left top;
    width: 142.857%;
}

.matches-section.match-scale-70 {
    transform: scale(0.7);
    transform-origin: left top;
    width: 142.857%;
}

.matches-title {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a5298;
}

.group-mini-table {
    margin: 0.5rem 0 1.5rem;
}

.group-mini-table-title {
    font-size: 1rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.group-mini-table-wrapper {
    transform: scale(0.7);
    transform-origin: left top;
    width: 142.857%;
}

.group-matches-section {
    margin: 0.25rem 0 1.5rem;
    transform: scale(0.7);
    transform-origin: left top;
    width: 142.857%;
}

.group-matches-title {
    font-size: 1rem;
    color: #1e3c72;
    margin: 0 0 0.75rem;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.mini-table thead {
    background-color: #e9ecef;
    color: #333;
}

.mini-table th,
.mini-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.mini-table tbody tr:hover {
    background-color: transparent;
}

.mini-table tbody tr:nth-child(1),
.mini-table tbody tr:nth-child(2),
.mini-table tbody tr:nth-child(3) {
    background-color: transparent;
    font-weight: normal;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2a5298;
    transition: background-color 0.3s;
}

.match-item:hover {
    background-color: #e9ecef;
}

.match-date {
    color: #666;
    font-size: 0.9rem;
    min-width: 120px;
}

.match-teams {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem;
}

.match-team {
    font-weight: 500;
    color: #333;
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    margin: 0 1rem;
    min-width: 60px;
    text-align: center;
}

.match-result {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }

    .section {
        padding: 1rem;
    }

    .results-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }

    .match-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-date {
        margin-bottom: 0.5rem;
    }

    .match-teams {
        width: 100%;
        margin: 0.5rem 0;
    }

    .match-score {
        margin: 0.5rem 0;
    }

    main {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 0.75rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .match-item {
        padding: 0.75rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-title {
        font-size: 1.1rem;
    }

    .news-content {
        padding: 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    main {
        padding: 0.5rem 0;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .section {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .filter-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Responsywność dla nagłówków h3 w sekcjach */
@media (max-width: 768px) {
    h3[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    h3[style*="font-size: 1.5rem"] {
        font-size: 1.1rem !important;
        margin-top: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Galeria Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

.gallery-event-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-event-content {
    padding: 1.5rem;
}

.gallery-event-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gallery-event-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.gallery-event-count {
    color: #666;
    font-size: 0.9rem;
}

/* Modal galerii zdjęć */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.gallery-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.gallery-modal-header {
    color: white;
    margin-bottom: 2rem;
}

.gallery-modal-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-modal-date {
    color: #ccc;
    font-size: 1rem;
}

.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .gallery-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

.gallery-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #333;
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-photo-item:hover img {
    transform: scale(1.05);
}

.gallery-close {
    color: white;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1002;
}

.gallery-close:hover {
    color: #ccc;
}

/* Karty tekstowe dla pozostałych kategorii */
.gallery-text-card {
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.gallery-text-card:hover {
    background-color: #e8f1ff;
    border-color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.2);
}

.gallery-text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.gallery-text-emoji {
    font-size: 1.125rem;
}

.gallery-text-title {
    font-size: 0.7125rem;
    font-weight: 600;
    color: #2a5298;
}

/* Licznik zdjęć w galerii */
.gallery-photo-count {
    font-size: 0.625rem;
    color: #666;
    font-weight: 400;
}

/* Dropdown w galerii */
.gallery-dropdown-wrapper {
    position: relative;
}

.gallery-dropdown-btn {
    cursor: pointer;
}

.gallery-dropdown-btn .dropdown-arrow {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.gallery-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #2a5298;
    border-radius: 8px;
    padding: 0.375rem;
    margin-top: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    min-width: 150px;
}

.gallery-dropdown-item {
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #333;
}

.gallery-dropdown-item:hover {
    background-color: #e8f1ff;
    border-color: #2a5298;
    color: #2a5298;
    transform: translateX(4px);
}

.gallery-dropdown-count {
    font-size: 0.6875rem;
    color: #666;
    font-weight: 500;
}

/* Przycisk Inne */
.gallery-inne-container {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.gallery-inne-btn {
    background-color: #2a5298;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-inne-btn:hover {
    background-color: #1e3d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.gallery-inne-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #2a5298;
    border-radius: 8px;
    padding: 0.375rem;
    margin-top: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    min-width: 225px;
}

.gallery-inne-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 0.75rem;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-inne-item:hover {
    background-color: #e8f1ff;
    border-color: #2a5298;
}

.gallery-inne-emoji {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.gallery-inne-image {
    display: none;
}

.gallery-inne-title {
    font-weight: 600;
    color: #2a5298;
    font-size: 0.7125rem;
}

.gallery-inne-count {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Przycisk "Zobacz inne wiadomości" */
.news-inne-container {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.news-inne-btn {
    background-color: #2a5298;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.news-inne-btn:hover {
    background-color: #1e3d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.news-inne-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #2a5298;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    min-width: 300px;
}

.news-inne-item {
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 1rem;
    background-color: #f9f9f9;
}

.news-inne-item:hover {
    background-color: #e8f1ff;
    border-color: #2a5298;
}

.news-inne-title {
    font-weight: 600;
    color: #2a5298;
    font-size: 0.95rem;
}

/* Modal dla wiadomości */
.news-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

.news-modal-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.news-modal-date {
    font-size: 0.9rem;
    color: #666;
}

.news-modal-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Lightbox dla pojedynczego zdjęcia */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.lightbox[style*="display: flex"],
.lightbox.active {
    display: flex !important;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-modal-content {
        padding: 1rem;
    }

    .gallery-modal-title {
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .gallery-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .gallery-modal-content {
        padding: 0.75rem;
        margin: 5% auto;
    }

    .gallery-modal-title {
        font-size: 1.25rem;
    }

    .gallery-modal-date {
        font-size: 0.9rem;
    }

    .gallery-event-content {
        padding: 1rem;
    }

    .gallery-event-title {
        font-size: 1.1rem;
    }

    .lightbox img {
        max-width: 98%;
        max-height: 80%;
    }

    .lightbox-close {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }
}
