.image-wrap,
.species-photo-card > div {
    position: relative;
    background: #0a0a0a;
}

.image-wrap > img,
.species-photo-card > div > img,
.species-photo-target > img,
.daily-card > img {
    object-fit: cover;
    object-position: center;
}

.photo-card-overlay {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 22px 12px 10px;
    background: linear-gradient(to bottom, transparent 0, rgba(10,10,10,.62) 38%, rgba(10,10,10,.94) 72%);
    color: #fff;
    transition: padding-top .55s cubic-bezier(.2,.75,.25,1), background .55s ease;
}

.photo-card-overlay h3,
.gallery .photo-card-overlay h3,
.species-photo-card .photo-card-overlay h3,
.daily-card .photo-card-overlay h3 {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 48%;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    text-shadow: 0 1px 8px rgba(0,0,0,.7);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.photo-author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    max-width: 50%;
}

.photo-author-link{position:relative;z-index:4}.photo-author-link:hover .photo-author-identity strong{text-decoration:underline}.species-photo-target,.photo-card-target{position:absolute;z-index:1;inset:0}.species-photo-target>img,.photo-card-target>img{width:100%;height:100%;object-fit:cover}.photo-card-overlay h3 a{color:inherit}

.photo-author-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 50%;
    background: #f4ead8;
    color: #f4ead8;
}

.photo-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-author-avatar b { font: 700 11px Arial, sans-serif; }
.photo-author-identity { display: flex; min-width: 0; height: auto; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.photo-card-overlay .photo-author-name-row { position: static; display: flex !important; width: 100%; min-width: 0; height: 14px !important; align-items: center; justify-content: flex-start; gap: 4px; padding: 0; background: transparent; line-height: 1; }
.photo-author-name-row strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card-overlay .photo-author-name-row .user-role-badges { position: static; display: inline-flex !important; width: auto; height: 13px !important; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; gap: 2px; background: transparent; line-height: 1; }
.photo-author-name-row .user-role-badge { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; line-height: 1; }
.photo-author-name-row .user-role-badge svg { display: block; width: 12px !important; height: 12px !important; }
.photo-author-identity strong { overflow: hidden; color: #fff; font-size: 9px; text-overflow: ellipsis; text-shadow: 0 1px 7px rgba(0,0,0,.7); white-space: nowrap; }
.photo-author-identity small { overflow: hidden; color: #cdbea4; font-size: 7px; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.75); white-space: nowrap; }
.photo-author-identity small i { color: #ffe09a; font-style: normal; }
.photo-author-identity small em { color: #cdbea4; font-style: normal; }

.image-wrap .photo-card-overlay span {
    position: static;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    font-size: inherit;
}

.image-wrap .photo-card-overlay .photo-author-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
}

.image-wrap .photo-card-overlay .photo-author-identity {
    display: flex;
    width: auto;
    height: auto;
    place-items: initial;
}

.daily-card > .photo-card-overlay {
    inset: auto 0 0;
    padding: 24px 17px 11px;
    background: linear-gradient(to bottom, transparent, rgba(10,10,10,.6) 38%, rgba(10,10,10,.94) 72%);
}

.daily-card .photo-card-overlay > span { color: #f4ead8; }
.daily-card .photo-author-avatar { color: #f4ead8; }
.daily-card .photo-author-identity strong { color: #fff; }
.daily-card .photo-author-identity small { color: #cdbea4; }
.daily-card.featured .photo-card-overlay h3 { color: #fff; font-size: 15px; }

@media (hover: hover) and (pointer: fine) {
    .image-wrap:hover > .photo-card-overlay,
    .daily-card:hover > .photo-card-overlay,
    .archive-photo-image:hover > .photo-card-overlay,
    .species-photo-card > div:hover > .photo-card-overlay {
        padding-top: 24px;
        background: linear-gradient(to bottom, transparent 0, rgba(10,10,10,.72) 34%, rgba(10,10,10,.97) 68%);
    }
}

@media (max-width: 560px) {
    .photo-card-overlay { padding-right: 9px; padding-left: 9px; }
    .photo-author-avatar { width: 27px; height: 27px; flex-basis: 27px; }
    .photo-card-overlay h3,
    .gallery .photo-card-overlay h3,
    .species-photo-card .photo-card-overlay h3,
    .daily-card .photo-card-overlay h3 { right: 9px; width: 45%; font-size: 9px; }
}
