html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #101010;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 14px;
}

.gallery-actions {
    display: flex;
    gap: .5rem;
    left: 1rem;
    position: fixed;
    top: 1rem;
    z-index: 2;
}

.gallery-action,
.logo {
    appearance: none;
    border: 1px solid rgba(245, 234, 215, .34);
    border-radius: 999px;
    padding: .55rem .95rem;
    color: #f5ead7;
    background: rgba(22, 19, 16, .72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease;
}

.logo {
    left: 1rem;
    position: fixed;
    top: 1rem;
    z-index: 2;
}

.gd-modal-loaded .gallery-actions,
.gd-modal-loaded .logo {
    display: none;
}

.gallery-action:hover,
.gallery-action:focus,
.logo:hover,
.logo:focus {
    color: #fff9ee;
    background: rgba(116, 47, 31, .82);
    border-color: rgba(255, 249, 238, .62);
    outline: none;
    transform: translateY(-1px);
}

#credit {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background:
        radial-gradient(circle at 18% 16%, rgba(205, 132, 82, .20), transparent 34rem),
        radial-gradient(circle at 84% 88%, rgba(73, 105, 88, .24), transparent 30rem),
        rgba(11, 10, 9, .76);
    backdrop-filter: blur(9px) saturate(1.08);
    z-index: 4;
    color: #2b241d;
}

#credit-content-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.25rem, 4vw, 4rem);
    width: 100%;
    box-sizing: border-box;
}

#credit-content {
    background:
        linear-gradient(135deg, rgba(255, 251, 241, .97), rgba(239, 225, 201, .95)),
        #f4ead8;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .38),
        inset 0 0 0 1px rgba(96, 67, 43, .08);
    box-sizing: border-box;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.68;
    margin: auto;
    max-height: min(74vh, 42rem);
    max-width: 44rem;
    overflow: auto;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    position: relative;
    width: min(100%, 44rem);
}

#credit-content::before {
    background: linear-gradient(180deg, #8d3f2e, #d2a663);
    border-radius: 999px;
    content: "";
    height: calc(100% - 2.6rem);
    left: 1.1rem;
    opacity: .78;
    position: absolute;
    top: 1.3rem;
    width: 3px;
}

#credit-content h3 {
    color: #1f1a15;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 1.25rem;
    max-width: 12em;
}

#credit-content p {
    margin: 0;
}

#credit-content p + p {
    border-top: 1px solid rgba(76, 58, 42, .13);
    margin-top: 1rem;
    padding-top: 1rem;
}

#credit-content a {
    color: #7b2f24;
    font-weight: 700;
    text-decoration-color: rgba(123, 47, 36, .35);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
    transition: color .18s ease, text-decoration-color .18s ease;
}

#credit-content a:hover,
#credit-content a:focus {
    color: #2f6f59;
    text-decoration-color: currentColor;
}

#credit-close {
    align-items: center;
    background: rgba(245, 234, 215, .86);
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    color: #5e4a3a;
    display: flex;
    font-size: 2rem;
    font-weight: 400;
    height: 2.75rem;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: clamp(1rem, 4vw, 2.2rem);
    top: clamp(1rem, 4vw, 2.2rem);
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
    width: 2.75rem;
    z-index: 20;
}

#credit-close:hover,
#credit-close:focus {
    background: #fff9ee;
    color: #7b2f24;
    cursor: pointer;
    transform: rotate(6deg) scale(1.04);
}

@media (max-width: 680px) {
    .gallery-actions {
        left: .75rem;
        top: .75rem;
    }

    .gallery-action,
    .logo {
        font-size: .72rem;
        padding: .52rem .72rem;
    }

    #credit-content-wrapper {
        align-items: flex-end;
        padding: 4.5rem 1rem 1rem;
    }

    #credit-content {
        max-height: 78vh;
        padding: 1.45rem 1.35rem 1.55rem 1.65rem;
    }

    #credit-content::before {
        left: .82rem;
    }

    #credit-close {
        height: 2.55rem;
        width: 2.55rem;
    }
}
