/* ===========================
   Shared Stack
=========================== */

.archive-stack {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Images */

.archive-image-stack {
    max-width: 80%;
    aspect-ratio: 4 / 3;
}

/* Documents */

.archive-document-stack {
    max-width: 68%;
    aspect-ratio: 8 / 11;
}

.archive-stack-item {
    position: absolute;
    inset: 0;
}

/* ===========================
   Images
=========================== */

.archive-stack-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;

    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;

    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

/* ===========================
   Documents
=========================== */

.archive-stack-document {
    width: 100%;
    height: 100%;
    object-fit: contain;

    display: block;

    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;

    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

/* ===========================
   Stack Layers
=========================== */

.archive-stack-1 {
    z-index: 4;
    transform: rotate(0deg);
}

.archive-stack-2 {
    z-index: 3;
    transform: translate(-7px, 6px) rotate(-5deg);
}

.archive-stack-3 {
    z-index: 2;
    transform: translate(7px, 10px) rotate(4deg);
}

.archive-stack-4 {
    z-index: 1;
    transform: translate(-5px, 14px) rotate(-4deg);
}

/* ===========================
   Count Badge
=========================== */

.archive-stack-count {

    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    background: #fff;
    color: #000;

    border: 1px solid rgba(0,0,0,.08);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 2px 8px rgba(0,0,0,.18);

    z-index: 20;
}