/* C50N-1395 — credit of the venue photo: a pill over the photo, a dark panel with the author, licence and source. */

.photo-credit__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.photo-credit__toggle--pill {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 24, 31, .62);
    color: #fff;
    font-size: 12px;
}

.photo-credit__toggle--pill:hover,
.photo-credit__toggle--pill:focus-visible {
    background: rgba(20, 24, 31, .85);
}

/* The open panel covers the pill's corner; the pill must not show through its translucent background. */
.photo-credit__toggle--pill[aria-expanded="true"] {
    visibility: hidden;
}

.photo-credit__panel {
    z-index: 4;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    background: rgba(20, 24, 31, .92);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.photo-credit__panel[hidden] {
    display: none;
}

.photo-credit__panel--full {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: calc(100% - 16px);
    overflow-y: auto;
}

.photo-credit__text {
    margin: 0;
    overflow-wrap: anywhere;
}

.photo-credit__panel a {
    color: #fff;
    text-decoration: underline;
}

.photo-credit__report {
    opacity: .75;
    font-size: 12px;
}

.photo-credit__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
