/* ── RobArt Portfolio ──────────────────────────────────────────────────────── */

.rp-portfolio {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* Header */
.rp-header {
    margin-bottom: 24px;
}

.rp-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.rp-subtitle {
    font-size: 1rem;
    opacity: 0.65;
    margin: 0;
    font-style: italic;
}

/* ── Content row: image + details ──────────────────────────────────────────── */

.rp-content-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}

@media (max-width: 680px) {
    .rp-content-row {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.rp-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-main-image-wrap {
    width: 100%;
}

.rp-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.rp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rp-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}

.rp-thumb:hover {
    opacity: 0.85;
}

.rp-thumb.active {
    opacity: 1;
    border-color: currentColor;
}

/* Details */
.rp-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rp-detail-row {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.2);
}

.rp-detail-row:first-child {
    border-top: 1px solid rgba(128,128,128,0.2);
}

.rp-detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: 2px;
}

.rp-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Divider */
.rp-divider {
    border: none;
    border-top: 1px solid rgba(128,128,128,0.25);
    margin: 24px 0;
}

/* Description */
.rp-description {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 0;
}

.rp-description p {
    margin: 0 0 1em;
}

/* ── Bottom row: video + links ─────────────────────────────────────────────── */

.rp-bottom-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 680px) {
    .rp-bottom-row {
        grid-template-columns: 1fr;
    }
}

/* YouTube */
.rp-video-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-yt-player {
    width: 100%;
}

.rp-yt-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.rp-yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.rp-yt-thumb-wrap:hover .rp-yt-thumb {
    opacity: 0.8;
}

.rp-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rp-yt-play:focus,
.rp-yt-play:hover {
    background: #5184b3 !important;
    outline: none;
    border-radius: 8px;
}

.rp-yt-play img {
    width: 56px;
    height: 56px;
    display: block;
}

.rp-yt-thumb-wrap:hover .rp-yt-play {
    transform: translate(-50%, -50%) scale(1.2);
}

/* ── Video overlay ─────────────────────────────────────────────────────────── */

#rp-video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#rp-video-overlay.active {
    display: flex;
}

.rp-overlay-inner {
    position: relative;
    width: 90vw;
    max-width: 960px;
}

.rp-overlay-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.rp-overlay-close:hover {
    opacity: 1;
}

.rp-overlay-iframe-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.rp-overlay-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.rp-subscribe-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cc0000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.rp-yt-icon {
    width: 16px;
    height: auto;
    display: block;
}

.rp-subscribe-link:hover {
    opacity: 0.75;
}

/* Links / Commission */
.rp-links-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-store-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rp-store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(128,128,128,0.3);
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.rp-store-link:hover {
    background: rgba(128,128,128,0.08);
    border-color: rgba(128,128,128,0.6);
}

.rp-link-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.rp-commission-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: #5184b3;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.rp-commission-btn:hover {
    background: #3d6fa0;
    color: #fff;
}
