
.info-panel {
    /* background-color: #c8d583; */
    /* font-family: Arial; */
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    font-size: larger;
}

.info-left, .info-right {
    display: flex;
    flex-direction: column;
}

.info-right {
    font-size: 14px;
}

.info-right table {
    border-width: 1px;
}

.info-right tr {
    border-bottom-width: 1px;
}

.info-right td {
    padding: 0.5rem 1rem;
}

.info-label {
    background-color: rgb(249 250 251);
    color: rgb(17 24 39);
}

.info-value {
    color: rgb(107 114 128);
}

.taxon-rank {
    font-size: 16px;
}

.taxon-name {
    font-style: italic;
    font-size: 36px;
    font-weight: 700;
}

.scientific-label {
    font-size: 18px;
    font-weight: 700;
}

.taxon-scientific svg {
    display: inline;
    margin-bottom: 3px;
}

.taxon-rank-value {
    color: rgb(75, 85, 99);
}

.taxon-scientific {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#image-gallery {
    display: flex;
    align-items: center;
}

.tab-microscope {
    display: inline-block;
}

.tab-microscope img {
    height: 50px;
    cursor: pointer;
}

.tab-microscope img:hover {
    outline: #c8d583 3px dotted;
}

.imerss-content-frame {
    display: flex;
    flex-direction: column;
}

.imerss-image-header {
    margin-left: -5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-nav {
    display: flex;
    column-gap: 1.5rem;
    border-top-width: 1px;
    border-bottom-width: 1px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    flex-wrap: wrap;
    line-height: 2;
}

.imerss-image-holder {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    margin: 5px;
    border-radius: 6px;
    min-height: 250px;
    flex: auto;
    cursor: pointer;
}

.imerss-image-copy {
    position: absolute;
    bottom: 4px;
    left: 0px;
    padding: 0px 3px;
    font-size: 12px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}

.imerss-iNat-extern {
    position: absolute;
    right: 3px;
    bottom: 0;
    background: #0007;
    font-size: 12px;
    padding: 4px;
    padding-left: 6px;
    color: white;
}

.external-link {
    width: 12px;
    height: 12px;
    display: inline-block;
    background-image: url(../images/external-link.svg);
    background-repeat: no-repeat;
    background-size: 12px;
    margin-left: 5px;
    vertical-align: -1px;
}

.imerss-map-holder {
    padding-left: 3px;
    padding-top: 3px;
    width: 100%;
    height: 40vh;
}


/** Tweak pre-baked micromodal styles to wrap content properly **/

.modal__content {
    display: flex;
}

.modal__content img {
    max-height: 80vh;
    max-width: 80vh;
}

.modal__overlay {
    z-index: 100;
}

.modal__container {
    max-width: unset;
    max-height: unset;
}

.modal__close {
    outline-width: 0;
}

.modal__close:hover {
    color: var(--link-color);
}

.modal__title {
    color: var(--link-color);
}

/** Tweak popup position to cover border segment **/

.maplibregl-popup-content {
    margin-bottom: -1px;
    padding-right: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.popup-close {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 4px;
}
