/* ── Photos Module ───────────────────────────────────────────────────────── */

.r33-guidelines-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.r33-guidelines-row .r33-photo-guidelines {
    flex: 1;
    margin: 0;
    background: #1a1a1a;
}

.r33-guidelines-row .r33-q-card {
    width: 280px;
    flex-shrink: 0;
}

.r33-photo-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #111;
    border: 1px dashed #2a2a2a;
    border-radius: 6px;
    flex-wrap: wrap;
}

.r33-photo-upload input[type="file"] {
    color: #999;
    font-size: 13px;
    flex: 1;
    min-width: 0;
}

#r33-upload-btn {
    background: #c9a84c;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

#r33-upload-btn:hover {
    background: #e0bc5a;
}

#r33-upload-btn:disabled {
    background: #444;
    color: #666;
    cursor: not-allowed;
}

.r33-photo-count {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

#r33-photo-status {
    width: 100%;
    font-size: 13px;
    color: #c9a84c;
    margin-top: 4px;
}

.r33-photo-limit-notice {
    color: #888;
    font-size: 13px;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    margin-bottom: 24px;
}

.r33-photo-guidelines {
    padding: 20px 24px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-size: 13px;
    color: #bbb;
}

.r33-photo-guidelines h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #fff;
}

.r33-photo-guidelines ul {
    padding-left: 18px;
    margin: 0;
}

.r33-photo-guidelines li {
    margin-bottom: 6px;
}

.r33-photo-guidelines-warning {
    margin-top: 10px;
    margin-bottom: 0;
    color: #e0a800;
    font-size: 12px;
}

.r33-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.r33-photo-item {
    position: relative;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    cursor: grab;
    transition: border-color 0.2s ease;
}

.r33-photo-item.is-featured {
    border-color: #c9a84c;
}

.r33-photo-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.r33-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c9a84c;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

.r33-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: #111;
}

.r33-set-featured-photo,
.r33-delete-photo,
.r33-is-featured-btn {
    width: 100%;
    border-radius: 3px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.r33-is-featured-btn {
    border: 1px solid #c9a84c;
    background: #c9a84c;
    color: #000;
    cursor: default;
}

.r33-set-featured-photo {
    background: #1e1e1e;
    color: #c9a84c;
    border: 1px solid #c9a84c;
}

.r33-set-featured-photo:hover {
    background: #c9a84c;
    color: #000;
}

.r33-delete-photo {
    background: #1e1e1e;
    color: #cc4444;
    border: 1px solid #cc4444;
}

.r33-delete-photo:hover {
    background: #cc4444;
    color: #fff;
}

.r33-photo-placeholder {
    width: 160px;
    background: #1a1a1a;
    border: 2px dashed #c9a84c;
    border-radius: 6px;
    opacity: 0.5;
}

.r33-drag-hint {
    font-size: 12px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 12px;
    opacity: .7;
    letter-spacing: 0.5px;
}

.r33-q-card {
    background: #121212;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.r33-q-title {
    font-size: 15px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.3px;
}

.r33-q-body {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

.r33-q-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.r33-q-benefits li {
    font-size: 12px;
    color: #888;
    padding-left: 14px;
    position: relative;
}

.r33-q-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a84c;
    font-weight: 700;
}

.r33-q-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.r33-q-toggle-label {
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

.r33-q-helper {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

#r33-q-status {
    font-size: 12px;
    color: #c9a84c;
    min-height: 16px;
}

.r33-photos-layout{
    display:grid;
    grid-template-columns:1fr 300px;
    gap:28px;
    align-items:start;
}

.r33-photos-main{
    min-width:0;
}

.r33-photos-sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.r33-q-toggle-label-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: -4px;
}

@media (max-width:900px){
    .r33-photos-layout{
        grid-template-columns:1fr;
    }
}