/**
 * Gallery Password Gate
 * Used by both embedded gallery blocks and the share page.
 */

.mwo-gallery-password-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
}

.mwo-gallery-password-form {
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.mwo-gallery-password-icon {
    color: #bbb;
    margin-block-end: 14px;
    line-height: 1;
}

.mwo-gallery-password-label {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.mwo-gallery-password-fields {
    display: flex;
    gap: 8px;
}

.mwo-gallery-password-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.mwo-gallery-password-input:focus {
    border-color: #aaa;
}

.mwo-gallery-password-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.mwo-gallery-password-btn:hover:not(:disabled) {
    background: #000;
}

.mwo-gallery-password-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.mwo-gallery-password-error {
    margin: 12px 0 0;
    min-height: 18px;
    font-size: 13px;
    color: #c00;
}

/* Share page — vertically centre the gate within the viewport */
.mwo-share-content--gated {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mwo-share-password-gate {
    width: 100%;
}
