/* v 260520.0315 UTC */

.random-photo-page {
    min-height: 100svh;
    margin: 0;
    background: #070707;
    color: #f7f0df;
    overflow: hidden;
}

.random-photo-main {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.random-photo-close {
    position: fixed;
    z-index: 5;
    top: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.random-photo-close::before,
.random-photo-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transform-origin: center;
}

.random-photo-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.random-photo-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.random-photo-frame {
    position: relative;
    width: min(100%, 1480px);
    height: min(88svh, 920px);
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.random-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #050505;
}

.random-photo-frame figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34), transparent);
}

.random-photo-kicker {
    display: block;
    margin-bottom: 0.5rem;
    color: #d4af37;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.random-photo-frame h1,
.random-photo-empty h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.random-photo-frame p,
.random-photo-empty p {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.random-photo-again {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.68rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.68);
    border-radius: 999px;
    color: #f5df9b;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.38);
}

.random-photo-again:hover,
.random-photo-again:focus-visible {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.16);
}

.random-photo-empty {
    width: min(720px, 100%);
    padding: clamp(1.6rem, 5vw, 3rem);
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.55);
    text-align: center;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

.random-photo-empty code {
    color: #f5df9b;
}

@media (max-width: 700px) {
    .random-photo-main {
        padding: 0;
    }

    .random-photo-frame {
        width: 100%;
        height: 100svh;
        border-radius: 0;
    }

    .random-photo-close {
        top: 0.8rem;
        right: 0.8rem;
    }
}
