.lecitadin-reader {
    margin: 0 auto;
}

.lecitadin-iframe-wrap {
    position: relative;
}

.lecitadin-iframe-wrap iframe {
    width: 100%;
    /* Fixed (not min-) height: the iframe gets its own scrollbar, so
       clicking an in-page #anchor scrolls the iframe's own document
       instead of the outer page. */
    height: 80vh;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    animation: lecitadin-iframe-fade-in .5s ease-out forwards;
    animation-delay: .2s;
}

@keyframes lecitadin-iframe-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fullscreen toggle: hidden until the journal is hovered, so it doesn't
   clutter the reader on first glance. */
.lecitadin-fullscreen-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.lecitadin-iframe-wrap:hover .lecitadin-fullscreen-btn {
    transition: opacity .2s ease;
    opacity: 1;
    visibility: visible;
}

.lecitadin-iframe-wrap:fullscreen,
.lecitadin-iframe-wrap:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lecitadin-iframe-wrap:fullscreen iframe,
.lecitadin-iframe-wrap:-webkit-full-screen iframe {
    height: 100vh;
    max-width: 100vw;
    animation: none;
    opacity: 1;
}

.lecitadin-archives {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.lecitadin-archives .card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
