
#footer {
    background-color: #ECECEC;
}

.footer-position {
    position: relative;
    z-index: 1030;
}

@media (min-width: 768px) {
    .footer-position {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
    }
}

.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.alert {
    z-index: 1031;
}

.copy-button {
    position : absolute;
    bottom   : 15px;
    right: 15px;
}

/* overflow paper bib */

.fixed-len-card {
    height: 400px;
}

@media only screen and (max-width: 600px) {
    .fixed-len-card {
        height: auto;
    }
}

.custom-button {
    width: 200px !important;
    height: 200px !important;
    margin-right: 20px !important;
}

.custom-button:hover{
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4));
}

#cite_box {
    overflow-y: auto;
    max-height: 320px;
}

/* ------------------------------------------------------------------ */
/* Page editor "layout" super-blocks (rendered on dataset pages)       */
/* ------------------------------------------------------------------ */

/* Responsive image container: one image fills the width; several form a
   mosaic. Gallery presets pin a fixed number of columns. */
.ds-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin: 0.25rem 0;
}

/* Grid items default to min-width:auto, which lets a large image overflow its
   column; min-width:0 lets the track (and the image) shrink to fit. */
.ds-media > * { min-width: 0; }

/* Images may be wrapped in a link to the full-res original. */
.ds-media a { display: block; }

.ds-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.3rem;
}

.ds-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.ds-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.ds-gallery-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 576px) {
    .ds-gallery-3, .ds-gallery-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Image placeholders are an editor-only affordance — never shown publicly. */
.ds-img-placeholder { display: none; }

/* Default text style for browser-configured pages: matches the look of the
   existing static dataset pages (Bootstrap .lead, justified). */
.dataset-page-body p,
.dataset-page-body li {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: justify;
}

/* Bootstrap 5 has text-start/center/end but no justify utility; the alignment
   buttons emit these classes (they persist; inline styles would be sanitized). */
.text-justify { text-align: justify; }

/* ------------------------------------------------------------------ */
/* Contacts page (per-dataset "Meet the team")                         */
/* ------------------------------------------------------------------ */

.authors-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.authors-intro {
    margin-bottom: 2rem;
}

.authors-heading {
    font-weight: 700;
}

.authors-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.author-card {
    margin: 0;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.author-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Author photos are cropped to 3:4 portrait in the admin; show them at that
   ratio so the grid is uniform. */
.author-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f1f3f5;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

.author-info {
    padding: 0.85rem 0.75rem 1.1rem;
}

.author-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.author-position {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.authors-contact {
    margin-top: 2.5rem;
    text-align: center;
    color: #495057;
    font-size: 1.05rem;
}

.authors-contact i {
    margin-right: 0.4rem;
}

@media screen and (max-width:900px), screen and (max-height:500px) {
#author {display:none;}
}