.doc-wrap {
    padding: 40px 80px;
}

@media (max-width: 680px) {
    .doc-wrap { padding: 20px 1rem; }
}

/* ── Section ─────────────────────────────────────────────── */
.doc-section {
    margin-bottom: 64px;
}

.doc-section-header {
    margin-bottom: 8px;
    padding: 1rem 0;
}

.doc-section-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 4px;
}

.doc-section-desc {
    font-size: 0.75rem;
    color: #555;
    margin: 0 0 16px;
}

/* ── Utility ─────────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Carousel ────────────────────────────────────────────── */
.doc-carousel-wrap {
    position: relative;
    margin-bottom: 12px;
}

.doc-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.doc-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0;
}

.doc-carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
    cursor: pointer;
}

.doc-carousel-slide img {
    max-height: 360px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.doc-carousel-slide.is-pdf {
    flex-direction: column;
    gap: 12px;
    cursor: default;
}

.pdf-icon {
    font-size: 3rem;
    color: #888;
}

.pdf-name {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    padding: 0 20px;
    word-break: break-word;
}

/* ── Poster carousel ─────────────────────────────────────── */
.doc-poster-carousel {
    position: relative;
}

.doc-poster-carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    .doc-poster-carousel-viewport {
        scroll-behavior: auto;
    }
}

.doc-poster-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.doc-poster-carousel-track {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 4px 4px 12px;
}

.doc-poster-carousel-slide {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}

@media (min-width: 1024px) {
    .doc-poster-carousel-slide { width: 320px; }
}

@media (max-width: 680px) {
    .doc-poster-carousel-slide { width: 72%; }
}

@media (max-width: 340px) {
    .doc-poster-carousel-slide { width: 82%; }
}

.doc-poster-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.carousel-btn {
    background: none;
    border: 1px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.carousel-btn:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #000;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.carousel-dot:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.carousel-dot[aria-current="true"] {
    background: #000;
}

.doc-posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
@media(min-width: 1024px){
   .doc-posters-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
}

@media(max-width: 340px){
   .doc-posters-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
}

.lightbox-arrow{
    background: none;
  color: white;
  border: none;
  width: 48px;
  font-size: 2rem;
}

.doc-poster-item {
    all: unset;
    box-sizing: border-box;
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
}

.doc-poster-item:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.doc-poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    aspect-ratio: 3 / 4;
}

.doc-poster-item:hover img,
.doc-poster-item:focus-visible img {
    transform: scale(1.03);
}

.doc-poster-item.is-pdf {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #ccc;
    aspect-ratio: 3 / 4;
}

.doc-poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.doc-poster-item:hover .doc-poster-overlay,
.doc-poster-item:focus-visible .doc-poster-overlay {
    opacity: 1;
}

/* ── Thumbnail strip ─────────────────────────────────────── */
.doc-thumbnails {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.doc-thumb {
    flex: 0 0 80px;
    height: 56px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    background: #eee;
}

.doc-thumb.active {
    border-color: #000;
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doc-thumb.is-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #888;
    cursor: default;
}

.doc-masonry {
    columns: 3;
    column-gap: 12px;
}

@media (max-width: 680px) {
    .doc-masonry { columns: 2; }
}

.doc-masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    cursor: pointer;
    overflow: hidden;
    background: #eee;
}

.doc-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Pagination ──────────────────────────────────────────── */
.doc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pagination-btn {
    background: none;
    border: 1px solid #000;
    border-radius: 4px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

.pagination-btn:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-btn.pagination-number[aria-current="true"] {
    background: #000;
    color: #fff;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 680px) {
    .doc-grid { grid-template-columns: 1fr; }
}

.doc-grid-item {
    cursor: pointer;
    overflow: hidden;
}

.doc-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.doc-grid-item.is-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border: 2px solid violet;
}

/* ── Lightbox ────────────────────────────────────────────── */
.peliskan-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.peliskan-lightbox.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.doc-catalogue-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
}

.doc-catalogue-list-articles {
    margin-top: 1.5rem;
}

.doc-catalogue-item {
    display: flex;

    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #000;
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
}

.doc-catalogue-item:last-child,
.doc-catalogue-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid #000;
}

.doc-catalogue-item:hover .catalogue-name {
    text-decoration: underline;
}

.catalogue-view {
    font-size: 0.75rem;
    color: #555;
    flex-shrink: 0;
    margin-left: 2rem;
}

@media (max-width: 680px) {
    .doc-catalogue-list {
        grid-template-columns: 1fr;
    }

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

    .doc-masonry {
        columns: 2;
    }
}


.doc-catalogue-covers {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    align-items: center;
    justify-content: center;

}

.doc-catalogue-covers {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0 3rem;
    align-items: flex-end;
    justify-content: center;
}

.catalogue-cover-item {
    flex: 0 0 auto;
    width: 20%;
    transform-origin: bottom center;
    position: relative;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.catalogue-cover-item:nth-child(1) { transform: rotate(-3deg) translateY(0px); }
.catalogue-cover-item:nth-child(2) { transform: rotate(-1deg) translateY(20px); }
.catalogue-cover-item:nth-child(3) { transform: rotate(2deg) translateY(8px); }
.catalogue-cover-item:nth-child(4) { transform: rotate(4deg) translateY(16px); }