/* Par skolu pasakumu saraksta un kartisu stili. */


/* ===== PASAKUMU LAPA (PUBLISKĀ) ===== */
.pasakumi-page {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 100%;
}

/* ===== PASAKUMA DETĀLU LAPA ===== */
.pasakumi-show-page {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Detālās lapas konteineram mazāks platums */
.pasakumi-show-page .container {
    max-width: 900px;
}

/* ===== PAGE HEADER STILI ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #520505;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ffd700);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

/* Atpakaļ saite */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 30px;
    transition: all 0.2s;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #520505;
    box-shadow: 0 2px 8px rgba(82,5,5,0.1);
    position: relative;
    z-index: 3;
}

.back-link:hover {
    background: #520505;
    color: white;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 0.9rem;
}

/* Pasākuma pilnais saturs (detālajā lapā) */
.pasakuma-full {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(82,5,5,0.1);
}

/* ===== IERAKSTU SKAITA IZVĒLE (saraksta lapā) ===== */
.per-page-selector-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 30px;
    justify-content: flex-end;
}

.per-page-selector-top label {
    white-space: nowrap;
    font-weight: 500;
}

.per-page-selector-top input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

.per-page-selector-top input[type="number"]::-webkit-outer-spin-button,
.per-page-selector-top input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
    height: 24px;
}

.per-page-selector-top input[type="number"]:hover {
    border-color: #520505;
}

/* ===== PASAKUMU REŽĢIS (saraksta lapā) ===== */
.pasakumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pasakuma-karte {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pasakuma-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(82,5,5,0.15);
}

.pasakuma-attels {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pasakuma-attels img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pasakuma-karte:hover .pasakuma-attels img {
    transform: scale(1.05);
}

.pasakuma-saturs {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pasakuma-virsraksts {
    font-size: 1.3rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 10px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pasakuma-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.pasakuma-meta i {
    color: #ffcc00;
    margin-right: 4px;
}

.pasakuma-apraksts {
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.lasit-vairak {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #520505;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.lasit-vairak:hover {
    gap: 8px;
    color: #7a0f0f;
}

.lasit-vairak i {
    font-size: 0.9rem;
}

.nav-pasakumu {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    padding: 40px 0;
}

/* ===== DETĀLĀS LAPAS SPECIFISKIE STILI ===== */
.pasakumi-show-page .pasakuma-virsraksts {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.pasakumi-show-page .pasakuma-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.pasakumi-show-page .pasakuma-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 999px;
    padding: 8px 14px;
    color: #520505;
    border: 1px solid #520505;
}

.pasakumi-show-page .pasakuma-apraksts {
    margin-bottom: 24px;
    white-space: normal;
    line-height: 1.7;
    color: #333;
}

.pasakuma-link-block {
    margin-top: 8px;
    padding-top: 8px;
}

.pasakuma-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #520505, #7a0f0f);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(82, 5, 5, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pasakuma-link-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #660808, #8c1414);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(82, 5, 5, 0.32);
}

.pasakuma-link-btn:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* ===== GALERIJAS STILI ===== */
.pasakuma-galerija {
    margin-bottom: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.galerija-pamatattels {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    cursor: pointer;
    position: relative;
}

.galerija-pamatattels img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.galerija-sikbildes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.galerija-sikbilde {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.galerija-sikbilde:hover {
    opacity: 0.8;
    border-color: #520505;
}

.galerija-sikbilde.aktivs {
    border-color: #520505;
    opacity: 1;
}

.galerija-sikbilde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galerijas modālis */
.galerija-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.galerija-modal-saturs {
    position: relative;
    margin: auto;
    padding: 0 60px;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.galerija-modal-slide {
    display: none;
    text-align: center;
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galerija-modal-slide img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Bultiņu stili */
.galerija-modal-prev,
.galerija-modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    background-color: rgba(82,5,5,0.7);
    border: none;
    border-radius: 50%;
    user-select: none;
    z-index: 10001;
    padding: 0;
    line-height: 1;
}

.galerija-modal-prev { left: 5px; }
.galerija-modal-next { right: 5px; }

.galerija-modal-prev:hover,
.galerija-modal-next:hover {
    background-color: #520505;
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
}

.galerija-modal-prev:focus,
.galerija-modal-next:focus {
    outline: none;
}

.galerija-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.galerija-modal-close:hover { color: #520505; }

.galerija-modal-indikators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    background-color: rgba(82,5,5,0.8);
    border-radius: 30px;
    z-index: 10000;
}

/* Pasakumu modala šķirstīšana: identiska projektu skatam */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#pasakumaModalImage {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    cursor: pointer;
    background: rgba(82,5,5,0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10000;
    border: 2px solid rgba(255,255,255,0.2);
    font-size: 28px;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

.lightbox-close:hover {
    background: #7a0f0f;
    transform: scale(1.1);
    border-color: white;
    color: white;
}

.lightbox-close::before {
    content: "×";
    display: block;
    line-height: 1;
    margin-top: -1px;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(82,5,5,0.7);
    color: white;
    border: 2px solid #ffcc00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ffcc00;
    color: #520505;
    transform: translateY(-50%) scale(1.1);
    border-color: white;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 16px;
    background-color: rgba(82,5,5,0.8);
    border-radius: 30px;
    z-index: 10000;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.2);
}

.zoom-controls {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10002;
    background: rgba(82,5,5,0.8);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #520505;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #ffcc00;
    transform: scale(1.1);
}

/* ===== NOAPAĻOTIE STŪRI BILDĒM ===== */
.pasakuma-attels {
    border-radius: 12px;
    overflow: hidden;
}

.pasakuma-attels img {
    border-radius: 12px;
}

.pasakuma-karte .pasakuma-attels {
    border-radius: 12px 12px 0 0;
}

.pasakumi-show-page .pasakuma-attels {
    border-radius: 16px;
}

.pasakumi-show-page .pasakuma-attels img {
    border-radius: 16px;
}

.galerija-sikbilde {
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .pasakuma-link-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.galerija-sikbilde img {
    border-radius: 8px;
}

.galerija-pamatattels {
    border-radius: 16px;
    overflow: hidden;
}

.galerija-pamatattels img {
    border-radius: 16px;
}

.galerija-modal-slide img {
    border-radius: 20px;
}

/* ===== LAPOŠANA (saraksta lapā) ===== */
.pagination-bottom {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.pagination-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-links .pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-links .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #520505;
    border-radius: 4px;
    color: #520505;
    background-color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-links .page-link:hover {
    background-color: #f5f5f5;
    border-color: #520505;
    color: #520505;
}

.pagination-links .active .page-link {
    background-color: #520505;
    color: white;
    border-color: #520505;
}

.pagination-links .disabled .page-link {
    color: #999;
    background-color: white;
    pointer-events: none;
    border-color: #ddd;
}

.pagination-links .page-item:first-child .page-link,
.pagination-links .page-item:last-child .page-link {
    background-color: #520505;
    color: white;
    border-color: #520505;
    min-width: 80px;
}

.pagination-links .page-item:first-child .page-link:hover,
.pagination-links .page-item:last-child .page-link:hover {
    background-color: #7a0f0f;
    border-color: #7a0f0f;
}

.pagination-links .page-item:first-child.disabled .page-link,
.pagination-links .page-item:last-child.disabled .page-link {
    background-color: #ddd;
    border-color: #ddd;
    color: #999;
}

/* ===== DATUMA FILTRA INDIKATORS ===== */
.datuma-filtrs {
    background-color: rgba(82,5,5,0.05);
    border-left: 4px solid #520505;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.filtrs-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #333;
}

.filtrs-info i {
    color: #520505;
    font-size: 1.1rem;
}

.filtrs-info strong {
    color: #520505;
    font-weight: 600;
}

.notirit-filtru {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #520505;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-left: auto;
}

.notirit-filtru:hover {
    background-color: #7a0f0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(82,5,5,0.15);
}

.notirit-filtru i {
    color: white;
    font-size: 0.8rem;
}

/* ===== LAYOUT STILI (saraksta lapai) ===== */
.pasakumi-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.kalendars-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(82,5,5,0.08);
    border: 1px solid rgba(82,5,5,0.1);
    width: 100%;
    max-width: 300px;
}

.per-page-selector-top {
    margin-bottom: 20px;
}

/* ===== ATPAKAĻ SAITES STILS ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #520505;
    box-shadow: 0 2px 8px rgba(82,5,5,0.1);
}

.back-link:hover {
    background: #520505;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(82,5,5,0.2);
    text-decoration: none; /* Nodrošina, ka nav pasvītrojuma arī hover stāvoklī */
}

.back-link i {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* ===== MINIMĀLS FONA UZLABOJUMS DETĀLAJAI LAPAI ===== */
.pasakumi-show-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    position: relative;
}

.pasakumi-show-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(82,5,5,0.05) 0%, rgba(255,204,0,0.05) 100%);
    pointer-events: none;
}

.pasakumi-show-page .container {
    position: relative;
    z-index: 2;
}

.pasakuma-full {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(82,5,5,0.15);
    border: 1px solid rgba(82,5,5,0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.pasakuma-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(82,5,5,0.2);
}

/* ===== PILNA APRAKSTA RĀDĪŠANA ===== */
.pasakumi-show-page .pasakuma-apraksts {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: clip;
    max-height: none;
    height: auto;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto; 
}

.pasakumi-show-page .pasakuma-apraksts p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.2rem;
}

/* ===== IERAKSTU SKAITA IZVĒLES STILS ===== */
.per-page-selector-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    justify-content: flex-end;
}

.per-page-selector-top label {
    white-space: nowrap;
    font-weight: 600;
    color: #520505;
}

.per-page-select {
    width: 80px;
    padding: 8px 10px;
    border: 2px solid #520505;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    background-color: white;
    color: #520505;
    font-weight: 500;
    cursor: pointer;
    transition: none; /* Noņem visas pārejas */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23520505' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/* Noņem hover efektu */
.per-page-select:hover {
    border-color: #520505; /* Paliek tāda pati kā sākotnēji */
    background-color: white; /* Paliek balta */
}

/* Noņem focus efektu */
.per-page-select:focus {
    outline: none;
    border-color: #520505; /* Paliek tāda pati kā sākotnēji */
    box-shadow: none; /* Noņem ēnu */
}

/* ===== MOBILĀ VERSIJA ===== */
@media (max-width: 768px) {
    .per-page-selector-top {
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .per-page-selector-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .per-page-select {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .pasakumi-layout {
        grid-template-columns: 1fr;
    }
    
    .kalendars-container {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .pasakumi-page,
    .pasakumi-show-page {
        padding: 30px 0;
    }

    .per-page-selector-top {
        justify-content: center;
        margin-bottom: 20px;
    }

    .pasakumi-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .pagination-bottom {
        justify-content: center;
    }

    .pagination-links {
        justify-content: center;
    }

    .pasakumi-show-page .pasakuma-full {
        padding: 25px;
    }

    .pasakumi-show-page .pasakuma-virsraksts {
        font-size: 1.8rem;
    }

    .pasakumi-show-page .pasakuma-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pasakumi-show-page .pasakuma-apraksts {
        font-size: 1rem;
        line-height: 1.6;
    }

    .galerija-pamatattels { 
        height: 300px; 
    }
    
    .galerija-sikbildes { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .galerija-modal-saturs { 
        padding: 0 40px; 
    }
    
    .galerija-modal-prev, 
    .galerija-modal-next { 
        width: 35px; 
        height: 35px; 
        font-size: 20px; 
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }

    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .zoom-controls {
        bottom: 80px;
        right: 15px;
        gap: 8px;
        padding: 6px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .galerija-modal-close { 
        top: 10px; 
        right: 20px; 
        font-size: 35px; 
    }

    .filtrs-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notirit-filtru {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pasakumi-page,
    .pasakumi-show-page {
        padding: 20px 0;
    }

    .per-page-selector-top {
        flex-direction: column;
        align-items: stretch;
    }

    .per-page-selector-top label {
        text-align: center;
    }

    .per-page-selector-top input[type="number"] {
        width: 100%;
    }

    .pasakumi-grid {
        grid-template-columns: 1fr;
    }

    .pasakuma-attels {
        height: 180px;
    }

    .pagination-links .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pagination-links .page-item:first-child .page-link,
    .pagination-links .page-item:last-child .page-link {
        font-size: 0.7rem;
        min-width: 60px;
    }

    .pasakumi-show-page .pasakuma-full {
        padding: 20px;
    }

    .pasakumi-show-page .pasakuma-virsraksts {
        font-size: 1.5rem;
    }

    .pasakumi-show-page .back-link {
        margin-bottom: 20px;
    }
}