
/* BDRX Travel Journal */

#atlas-diary {
    margin-top: 34px;
}

#atlas-diary-list {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.atlas-diary-entry {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    background: #ede9e2;
    border: 1px solid #ddd6cc;
    border-radius: 14px;
}

html[data-theme="dark"] .atlas-diary-entry {
    background: #242a30;
    border-color: #3b434b;
}

.atlas-diary-entry img {
    display: block;
    width: 100%;
    max-height: 290px;
    object-fit: contain;
    border-radius: 7px;
}

.atlas-diary-entry h3 {
    font: normal 25px/1.25 Georgia, serif;
    margin: 0 0 10px;
}

.atlas-diary-place {
    margin: 0 0 12px;
    color: #777;
    font-size: 14px;
}

html[data-theme="dark"] .atlas-diary-place {
    color: #aeb4ba;
}

.atlas-diary-excerpt {
    white-space: pre-line;
    line-height: 1.65;
    margin: 0 0 15px;
}

.atlas-diary-link {
    display: inline-block;
    margin-top: 4px;
}

#atlas-diary-pages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0;
}

#atlas-diary-pages[hidden] {
    display: none;
}

#atlas-diary-pages button {
    cursor: pointer;
    padding: 10px 16px;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid #858585;
    border-radius: 8px;
}

#atlas-diary-pages button:disabled {
    opacity: .35;
    cursor: default;
}

.atlas-diary-count {
    font-size: 14px;
    color: #888;
}

@media (max-width: 600px) {
    .atlas-diary-entry {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 14px;
    }

    .atlas-diary-entry img {
        max-height: 360px;
    }

    .atlas-diary-entry h3 {
        font-size: 23px;
    }

    #atlas-diary-pages button {
        padding: 10px 12px;
    }
}


/* ATLAS DIARY LINK COLORS */
.atlas-diary-link,
.atlas-diary-link:visited {
    color: #866636;
    text-decoration-color: currentColor;
}

html[data-theme="dark"] .atlas-diary-link,
html[data-theme="dark"] .atlas-diary-link:visited {
    color: #d5b77d;
}

.atlas-diary-link:hover {
    text-decoration-thickness: 2px;
}

/* BDRX LIGHT THEME READABILITY */
html[data-theme="light"] #atlas-diary .atlas-diary-excerpt {
    color: #302f2c;
}
