/*   Prefix --archive-   */

body {
    /* --where-property-when */

}

.archive-record-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/*    Containers    */

.archive-record-element {
    position: relative;
    display: flex;
    background-color: #ffffff;
    flex-direction: row;
    margin: 8px;
    padding: 8px;
    border-radius: 3px;
    min-height: 160px;
    box-shadow: 0 0 8px var(--base-box-shadow-color);
    font-family: Commissioner;
}

@media (max-width: 599.98px) {
    .archive-record-element {
        flex-direction: column;
        gap: 8px;
    }
}

.archive-record-element:hover {
    background-color: var(--base-list-element-background-hover);
}

.archive-image-block {
    position: relative;
    max-width: 30%;
    max-width: min(326px, 30%);
    width: 100%;
    min-height: 160px;
}

@media (max-width: 599.98px) {
    .archive-image-block {
        max-width: 100%;
    }
}

.archive-image-block img {
    position: absolute;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
    background-color: #ccc;
}

.archive-image-block img:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "\2639" " NO PHOTO";
    color: #fff;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.archive-info-block {
    box-sizing: border-box !important;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 8px;
    width: 70%;
    width: calc(100% - min(326px, 30%));
    z-index: 1;
}

@media (max-width: 599.98px) {
    .archive-info-block {
        width: 100%;
        padding-left: unset; 
    }
}

.archive-info-top {
    display: flex;
    flex-direction: column;
}

.archive-info-bottom {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

/* Info */

.archive-date {
    color: var(--base-neutral);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.archive-name {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
}

.archive-published-in {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 24px;
    margin: 8px 0;
}

.archive-place {
    pointer-events: all;
    background-color: var(--base-special-button-background);
    color: var(--base-special-button-color);
    border-radius: 16px;
    text-decoration: none !important;
    text-align: center;
    padding: 2px 10px 4px 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    transition: all 0ms ease-out;
}

.archive-place:hover {
    background-color: var(--base-special-button-background-hover);
    color: var(--base-special-button-color-hover) !important;
}

.archive-published-in:has(> .archive-place:empty) {
    display: none;
}

.archive-published-in-delimiter {
    align-self: center;
    stroke-width: 1px;
    stroke: #000;
    margin: 4px;
}

.archive-published-in:has(> .archive-category:empty) .archive-published-in-delimiter {
    display: none;
}

.archive-category {
    pointer-events: all;
    background-color: var(--base-special-button-background);
    color: var(--base-special-button-color);
    border-radius: 16px;
    text-decoration: none !important; 
    text-align: center;
    padding: 2px 10px 4px 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    transition: all 0ms ease-out;
}

.archive-category:hover {
    background-color: var(--base-special-button-background-hover);
    color: var(--base-special-button-color-hover) !important;
}

.archive-category:empty {
    cursor: default;
}

.archive-category:empty:hover {
    text-decoration: none;
}

.archive-category:empty::after {
    content: "...";
    pointer-events: none;
    color: #000;
    cursor: default;
}

.archive-published-in:has(> .archive-category:empty) .archive-category {
    display: none;
}

.archive-button {
    pointer-events: all;
    display: block;
    background-color: var(--base-button-background);
    color: var(--base-button-color);
    text-decoration: none !important;
    border-radius: 16px;
    padding: 6px 24px 8px 24px;
    width: min-content;
    white-space: nowrap;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    text-decoration: none;
    transition: all 0ms ease-out;
}

.archive-button:hover {
    background-color: var(--base-button-background-hover);
    color: var(--base-button-color-hover) !important;
    text-decoration: none;
}

.archive-button:focus {
    color: var(--base-button-color-hover) !important;
    text-decoration: none;
}